mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-12 12:26:52 +08:00
feat(risk_history): 添加审批功能并优化样式- 在风险历史页面添加审批结果和意见展示区域- 实现审批信息的获取和显示-优化页面样式,增加滚动条- 修改登录相关代码,处理临期提示- 移除控制台日志移除插件,以便于调试
This commit is contained in:
@@ -567,6 +567,49 @@
|
|||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.nav-body{
|
||||||
|
height: 86%;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 审批
|
||||||
|
#exam-container{}
|
||||||
|
|
||||||
|
#exam-container .flex{
|
||||||
|
padding:10px 20px;
|
||||||
|
//display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
#exam-container .flex span{
|
||||||
|
float: left;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
#exam-container .flex select, #exam-container .flex textarea{
|
||||||
|
margin-left: 10px;
|
||||||
|
outline: none;
|
||||||
|
padding: 10px;
|
||||||
|
border:1px solid #ddd;
|
||||||
|
width: 80%;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
.exam-option{
|
||||||
|
outline: none;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
#exam-container .flex textarea{
|
||||||
|
height:200px;
|
||||||
|
}
|
||||||
|
#exam-container button{
|
||||||
|
outline:none;
|
||||||
|
background: #3498db; color: white; border: 1px solid #3498db;
|
||||||
|
padding: 10px 20px;
|
||||||
|
border-radius: 8px;
|
||||||
|
float: right;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -613,6 +656,28 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="docs">风险摘要信息将显示在这里</div>
|
<div id="docs">风险摘要信息将显示在这里</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div style=' margin: 20px' id='exam-container'>
|
||||||
|
<h3>审批结果</h3>
|
||||||
|
<div class='flex' style='margin-top: 10px'>
|
||||||
|
<span>审批结果</span>
|
||||||
|
<select type='text' class='' disabled id='exam-input'>
|
||||||
|
<!-- 0-未审批 1-审批通过 2-审批不通过-->
|
||||||
|
<option value='0' class='exam-option'>未审批</option>
|
||||||
|
<option value='1' class='exam-option'>审批通过</option>
|
||||||
|
<option value='2' class='exam-option'>审批不通过</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class='flex'>
|
||||||
|
<span>审批意见</span>
|
||||||
|
<textarea disabled id='exam-textarea'></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <button>修改审批意见</button>-->
|
||||||
|
|
||||||
|
<div style='clear:both'></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div style="overflow: auto;">
|
<div style="overflow: auto;">
|
||||||
<div id="detail-container">
|
<div id="detail-container">
|
||||||
<div class="empty-message">请选择左侧记录查看详细信息</div>
|
<div class="empty-message">请选择左侧记录查看详细信息</div>
|
||||||
@@ -674,6 +739,7 @@
|
|||||||
var Config = {
|
var Config = {
|
||||||
ipConfig: {
|
ipConfig: {
|
||||||
ip: Utils.getQueryParam('ip') || 'http://39.104.123.254:7196'
|
ip: Utils.getQueryParam('ip') || 'http://39.104.123.254:7196'
|
||||||
|
// ip: Utils.getQueryParam('ip') || 'http://10.1.20.39:7197'
|
||||||
},
|
},
|
||||||
|
|
||||||
serviceUrl: {
|
serviceUrl: {
|
||||||
@@ -962,11 +1028,14 @@
|
|||||||
actions.style.display = '';
|
actions.style.display = '';
|
||||||
var time = document.getElementById('time');
|
var time = document.getElementById('time');
|
||||||
time.innerHTML = '';
|
time.innerHTML = '';
|
||||||
|
|
||||||
|
// 审批赋值
|
||||||
|
var examContainer = document.getElementById('exam-container');
|
||||||
|
var examTextarea = document.getElementById('exam-textarea');
|
||||||
|
var examSelect = document.getElementById('exam-input');
|
||||||
if(navItem.checkStatus === 2){
|
if(navItem.checkStatus === 2){
|
||||||
// 从URL获取taCode
|
// 从URL获取taCode
|
||||||
StateManager.resultId = navItem.id;
|
StateManager.resultId = navItem.id;
|
||||||
|
|
||||||
|
|
||||||
// 🔹 调用详情接口(假设用 recordId 查询)
|
// 🔹 调用详情接口(假设用 recordId 查询)
|
||||||
Config.serviceUrl.queryDetail.data = {
|
Config.serviceUrl.queryDetail.data = {
|
||||||
resultId: navItem.id,
|
resultId: navItem.id,
|
||||||
@@ -992,7 +1061,10 @@
|
|||||||
detailJson.content.content.fileBizTypeDictList;
|
detailJson.content.content.fileBizTypeDictList;
|
||||||
var riskCount = detailJson.content.content.riskCount;
|
var riskCount = detailJson.content.content.riskCount;
|
||||||
var taSubmitDate = detailJson.content.content.taSubmitDate
|
var taSubmitDate = detailJson.content.content.taSubmitDate
|
||||||
|
console.log(detailJson.content.content.approveInfo)
|
||||||
|
examSelect.value =detailJson.content.content.approveInfo.approveResult
|
||||||
|
examTextarea.value = detailJson.content.content.approveInfo.approveOpinion;
|
||||||
|
// examTextarea.value = examSelect.value = detailJson.content.content.examText;
|
||||||
|
|
||||||
time.innerHTML =
|
time.innerHTML =
|
||||||
(taSubmitDate || '未知时间') +
|
(taSubmitDate || '未知时间') +
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ const actions = {
|
|||||||
})
|
})
|
||||||
break
|
break
|
||||||
case 51004:
|
case 51004:
|
||||||
// 需要验证码
|
// 临期提示
|
||||||
resolve({
|
resolve({
|
||||||
...res.content,
|
...res.content,
|
||||||
code: numberResult
|
code: numberResult
|
||||||
|
|||||||
@@ -309,11 +309,12 @@ export default {
|
|||||||
this.$store
|
this.$store
|
||||||
.dispatch('user/login', this.loginForm)
|
.dispatch('user/login', this.loginForm)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
console.log(res)
|
||||||
if (res.code === 0 || res.code === 51004) {
|
if (res.code === 0 || res.code === 51004) {
|
||||||
if (res.code === 51004) {
|
if (res.code === 51004) {
|
||||||
sessionStorage.setItem(
|
sessionStorage.setItem(
|
||||||
'tipMessage',
|
'tipMessage',
|
||||||
res.content.resultMessage ? res.content.resultMessage : ''
|
res.resultMessage ? res.resultMessage : ''
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
this.$router.push({ path: '/home' })
|
this.$router.push({ path: '/home' })
|
||||||
|
|||||||
Reference in New Issue
Block a user