flat: 123
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
>{{ value }}</el-tag
|
||||
>
|
||||
</div>
|
||||
<div class="tag-select-tip">请选择您所需的qq{{ name }}</div>
|
||||
<div class="tag-select-tip">请选择您所需的标签:{{ name }}</div>
|
||||
<div class="tag-select-searchinp">
|
||||
<el-input
|
||||
v-model="search"
|
||||
|
||||
@@ -281,7 +281,7 @@ import {
|
||||
} from "@/api/tenant/serve";
|
||||
import { detail as missionDetail } from "@/api/tenant/mission";
|
||||
import { detail as workDetail } from "@/api/tenant/postzp";
|
||||
import { getWorkTypes } from "@/api/tenant/common";
|
||||
import {getLabelList, getWorkTypes} from "@/api/tenant/common";
|
||||
import { mapGetters } from "vuex";
|
||||
import addGroups from "./Dialog/addGroups";
|
||||
import transferGroups from "./Dialog/transferGroups";
|
||||
@@ -699,9 +699,19 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.initDept();
|
||||
this.getWorkTypes();
|
||||
// this.getWorkTypes();
|
||||
this.getLabelList();
|
||||
},
|
||||
methods: {
|
||||
getLabelList() {
|
||||
getLabelList().then( (res) => {
|
||||
const arr = res.data.data.flatMap(obj => obj.child.map(item => item.concatName));
|
||||
this.arr = arr.map(concatName => {
|
||||
this.worktypeDic[concatName] = 1;
|
||||
return concatName;
|
||||
});
|
||||
});
|
||||
},
|
||||
showKeyAudience(row) {
|
||||
this.selectInfo = row
|
||||
this.getKeyAudience({
|
||||
@@ -759,7 +769,6 @@ export default {
|
||||
const element = res.data.data[i];
|
||||
this.worktypeDic[element.name] = 1;
|
||||
this.arr.push(element.name)
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -894,7 +903,7 @@ export default {
|
||||
detail(this.obj.id).then(
|
||||
(res) => {
|
||||
this.obj = res.data.data;
|
||||
this.tempWorkType = []
|
||||
this.tempWorkType = this.obj.serveLabels.split(",");
|
||||
done();
|
||||
},
|
||||
(error) => {
|
||||
|
||||
Reference in New Issue
Block a user