Forráskód Böngészése

Merge branch 'master' of http://182.92.126.35:3000/hrx/mky-vent-base

lxh 1 hete
szülő
commit
ebc221fa23

+ 8 - 5
src/views/system/dict/components/DistrictTeam.vue

@@ -14,13 +14,13 @@
   <DictItemModal @register="registerModal" @success="reload" :dictId="dictId" />
 </template>
 <script lang="ts" setup>
-  import { onMounted, ref, unref } from 'vue';
+  import { onMounted, ref } from 'vue';
   import { BasicTable, useTable, TableAction } from '/@/components/Table';
   import { useModal } from '/@/components/Modal';
   import { useDesign } from '/@/hooks/web/useDesign';
   import DictItemModal from './DictItemModal.vue';
   import { dictItemColumns, dictItemSearchFormSchema } from '../dict.data';
-  import { itemList, deleteItem } from '../dict.api';
+  import { itemList, deleteItem, list } from '../dict.api';
   import { ColEx } from '/@/components/Form/src/types';
 
   const { prefixCls } = useDesign('row-invalid');
@@ -120,9 +120,12 @@
   }
 
   onMounted(() => {
-    dictId.value = '1826791852479107073';
-    setProps({ searchInfo: { dictId: unref(dictId) } });
-    reload();
+    list({ dictCode: 'districtTeam' }).then((r) => {
+      if (!r.records.length) return;
+      dictId.value = r.records[0].id;
+      setProps({ searchInfo: { dictId: dictId.value } });
+      reload();
+    });
   });
 </script>
 <style scoped lang="less">

+ 1 - 1
src/views/vent/gas/gasInspect/gasInspect.data.ts

@@ -326,7 +326,7 @@ export const taskschemas: FormSchema[] = [
   },
   {
     label: '所属区队',
-    field: 'districtTeam',
+    field: 'teamCode',
     component: 'JDictSelectTag',
     componentProps: {
       dictCode: 'districtTeam',