From db0ea8d41587ba2ef1688e444a1e8e00ed62b16a Mon Sep 17 00:00:00 2001 From: lijingjia Date: Fri, 25 Oct 2024 13:50:29 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=80=80=E8=88=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/system/role.ts | 10 ++ src/components/CostEntry/feeTable.vue | 6 +- src/components/Form/src/BasicForm.vue | 6 + src/components/Print/index.vue | 2 +- .../operation/seaexport/api/BookingLedger.js | 8 + .../seaexport/detail/components/container.vue | 30 +++- .../detail/components/ladingInfo.tsx | 18 +- .../detail/components/ladingInfo.vue | 24 +++ .../seaexport/detail/modules/baseInfo.tsx | 162 ++++++++++++------ .../detail/modules/operationArea.vue | 41 ++++- src/views/system/role/index.vue | 29 +++- src/views/taskmanage/taskList/cutModify.vue | 2 +- 13 files changed, 259 insertions(+), 81 deletions(-) diff --git a/.env.development b/.env.development index cfac0a85..cfb9b86b 100644 --- a/.env.development +++ b/.env.development @@ -12,7 +12,7 @@ VITE_PUBLIC_PATH = / # Cross-domain proxy, you can configure multiple # Please note that no line breaks -# VITE_PROXY = [["/basic-api","http:///60.209.125.238"],["/upload","http://localhost:3300/upload"]] +# VITE_PROXY = [["/basic-api","http://60.209.125.238"],["/upload","http://localhost:3300/upload"]] VITE_PROXY=[["/api","http://118.190.144.189:3008"],["/stage-api","https://www.666cxf.com/stage-api"]] # 开发 测试环境 # Delete console diff --git a/src/api/system/role.ts b/src/api/system/role.ts index bfd618e4..9053eb35 100644 --- a/src/api/system/role.ts +++ b/src/api/system/role.ts @@ -10,6 +10,7 @@ enum Api { list = '/mainApi/Role/GetRoleList', editRole = '/mainApi/Role/EditRole', getRole = '/mainApi/Role/GetRoleInfo', + deleteRole = '/mainApi/Role/DelRole', getPermissionTree = '/mainApi/Role/GetClientRolePermissionTree', getRolePermission = '/mainApi/Role/GetRolePermission', updateRolePermission = '/mainApi/Role/UpdateClientRolePermission', @@ -46,6 +47,15 @@ export function getRoleList(data: PageRequest) { }) } +export function deleteRole(data: PageRequest) { + return request({ + url: Api.deleteRole, + method: 'post', + data, + }) +} + + export function editRole(data: any) { return request({ url: Api.editRole, diff --git a/src/components/CostEntry/feeTable.vue b/src/components/CostEntry/feeTable.vue index 3adb330f..91eb43c5 100644 --- a/src/components/CostEntry/feeTable.vue +++ b/src/components/CostEntry/feeTable.vue @@ -124,6 +124,10 @@ return { label: item.ctn, value: item.ctnCode, name: item.ctn, isCtn: true } }) } + res.forEach(item => { + item.label = item.label + '-' + item.enName + }) + console.log([...b, ...res]) unitDict.value = [...b, ...res] }) } @@ -249,7 +253,7 @@ source: async (query, process) => { if (unitDict.value && unitDict.value.length) { const dict = unitDict.value.map((item) => { - return item.name + return item.label }) process(dict) } diff --git a/src/components/Form/src/BasicForm.vue b/src/components/Form/src/BasicForm.vue index eb6b6c0c..45385b4a 100644 --- a/src/components/Form/src/BasicForm.vue +++ b/src/components/Form/src/BasicForm.vue @@ -21,6 +21,7 @@ :all-default-values="defaultValueRef" :form-model="formModel" :set-form-model="setFormModel" + @click="handleClick(formModel, schema)" >