diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 591446f6f..40791fac7 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1255,4 +1255,5 @@ module.exports = { deleteNode:'If any file information exists, it will be deleted', HaveReleased:'Have released', forward:'Forward', + areResponsibilityAreaInformationBatch:'Are you sure you want to modify the responsibility area information in batch', } \ No newline at end of file diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index 6cdb9acde..29609864d 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -1358,4 +1358,5 @@ module.exports = { deleteNode:'若有文件信息将同步删除', HaveReleased:'已发布', forward:'转发', + areResponsibilityAreaInformationBatch:'确实是否批量修改责任领域信息', } \ No newline at end of file diff --git a/jero-web/src/views/documentTools/virtualList/components/batSetting.vue b/jero-web/src/views/documentTools/virtualList/components/batSetting.vue index 261da3322..28dadbb9a 100644 --- a/jero-web/src/views/documentTools/virtualList/components/batSetting.vue +++ b/jero-web/src/views/documentTools/virtualList/components/batSetting.vue @@ -35,11 +35,11 @@ :placeholder="$t('PleaseSelect')+$t('certificationType')" :type="'select'" :triggerChange="false" :dictCode="'attestation_type'"/> - - - - - + + + + + @@ -55,11 +55,11 @@ :placeholder="$t('PleaseSelect')+$t('certificationLevel')" :type="'select'" :triggerChange="false" :dictCode="'attestation_rank'"/> - - - - - + + + + + @@ -73,11 +73,11 @@ :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')" :type="'select'" :triggerChange="false" :dictCode="'duty_territory'"/> - - - - - + + + + + @@ -216,6 +216,13 @@ }) }, handleOk() { + if (this.formInline.dutyTerritory) { + this.handleOnTwo() + } else { + this.handleOkOne() + } + }, + handleOkOne() { let ids = JSON.parse(JSON.stringify(this.ids)) let formInline = JSON.parse(JSON.stringify(this.formInline)) Object.keys(formInline).forEach(res => { @@ -240,6 +247,37 @@ } }) }, + handleOnTwo() { + let _this = this + this.$confirm({ + content: _this.$t('areResponsibilityAreaInformationBatch'), + onOk() { + let ids = JSON.parse(JSON.stringify(_this.ids)) + let formInline = JSON.parse(JSON.stringify(_this.formInline)) + Object.keys(formInline).forEach(res => { + if (formInline[res] instanceof Array) { + formInline[res] = formInline[res].join(',') + } + }) + let query = { + ids: ids.join(','), + ...formInline + } + _this.confirmLoading = true + postAction(_this.url.setBatch, query).then((res) => { + if (res.success) { + _this.$message.success(_this.$t('OperationSuccessful')) + _this.visible = false + _this.confirmLoading = false + _this.$emit('batSettingList') + } else { + _this.$message.warning(res.message) + _this.confirmLoading = false + } + }) + } + }) + }, handleCancel() { this.formInline = {} this.visible = false diff --git a/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue b/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue index 7ae3c6526..15deaa0a6 100644 --- a/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue +++ b/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue @@ -143,7 +143,7 @@ class="ant-table tableList" :loading="loading" :pagination="false" - :scroll="{x: '100%',y:'calc(100vh - 170px)'}" + :scroll="{x: '100%',y:'calc(100vh - 186px)'}" rowKey="id" :data-source="dataSource" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" @@ -202,6 +202,9 @@ -- +