This commit is contained in:
shijing 2022-06-06 09:08:24 +08:00
parent a87535616f
commit eda1c5c446
3 changed files with 7 additions and 5 deletions

View File

@ -71,7 +71,7 @@
</el-table-column>
<el-table-column label="资质类型">
<template slot-scope="scope">
<span v-html="showlight(scope.row.name)"></span>
<span v-html="showlight(scope.row.type)"></span>
</template>
</el-table-column>
<el-table-column label="等级">

View File

@ -416,10 +416,12 @@ this.getList()
},
showlight(val) {
val = val + "";
if (this.listQuery.search != "") {
let searchList = this.listQuery.search.split(' ')
if (this.listQuery.search !== "") {
let searchList = this.listQuery.search.split(' ');
let reg = null;
for(var i=0;i<searchList.length;i++){
val = val.replace(searchList[i], '<span style="color:red;font-weight:bold">' + searchList[i] + "</span>");
reg=new RegExp(searchList[i],"g");
val = val.replace(reg, '<span style="color:red;font-weight:bold">' + searchList[i] + "</span>");
}
return val
} else {

View File

@ -190,7 +190,7 @@
})
},
confirm() {
qactionConfirm(this.data.id).then(res => {
qactionConfirm(this.showData.id).then(res => {
if (res.code>=200) {
this.$emit("handleDo", false);
}