diff --git a/src/api/purchase/purchaseagent.ts b/src/api/purchase/purchaseagent.ts index dd0f57d..132701e 100644 --- a/src/api/purchase/purchaseagent.ts +++ b/src/api/purchase/purchaseagent.ts @@ -86,3 +86,14 @@ export function getAgentSummary(params?: { deptCode?: string; planStartDate?: st params, }); } + +/** + * 重置密码 + * @param id 代理机构ID + */ +export function resetPassword(id: string) { + return request({ + url: '/purchase/purchasingagent/resetPassword/' + id, + method: 'post', + }); +} diff --git a/src/views/purchase/purchaseagent/form.vue b/src/views/purchase/purchaseagent/form.vue index c082c54..c3a7851 100644 --- a/src/views/purchase/purchaseagent/form.vue +++ b/src/views/purchase/purchaseagent/form.vue @@ -12,11 +12,14 @@ -
新增时自动创建系统用户,默认密码:Aa123456,角色:招标代理
+
新增时自动创建系统用户,密码随机生成(12位含大小写字母、数字、特殊字符),角色:招标代理
+ + + + + + + - + @@ -176,10 +196,10 @@