瀏覽代碼

分时控制修复bug

xiaohaizhao 1 年之前
父節點
當前提交
9eed95573f
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      control/components/prodnum-MT02/modules/division.vue
  2. 4 4
      control/modules/My_input.vue

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

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

+ 4 - 4
control/modules/My_input.vue

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