Browse Source

分时控制修复bug

xiaohaizhao 1 năm trước cách đây
mục cha
commit
9eed95573f

+ 1 - 1
control/components/prodnum-MT02/modules/division.vue

@@ -139,7 +139,7 @@ export default {
             this.timeControl = this.__proto__.getControlItem(["TimeCon"], newVal)[0]
         },
         onClick(item) {
-            this.$refs.MyInput.openInput(item)
+            this.$refs.MyInput.openInput(item, true)
             if (this.changeItem.funcname != item.funcname) this.changeItem = JSON.parse(JSON.stringify(item));
             let toBeUpdated = [];
             if (item.paramValue.begin) toBeUpdated.push(`开始时间:${item.paramValue.begin}`);

+ 4 - 4
control/modules/My_input.vue

@@ -173,10 +173,8 @@ export default {
             let tips = "",
                 toBeUpdated = '';
             this.confirmText = '确定'
-            if (isSlot) {
-                this.isSlot = true;
-            } else {
-                this.isSlot = false;
+            this.isSlot = isSlot;
+            if (!isSlot) {
                 let params = item.params;
                 if (item.inputType == 'int') {
                     this.value = "";
@@ -228,6 +226,8 @@ export default {
                     setTimeout(() => {
                         this.intFocus = true
                     }, 300);
+                } else if (item.inputType == "step") {
+                    this.isSlot = true;
                 } else {
                     console.log(item)
                 }