diff --git a/.env.development b/.env.development index 2439ac8..0fcb698 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ VITE_APP_ENV = 'development' # 开发环境 # 李陈杰 209 -VITE_APP_BASE_API = 'http://192.168.110.209:8899' +VITE_APP_BASE_API = 'http://192.168.110.188:8899' # 曾涛 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 罗成 diff --git a/src/views/design/appointment/index.vue b/src/views/design/appointment/index.vue index 644b26b..bad33f9 100644 --- a/src/views/design/appointment/index.vue +++ b/src/views/design/appointment/index.vue @@ -47,9 +47,9 @@ 专业 设计人员(可多选) - 校审人员(可多选) - 审定人员(可多选) - 审核人员(可多选) + 校审人员 + 审定人员 + 审核人员 @@ -65,7 +65,7 @@ > - + -
+
-
+
-
+
- 一键展开 - - - 一键收起 + {{ isExpandAll ? '一键收起' : '一键展开' }} 下载模板 @@ -126,6 +123,7 @@ const { proxy } = getCurrentInstance(); const { work_order_type } = toRefs(proxy?.useDict('work_order_type')); const tableRef = ref({}); console.log(work_order_type); +const isExpandAll = ref(true); // tableData // 版本号 @@ -155,6 +153,7 @@ const state = reactive({ }); // tab切换 const handleTabChange = (tab) => { + isExpandAll.value = true; console.log('tab', tab); state.tableData = []; state.options = []; @@ -314,13 +313,14 @@ function handleChangeVersion(versions) { handleQueryList(); } // 在 openTable 方法中通过索引获取对应的表格实例 -function openTable(flag, index) { +function openTable( index) { + isExpandAll.value = !isExpandAll.value; nextTick(() => { // 通过索引获取当前标签页的表格实例 const currentTable = tableRef.value[index]; console.log(currentTable, index); if (currentTable) { - handleArr(state.tableData, flag, currentTable); + handleArr(state.tableData, isExpandAll.value, currentTable); } }); }