0606
This commit is contained in:
parent
a87535616f
commit
eda1c5c446
|
@ -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="等级">
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue