|
|
@@ -4,7 +4,7 @@ import { useRouter } from "vue-router";
|
|
|
import { getStationList, removeStation } from "@/api/station";
|
|
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
-import { ExtDLabel, ExtDSelect } from "@/components/ExtForm";
|
|
|
+import { ExtDLabel } from "@/components/ExtForm";
|
|
|
import StationDialog from "./dialog.vue";
|
|
|
import StationUploadDialog from "./upload.vue";
|
|
|
|
|
|
@@ -23,10 +23,7 @@ const currentStationName = ref("");
|
|
|
|
|
|
const state = reactive({
|
|
|
formQuery: {
|
|
|
- stationName: "",
|
|
|
- stationStatus: "",
|
|
|
- stationType: "",
|
|
|
- address: ""
|
|
|
+ stationName: ""
|
|
|
},
|
|
|
pageQuery: {
|
|
|
pageNum: 1,
|
|
|
@@ -97,12 +94,7 @@ const handleSearch = () => {
|
|
|
};
|
|
|
|
|
|
const handleReset = () => {
|
|
|
- state.formQuery = {
|
|
|
- stationName: "",
|
|
|
- stationStatus: "",
|
|
|
- stationType: "",
|
|
|
- address: ""
|
|
|
- };
|
|
|
+ state.formQuery.stationName = "";
|
|
|
loadData(true);
|
|
|
};
|
|
|
|
|
|
@@ -170,30 +162,6 @@ const handleGotoDevice = (row: any) => {
|
|
|
@keyup.enter="handleSearch"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="站点状态">
|
|
|
- <ExtDSelect
|
|
|
- v-model="state.formQuery.stationStatus"
|
|
|
- type="Station.status"
|
|
|
- placeholder="请选择站点状态"
|
|
|
- @on-change="handleSearch"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="站点类型">
|
|
|
- <ExtDSelect
|
|
|
- v-model="state.formQuery.stationType"
|
|
|
- type="Station.type"
|
|
|
- placeholder="请选择站点类型"
|
|
|
- @on-change="handleSearch"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="地址">
|
|
|
- <el-input
|
|
|
- v-model="state.formQuery.address"
|
|
|
- placeholder="请输入地址"
|
|
|
- clearable
|
|
|
- @keyup.enter="handleSearch"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button
|
|
|
type="primary"
|