mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-09 19:06:49 +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;
|
||||
} 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;
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
@sizeChange="handleSizeChange"
|
||||
:currentPage="tableConfig.currentPage"
|
||||
:pageSize="tableConfig.pageSize"
|
||||
@selection-change="handleSelectionChange"
|
||||
@selection-change="$event => handleSelectionChange($event)"
|
||||
ref="rTable"
|
||||
/>
|
||||
|
||||
@@ -203,23 +203,7 @@ export default {
|
||||
// 表格数据
|
||||
tableData: [],
|
||||
// 选中的规则id
|
||||
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
|
||||
}]
|
||||
selectedRules: []
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -265,6 +249,29 @@ export default {
|
||||
var content = response.content.content || {}
|
||||
this.tableData = content.list || []
|
||||
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 => {
|
||||
this.$message.error(
|
||||
@@ -436,22 +443,8 @@ export default {
|
||||
// 当前页码改变事件
|
||||
async handleCurrentChange(val) {
|
||||
this.queryParams.page = val
|
||||
this.tableConfig.currentPage = val
|
||||
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) {
|
||||
@@ -626,11 +619,15 @@ export default {
|
||||
// 合并并去
|
||||
// 只保留当前选中的项
|
||||
// this.$refs.rTable.setSelection(val, 1)
|
||||
console.log(this.selectedRules)
|
||||
if (selectedRows.length > 0) {
|
||||
this.selectedRules.splice(
|
||||
this.tableConfig.currentPage - 1,
|
||||
1,
|
||||
selectedRows
|
||||
)
|
||||
|
||||
|
||||
|
||||
console.log(selectedRows)
|
||||
// this.selectedRules 去重 后push
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user