update 设备数据采集

This commit is contained in:
lb
2023-09-01 10:39:54 +08:00
parent 0158a11644
commit b23b5256f9
4 changed files with 382 additions and 223 deletions

View File

@@ -63,6 +63,12 @@
{{ col.uploadTips || '只能上传jpg/png文件大小不超过2MB' }}
</div>
</el-upload>
<el-switch
v-if="col.switch"
v-model="form[col.prop]"
active-color="#0b58ff"
inactive-color="#e1e1e1"
v-bind="col.bind"></el-switch>
<component
v-if="col.subcomponent"
:key="col.key"
@@ -229,7 +235,7 @@ export default {
}))
);
} else if (opt.input) {
console.log('setting code: ', response.data)
console.log('setting code: ', response.data);
// 处理输入框数据
this.form[opt.prop] = response.data;
}