flat: 123
This commit is contained in:
@@ -132,7 +132,7 @@
|
||||
</avue-crud>
|
||||
</el-dialog> -->
|
||||
|
||||
|
||||
|
||||
|
||||
<!--批量导入-->
|
||||
<el-dialog title="导入" append-to-body :visible.sync="excelBox" :close-on-click-modal="false" width="555px">
|
||||
@@ -157,7 +157,7 @@
|
||||
</basic-container>
|
||||
<ied ref="ied"></ied>
|
||||
</el-col>
|
||||
|
||||
|
||||
</el-row>
|
||||
<!-- <serve-detail ref="copy" @back="backIndex" v-show="false"></serve-detail> -->
|
||||
<el-drawer
|
||||
@@ -172,7 +172,7 @@
|
||||
:option="infoOption"
|
||||
:search.sync="search"
|
||||
:page.sync="infoPage"
|
||||
@search-change="serveSearchChange"
|
||||
@search-change="serveSearchChange"
|
||||
@search-reset="serveResetChange"
|
||||
@size-change="infoSizeChange"
|
||||
@current-change="infoCurrentChange"
|
||||
@@ -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) => {
|
||||
@@ -1248,7 +1257,7 @@ export default {
|
||||
this.workViewModel = res;
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user