Explorar el Código

流程排序,假期提醒

yuansh hace 2 años
padre
commit
0000a4d072

+ 6 - 1
src/views/activiti/operation/todoManageOperation.vue

@@ -304,15 +304,20 @@ export default {
           //保存
           postFormDataAction(this.todoManageOperationObject.url, this.todoManageOperationObject.formData,{jsonContent:this.todoManageOperationObject.jsonData}).then(res => {
             if (res.success) {
-              this.$message.success('保存成功!')
+              // this.$message.success('保存成功!')
               //通过
               postFormAction(this.url.pass, formData).then(res => {
                 this.submitLoading = false
                 if (res.success) {
+                  this.$message.success('保存成功!')
                   this.$message.success('操作成功')
                   this.modalTaskVisible = false
                   //刷新父组件数据
                   this.$emit('refreshToDo')
+                }else{
+                   this.$emit('refreshToDo')
+                   this.$message.error(res.message)
+                   this.modalTaskVisible = false
                 }
               })
             } else {

+ 2 - 1
src/views/process-center/applyListByTableName.vue

@@ -917,6 +917,7 @@ export default {
         }
         this.loading = false
       })
+      this.isorter.column = null
     },
     getQueryParams() {
       var param = Object.assign({}, this.queryParam, this.isorter)
@@ -1132,7 +1133,7 @@ export default {
         this.isorter.order = 'ascend' == sorter.order ? 'asc' : 'desc'
       }
       this.ipagination = pagination
-      // this.loadData();
+      this.loadData();
     },
     addApply() {
       // this.getProcessList()