|
@@ -170,8 +170,12 @@
|
|
|
<el-table-column label="描述信息" align="center" prop="description" />
|
|
|
<el-table-column label="标签" align="center" prop="tagIds" width="150px">
|
|
|
<template slot-scope="scope">
|
|
|
- <div v-for="i in JSON.parse(scope.row.tagIds)" :key="i" style="display: inline;">
|
|
|
- <el-tag type="success" v-for="ii in tagList" :key="ii.id" style="margin: 3px;" v-if="ii.tagId==i">{{ii.name}}</el-tag>
|
|
|
+ <div class="tag-container">
|
|
|
+ <div class="tag-list">
|
|
|
+ <div v-for="i in JSON.parse(scope.row.tagIds)" :key="i" style="display: inline;">
|
|
|
+ <el-tag type="success" v-for="ii in tagList" :key="ii.id" style="margin: 3px;" v-if="ii.tagId==i">{{ii.name}}</el-tag>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -262,7 +266,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { transfer,listExternalContact, getExternalContact, delExternalContact, addExternalContact, updateExternalContact, exportExternalContact } from "@/api/qw/externalContact";
|
|
|
+import { transfer,listExternalContact, getExternalContact, delExternalContact, addExternalContact, updateExternalContact, exportExternalContact } from "../../../api/qw/externalContact";
|
|
|
import { listTag, getTag, delTag, addTag, updateTag, exportTag } from "@/api/qw/tag";
|
|
|
import { qwUserList,userList } from "@/api/qw/user";
|
|
|
import qwUserSelectOne from '@/views/qw/user/qwUserSelectOne.vue'
|
|
@@ -557,3 +561,44 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
+<style scoped>
|
|
|
+.tag-container {
|
|
|
+ max-height: 300px;
|
|
|
+ overflow-y: auto;
|
|
|
+ padding: 1px;
|
|
|
+ border: 1px solid #ebeef5;
|
|
|
+ border-radius: 1px;
|
|
|
+ background-color: #fafafa;
|
|
|
+}
|
|
|
+.tag-list {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ gap: 8px;
|
|
|
+}
|
|
|
+.scroll-hint {
|
|
|
+ text-align: center;
|
|
|
+ color: #909399;
|
|
|
+ font-size: 12px;
|
|
|
+ padding: 1px 0;
|
|
|
+}
|
|
|
+.container {
|
|
|
+ max-width: 800px;
|
|
|
+ margin: 0 auto;
|
|
|
+ padding: 10px;
|
|
|
+}
|
|
|
+.title {
|
|
|
+ text-align: center;
|
|
|
+ color: #303133;
|
|
|
+ margin-bottom: 30px;
|
|
|
+}
|
|
|
+.demo-table {
|
|
|
+ width: 100%;
|
|
|
+ margin-bottom: 30px;
|
|
|
+}
|
|
|
+.instructions {
|
|
|
+ background-color: #f5f7fa;
|
|
|
+ padding: 15px;
|
|
|
+ border-radius: 1px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+}
|
|
|
+</style>
|