flat: 123
This commit is contained in:
@@ -81,9 +81,17 @@
|
||||
<div v-else>暂无简历</div>
|
||||
</div>
|
||||
</template>
|
||||
<template slot="serveLabels" slot-scope="{ row }">
|
||||
<el-tooltip effect="dark" placement="top">
|
||||
<div slot="content">
|
||||
<div v-for="(item, index) in clipStr(row.serveLabels)" :key="index"><div>{{item}}</div></div>
|
||||
</div>
|
||||
<span>{{ row.serveLabels.length > 20 ? `${row.serveLabels.substring(0, 20)}...` : row.serveLabels}}</span>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<!--/自定义列-->
|
||||
<template slot="serveLabelsForm">
|
||||
<tag-select v-model="selectedWorkTypes" :prop="{ label: 'name', value: 'name' }" :data="worktypeData">
|
||||
<tag-select v-model="selectLabelNameTypes" :prop="{ label: 'name', value: 'name' }" :data="worktypeData">
|
||||
</tag-select>
|
||||
</template>
|
||||
<!--自定义按钮-->
|
||||
@@ -530,6 +538,7 @@ export default {
|
||||
trigger: ["blur"],
|
||||
},
|
||||
],
|
||||
slot: true,
|
||||
formslot: true,
|
||||
},
|
||||
{
|
||||
@@ -801,11 +810,11 @@ export default {
|
||||
},
|
||||
selectLabelNameTypes: {
|
||||
get() {
|
||||
if (!this.obj.labelName) {
|
||||
if (!this.obj.serveLabels) {
|
||||
return [];
|
||||
}
|
||||
const result = [];
|
||||
const wt = this.obj.labelName ? this.obj.labelName.split(",") : [];
|
||||
const wt = this.obj.serveLabels ? this.obj.serveLabels.split(",") : [];
|
||||
wt.forEach((item) => {
|
||||
result.push({ name: item });
|
||||
});
|
||||
@@ -816,7 +825,7 @@ export default {
|
||||
val.forEach((item) => {
|
||||
arr.push(item.name);
|
||||
});
|
||||
this.obj.labelName = arr.join(",");
|
||||
this.obj.serveLabels = arr.join(",");
|
||||
},
|
||||
},
|
||||
worktypeData() {
|
||||
@@ -1443,7 +1452,7 @@ export default {
|
||||
(error) => {
|
||||
window.console.log(error);
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user