From ea797356ce8c104c56decdcd0104fe8e7c0cf641 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Sat, 10 Oct 2026 13:56:29 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=AE=8C=E5=96=84=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E4=BA=BA=E5=91=98=E5=A2=9E=E9=87=8F=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E4=B8=8E=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- src/api/system/dept.js | 14 +- src/api/system/user.js | 15 +- src/option/system/user.js | 7 +- .../contract-attachment-section.vue | 12 +- .../components/waybill-import-dialog.vue | 6 + src/views/business/contract-manage.vue | 2 +- src/views/system/dept.vue | 115 ++++++-- src/views/system/user.vue | 272 ++++++++++-------- src/views/vehicle/customer-archive.vue | 57 ++-- 9 files changed, 322 insertions(+), 178 deletions(-) diff --git a/src/api/system/dept.js b/src/api/system/dept.js index 37b1aba..5a489e0 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -57,26 +57,36 @@ export const clearNonTopDept = signal => { }); }; -export const syncOaCompany = (current = 1, size = 20, signal) => { +export const syncOaCompany = (current = 1, size = 20, signal, incremental = false, modifiedSince) => { return request({ url: '/blade-system/dept/sync-oa-company', method: 'post', params: { current, size, + incremental: !!incremental, + modifiedSince: modifiedSince || undefined, }, timeout: 60000, signal, }); }; -export const syncOaDepartment = (current = 1, size = 20, signal) => { +export const syncOaDepartment = ( + current = 1, + size = 20, + signal, + incremental = false, + modifiedSince +) => { return request({ url: '/blade-system/dept/sync-oa-department', method: 'post', params: { current, size, + incremental: !!incremental, + modifiedSince: modifiedSince || undefined, }, timeout: 60000, signal, diff --git a/src/api/system/user.js b/src/api/system/user.js index 4e1c8de..ea4484c 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -31,13 +31,15 @@ export const add = row => { }); }; -export const syncIamAccounts = (current = 1, size = 50, signal) => { +export const syncIamAccounts = (current = 1, size = 50, signal, incremental = false, modifiedSince) => { return request({ url: '/blade-system/user/sync-iam-accounts', method: 'post', params: { current, size, + incremental: !!incremental, + modifiedSince: modifiedSince || undefined, }, timeout: 60000, signal, @@ -52,6 +54,17 @@ export const update = row => { }); }; +export const changeStatus = (id, status) => { + return request({ + url: '/blade-system/user/change-status', + method: 'post', + params: { + id, + status, + }, + }); +}; + export const updatePlatform = (userId, userType, userExt) => { return request({ url: '/blade-system/user/update-platform', diff --git a/src/option/system/user.js b/src/option/system/user.js index 786fa5e..78401f8 100644 --- a/src/option/system/user.js +++ b/src/option/system/user.js @@ -27,7 +27,8 @@ export const userOption = safe => { index: true, selection: true, addBtn: false, - viewBtn: true, + viewBtn: false, + menuWidth: 160, dialogType: 'dialog', dialogWidth: '90%', labelPosition: 'right', @@ -37,6 +38,7 @@ export const userOption = safe => { { label: '账号名', prop: 'account', + slot: true, search: true, searchOrder: 2, searchPlaceholder: '支持模糊搜索', @@ -63,7 +65,8 @@ export const userOption = safe => { label: '所属部门', prop: 'deptName', slot: true, - overHidden: true, + minWidth: 200, + overHidden: false, display: false, }, { label: '岗位', prop: 'postName', overHidden: true, display: false }, diff --git a/src/views/business/components/contract-attachment-section.vue b/src/views/business/components/contract-attachment-section.vue index 7302908..e843d8e 100644 --- a/src/views/business/components/contract-attachment-section.vue +++ b/src/views/business/components/contract-attachment-section.vue @@ -16,7 +16,7 @@ class="contract-manage-form__attachment-table" @selection-change="selected = $event" > - + -