diff --git a/src/views/kpi/assessment/goals/index.vue b/src/views/kpi/assessment/goals/index.vue index 2a4dcce..cf7a005 100644 --- a/src/views/kpi/assessment/goals/index.vue +++ b/src/views/kpi/assessment/goals/index.vue @@ -123,6 +123,8 @@ @@ -168,6 +170,7 @@ diff --git a/src/views/kpi/assessment/performance/components/process.vue b/src/views/kpi/assessment/performance/components/process.vue index 7cb4658..24d94a6 100644 --- a/src/views/kpi/assessment/performance/components/process.vue +++ b/src/views/kpi/assessment/performance/components/process.vue @@ -29,6 +29,7 @@
@@ -442,22 +443,26 @@ export default { this.pinglunList = res.data.list }, async handleEditTask (type) { - const params = Object.assign({}, this.form) - if (type === 2 || type === 3) params.processRate = this.form.processRate / 100 - if (type === 3) params.detailId = this.taskInfo.detailId - const res = await apiEditTask(params) - if (res.code !== 200) { - this.$message.error(res.msg) - return - } - this.form = {} - this.taskInfo = await this.$parent.handleGetTaskDetail(this.taskInfo.detailId) - this.dialogFormVisible = false - this.handleGetChangeTaskList() - this.$parent.handleGetTable(true) - this.$message({ - message: res.msg, - type: 'success' + this.$refs.form.validate(async v => { + if (v) { + const params = Object.assign({}, this.form) + if (type === 2 || type === 3) params.processRate = this.form.processRate / 100 + if (type === 3) params.detailId = this.taskInfo.detailId + const res = await apiEditTask(params) + if (res.code !== 200) { + this.$message.error(res.msg) + return + } + this.form = {} + this.taskInfo = await this.$parent.handleGetTaskDetail(this.taskInfo.detailId) + this.dialogFormVisible = false + this.handleGetChangeTaskList() + this.$parent.handleGetTable(true) + this.$message({ + message: res.msg, + type: 'success' + }) + } }) }, handleGetProgress (arr = []) { @@ -534,6 +539,7 @@ export default { i.editProcess = false i.showTask = false }) + this.$refs.form.resetFields() this.dialogFormVisible = true }, handleClose () {