ソースを参照

审批通过时自动填充处理意见;工艺管理列表启用停用时刷新页面

damon227 9 ヶ月 前
コミット
2ba6381c4a

+ 2 - 2
src/views/modules/common/approve-component.vue

@@ -48,13 +48,13 @@
       dataFormSubmit (val) {
         this.$refs['dataForm'].validate((valid) => {
           if (valid) {
-            if (val !== '1') {
+            if (val !== 1) {
               if (!this.dataForm.remark) {
                 this.$message.error('请填写审批意见')
                 return
               }
             } else {
-              this.dataForm.remark = this.dataForm.remark || '审批通过'
+              this.dataForm.remark = this.dataForm.remark || '同意'
             }
             // 添加附件
             let fList = this.fileList

+ 1 - 0
src/views/modules/tech/crafts-management.vue

@@ -281,6 +281,7 @@
       changeStateHandle (id, type) {
         update({ techId: id, techState: type }).then(({data}) => {
           if (data && data.code === '200') {
+            this.queryData()
             this.$message({
               type: 'info',
               message: '撤销成功'