diff --git a/src/common/lang/en-us.js b/src/common/lang/en-us.js index e0ba0d9b..2fc5d09c 100644 --- a/src/common/lang/en-us.js +++ b/src/common/lang/en-us.js @@ -175,6 +175,7 @@ module.exports = { pleaseEnterAPositiveInteger: '请输入正整数', pleaseSelectStandard: '请选择标准', successfullyDelete: '删除成功', + cannotAddAgain: '不能重复添加', // 树右键 treeRight: { addFolder: 'Create New Folder', diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js index dd81e14f..ab84a2fa 100644 --- a/src/common/lang/zh-cn.js +++ b/src/common/lang/zh-cn.js @@ -183,6 +183,7 @@ module.exports = { implementationNeedGreaterThan: '实施日期需要至少比发布日期大15天', pleaseSelectStandard: '请选择标准', successfullyDelete: '删除成功', + cannotAddAgain: '不能重复添加', // 树右键 treeRight: { addFolder: '新增文件夹', diff --git a/src/views/workCenter/enterpriseStandardInspectionPlan/EnterpriseStandardInspectionPlanFlow.vue b/src/views/workCenter/enterpriseStandardInspectionPlan/EnterpriseStandardInspectionPlanFlow.vue index b33ef433..d090a8ec 100644 --- a/src/views/workCenter/enterpriseStandardInspectionPlan/EnterpriseStandardInspectionPlanFlow.vue +++ b/src/views/workCenter/enterpriseStandardInspectionPlan/EnterpriseStandardInspectionPlanFlow.vue @@ -352,6 +352,8 @@ export default { const params = {} // 业务表信息 params.processEsInspectPlanList = this.$refs.inspectionPlanTable.dataSource + // 获取删除业务信息的ids列表 + params.processAllDelIds = this.$refs.inspectionPlanTable.getDelIds() // 收集所有表单信息 let formDataList = [] if (isValidate) { diff --git a/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanDrawer.vue b/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanDrawer.vue index e3df4580..44ac3d33 100644 --- a/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanDrawer.vue +++ b/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanDrawer.vue @@ -280,24 +280,17 @@ export default { if (!err) { // 调整前端存储 const row = Object.assign({}, this.model, values) + if (!row.createByDictText) { + const { realname, username } = this.$store.getters.userInfo + row.createByDictText = `${realname}(${username})` + } + // 用于判断显示的按钮 + if (!row.createBy) { + const { username } = this.$store.getters.userInfo + row.createBy = username + } this.$emit('ok', row, this.index) this.close() - // const params = Object.assign({ - // projectId: this.projectId - // }, this.model, values) - // this.confirmLoading = true - // const fn = params.id ? editInspectPlanTable : addInspectPlanTable - // fn(params).then(res => { - // if (res.success) { - // this.$emit('ok', params) - // this.$message.success(res.message) - // this.close() - // } else { - // this.$message.warn(res.message) - // } - // }).finally(() => { - // this.confirmLoading = false - // }) } }) }, diff --git a/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanTable.vue b/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanTable.vue index 07806787..19fe8989 100644 --- a/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanTable.vue +++ b/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanTable.vue @@ -18,11 +18,11 @@ :columns="columns" :dataSource="dataSource" :can-drag="true" - :rowKey="(row, index) => row.id || index" + :rowKey="(_, index) => index" :loading="loading" :pagination="false" :row-selection="hasTableOperator ? { selectedRowKeys: selectedRowKeys, onChange: onSelectChange, getCheckboxProps } : null" - :scroll="{x: '100%'}" + :scroll="{x: '100%', y: '50vh'}" @change="tableOnChange"> @@ -43,14 +43,14 @@