diff --git a/ds-wms-admin-web/src/api/system/tenant.ts b/ds-wms-admin-web/src/api/system/tenant.ts index 15c3fd56..31fb6622 100644 --- a/ds-wms-admin-web/src/api/system/tenant.ts +++ b/ds-wms-admin-web/src/api/system/tenant.ts @@ -7,9 +7,8 @@ enum Api { GetTenantPermission = '/adminApi/Tenant/GetTenantPermission', GetTenantInfo = '/adminApi/Tenant/GetTenantInfo', UpdateTenantPermission = '/adminApi/Tenant/UpdateTenantPermission', + GetPermissionAuthList = '/adminApi/Tenant/GetPermissionAuthList', - editUser = '/adminApi/User/EditUser', - getUser = '/adminApi/User/GetUserInfo', } export function GetTenantList(data: PageRequest) { @@ -40,17 +39,11 @@ export function UpdatePermission(data: any) { data, }) } -export function editUser(data: any) { +export function GetAuthList(query: any) { return request({ - url: Api.editUser, - method: 'post', - data, - }) -} -export function getUser(query: { id: string }) { - return request({ - url: Api.getUser, + url: Api.GetPermissionAuthList, method: 'get', params: query, }) } + diff --git a/ds-wms-admin-web/src/views/baseinfo/flowtemplate/BaseInfoStep.vue b/ds-wms-admin-web/src/views/baseinfo/flowtemplate/BaseInfoStep.vue index d85c00fd..4b9bd05b 100644 --- a/ds-wms-admin-web/src/views/baseinfo/flowtemplate/BaseInfoStep.vue +++ b/ds-wms-admin-web/src/views/baseinfo/flowtemplate/BaseInfoStep.vue @@ -44,7 +44,7 @@ // disabled: true, // onClick: customSubmitFunc, // }, - showResetButton: true, + showResetButton: false, submitButtonOptions: { text: '下一步', }, diff --git a/ds-wms-admin-web/src/views/system/tenant/Authorization.vue b/ds-wms-admin-web/src/views/system/tenant/Authorization.vue index 11dffd46..0db4e196 100644 --- a/ds-wms-admin-web/src/views/system/tenant/Authorization.vue +++ b/ds-wms-admin-web/src/views/system/tenant/Authorization.vue @@ -20,9 +20,7 @@ { deep: true }, ) async function initData() { - let Rdata = { - authUserNum: props.ApiData.authUserNum, - } + let Rdata = {} props.ApiData.permissionAuthList.forEach((item) => { Rdata[`${item.permissionId}--authNum`] = item.authNum }) @@ -88,12 +86,11 @@ schemas: authorization.value, resetButtonOptions: { text: '上一步', - // onClick: handlePrev, }, resetFunc: handlePrev, showResetButton: true, submitButtonOptions: { - text: '下一步', + text: '授权', }, submitFunc: handleNext, }) diff --git a/ds-wms-admin-web/src/views/system/tenant/PermissionSetStep.vue b/ds-wms-admin-web/src/views/system/tenant/PermissionSetStep.vue index 1ddfa7e5..d2e2cdc5 100644 --- a/ds-wms-admin-web/src/views/system/tenant/PermissionSetStep.vue +++ b/ds-wms-admin-web/src/views/system/tenant/PermissionSetStep.vue @@ -14,7 +14,7 @@ diff --git a/ds-wms-admin-web/src/views/system/tenant/columns.tsx b/ds-wms-admin-web/src/views/system/tenant/columns.tsx index b708410d..e1b6126d 100644 --- a/ds-wms-admin-web/src/views/system/tenant/columns.tsx +++ b/ds-wms-admin-web/src/views/system/tenant/columns.tsx @@ -3,6 +3,20 @@ import { BasicColumn, FormSchema } from '/@/components/Table' // import { getDictDropDown } from '/@/api/common/index'; import { getRoleList } from '/@/api/common' import { Tag } from 'ant-design-vue' +export const searchFormSchema: FormSchema[] = [ + { + field: 'Name', + label: '公司名称', + component: 'Input', + colProps: { span: 8 }, + }, + { + field: 'PinYinCode', + label: '助记码', + component: 'Input', + colProps: { span: 8 }, + }, +] export const columns: BasicColumn[] = [ { title: '公司名称', @@ -76,7 +90,7 @@ export const permissionFormSchema: FormSchema[] = [ { field: 'divider-selects', component: 'Divider', - label: '审批步骤', + label: '授权步骤', colProps: { span: 24 }, }, { @@ -87,20 +101,7 @@ export const permissionFormSchema: FormSchema[] = [ show: false, }, ] -export const searchFormSchema: FormSchema[] = [ - { - field: 'UserName', - label: '用户名称', - component: 'Input', - colProps: { span: 8 }, - }, - { - field: 'UserCode', - label: '用户唯一编码', - component: 'Input', - colProps: { span: 8 }, - }, -] + export const formSchema: FormSchema[] = [ { field: 'divider-selects', diff --git a/ds-wms-admin-web/src/views/system/tenant/index.vue b/ds-wms-admin-web/src/views/system/tenant/index.vue index 0b6bc541..97f06e32 100644 --- a/ds-wms-admin-web/src/views/system/tenant/index.vue +++ b/ds-wms-admin-web/src/views/system/tenant/index.vue @@ -2,7 +2,7 @@