0606
This commit is contained in:
parent
a87535616f
commit
eda1c5c446
|
@ -71,7 +71,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="资质类型">
|
<el-table-column label="资质类型">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-html="showlight(scope.row.name)"></span>
|
<span v-html="showlight(scope.row.type)"></span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="等级">
|
<el-table-column label="等级">
|
||||||
|
|
|
@ -416,10 +416,12 @@ this.getList()
|
||||||
},
|
},
|
||||||
showlight(val) {
|
showlight(val) {
|
||||||
val = val + "";
|
val = val + "";
|
||||||
if (this.listQuery.search != "") {
|
if (this.listQuery.search !== "") {
|
||||||
let searchList = this.listQuery.search.split(' ')
|
let searchList = this.listQuery.search.split(' ');
|
||||||
|
let reg = null;
|
||||||
for(var i=0;i<searchList.length;i++){
|
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
|
return val
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -190,7 +190,7 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
confirm() {
|
confirm() {
|
||||||
qactionConfirm(this.data.id).then(res => {
|
qactionConfirm(this.showData.id).then(res => {
|
||||||
if (res.code>=200) {
|
if (res.code>=200) {
|
||||||
this.$emit("handleDo", false);
|
this.$emit("handleDo", false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue