From f3425493ed4e77ea683930e314e46cb51f5151a2 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期二, 26 十一月 2024 15:29:22 +0800 Subject: [PATCH] update 优化 全代码规范化处理 --- src/views/system/config/index.vue | 2 src/views/system/role/index.vue | 2 src/views/system/oss/config.vue | 2 src/views/workflow/category/index.vue | 2 src/layout/components/Navbar.vue | 4 src/views/workflow/formManage/index.vue | 2 src/layout/index.vue | 2 src/views/system/tenant/index.vue | 13 +++ src/views/system/user/authRole.vue | 2 src/assets/styles/variables.module.scss | 24 ++++---- src/views/monitor/logininfor/index.vue | 2 src/views/monitor/operlog/index.vue | 2 src/views/system/menu/index.vue | 2 src/views/workflow/task/allTaskWaiting.vue | 2 src/views/workflow/task/taskFinish.vue | 2 src/views/workflow/processInstance/index.vue | 2 src/views/workflow/leave/leaveEdit.vue | 4 src/views/system/role/authUser.vue | 2 src/views/system/dict/data.vue | 2 src/plugins/tab.ts | 2 src/views/system/tenantPackage/index.vue | 2 src/views/workflow/processDefinition/index.vue | 2 src/views/system/client/index.vue | 2 src/views/system/dept/index.vue | 2 src/views/system/post/index.vue | 2 src/views/workflow/leave/index.vue | 2 src/utils/request.ts | 2 src/store/modules/tagsView.ts | 18 +++--- src/views/workflow/task/myDocument.vue | 2 src/assets/styles/element-ui.scss | 1 src/views/demo/tree/index.vue | 2 src/views/workflow/task/taskCopyList.vue | 2 src/views/system/oss/index.vue | 2 src/components/Breadcrumb/index.vue | 8 +- src/views/workflow/model/index.vue | 2 src/views/system/user/index.vue | 2 src/views/workflow/task/taskWaiting.vue | 2 tsconfig.json | 2 src/views/tool/gen/index.vue | 2 src/views/demo/demo/index.vue | 2 src/components/Process/multiInstanceUser.vue | 2 src/utils/sse.ts | 5 - src/views/system/notice/index.vue | 2 src/views/system/dict/index.vue | 3 src/api/system/tenant/index.ts | 2 45 files changed, 78 insertions(+), 74 deletions(-) diff --git a/src/api/system/tenant/index.ts b/src/api/system/tenant/index.ts index 7b7b93f..d1d8ff8 100644 --- a/src/api/system/tenant/index.ts +++ b/src/api/system/tenant/index.ts @@ -96,6 +96,6 @@ export function syncTenantDict() { return request({ url: '/system/tenant/syncTenantDict', - method: 'get', + method: 'get' }); } diff --git a/src/assets/styles/element-ui.scss b/src/assets/styles/element-ui.scss index 220e4ac..5dd573d 100644 --- a/src/assets/styles/element-ui.scss +++ b/src/assets/styles/element-ui.scss @@ -1,4 +1,3 @@ - .el-collapse { .collapse__title { font-weight: 600; diff --git a/src/assets/styles/variables.module.scss b/src/assets/styles/variables.module.scss index 92fc34d..36a8df6 100644 --- a/src/assets/styles/variables.module.scss +++ b/src/assets/styles/variables.module.scss @@ -20,7 +20,7 @@ --bpmn-panel-bar-background-color: #f5f7fa; // ele - --brder-color: #e8e8e8 + --brder-color: #e8e8e8; } html.dark { --menuBg: #1d1e1f; @@ -42,25 +42,25 @@ --el-color-primary-light-9: #262727; } // vxe-table 涓婚 - --vxe-font-color: #98989E; - --vxe-primary-color: #2C7ECF; - --vxe-icon-background-color: #98989E; - --vxe-table-font-color: #98989E; + --vxe-font-color: #98989e; + --vxe-primary-color: #2c7ecf; + --vxe-icon-background-color: #98989e; + --vxe-table-font-color: #98989e; --vxe-table-resizable-color: #95969a; - --vxe-table-header-background-color: #28282A; + --vxe-table-header-background-color: #28282a; --vxe-table-body-background-color: #151518; --vxe-table-background-color: #4a5663; --vxe-table-border-width: 1px; - --vxe-table-border-color: #37373A; - --vxe-toolbar-background-color: #37373A; + --vxe-table-border-color: #37373a; + --vxe-toolbar-background-color: #37373a; // 宸ヤ綔娴� - --bpmn-panel-border: #37373A; - --bpmn-panel-box-shadow: #37373A; - --bpmn-panel-bar-background-color: #37373A; + --bpmn-panel-border: #37373a; + --bpmn-panel-box-shadow: #37373a; + --bpmn-panel-bar-background-color: #37373a; // ele - --brder-color: #37373A + --brder-color: #37373a; } // base color diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 184f41c..a8b2f68 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -28,16 +28,16 @@ const pathList = route.path.match(reg).map((item, index) => { if (index !== 0) item = item.slice(1); return item; - }) + }); getMatched(pathList, permissionStore.defaultRoutes, matched); } else { - matched = route.matched.filter(item => item.meta && item.meta.title); + matched = route.matched.filter((item) => item.meta && item.meta.title); } // 鍒ゆ柇鏄惁涓洪椤� if (!isDashboard(matched[0])) { matched = [{ path: '/index', meta: { title: '棣栭〉' } }].concat(matched); } - levelList.value = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false); + levelList.value = matched.filter((item) => item.meta && item.meta.title && item.meta.breadcrumb !== false); }; const findPathNum = (str, char = '/') => { let index = str.indexOf(char); @@ -49,7 +49,7 @@ return num; }; const getMatched = (pathList, routeList, matched) => { - let data = routeList.find(item => item.path == pathList[0] || (item.name += '').toLowerCase() == pathList[0]); + let data = routeList.find((item) => item.path == pathList[0] || (item.name += '').toLowerCase() == pathList[0]); if (data) { matched.push(data); if (data.children && pathList.length) { diff --git a/src/components/Process/multiInstanceUser.vue b/src/components/Process/multiInstanceUser.vue index d19fb5f..e366ea0 100644 --- a/src/components/Process/multiInstanceUser.vue +++ b/src/components/Process/multiInstanceUser.vue @@ -41,7 +41,7 @@ <el-card shadow="hover"> <template #header> <el-row :gutter="10"> - <right-toolbar v-model:showSearch="showSearch" :search="true" @query-table="handleQuery"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" :search="true" @query-table="handleQuery"></right-toolbar> </el-row> </template> diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index bfe339e..6ac2f14 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -98,7 +98,7 @@ import { dynamicClear, dynamicTenant } from '@/api/system/tenant'; import { TenantVO } from '@/api/types'; import notice from './notice/index.vue'; -import router from "@/router"; +import router from '@/router'; const appStore = useAppStore(); const userStore = useUserStore(); @@ -170,7 +170,7 @@ query: { redirect: encodeURIComponent(router.currentRoute.value.fullPath || '/') } - }) + }); }); }; diff --git a/src/layout/index.vue b/src/layout/index.vue index ce47a30..207a470 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -27,7 +27,7 @@ import useAppStore from '@/store/modules/app'; import useSettingsStore from '@/store/modules/settings'; import { initWebSocket } from '@/utils/websocket'; -import { initSSE } from "@/utils/sse"; +import { initSSE } from '@/utils/sse'; const settingsStore = useSettingsStore(); const theme = computed(() => settingsStore.theme); diff --git a/src/plugins/tab.ts b/src/plugins/tab.ts index 86421a8..4b44dc6 100644 --- a/src/plugins/tab.ts +++ b/src/plugins/tab.ts @@ -1,5 +1,5 @@ import router from '@/router'; -import {RouteLocationMatched, RouteLocationNormalized, RouteLocationRaw} from 'vue-router'; +import { RouteLocationMatched, RouteLocationNormalized, RouteLocationRaw } from 'vue-router'; import useTagsViewStore from '@/store/modules/tagsView'; export default { diff --git a/src/store/modules/tagsView.ts b/src/store/modules/tagsView.ts index 9756ac2..b6cf434 100644 --- a/src/store/modules/tagsView.ts +++ b/src/store/modules/tagsView.ts @@ -31,7 +31,7 @@ const delIframeView = (view: RouteLocationNormalized): Promise<RouteLocationNormalized[]> => { return new Promise((resolve) => { iframeViews.value = iframeViews.value.filter((item: RouteLocationNormalized) => item.path !== view.path); - resolve([...iframeViews.value as RouteLocationNormalized[]]); + resolve([...(iframeViews.value as RouteLocationNormalized[])]); }); }; const addVisitedView = (view: RouteLocationNormalized): void => { @@ -54,7 +54,7 @@ delCachedView(view); } resolve({ - visitedViews: [...visitedViews.value as RouteLocationNormalized[]], + visitedViews: [...(visitedViews.value as RouteLocationNormalized[])], cachedViews: [...cachedViews.value] }); }); @@ -68,7 +68,7 @@ break; } } - resolve([...visitedViews.value as RouteLocationNormalized[]]); + resolve([...(visitedViews.value as RouteLocationNormalized[])]); }); }; const delCachedView = (view?: RouteLocationNormalized): Promise<string[]> => { @@ -92,7 +92,7 @@ delOthersVisitedViews(view); delOthersCachedViews(view); resolve({ - visitedViews: [...visitedViews.value as RouteLocationNormalized[]], + visitedViews: [...(visitedViews.value as RouteLocationNormalized[])], cachedViews: [...cachedViews.value] }); }); @@ -103,7 +103,7 @@ visitedViews.value = visitedViews.value.filter((v: RouteLocationNormalized) => { return v.meta?.affix || v.path === view.path; }); - resolve([...visitedViews.value as RouteLocationNormalized[]]); + resolve([...(visitedViews.value as RouteLocationNormalized[])]); }); }; const delOthersCachedViews = (view: RouteLocationNormalized): Promise<string[]> => { @@ -124,7 +124,7 @@ delAllVisitedViews(); delAllCachedViews(); resolve({ - visitedViews: [...visitedViews.value as RouteLocationNormalized[]], + visitedViews: [...(visitedViews.value as RouteLocationNormalized[])], cachedViews: [...cachedViews.value] }); }); @@ -132,7 +132,7 @@ const delAllVisitedViews = (): Promise<RouteLocationNormalized[]> => { return new Promise((resolve) => { visitedViews.value = visitedViews.value.filter((tag: RouteLocationNormalized) => tag.meta?.affix); - resolve([...visitedViews.value as RouteLocationNormalized[]]); + resolve([...(visitedViews.value as RouteLocationNormalized[])]); }); }; @@ -167,7 +167,7 @@ } return false; }); - resolve([...visitedViews.value as RouteLocationNormalized[]]); + resolve([...(visitedViews.value as RouteLocationNormalized[])]); }); }; const delLeftTags = (view: RouteLocationNormalized): Promise<RouteLocationNormalized[]> => { @@ -186,7 +186,7 @@ } return false; }); - resolve([...visitedViews.value as RouteLocationNormalized[]]); + resolve([...(visitedViews.value as RouteLocationNormalized[])]); }); }; diff --git a/src/utils/request.ts b/src/utils/request.ts index f8f1f53..9682b81 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -10,7 +10,7 @@ import { getLanguage } from '@/lang'; import { encryptBase64, encryptWithAes, generateAesKey, decryptWithAes, decryptBase64 } from '@/utils/crypto'; import { encrypt, decrypt } from '@/utils/jsencrypt'; -import router from "@/router"; +import router from '@/router'; const encryptHeader = 'encrypt-key'; let downloadLoadingInstance: LoadingInstance; diff --git a/src/utils/sse.ts b/src/utils/sse.ts index 5234648..69447ad 100644 --- a/src/utils/sse.ts +++ b/src/utils/sse.ts @@ -9,10 +9,7 @@ } url = url + '?Authorization=Bearer ' + getToken() + '&clientid=' + import.meta.env.VITE_APP_CLIENT_ID; - const { - data, - error - } = useEventSource(url, [], { + const { data, error } = useEventSource(url, [], { autoReconnect: { retries: 10, delay: 3000, diff --git a/src/views/demo/demo/index.vue b/src/views/demo/demo/index.vue index 523deff..da1bc16 100644 --- a/src/views/demo/demo/index.vue +++ b/src/views/demo/demo/index.vue @@ -45,7 +45,7 @@ <el-col :span="1.5"> <el-button v-hasPermi="['demo:demo:export']" type="warning" plain icon="Download" @click="handleExport">瀵煎嚭</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/demo/tree/index.vue b/src/views/demo/tree/index.vue index 921ddd9..566d071 100644 --- a/src/views/demo/tree/index.vue +++ b/src/views/demo/tree/index.vue @@ -25,7 +25,7 @@ <el-col :span="1.5"> <el-button type="info" plain icon="Sort" @click="handleToggleExpandAll">灞曞紑/鎶樺彔</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> <el-table diff --git a/src/views/monitor/logininfor/index.vue b/src/views/monitor/logininfor/index.vue index 4cc890d..ec4b8fe 100644 --- a/src/views/monitor/logininfor/index.vue +++ b/src/views/monitor/logininfor/index.vue @@ -54,7 +54,7 @@ <el-col :span="1.5"> <el-button v-hasPermi="['monitor:logininfor:export']" type="warning" plain icon="Download" @click="handleExport">瀵煎嚭</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/monitor/operlog/index.vue b/src/views/monitor/operlog/index.vue index fcecab7..5bf8430 100644 --- a/src/views/monitor/operlog/index.vue +++ b/src/views/monitor/operlog/index.vue @@ -57,7 +57,7 @@ <el-col :span="1.5"> <el-button v-hasPermi="['monitor:operlog:export']" type="warning" plain icon="Download" @click="handleExport">瀵煎嚭</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/system/client/index.vue b/src/views/system/client/index.vue index c05dcdc..37e8609 100644 --- a/src/views/system/client/index.vue +++ b/src/views/system/client/index.vue @@ -41,7 +41,7 @@ <el-col :span="1.5"> <el-button v-hasPermi="['system:client:export']" type="warning" plain icon="Download" @click="handleExport">瀵煎嚭</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue index dcd41ea..64a0d4c 100644 --- a/src/views/system/config/index.vue +++ b/src/views/system/config/index.vue @@ -56,7 +56,7 @@ <el-col :span="1.5"> <el-button v-hasPermi="['system:config:remove']" type="danger" plain icon="Refresh" @click="handleRefreshCache">鍒锋柊缂撳瓨</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 199a997..15dfaa2 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -33,7 +33,7 @@ <el-col :span="1.5"> <el-button type="info" plain icon="Sort" @click="handleToggleExpandAll">灞曞紑/鎶樺彔</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/system/dict/data.vue b/src/views/system/dict/data.vue index 33c7fc8..0faf1fa 100644 --- a/src/views/system/dict/data.vue +++ b/src/views/system/dict/data.vue @@ -40,7 +40,7 @@ <el-col :span="1.5"> <el-button type="warning" plain icon="Close" @click="handleClose">鍏抽棴</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 9eead48..adb0b27 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -49,7 +49,7 @@ <el-col :span="1.5"> <el-button v-hasPermi="['system:dict:remove']" type="danger" plain icon="Refresh" @click="handleRefreshCache">鍒锋柊缂撳瓨</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> @@ -239,7 +239,6 @@ proxy?.$modal.msgSuccess('鍒锋柊鎴愬姛'); useDictStore().cleanDict(); }; - onMounted(() => { getList(); diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index cf5f0fc..05630f4 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -30,7 +30,7 @@ <el-col :span="1.5"> <el-button type="info" plain icon="Sort" @click="handleToggleExpandAll">灞曞紑/鎶樺彔</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue index 7d4bbe0..d99b42c 100644 --- a/src/views/system/notice/index.vue +++ b/src/views/system/notice/index.vue @@ -40,7 +40,7 @@ 鍒犻櫎 </el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/system/oss/config.vue b/src/views/system/oss/config.vue index 41766f6..07bfd36 100644 --- a/src/views/system/oss/config.vue +++ b/src/views/system/oss/config.vue @@ -41,7 +41,7 @@ 鍒犻櫎 </el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/system/oss/index.vue b/src/views/system/oss/index.vue index d057c23..37b2e91 100644 --- a/src/views/system/oss/index.vue +++ b/src/views/system/oss/index.vue @@ -62,7 +62,7 @@ <el-col :span="1.5"> <el-button v-hasPermi="['system:ossConfig:list']" type="info" plain icon="Operation" @click="handleOssConfig">閰嶇疆绠$悊</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index 49b735b..95ad1ec 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -81,7 +81,7 @@ <el-col :span="1.5"> <el-button v-hasPermi="['system:post:export']" type="warning" plain icon="Download" @click="handleExport">瀵煎嚭</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> <el-table v-loading="loading" :data="postList" @selection-change="handleSelectionChange"> diff --git a/src/views/system/role/authUser.vue b/src/views/system/role/authUser.vue index 6394804..0af7b6d 100644 --- a/src/views/system/role/authUser.vue +++ b/src/views/system/role/authUser.vue @@ -30,7 +30,7 @@ <el-col :span="1.5"> <el-button type="warning" plain icon="Close" @click="handleClose">鍏抽棴</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" :search="true" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" :search="true" @query-table="getList"></right-toolbar> </el-row> </template> <el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange"> diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index f67a527..b86a8ec 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -51,7 +51,7 @@ <el-col :span="1.5"> <el-button v-hasPermi="['system:role:export']" type="warning" plain icon="Download" @click="handleExport">瀵煎嚭</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/system/tenant/index.vue b/src/views/system/tenant/index.vue index e2cec99..c6f011e 100644 --- a/src/views/system/tenant/index.vue +++ b/src/views/system/tenant/index.vue @@ -47,7 +47,7 @@ <el-col :span="1.5"> <el-button v-if="userId === 1" type="success" plain icon="Refresh" @click="handleSyncTenantDict">鍚屾绉熸埛瀛楀吀</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> @@ -144,7 +144,16 @@ </template> <script setup name="Tenant" lang="ts"> -import { listTenant, getTenant, delTenant, addTenant, updateTenant, changeTenantStatus, syncTenantPackage, syncTenantDict } from '@/api/system/tenant'; +import { + listTenant, + getTenant, + delTenant, + addTenant, + updateTenant, + changeTenantStatus, + syncTenantPackage, + syncTenantDict +} from '@/api/system/tenant'; import { selectTenantPackage } from '@/api/system/tenantPackage'; import useUserStore from '@/store/modules/user'; import { TenantForm, TenantQuery, TenantVO } from '@/api/system/tenant/types'; diff --git a/src/views/system/tenantPackage/index.vue b/src/views/system/tenantPackage/index.vue index 05a0b41..f97bb35 100644 --- a/src/views/system/tenantPackage/index.vue +++ b/src/views/system/tenantPackage/index.vue @@ -35,7 +35,7 @@ <el-col :span="1.5"> <el-button v-hasPermi="['system:tenantPackage:export']" type="warning" plain icon="Download" @click="handleExport">瀵煎嚭 </el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/system/user/authRole.vue b/src/views/system/user/authRole.vue index fe119ae..070221a 100644 --- a/src/views/system/user/authRole.vue +++ b/src/views/system/user/authRole.vue @@ -80,7 +80,7 @@ /** 鍗曞嚮閫変腑琛屾暟鎹� */ const clickRow = (row: RoleVO) => { - row.flag = !row.flag + row.flag = !row.flag; tableRef.value?.toggleRowSelection(row, row.flag); }; /** 澶氶�夋閫変腑鏁版嵁 */ diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index c53d41b..d75e760 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -87,7 +87,7 @@ </template> </el-dropdown> </el-col> - <right-toolbar v-model:showSearch="showSearch" :columns="columns" :search="true" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" :columns="columns" :search="true" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/tool/gen/index.vue b/src/views/tool/gen/index.vue index 2618a20..57b4282 100644 --- a/src/views/tool/gen/index.vue +++ b/src/views/tool/gen/index.vue @@ -52,7 +52,7 @@ 鍒犻櫎 </el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/workflow/category/index.vue b/src/views/workflow/category/index.vue index fd3bfc5..401edcf 100644 --- a/src/views/workflow/category/index.vue +++ b/src/views/workflow/category/index.vue @@ -26,7 +26,7 @@ <el-col :span="1.5"> <el-button type="info" plain icon="Sort" @click="handleToggleExpandAll">灞曞紑/鎶樺彔</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> <el-table diff --git a/src/views/workflow/formManage/index.vue b/src/views/workflow/formManage/index.vue index 9b9cfe2..e77fd75 100644 --- a/src/views/workflow/formManage/index.vue +++ b/src/views/workflow/formManage/index.vue @@ -33,7 +33,7 @@ <el-col :span="1.5"> <el-button v-hasPermi="['workflow:formManage:export']" type="warning" plain icon="Download" @click="handleExport">瀵煎嚭</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/workflow/leave/index.vue b/src/views/workflow/leave/index.vue index f413136..1708b64 100644 --- a/src/views/workflow/leave/index.vue +++ b/src/views/workflow/leave/index.vue @@ -27,7 +27,7 @@ <el-col :span="1.5"> <el-button v-hasPermi="['workflow:leave:export']" type="warning" plain icon="Download" @click="handleExport">瀵煎嚭</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/workflow/leave/leaveEdit.vue b/src/views/workflow/leave/leaveEdit.vue index 55556fd..418f272 100644 --- a/src/views/workflow/leave/leaveEdit.vue +++ b/src/views/workflow/leave/leaveEdit.vue @@ -192,8 +192,8 @@ taskVariables.value = { entity: data, leaveDays: data.leaveDays, - userList: ["1", "3"], - userList2: ["1", "3"] + userList: ['1', '3'], + userList2: ['1', '3'] }; submitFormData.value.variables = taskVariables.value; const resp = await startWorkFlow(submitFormData.value); diff --git a/src/views/workflow/model/index.vue b/src/views/workflow/model/index.vue index e83cd94..86249bb 100644 --- a/src/views/workflow/model/index.vue +++ b/src/views/workflow/model/index.vue @@ -53,7 +53,7 @@ <el-col :span="1.5"> <el-button type="primary" plain :disabled="multiple" icon="Download" @click="clickExportZip()">瀵煎嚭</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/workflow/processDefinition/index.vue b/src/views/workflow/processDefinition/index.vue index 1dacb80..6c686bf 100644 --- a/src/views/workflow/processDefinition/index.vue +++ b/src/views/workflow/processDefinition/index.vue @@ -47,7 +47,7 @@ <el-col :span="1.5"> <el-button type="primary" icon="UploadFilled" @click="uploadDialog.visible = true">閮ㄧ讲娴佺▼鏂囦欢</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> </el-row> </template> diff --git a/src/views/workflow/processInstance/index.vue b/src/views/workflow/processInstance/index.vue index 7c60880..084cf13 100644 --- a/src/views/workflow/processInstance/index.vue +++ b/src/views/workflow/processInstance/index.vue @@ -52,7 +52,7 @@ <el-col :span="1.5"> <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete">鍒犻櫎</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="handleQuery"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="handleQuery"></right-toolbar> </el-row> </template> diff --git a/src/views/workflow/task/allTaskWaiting.vue b/src/views/workflow/task/allTaskWaiting.vue index fe530b8..0bcfd31 100644 --- a/src/views/workflow/task/allTaskWaiting.vue +++ b/src/views/workflow/task/allTaskWaiting.vue @@ -35,7 +35,7 @@ <el-col :span="1.5"> <el-button type="primary" plain icon="Edit" :disabled="multiple" @click="handleUpdate">淇敼鍔炵悊浜�</el-button> </el-col> - <right-toolbar v-model:showSearch="showSearch" @query-table="handleQuery"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="handleQuery"></right-toolbar> </el-row> </template> diff --git a/src/views/workflow/task/myDocument.vue b/src/views/workflow/task/myDocument.vue index 1bf5bbf..0a2ef19 100644 --- a/src/views/workflow/task/myDocument.vue +++ b/src/views/workflow/task/myDocument.vue @@ -38,7 +38,7 @@ <el-card shadow="hover"> <template #header> <el-row :gutter="10" class="mb8"> - <right-toolbar v-model:showSearch="showSearch" @query-table="handleQuery"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="handleQuery"></right-toolbar> </el-row> </template> diff --git a/src/views/workflow/task/taskCopyList.vue b/src/views/workflow/task/taskCopyList.vue index 7784a08..c978cbd 100644 --- a/src/views/workflow/task/taskCopyList.vue +++ b/src/views/workflow/task/taskCopyList.vue @@ -24,7 +24,7 @@ <el-card shadow="hover"> <template #header> <el-row :gutter="10" class="mb8"> - <right-toolbar v-model:showSearch="showSearch" @query-table="handleQuery"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="handleQuery"></right-toolbar> </el-row> </template> diff --git a/src/views/workflow/task/taskFinish.vue b/src/views/workflow/task/taskFinish.vue index 155bd4f..dadef15 100644 --- a/src/views/workflow/task/taskFinish.vue +++ b/src/views/workflow/task/taskFinish.vue @@ -24,7 +24,7 @@ <el-card shadow="hover"> <template #header> <el-row :gutter="10" class="mb8"> - <right-toolbar v-model:showSearch="showSearch" @query-table="handleQuery"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="handleQuery"></right-toolbar> </el-row> </template> diff --git a/src/views/workflow/task/taskWaiting.vue b/src/views/workflow/task/taskWaiting.vue index dc6546a..6d54829 100644 --- a/src/views/workflow/task/taskWaiting.vue +++ b/src/views/workflow/task/taskWaiting.vue @@ -24,7 +24,7 @@ <el-card shadow="hover"> <template #header> <el-row :gutter="10" class="mb8"> - <right-toolbar v-model:showSearch="showSearch" @query-table="handleQuery"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="handleQuery"></right-toolbar> </el-row> </template> diff --git a/tsconfig.json b/tsconfig.json index bb287e9..6315891 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "esnext", "module": "esnext", -// "useDefineForClassFields": true, + // "useDefineForClassFields": true, "moduleResolution": "bundler", "strict": true, "jsx": "preserve", -- Gitblit v1.9.3