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