gongzijian пре 6 година
родитељ
комит
2dff02b86a

Разлика између датотеке није приказан због своје велике величине
+ 14 - 19
docs/zh_CN/_book/前端部署文档.html


Разлика између датотеке није приказан због своје велике величине
+ 52 - 339
docs/zh_CN/_book/后端部署文档.html


+ 29 - 15
escheduler-ui/src/js/conf/home/pages/security/pages/queue/_source/createQueue.vue

@@ -65,26 +65,40 @@
         // edit
         if (this.item) {
           param.id = this.item.id
-          if (this.item.queueName === this.queueName && this.item.queue === this.queue) {
-            this.$message.warning(`名称和队列值未做更改`)
-            return
-          }
         }
-        this._verifyName(param).then(() => {
+
+        let $then = (res) => {
+          this.$emit('onUpdate')
+          this.$message.success(res.msg)
+          setTimeout(() => {
+            this.$refs['popup'].spinnerLoading = false
+          }, 800)
+        }
+
+        let $catch = (e) => {
+          this.$message.error(e.msg || '')
+          this.$refs['popup'].spinnerLoading = false
+        }
+
+        if (this.item) {
           this.$refs['popup'].spinnerLoading = true
-          this.store.dispatch(`security/${this.item ? 'updateQueueQ' : 'createQueueQ'}`, param).then(res => {
-            this.$emit('onUpdate')
-            this.$message.success(res.msg)
-            setTimeout(() => {
-              this.$refs['popup'].spinnerLoading = false
-            }, 800)
+          this.store.dispatch(`security/updateQueueQ`, param).then(res => {
+            $then(res)
+          }).catch(e => {
+            $catch(e)
+          })
+        }else{
+          this._verifyName(param).then(() => {
+            this.$refs['popup'].spinnerLoading = true
+            this.store.dispatch(`security/createQueueQ`, param).then(res => {
+              $then(res)
+            }).catch(e => {
+              $catch(e)
+            })
           }).catch(e => {
             this.$message.error(e.msg || '')
-            this.$refs['popup'].spinnerLoading = false
           })
-        }).catch(e => {
-          this.$message.error(e.msg || '')
-        })
+        }
 
       },
       _verification(){