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..851a3afa 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) } @@ -666,6 +670,9 @@ }) if (item) dict = item[0] list.value[changes[0][0]]['unit'] = dict?.value + if (changes[0][3].indexOf('-') > -1) { + changes[0][3] = changes[0][3].split('-')[0] + } list.value[changes[0][0]]['unitText'] = changes[0][3] if (dict && dict?.value && dict.isCtn) { // 箱型带出指定的箱量 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)" > + + +