Browse Source

行政区代码查询错误修改

maxiaoxiao 14 hours ago
parent
commit
8334c0eca4

+ 1 - 1
src/views/pageCode/checkLand/index.vue

@@ -3,7 +3,7 @@
     <customForm ref="formRef" :model="queryParams" :config="FormConfig">
       <template #region>
         <el-tree-select
-          v-model="queryParams.decideType"
+          v-model="queryParams.xzqdm"
           :data="deptList"
           :props="{
             value: 'id',

+ 24 - 1
src/views/pageCode/dataEntry/index.vue

@@ -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>
   

+ 0 - 5
src/views/pageCode/statistic/progress/index.vue

@@ -310,11 +310,6 @@ function setCount(key, data) {
   countData.value[`${key}mj`] = data.dq.countSum;
   countData.value[`${key}zb`] = data.zb;
 }
-// function getDrpt() {
-//   userDept({}).then((response) => {
-//     // deptList.value = response.data;
-//   });
-// }
 /** 搜索按钮操作 */
 function handleQuery() {
   queryParams.value.pageNum = 1;