法规清单修改操作人
This commit is contained in:
@@ -117,6 +117,12 @@
|
||||
<a-icon type="setting"/>
|
||||
{{ $t('BatchSetting') }}
|
||||
</div>
|
||||
<!-- 修改操作人-->
|
||||
<div class="operator-text" v-if="this.roleSwitchingCode == '1'"
|
||||
@click="modifyOperatorClick">
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{ $t('modifyOperator') }}
|
||||
</div>
|
||||
<!-- 列表设置-->
|
||||
<a-popconfirm :visible="customizevisible" overlayClassName="popconfirmmize"
|
||||
placement="bottomRight" v-if="this.roleSwitchingCode == '0' || this.roleSwitchingCode == '1'">
|
||||
@@ -191,6 +197,11 @@
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{ $t('compliancereport') }}
|
||||
</div>
|
||||
<!-- 修改操作人-->
|
||||
<div class="operator-text-title" @click="modifyOperatorClick">
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{ $t('modifyOperator') }}
|
||||
</div>
|
||||
<!-- <div class="operator-text-title" @click="batSettingClick">-->
|
||||
<!-- <a-icon type="setting" />-->
|
||||
<!-- {{ $t('batchSettingInformation') }}-->
|
||||
@@ -595,6 +606,7 @@
|
||||
<batchSettingPersonnel :url="url" ref="batchSettingPersonnelRef" @batchSettingPersonnelForm="addModelList"/>
|
||||
<viewFileModel ref="viewFileModelRef"/>
|
||||
<designCompliance ref="designComplianceRef"/>
|
||||
<modifyOperator ref="modifyOperatorRef" @modifyOperatorForm="modifyOperatorForm"/>
|
||||
</a-card>
|
||||
</template>
|
||||
|
||||
@@ -612,6 +624,7 @@
|
||||
import listOfRegulationsView from './listOfRegulationsView'
|
||||
import viewFileModel from '@/components/viewFileModel/index'
|
||||
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||
import modifyOperator from './modifyOperator'
|
||||
import batchSettingPersonnel from './batchSettingPersonnel'
|
||||
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
|
||||
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||
@@ -636,7 +649,8 @@
|
||||
batchSettingPersonnel,
|
||||
listOfRegulationsView,
|
||||
viewFileModel,
|
||||
designCompliance
|
||||
designCompliance,
|
||||
modifyOperator
|
||||
},
|
||||
mixins: [ResizeColumnProvide, ResizeHeader],
|
||||
data() {
|
||||
@@ -1453,6 +1467,41 @@
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
modifyOperatorClick() {
|
||||
if (this.selectedRowKeys.length == 0) {
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else if (this.selectedRowKeys.length > 1) {
|
||||
this.$message.warning(this.$t('OnlyOneSelected'))
|
||||
} else {
|
||||
let contentList = []
|
||||
for (let i = 0; i < this.dataSource.length; i++) {
|
||||
for (let j = 0; j < this.selectedRowKeys.length; j++) {
|
||||
if (this.dataSource[i].id == this.selectedRowKeys[j]) {
|
||||
contentList.push(this.dataSource[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
let isVerifyFlow = false
|
||||
let isDesignFlow = false
|
||||
if (contentList[0].verifyFlowStatus == 'Task to be confirmed'
|
||||
|| contentList[0].verifyFlowStatus == 'Results to be submitted') {
|
||||
isVerifyFlow = true
|
||||
}
|
||||
if (contentList[0].designFlowStatus == 'Task to be confirmed'
|
||||
|| contentList[0].designFlowStatus == 'Results to be submitted') {
|
||||
isDesignFlow = true
|
||||
}
|
||||
if (isDesignFlow || isVerifyFlow) {
|
||||
this.$refs.modifyOperatorRef.getData(contentList[0],isDesignFlow, isVerifyFlow)
|
||||
} else {
|
||||
this.$message.warning(this.$t('onlyDesignComplianceConfirmationSelected'))
|
||||
}
|
||||
}
|
||||
},
|
||||
modifyOperatorForm() {
|
||||
this
|
||||
this.getList()
|
||||
},
|
||||
//收起/展开
|
||||
handleToggleSearch() {
|
||||
this.toggleSearchStatus = !this.toggleSearchStatus
|
||||
@@ -2468,9 +2517,9 @@
|
||||
this.updateFlowStatusBatch()
|
||||
}
|
||||
for (let i = 0; i < this.startProcessList.length; i++) {
|
||||
if (this.startProcessList[i].type == 2){
|
||||
if (this.startProcessList[i].type == 2) {
|
||||
this.startProcessList[i].dataList.designDutyDueDate = this.formInline.designDutyDueDate
|
||||
}else if(this.startProcessList[i].type == 4){
|
||||
} else if (this.startProcessList[i].type == 4) {
|
||||
this.startProcessList[i].dataList.verifyDutyDueDate = this.formInline.verifyDutyDueDate
|
||||
}
|
||||
this.startProcess(this.startProcessList[i].dataList, this.startProcessList[i].type, this.startProcessList[i].requestsNum)
|
||||
|
||||
Reference in New Issue
Block a user