From 4ee7ac5f93dbe34607863764bf43e6a88461fc17 Mon Sep 17 00:00:00 2001
From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com>
Date: Thu, 13 Feb 2025 17:11:46 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=A1=E6=A0=B8=E6=97=B6?=
=?UTF-8?q?=20=E5=AE=A1=E6=A0=B8=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/pro-tabs/bns-timeline-tabs.vue | 24 ++++++++++++++++++-
vue.config.js | 4 ++--
2 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/src/components/pro-tabs/bns-timeline-tabs.vue b/src/components/pro-tabs/bns-timeline-tabs.vue
index 54bc9df..01ad8bc 100644
--- a/src/components/pro-tabs/bns-timeline-tabs.vue
+++ b/src/components/pro-tabs/bns-timeline-tabs.vue
@@ -20,7 +20,7 @@
审批部门:{{ item.section }}
审批人:{{ item.name }}
审批时间: {{ item.time }}
- 审批状态: {{ item.status }}
+ 审批状态: {{ auditingType(item) }}
审批意见:
+
+
@@ -328,6 +336,20 @@ export default {
addReason() {
this.dialogVisible = true
},
+
+ // 审批状态
+ auditingType(item) {
+ if (item.status === '未审核') return '未审核'
+ if (item.status === '已审核' && (item.agree == 1 || item.agree == 3)) return '审核通过'
+ if (item.status === '已审核' && item.agree == 2) return '审核驳回'
+ if (item.status === '已审核' && (item.agree == 4 || item.agree == null)) return '撤回'
+ },
+
+ // 根据审核状态以及审核结果添加样式
+ // styleByType(item) {
+ // console.log('item修改样式', item)
+ // if (item.status === '未审核') return 'currentLight'
+ // },
},
}
diff --git a/vue.config.js b/vue.config.js
index 80d5b25..3b6828e 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -40,8 +40,8 @@ module.exports = {
// target: 'http://192.168.0.58:19090', // 杰
// target: 'http://192.168.0.14:18080', // 测试环境
// target: 'http://218.21.27.6:1999/prod-api', // 生产环境
- // target: 'http://192.168.0.38:18080', // 郝志权
- target: 'http://192.168.2.125:18080', // 梁超
+ target: 'http://192.168.0.38:18080', // 郝志权
+ // target: 'http://192.168.2.125:18080', // 梁超
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '',