浏览代码

MT03修改

xiaohaizhao 1 年之前
父节点
当前提交
05d330ef7a

+ 11 - 4
control/components/prodnum-MT03/modules/division.vue

@@ -63,9 +63,9 @@
                     </view>
                     <view class="value">
                         <u-input :placeholder="changeItem.showValue.value || '流量设定'" v-model="changeItem.showValue.value"
-                            :type="changeItem.params[changeItem.funcname + '流量设定'].num_scale == 0 ? 'number' : 'digit'">
+                            :type="changeItem.params[changeItem.funcname1 + '流量设定'].num_scale == 0 ? 'number' : 'digit'">
                             <template slot="suffix">
-                                {{ changeItem.params[changeItem.funcname + "流量设定"].unit || '' }}
+                                {{ changeItem.params[changeItem.funcname1 + '流量设定'].unit || '' }}
                             </template>
                         </u-input>
                     </view>
@@ -127,6 +127,7 @@ export default {
                 keyList.forEach(key => {
                     item.params[key] = newVal.params[key];
                 });
+                obj.funcname1 = "时段" + nzhcn.encodeS(i);
                 item.isfeedback = (newVal.isfeedback && (obj.paramValue.begin || obj.paramValue.end || obj.paramValue.value)) ? true : false;
                 list.push(Object.assign(obj, item))
             }
@@ -143,6 +144,7 @@ export default {
                 model.toBeUpdated = '待更新记录:' + toBeUpdated.join(",")
             }
             this.$refs.MyInput.openInput(item, true)
+            console.log("时段设置", item)
         },
         timeChange(e) {
             const name = e.currentTarget.dataset.name;
@@ -162,15 +164,20 @@ export default {
             let Nzh = require("nzh");
             let nzhcn = require("nzh/cn"); //直接使用简体中文
             let funcname = '时段' + nzhcn.encodeS(index)
+            console.log('输入值:', showValue.value)
             showValue.value = (showValue.value - 0).toFixed(params[funcname + '流量设定'].num_scale)
-            MyInput.submit(w_functionid, {
+            console.log('流量设定:', params[funcname + '流量设定'])
+            console.log('发送值:', showValue.value)
+            let obj = {
                 [funcname + "分钟开始"]: showValue.begin.split(":")[1],
                 [funcname + "小时开始"]: showValue.begin.split(":")[0],
                 [funcname + "分钟结束"]: showValue.end.split(":")[1],
                 [funcname + "小时结束"]: showValue.end.split(":")[0],
                 [funcname + "流量设定"]: showValue.value,
                 [`时间段${nzhcn.encodeS(index)}置位`]: params[`时间段${nzhcn.encodeS(index)}置位`].lastvalue
-            })
+            }
+            console.log("发送请求", obj)
+            MyInput.submit(w_functionid, obj)
         }
     }
 }

+ 0 - 1
control/components/prodnum-MT03/modules/tabs.vue

@@ -92,7 +92,6 @@ export default {
                 }
                 try {
                     this.bjszList = this.__proto__.getControlItem(["失压警告", "失压警告设定", "失压报警", "失压报警设定", "超流量警告", "超流量警告设定", "超流量报警", "超流量报警设定"], newVal, { 失压警告: "switch", 失压报警: "switch", 超流量警告: "switch", 超流量报警: "switch" })
-                    console.log(" this.bjszList", this.bjszList)
                 } catch (error) {
                     console.error("报警设置", error)
                 }

+ 0 - 1
control/components/prodnum-MT03/prodnum-MT03.vue

@@ -64,7 +64,6 @@ export default {
                     }]
                     function getBoole(name, expect = 1) {
                         try {
-                            console.log(name, newVal.paramvalues[name])
                             return newVal.paramvalues[name] == expect
                         } catch (error) {
                             console.error("getBoole取值出错项", name)