Browse Source

feat(government-list): 修改查询字段并延迟表格加载

在政府列表页面中,将搜索表单的企业名称字段名由 channelName
改为 channelIdList 以匹配接口参数。此外,设置 ZTable 组件不立即
加载数据,改为手动触发加载。
zhangtao 5 days ago
parent
commit
1528be0b28
2 changed files with 4 additions and 4 deletions
  1. 2 2
      .env.test
  2. 2 2
      src/views/government/government-list/index.vue

+ 2 - 2
.env.test

@@ -2,12 +2,12 @@
 # VITE_SERVICE_BASE_URL=http://74949mkfh190.vicp.fun
 # VITE_SERVICE_BASE_URL=http://192.168.1.253:8114 #付
 # VITE_SERVICE_BASE_URL=http://192.168.0.157:8114 #王
-# VITE_SERVICE_BASE_URL=http://192.168.1.166:8114 #张
+VITE_SERVICE_BASE_URL=http://192.168.1.166:8114 #张
 # VITE_SERVICE_BASE_URL=http://192.168.1.66:8114 #邓
 # VITE_SERVICE_BASE_URL=https://mock.apifox.cn/m1/3109515-0-default
 # VITE_SERVICE_BASE_URL=https://shop.platform.zswlgz.com #服务器
 # VITE_SERVICE_BASE_URL=/plt #测试打包服务器
-VITE_SERVICE_BASE_URL=http://47.109.84.152:8114 #测试本地服务器
+# VITE_SERVICE_BASE_URL=http://47.109.84.152:8114 #测试本地服务器
 
 
 # other backend service base url, test environment

+ 2 - 2
src/views/government/government-list/index.vue

@@ -57,7 +57,7 @@ const [registerTable, { refresh, setFieldsValue: setSearchValues }] = useTable({
   searchFormConfig: {
     schemas: [
       {
-        field: 'channelName',
+        field: 'channelIdList',
         label: '企业名称',
         component: 'ApiSelect',
         componentProps: {
@@ -178,7 +178,7 @@ async function edit(row: Recordable) {
 
 <template>
   <LayoutTable>
-    <ZTable :columns="columns" :api="fetchGetChannelList" @register="registerTable" @add="openModal">
+    <ZTable :columns="columns" :api="fetchGetChannelList" :immediate="false" @register="registerTable" @add="openModal">
       <template #op="{ row }">
         <NButton size="small" ghost type="primary" @click="edit(row)">编辑</NButton>
       </template>