|
@@ -1,6 +1,21 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<customForm ref="formRef" :model="queryParams" :config="FormConfig">
|
|
|
+ <template #region>
|
|
|
+ <el-tree-select
|
|
|
+ v-model="queryParams.xzqdm"
|
|
|
+ :data="deptList"
|
|
|
+ :props="{
|
|
|
+ value: 'id',
|
|
|
+ label: 'label',
|
|
|
+ children: 'children',
|
|
|
+ }"
|
|
|
+ value-key="id"
|
|
|
+ default-expanded-keys
|
|
|
+ check-strictly
|
|
|
+ style="width: 200px"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
<template #time>
|
|
|
<el-date-picker
|
|
|
v-model="queryParams.time"
|
|
@@ -124,6 +139,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup name="Dkdb">
|
|
|
+import { userDept } from "@/api/system/dept";
|
|
|
import { listDkdb, adddb, issueDkdb } from "@/api/rsmonitoring/dataEntry";
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
import { FormConfig, TableHeader } from "./config";
|
|
@@ -141,6 +157,7 @@ const total = ref(0);
|
|
|
const title = ref("");
|
|
|
|
|
|
const data = reactive({
|
|
|
+ deptList: [],
|
|
|
form: { dataType: "1", shppath: "" },
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
@@ -151,8 +168,13 @@ const data = reactive({
|
|
|
},
|
|
|
});
|
|
|
|
|
|
-const { queryParams, form, rules } = toRefs(data);
|
|
|
+const { deptList, queryParams, form, rules } = toRefs(data);
|
|
|
|
|
|
+function getDrpt() {
|
|
|
+ userDept({}).then((response) => {
|
|
|
+ deptList.value = response.data;
|
|
|
+ });
|
|
|
+}
|
|
|
/** 查询地块基本信息(DKdb)列表 */
|
|
|
function getList(pages) {
|
|
|
loading.value = true;
|
|
@@ -248,6 +270,7 @@ function Issued(row) {
|
|
|
this.getList();
|
|
|
});
|
|
|
}
|
|
|
+getDrpt();
|
|
|
getList();
|
|
|
</script>
|
|
|
|