|
@@ -86,7 +86,7 @@
|
|
|
<el-form :model="form_task" class="flex_start">
|
|
|
<div class="Layout">
|
|
|
<div class="queryName">模块</div>
|
|
|
- <el-cascader v-model="form_task.moduleIds" size="small" clearable collapse-tags :props="props" :options="business_platform_Modular" placeholder="请选择" style="width:77% !important;" @click.native="bugDataGet" />
|
|
|
+ <el-cascader v-model="form_task.moduleIds" size="small" clearable collapse-tags :props="props" :options="business_platform_Modular" placeholder="请选择" style="width:77% !important;" />
|
|
|
</div>
|
|
|
<div class="Layout marginLeft">
|
|
|
<div class="queryName">状态</div>
|
|
@@ -292,7 +292,12 @@ export default {
|
|
|
},
|
|
|
newTabOpen: true, // 是否新的tab页打开
|
|
|
header_show: true,
|
|
|
- props: { multiple: true },
|
|
|
+ props: {
|
|
|
+ value: 'id',
|
|
|
+ label: 'moduleName',
|
|
|
+ children: 'childModules',
|
|
|
+ multiple: true
|
|
|
+ },
|
|
|
isFromDpmList: [{ id: true, name: '是' }, { id: false, name: '否' }],
|
|
|
priorityColors: ['#F56C6C', '#FF8952', '#F5E300', '#7ED321', '#61D3B8', '#69B3FF', '#BDBDBD'],
|
|
|
arr_priority: [{ value: 0, name: 'P0' }, { value: 1, name: 'P1' }, { value: 2, name: 'P2' }, { value: 3, name: 'P3' }],
|
|
@@ -319,6 +324,7 @@ export default {
|
|
|
currentPage: 0,
|
|
|
DetailedScreening: false,
|
|
|
total: 0,
|
|
|
+ biz: '',
|
|
|
isToOne: true,
|
|
|
loading: false,
|
|
|
table_loading: false,
|
|
@@ -340,6 +346,7 @@ export default {
|
|
|
created() {
|
|
|
this.get_taskList()
|
|
|
this.get_taskSelect()
|
|
|
+ this.bugDataGet()
|
|
|
this.$store.state.data.status = true
|
|
|
},
|
|
|
destroyed() {
|
|
@@ -492,23 +499,20 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
bugDataGet() { // 所属模块
|
|
|
- settingQueryBizModuleList(this.bizId).then(res => {
|
|
|
- this.business_platform_Modular = res.data.map(item => ({
|
|
|
- ...item,
|
|
|
- value: item.id,
|
|
|
- label: item.moduleName,
|
|
|
- children: item.childModules.length === 0 ? null : item.childModules.map(item1 => ({
|
|
|
- ...item1,
|
|
|
- value: item1.id,
|
|
|
- label: item1.moduleName,
|
|
|
- children: item1.childModules.length === 0 ? null : item1.childModules.map(item2 => ({
|
|
|
- ...item2,
|
|
|
- value: item2.id,
|
|
|
- label: item2.moduleName
|
|
|
- }))
|
|
|
- }))
|
|
|
- }))
|
|
|
+ console.log(this.$store.state.global)
|
|
|
+ this.biz = this.bizId
|
|
|
+ if (this.bizId === -1) {
|
|
|
+ this.biz = localStorage.getItem('bizId')
|
|
|
+ }
|
|
|
+ settingQueryBizModuleList(this.biz).then(res => {
|
|
|
+ this.business_platform_Modular = this.getRequireData(res.data)
|
|
|
})
|
|
|
+ },
|
|
|
+ getRequireData(data) {
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
+ data[i].childModules && data[i].childModules.length < 1 ? delete data[i].childModules : this.getRequireData(data[i].childModules)
|
|
|
+ }
|
|
|
+ return data
|
|
|
}
|
|
|
}
|
|
|
}
|