diff --git a/src/views/homePage/components/setConfig/appSet.vue b/src/views/homePage/components/setConfig/appSet.vue new file mode 100644 index 0000000..17a5825 --- /dev/null +++ b/src/views/homePage/components/setConfig/appSet.vue @@ -0,0 +1,555 @@ + + + diff --git a/src/views/homePage/components/setConfig/channelSet.vue b/src/views/homePage/components/setConfig/channelSet.vue index 0d42b14..d1556db 100644 --- a/src/views/homePage/components/setConfig/channelSet.vue +++ b/src/views/homePage/components/setConfig/channelSet.vue @@ -907,7 +907,11 @@ export default { type = 1; // 字符串 valueToStore = value; } else if (typeof value === "number") { - type = 0; // 整数或浮点数(在JavaScript中,它们都是number类型) + if (Number.isInteger(value)) { + type = 0; // 整数 + } else { + type = 2; // 浮点数 + } valueToStore = value; } else if (typeof value === "boolean") { type = 0; // 布尔值转换为整数 @@ -1030,7 +1034,7 @@ export default { diff --git a/src/views/homePage/components/tableMain.vue b/src/views/homePage/components/tableMain.vue index 7043f65..7630e57 100644 --- a/src/views/homePage/components/tableMain.vue +++ b/src/views/homePage/components/tableMain.vue @@ -2079,10 +2079,18 @@ export default { return; case 6: console.log("上传日志"); + let logSetparam = JSON.parse(localStorage.getItem("logset")); + if (logSetparam !== null) { + console.log(logSetparam); + } else { + logSetparam = { noSpecData: 0, mTime: 0 }; + } var params = { action: "yw_cmd_upload_i1_zip_log", //url: "http://180.166.218.222:40101/upload/", termIds: this.idArray, + noSpecData: Number(logSetparam.noSpecData), + mTime: Number(logSetparam.mTime), }; this.changeIssue(params); return; diff --git a/src/views/msgAuth/index.vue b/src/views/msgAuth/index.vue index e47d57e..56c59aa 100644 --- a/src/views/msgAuth/index.vue +++ b/src/views/msgAuth/index.vue @@ -51,6 +51,27 @@ > +
+

日志设置

+
+
+

noSpecData

+ + +
+
+

mTime

+ + +
+ 保存 +
+
@@ -164,5 +194,32 @@ export default { } } } + .logSet { + width: 300px; + border: 1px solid #f00; + padding: 12px; + .logMain { + .top, + .bottom { + display: flex; + align-items: center; + h2 { + font-size: 14px; + font-weight: normal; + margin-right: 8px; + text-align: right; + width: 100px; + } + } + .top { + margin-bottom: 20px; + } + .savebtn { + display: flex; + margin-top: 12px; + margin-left: auto; + } + } + } }