修改项目库详情

This commit is contained in:
范强强
2023-03-17 10:23:23 +08:00
parent 44037432ee
commit 69bdc91008
2 changed files with 83 additions and 80 deletions
@@ -1297,13 +1297,13 @@
this.visibleRoleSwitching = true this.visibleRoleSwitching = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ruleFormRoleSwitching.clearValidate() this.$refs.ruleFormRoleSwitching.clearValidate()
if (!this.formInlineRoleSwitching.roleSwitchingCode) { if (!this.roleSwitchingCode) {
this.formInlineRoleSwitching.roleSwitchingCode = '0' this.roleSwitchingCode = '0'
} }
if (!(this.roleSwitchingList.some(val => val.roleCode == this.formInlineRoleSwitching.roleSwitchingCode))) { if (!(this.roleSwitchingList.some(val => val.roleCode == this.roleSwitchingCode))) {
this.formInlineRoleSwitching.roleSwitchingCode = this.roleSwitchingList[0] ? this.roleSwitchingList[0].roleCode : '' this.roleSwitchingCode = this.roleSwitchingList[0] ? this.roleSwitchingList[0].roleCode : ''
} }
this.roleSwitchingCode = this.formInlineRoleSwitching.roleSwitchingCode this.formInlineRoleSwitching.roleSwitchingCode = this.roleSwitchingCode
this.formInlineRoleSwitching = { ...this.formInlineRoleSwitching } this.formInlineRoleSwitching = { ...this.formInlineRoleSwitching }
}) })
}, },
@@ -35,48 +35,48 @@
:triggerChange="false" :dictCode="'duty_territory'" /> :triggerChange="false" :dictCode="'duty_territory'" />
</div> </div>
</a-col> </a-col>
<template v-if="toggleSearchStatus"> <!-- <template v-if="toggleSearchStatus">-->
<a-col :md="6" :sm="8"> <!-- <a-col :md="6" :sm="8">-->
<div class="box-title-text"> <!-- <div class="box-title-text">-->
<div class="title-text" :title="$t('listConfirmationStatus')"> <!-- <div class="title-text" :title="$t('listConfirmationStatus')">-->
<span>{{ $t('listConfirmationStatus') }}</span> <!-- <span>{{ $t('listConfirmationStatus') }}</span>-->
</div> <!-- </div>-->
<a-select :placeholder="$t('PleaseSelect')+$t('listConfirmationStatus')" <!-- <a-select :placeholder="$t('PleaseSelect')+$t('listConfirmationStatus')"-->
class="box-input" <!-- class="box-input"-->
allowClear <!-- allowClear-->
:getPopupContainer="triggerNode=> triggerNode.parentNode" <!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
v-model="queryParam.inventoryAffirmStatus"> <!-- v-model="queryParam.inventoryAffirmStatus">-->
<a-select-option v-for="(item, key) in listOptions" <!-- <a-select-option v-for="(item, key) in listOptions"-->
:key="item.key" <!-- :key="item.key"-->
:value="item.value"> <!-- :value="item.value">-->
<span style="display: inline-block;width: 100%" :title=" item.label "> <!-- <span style="display: inline-block;width: 100%" :title=" item.label ">-->
{{ item.label }} <!-- {{ item.label }}-->
</span> <!-- </span>-->
</a-select-option> <!-- </a-select-option>-->
</a-select> <!-- </a-select>-->
</div> <!-- </div>-->
</a-col> <!-- </a-col>-->
<a-col :md="6" :sm="8"> <!-- <a-col :md="6" :sm="8">-->
<div class="box-title-text"> <!-- <div class="box-title-text">-->
<div class="title-text" :title="$t('taskAffirmStatus')"> <!-- <div class="title-text" :title="$t('taskAffirmStatus')">-->
<span>{{ $t('taskAffirmStatus') }}</span> <!-- <span>{{ $t('taskAffirmStatus') }}</span>-->
</div> <!-- </div>-->
<a-select :placeholder="$t('PleaseSelect')+$t('taskAffirmStatus')" <!-- <a-select :placeholder="$t('PleaseSelect')+$t('taskAffirmStatus')"-->
class="box-input" <!-- class="box-input"-->
allowClear <!-- allowClear-->
:getPopupContainer="triggerNode=> triggerNode.parentNode" <!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
v-model="queryParam.taskAffirmStatus"> <!-- v-model="queryParam.taskAffirmStatus">-->
<a-select-option v-for="(item, key) in taskOptions" <!-- <a-select-option v-for="(item, key) in taskOptions"-->
:key="item.key" <!-- :key="item.key"-->
:value="item.value"> <!-- :value="item.value">-->
<span style="display: inline-block;width: 100%" :title=" item.label "> <!-- <span style="display: inline-block;width: 100%" :title=" item.label ">-->
{{ item.label }} <!-- {{ item.label }}-->
</span> <!-- </span>-->
</a-select-option> <!-- </a-select-option>-->
</a-select> <!-- </a-select>-->
</div> <!-- </div>-->
</a-col> <!-- </a-col>-->
</template> <!-- </template>-->
<span style="float: right;overflow: hidden;margin-right: 11px; " class="table-page-search-submitButtons"> <span style="float: right;overflow: hidden;margin-right: 11px; " class="table-page-search-submitButtons">
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<globalAdvancedQuery ref="globalAdvancedQueryRef" <globalAdvancedQuery ref="globalAdvancedQueryRef"
@@ -85,10 +85,10 @@
<a-button class="box-button" type="primary" @click="searchQuery">{{ $t('query') }}</a-button> <a-button class="box-button" type="primary" @click="searchQuery">{{ $t('query') }}</a-button>
<a-button class="box-button" style="margin-left: 8px" <a-button class="box-button" style="margin-left: 8px"
@click="searchReset">{{ $t('reset') }}</a-button> @click="searchReset">{{ $t('reset') }}</a-button>
<a @click="handleToggleSearch" style="margin-left: 8px"> <!-- <a @click="handleToggleSearch" style="margin-left: 8px">-->
{{ !toggleSearchStatus ? $t('open') : $t('away') }} <!-- {{ !toggleSearchStatus ? $t('open') : $t('away') }}-->
<a-icon :type="toggleSearchStatus ? 'up' : 'down'" /> <!-- <a-icon :type="toggleSearchStatus ? 'up' : 'down'" />-->
</a> <!-- </a>-->
</a-col> </a-col>
</span> </span>
</a-row> </a-row>
@@ -99,22 +99,22 @@
style="overflow:hidden;margin-bottom: 20px"> style="overflow:hidden;margin-bottom: 20px">
<div style="float: left;margin-bottom: 0px;margin-left: 20px"> <div style="float: left;margin-bottom: 0px;margin-left: 20px">
<!-- 调取--> <!-- 调取-->
<div @click="transferClick" class="operator-text" v-if="this.formInlineRoleSwitching.roleSwitchingCode == '0'"> <div @click="transferClick" class="operator-text" v-if="this.roleSwitchingCode == '0'">
<a-icon type="profile" /> <a-icon type="profile" />
{{ $t('Transfer') }} {{ $t('Transfer') }}
</div> </div>
<!-- 带入相关人员--> <!-- 带入相关人员-->
<div class="operator-text" @click="bringInRelevantPersonnelClick" v-if="this.formInlineRoleSwitching.roleSwitchingCode == '0'"> <div class="operator-text" @click="bringInRelevantPersonnelClick" v-if="this.roleSwitchingCode == '0'">
<a-icon type="user" /> <a-icon type="user" />
{{ $t('bringInRelevantPersonnel') }} {{ $t('bringInRelevantPersonnel') }}
</div> </div>
<!-- 批量设置--> <!-- 批量设置-->
<div class="operator-text" @click="batSettingClick" v-if="this.formInlineRoleSwitching.roleSwitchingCode == '0' || this.formInlineRoleSwitching.roleSwitchingCode == '1'"> <div class="operator-text" @click="batSettingClick" v-if="this.roleSwitchingCode == '0' || this.roleSwitchingCode == '1'">
<a-icon type="setting" /> <a-icon type="setting" />
{{ $t('BatchSetting') }} {{ $t('BatchSetting') }}
</div> </div>
<!-- 列表设置--> <!-- 列表设置-->
<a-popconfirm :visible="customizevisible" overlayClassName="popconfirmmize" placement="bottomRight" v-if="this.formInlineRoleSwitching.roleSwitchingCode == '0' || this.formInlineRoleSwitching.roleSwitchingCode == '1'"> <a-popconfirm :visible="customizevisible" overlayClassName="popconfirmmize" placement="bottomRight" v-if="this.roleSwitchingCode == '0' || this.roleSwitchingCode == '1'">
<template slot="title" id="popconfirmmize"> <template slot="title" id="popconfirmmize">
<div style="height:320px;overflow:scroll;overflow-x: auto;"> <div style="height:320px;overflow:scroll;overflow-x: auto;">
<a-checkbox <a-checkbox
@@ -141,9 +141,9 @@
<a-icon type="setting" /> <a-icon type="setting" />
{{ $t('customize') }} {{ $t('customize') }}
</div> </div>
</a-popconfirm v-if="this.formInlineRoleSwitching.roleSwitchingCode == '0' || this.formInlineRoleSwitching.roleSwitchingCode == '1'"> </a-popconfirm>
<!-- 更多--> <!-- 更多-->
<a-popconfirm overlayClassName="popconfirm" placement="bottomRight" v-if="this.formInlineRoleSwitching.roleSwitchingCode == '0'"> <a-popconfirm overlayClassName="popconfirm" placement="bottomRight" v-if="this.roleSwitchingCode == '0'">
<template slot="title" id="popconfirm"> <template slot="title" id="popconfirm">
<div style="height:320px;overflow:scroll;overflow-x: auto;"> <div style="height:320px;overflow:scroll;overflow-x: auto;">
<!-- 添加--> <!-- 添加-->
@@ -217,33 +217,33 @@
<!-- {{ $t('customize') }}--> <!-- {{ $t('customize') }}-->
<!-- </div>--> <!-- </div>-->
<div @click="handleExport" v-has="'projectLawsInventory:exportData'" <div @click="handleExport" v-has="'projectLawsInventory:exportData'"
v-if="this.formInlineRoleSwitching.roleSwitchingCode == '1' || this.formInlineRoleSwitching.roleSwitchingCode == '2' || this.formInlineRoleSwitching.roleSwitchingCode == '30' || this.formInlineRoleSwitching.roleSwitchingCode == '31'" v-if="this.roleSwitchingCode == '1' || this.roleSwitchingCode == '2' || this.roleSwitchingCode == '30' || this.roleSwitchingCode == '31'"
class="operator-text"> class="operator-text">
<a-icon type="export" :rotate="-90" /> <a-icon type="export" :rotate="-90" />
{{ $t('export') }} {{ $t('export') }}
</div> </div>
<!-- 发布--> <!-- 发布-->
<div class="operator-text" @click="initiateListConfirmationcClick('清单')" v-if="this.formInlineRoleSwitching.roleSwitchingCode == '0'"> <div class="operator-text" @click="initiateListConfirmationcClick('清单')" v-if="this.roleSwitchingCode == '0'">
<a-icon type="solution" /> <a-icon type="solution" />
{{ $t('release') }} {{ $t('release') }}
</div> </div>
<!-- 撤回--> <!-- 撤回-->
<div class="operator-text" @click="withdrawnClick" v-if="this.formInlineRoleSwitching.roleSwitchingCode == '0'"> <div class="operator-text" @click="withdrawnClick" v-if="this.roleSwitchingCode == '0'">
<a-icon type="rollback" /> <a-icon type="rollback" />
{{ $t('withdraw') }} {{ $t('withdraw') }}
</div> </div>
<!-- 发起任务--> <!-- 发起任务-->
<div class="operator-text" @click="submitClick(0)" v-if="this.formInlineRoleSwitching.roleSwitchingCode == '1'"> <div class="operator-text" @click="submitClick(0)" v-if="this.roleSwitchingCode == '1'">
<a-icon type="check-circle" /> <a-icon type="check-circle" />
{{ $t('initiateTask') }} {{ $t('initiateTask') }}
</div> </div>
<!-- 退回--> <!-- 退回-->
<div class="operator-text" @click="submitClick(1)" v-if="this.formInlineRoleSwitching.roleSwitchingCode == '1'"> <div class="operator-text" @click="submitClick(1)" v-if="this.roleSwitchingCode == '1'">
<a-icon type="close-circle" /> <a-icon type="close-circle" />
{{ $t('sendBack') }} {{ $t('sendBack') }}
</div> </div>
<!-- 催办--> <!-- 催办-->
<div class="operator-text" @click="questionClick" v-if="this.formInlineRoleSwitching.roleSwitchingCode == '0' || this.formInlineRoleSwitching.roleSwitchingCode == '1' || this.formInlineRoleSwitching.roleSwitchingCode == '30'"> <div class="operator-text" @click="questionClick" v-if="this.roleSwitchingCode == '0' || this.roleSwitchingCode == '1' || this.roleSwitchingCode == '30'">
<a-icon type="sound" /> <a-icon type="sound" />
{{ $t('question') }} {{ $t('question') }}
</div> </div>
@@ -1410,6 +1410,7 @@ export default {
} }
] ]
}, },
roleSwitchingCode:'',
detailedSuccessList: [], detailedSuccessList: [],
detailedWarningList: [], detailedWarningList: [],
rowKeysSuccessList: [], rowKeysSuccessList: [],
@@ -1490,10 +1491,9 @@ export default {
} else { } else {
roleCodeIndex = 4 roleCodeIndex = 4
} }
console.log(this.formInlineRoleSwitching.roleSwitchingCode) if (this.roleSwitchingCode == '11' ||
if (this.formInlineRoleSwitching.roleSwitchingCode == '11' || this.roleSwitchingCode == '12' ||
this.formInlineRoleSwitching.roleSwitchingCode == '12' || this.roleSwitchingCode == '13') {
this.formInlineRoleSwitching.roleSwitchingCode == '13') {
roleCodeIndex = 0 roleCodeIndex = 0
} }
row.roleCodeIndex = roleCodeIndex row.roleCodeIndex = roleCodeIndex
@@ -1543,6 +1543,7 @@ export default {
this.isRoleSwitching = false this.isRoleSwitching = false
} }
} }
this.roleSwitchingCode = this.formInlineRoleSwitching.roleSwitchingCode
this.$emit('getRoleSwitch',this.formInlineRoleSwitching.roleSwitchingCode) this.$emit('getRoleSwitch',this.formInlineRoleSwitching.roleSwitchingCode)
this.getList() this.getList()
// this.JLoading = false // this.JLoading = false
@@ -1569,9 +1570,9 @@ export default {
} else { } else {
roleCodeIndex = 4 roleCodeIndex = 4
} }
if (this.formInlineRoleSwitching.roleSwitchingCode == '11' || if (this.roleSwitchingCode == '11' ||
this.formInlineRoleSwitching.roleSwitchingCode == '12' || this.roleSwitchingCode == '12' ||
this.formInlineRoleSwitching.roleSwitchingCode == '13') { this.roleSwitchingCode == '13') {
roleCodeIndex = 0 roleCodeIndex = 0
} }
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
@@ -1613,7 +1614,7 @@ export default {
this.$refs.transferListRef.transferModel() this.$refs.transferListRef.transferModel()
}, },
batSettingClick() { batSettingClick() {
let code = this.formInlineRoleSwitching.roleSwitchingCode let code = this.roleSwitchingCode
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)),code) this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)),code)
} else { } else {
@@ -1844,6 +1845,7 @@ export default {
this.isRoleSwitching = false this.isRoleSwitching = false
} }
} }
this.roleSwitchingCode = this.formInlineRoleSwitching.roleSwitchingCode
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))
this.visibleRoleSwitching = false this.visibleRoleSwitching = false
this.confirmLoadingRoleSwitching = false this.confirmLoadingRoleSwitching = false
@@ -1864,12 +1866,13 @@ export default {
this.visibleRoleSwitching = true this.visibleRoleSwitching = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ruleFormRoleSwitching.clearValidate() this.$refs.ruleFormRoleSwitching.clearValidate()
if (!this.formInlineRoleSwitching.roleSwitchingCode) { if (!this.roleSwitchingCode) {
this.formInlineRoleSwitching.roleSwitchingCode = '0' this.roleSwitchingCode = '0'
} }
if (!(this.roleSwitchingList.some(val => val.roleCode == this.formInlineRoleSwitching.roleSwitchingCode))) { if (!(this.roleSwitchingList.some(val => val.roleCode == this.roleSwitchingCode))) {
this.formInlineRoleSwitching.roleSwitchingCode = this.roleSwitchingList[0] ? this.roleSwitchingList[0].roleCode : '' this.roleSwitchingCode = this.roleSwitchingList[0] ? this.roleSwitchingList[0].roleCode : ''
} }
this.formInlineRoleSwitching.roleSwitchingCode = this.roleSwitchingCode
this.formInlineRoleSwitching = { ...this.formInlineRoleSwitching } this.formInlineRoleSwitching = { ...this.formInlineRoleSwitching }
}) })
}, },
@@ -1922,9 +1925,9 @@ export default {
} else { } else {
roleCodeIndex = 4 roleCodeIndex = 4
} }
if (this.formInlineRoleSwitching.roleSwitchingCode == '11' || if (this.roleSwitchingCode == '11' ||
this.formInlineRoleSwitching.roleSwitchingCode == '12' || this.roleSwitchingCode == '12' ||
this.formInlineRoleSwitching.roleSwitchingCode == '13') { this.roleSwitchingCode == '13') {
roleCodeIndex = 0 roleCodeIndex = 0
} }
item.roleCodeIndex = roleCodeIndex item.roleCodeIndex = roleCodeIndex
@@ -2076,9 +2079,9 @@ export default {
} else { } else {
roleCode = 4 roleCode = 4
} }
if (this.formInlineRoleSwitching.roleSwitchingCode == '11' || this.formInlineRoleSwitching.roleSwitchingCode == '12') { if (this.roleSwitchingCode == '11' || this.roleSwitchingCode == '12') {
roleCode = 0 roleCode = 0
} else if (this.formInlineRoleSwitching.roleSwitchingCode == '13') { } else if (this.roleSwitchingCode == '13') {
roleCode = 13 roleCode = 13
} }
let queryParam = JSON.parse(JSON.stringify(this.queryParam)) let queryParam = JSON.parse(JSON.stringify(this.queryParam))