mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-11 11:56:51 +08:00
Merge remote-tracking branch 'origin/bpic/feature-ai-uw' into bpic/feature-ai-uw
This commit is contained in:
@@ -888,7 +888,12 @@
|
|||||||
|
|
||||||
StateManager.navList[index].checkSummary = text;
|
StateManager.navList[index].checkSummary = text;
|
||||||
} else {
|
} else {
|
||||||
StateManager.navList[index].checkSummary = '<p>本次风险筛查结果:未发现风险</p>'; // 防止报错
|
if(StateManager.navList[index].checkStatus!==2){
|
||||||
|
StateManager.navList[index].checkSummary = '正在筛查中...';
|
||||||
|
} else {
|
||||||
|
StateManager.navList[index].checkSummary = '<p>本次风险筛查结果:未发现风险</p>'; // 防止报错
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
docs.innerHTML = StateManager.navList[index].checkSummary;
|
docs.innerHTML = StateManager.navList[index].checkSummary;
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
@sizeChange="handleSizeChange"
|
@sizeChange="handleSizeChange"
|
||||||
:currentPage="tableConfig.currentPage"
|
:currentPage="tableConfig.currentPage"
|
||||||
:pageSize="tableConfig.pageSize"
|
:pageSize="tableConfig.pageSize"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="$event => handleSelectionChange($event)"
|
||||||
ref="rTable"
|
ref="rTable"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -203,23 +203,7 @@ export default {
|
|||||||
// 表格数据
|
// 表格数据
|
||||||
tableData: [],
|
tableData: [],
|
||||||
// 选中的规则id
|
// 选中的规则id
|
||||||
selectedRules: [{
|
selectedRules: []
|
||||||
"i": null,
|
|
||||||
"id": "1402284104435732480",
|
|
||||||
"ruleType": "附加险",
|
|
||||||
"ruleField": "承保保费",
|
|
||||||
"checkType": 1,
|
|
||||||
"ruleDesc": "承保保费计算错误,进行风险提示\n",
|
|
||||||
"riskScript": "附加险“xxx”、“xxx”承保保费与报备费率不符(xx为具体险种名称,若包含多个,则以、分隔)",
|
|
||||||
"riskType": "",
|
|
||||||
"ruleStatus": 0,
|
|
||||||
"runType": "ai",
|
|
||||||
"createdDate": "2025-08-05 13:36:24",
|
|
||||||
"createdUser": "wujifen(吴季分)",
|
|
||||||
"modifiedDate": "2025-08-05 13:36:24",
|
|
||||||
"modifiedUser": "wujifen(吴季分)",
|
|
||||||
"isDelete": 0
|
|
||||||
}]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -265,6 +249,29 @@ export default {
|
|||||||
var content = response.content.content || {}
|
var content = response.content.content || {}
|
||||||
this.tableData = content.list || []
|
this.tableData = content.list || []
|
||||||
this.tableConfig.total = content.total || 0
|
this.tableConfig.total = content.total || 0
|
||||||
|
|
||||||
|
this.$nextTick(() => {
|
||||||
|
if (this.selectedRules.length > 0) {
|
||||||
|
let arrays = []
|
||||||
|
this.tableData.map((item, Findex) => {
|
||||||
|
if (this.selectedRules[this.tableConfig.currentPage - 1]) {
|
||||||
|
this.selectedRules[this.tableConfig.currentPage - 1].map(
|
||||||
|
filt => {
|
||||||
|
if (filt.id === item.id) {
|
||||||
|
arrays.push(this.tableData[Findex])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$refs.rTable.toggleRowSelection(arrays)
|
||||||
|
}, 100)
|
||||||
|
} else {
|
||||||
|
this.$refs.rTable.clearSelection()
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
this.$message.error(
|
this.$message.error(
|
||||||
@@ -436,22 +443,8 @@ export default {
|
|||||||
// 当前页码改变事件
|
// 当前页码改变事件
|
||||||
async handleCurrentChange(val) {
|
async handleCurrentChange(val) {
|
||||||
this.queryParams.page = val
|
this.queryParams.page = val
|
||||||
|
this.tableConfig.currentPage = val
|
||||||
await this.getList()
|
await this.getList()
|
||||||
|
|
||||||
|
|
||||||
console.log(this.selectedRules,213)
|
|
||||||
|
|
||||||
await this.$nextTick(() => {
|
|
||||||
if (this.selectedRules.length > 0) {
|
|
||||||
|
|
||||||
this.$refs.rTable.toggleRowSelection(this.selectedRules)
|
|
||||||
// this.selectedRules.forEach(row => {
|
|
||||||
// this.$refs.rTable.toggleRowSelection(row)
|
|
||||||
// })
|
|
||||||
} else {
|
|
||||||
this.$refs.rTable.clearSelection()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
// 删除按钮点击事件
|
// 删除按钮点击事件
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
@@ -626,11 +619,15 @@ export default {
|
|||||||
// 合并并去
|
// 合并并去
|
||||||
// 只保留当前选中的项
|
// 只保留当前选中的项
|
||||||
// this.$refs.rTable.setSelection(val, 1)
|
// this.$refs.rTable.setSelection(val, 1)
|
||||||
console.log(this.selectedRules)
|
if (selectedRows.length > 0) {
|
||||||
|
this.selectedRules.splice(
|
||||||
|
this.tableConfig.currentPage - 1,
|
||||||
|
1,
|
||||||
|
selectedRows
|
||||||
|
)
|
||||||
|
|
||||||
|
// this.selectedRules 去重 后push
|
||||||
|
}
|
||||||
console.log(selectedRows)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user