diff --git a/src/api/user/user.js b/src/api/user/user.js index be57ca7..79bf1bb 100644 --- a/src/api/user/user.js +++ b/src/api/user/user.js @@ -212,3 +212,17 @@ export const checkMatrix = (userId) => { method: 'get' }) } +export const getAgentInfo=(userId)=>{ + return request({ + url: `/admin/mosr/user/approval/agent/${userId}`, + method:'get' + }) +} + +export const editAgentInfo=(data)=>{ + return request({ + url:'/admin/mosr/user/approval/agent', + method:'post', + data + }) +} diff --git a/src/components/NameCircle.vue b/src/components/NameCircle.vue index 958fb50..13efafc 100644 --- a/src/components/NameCircle.vue +++ b/src/components/NameCircle.vue @@ -3,12 +3,16 @@
- + + + + +
- + class="el-timeline-item__node"> +
+
+
@@ -28,10 +32,18 @@ const props = defineProps({ type: Boolean, default: false }, + showIcon: { + type: Boolean, + default: false + }, user: { type: Object, default: {} }, + userName: { + type: String, + default: '' + }, mode: { type: String, default: 'design' @@ -71,20 +83,22 @@ const initUser = (user) => { user["class"] = 'is-loading' } //拒绝后评论 - if (state === 'REFUSE') { - user["icon"] = 'Close' + if (state === 'REFUSE' || state === 'ROLLBACK') { + // user["icon"] = 'Close' + // user["color"] = "#f56c6c" + user["icon"] = 'CircleCloseFilled' user["color"] = "#f56c6c" } if (state === 'PASS') { user["icon"] = 'MoreFilled' user["color"] = "#c0c4cc" } - if (state === 'ROLLBACK') { - // user["icon"] = 'RefreshLeft' - // user["color"] = "#f78f5f" - user["icon"] = 'CircleCloseFilled' - user["color"] = "#f56c6c" - } + // if (state === 'ROLLBACK') { + // // user["icon"] = 'RefreshLeft' + // // user["color"] = "#f78f5f" + // user["icon"] = 'CircleCloseFilled' + // user["color"] = "#f56c6c" + // } return user; } diff --git a/src/views/auth/index.vue b/src/views/auth/index.vue index 9ddf732..78bff10 100644 --- a/src/views/auth/index.vue +++ b/src/views/auth/index.vue @@ -1,8 +1,8 @@