jiminglei 2 years ago
parent 6da88348d4
commit 2bf5c3c0c8
  1. 10
      psdc-ui/src/views/system/device/index.vue

@ -5,7 +5,7 @@
<el-form :model="queryParams" ref="queryRef" :inline="true" label-width="88px"> <el-form :model="queryParams" ref="queryRef" :inline="true" label-width="88px">
<el-form-item label="模型名称:" prop="name"> <el-form-item label="模型名称:" prop="name">
<el-select v-model="data.sceneCode" placeholder="请选择" style="width: 240px" @change="changeSl"> <el-select v-model="data.sceneCode" placeholder="请选择" style="width: 240px" @change="changeSl">
<el-option label='所有' value='' /> <el-option label='所有' :value='null' />
<el-option :label='item.label' :value='item.value' :key="item.value" v-for="item in queryParams"/> <el-option :label='item.label' :value='item.value' :key="item.value" v-for="item in queryParams"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -303,7 +303,7 @@ const data = reactive({
"deviceId": 0, "deviceId": 0,
"deviceModel": "温度传感器" "deviceModel": "温度传感器"
}, },
sceneCode:'', sceneCode:null,
dateRange:[], dateRange:[],
}); });
const { queryParams1, form, rules } = toRefs(data); const { queryParams1, form, rules } = toRefs(data);
@ -355,13 +355,13 @@ function handleQuery(){
} }
// //
function resetQuery(){ function resetQuery(){
data.sceneCode=0 data.sceneCode=null
currentPage.value=1 currentPage.value=1
pageSize.value=10 pageSize.value=10
getSbTab({ getSbTab({
"deviceId":0, "deviceId":0,
"deviceModel":'', "deviceModel":null,
"pageNum": currentPage.value, "pageNum": currentPage.value,
@ -506,7 +506,7 @@ function handleExport() {
proxy.download("system/device/index/daochuDevs", { proxy.download("system/device/index/daochuDevs", {
...JSON.stringify({ ...JSON.stringify({
"deviceId": 0, "deviceId": 0,
"deviceModel": "温度传感器" "deviceModel": null
}), }),
},`device_${new Date().getTime()}.xlsx`); },`device_${new Date().getTime()}.xlsx`);
}; };

Loading…
Cancel
Save