瀏覽代碼

模块调换

Luolei 6 年之前
父節點
當前提交
34c107f7bf
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/components/icss/ChronicDiseaseAdd.vue

+ 3 - 3
src/components/icss/ChronicDiseaseAdd.vue

@@ -124,7 +124,7 @@ export default {
       for(let i = 0;i < tmpScale.length;i++){
         tmpScale[i].val = tmpScale[i].type
         tmpScale[i].order = tmpScale[i].orderNo
-        tmpScale[i].name = tmpScale[i].type == 1?'文本模块':'推送模块'
+        tmpScale[i].name = tmpScale[i].type == 0?'文本模块':'推送模块'
       }
       this.contentPool = tmpScale
     }
@@ -137,9 +137,9 @@ export default {
       if(JSON.stringify(tmpLeft) == '{}'){
         return
       }
-      if(tmpLeft.val == 2){
+      if(tmpLeft.val == 1){
         for(let i = 0;i < tmpPool.length;i++){
-          if(tmpPool[i].val == 2){
+          if(tmpPool[i].val == 1){
             // this.$message({
             //   message: '推送模块只能添加一次',
             //   type: 'warning'