|
@@ -341,26 +341,34 @@
|
|
:key="index"
|
|
:key="index"
|
|
:label="item.label"
|
|
:label="item.label"
|
|
align="center"
|
|
align="center"
|
|
- :show-overflow-tooltip="true"
|
|
|
|
header-align="center"
|
|
header-align="center"
|
|
>
|
|
>
|
|
|
|
+ <!-- :show-overflow-tooltip="true" -->
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <ul v-if="item.scope === 'moreList'">
|
|
|
|
- <li
|
|
|
|
- v-for="(items, indexs) in scope.row['businessList']"
|
|
|
|
- :key="indexs"
|
|
|
|
- >
|
|
|
|
- {{
|
|
|
|
- items[item.prop1] +
|
|
|
|
- "-" +
|
|
|
|
- items[item.prop2] +
|
|
|
|
- "-" +
|
|
|
|
- items[item.prop3] +
|
|
|
|
- "-" +
|
|
|
|
- items[item.prop4]
|
|
|
|
- }}
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
|
|
+ <el-popover
|
|
|
|
+ v-if="item.scope === 'moreList'"
|
|
|
|
+ placement="right-end"
|
|
|
|
+ trigger="hover"
|
|
|
|
+ >
|
|
|
|
+ <ul>
|
|
|
|
+ <li
|
|
|
|
+ v-for="(items, indexs) in scope.row['businessList']"
|
|
|
|
+ :key="indexs"
|
|
|
|
+ >
|
|
|
|
+ {{ getBusinessName(items, item) }}
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ <ul slot="reference" style="cursor: pointer;">
|
|
|
|
+ <li
|
|
|
|
+ v-for="(items, indexs) in scope.row['businessList'].slice(0, 3)"
|
|
|
|
+ :key="indexs"
|
|
|
|
+ >
|
|
|
|
+ {{ getBusinessName(items, item) }}
|
|
|
|
+ </li>
|
|
|
|
+ 等{{ scope.row['businessList'].length }}份试卷
|
|
|
|
+ </ul>
|
|
|
|
+ </el-popover>
|
|
|
|
+
|
|
<span v-else-if="item.scope === 'status'">{{
|
|
<span v-else-if="item.scope === 'status'">{{
|
|
scope.row[item.prop] === 1
|
|
scope.row[item.prop] === 1
|
|
? "发布"
|
|
? "发布"
|
|
@@ -568,6 +576,12 @@ export default {
|
|
return setTs;
|
|
return setTs;
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ // 获取业务层次列全称
|
|
|
|
+ getBusinessName: function() {
|
|
|
|
+ return function(items, item) {
|
|
|
|
+ return `${items[item.prop1]}-${items[item.prop2]}-${items[item.prop3]}-${items[item.prop4]}`
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.$api
|
|
this.$api
|