From 47633749fb6da0664f932991e67c7e0d46c50aee Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Sun, 22 Sep 2024 17:58:13 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=20=E5=AE=A1=E6=89=B9=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=90=86=E5=AE=A1=E6=89=B9,=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=AE=A1=E7=90=86=E7=9A=84=E8=AE=BE=E7=BD=AE=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E5=8A=9F=E8=83=BD,=E9=A6=96=E9=A1=B5=E5=BE=85?= =?UTF-8?q?=E5=8A=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user/user.js | 14 +++ src/components/NameCircle.vue | 40 +++++--- src/views/home/index.vue | 18 ++-- src/views/system/user/agentSetting.vue | 55 ++++++----- src/views/system/user/index.vue | 94 ++++++++++--------- src/views/workflow/common/OperationRender.vue | 94 +++++++++++-------- 6 files changed, 186 insertions(+), 129 deletions(-) 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/home/index.vue b/src/views/home/index.vue index 16270ee..431a050 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -63,7 +63,7 @@ 提交时间:
{{ item.submitTime }}
-
时间要求 {{ item.totalTime }}天
+
查看
@@ -114,7 +114,7 @@ 提交时间:
{{ item.submitTime }}
-
时间要求 {{ item.totalTime }}天
+
查看
@@ -627,7 +627,7 @@ const moneyPieOption = ref({ }) onMounted(async () => { - // getTodoList() + getTodoList() await getResearchChart() // nextTick(() => { // let topLeft=document.getElementById('topLeft') @@ -664,7 +664,7 @@ const goToSpecialFund = () => { }) } const refreshTodoOrDoneList = () => { - // getTodoList() + getTodoList() } const initFundCharts = () => { data.fundPieCharts = echarts.init(document.getElementById('fundPie')).setOption(fundPieOption.value) @@ -675,8 +675,8 @@ const initMoneyCharts = () => { const getTodoList = () => { getHomeTaskInfo().then(res => { if (res.code === 1000) { - // todoList.value=res.data.rows - // todoNum.value=res.data.total + todoList.value=res.data.rows + todoNum.value=res.data.total } else { ElNotification({ title: '提示', @@ -1267,9 +1267,9 @@ const handleView = (row) => { width: 80px; margin-left: 23px; - &:last-child { - white-space: nowrap; - } + //&:last-child { + // white-space: nowrap; + //} } } diff --git a/src/views/system/user/agentSetting.vue b/src/views/system/user/agentSetting.vue index 413c90f..f72ed08 100644 --- a/src/views/system/user/agentSetting.vue +++ b/src/views/system/user/agentSetting.vue @@ -1,6 +1,6 @@