|
|
|
@ -152,7 +152,7 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="所属类别:" prop="categoryIds" v-if="categoryVisible"> |
|
|
|
<div class="block"> |
|
|
|
<el-cascader v-model="categoryIds" placeholder="试试搜索:城市管理" :props="{ checkStrictly: true }" :options="categoryOptions" filterable></el-cascader> |
|
|
|
<el-cascader :disabled="disabledCategory" v-model="categoryIds" placeholder="试试搜索:城市管理" :props="{ checkStrictly: true }" :options="categoryOptions" filterable></el-cascader> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
@ -358,6 +358,7 @@ export default { |
|
|
|
isShowDeal: false, |
|
|
|
checkParentName: '', |
|
|
|
timeloading: true, |
|
|
|
disabledCategory:false, |
|
|
|
map: '', |
|
|
|
innerVisible: false, |
|
|
|
showAdvice: true, |
|
|
|
@ -675,6 +676,7 @@ export default { |
|
|
|
.catch(() => {}) |
|
|
|
}, |
|
|
|
getCategoryList () { |
|
|
|
this.disabledCategory = true; |
|
|
|
return this.$http |
|
|
|
.get('/events/category/list') |
|
|
|
.then(({ data: res }) => { |
|
|
|
@ -682,8 +684,10 @@ export default { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
var data = res.data |
|
|
|
|
|
|
|
this.getSelectedNode(data, data) |
|
|
|
this.categoryOptions = data |
|
|
|
this.disabledCategory = false; |
|
|
|
}) |
|
|
|
.catch(() => {}) |
|
|
|
}, |
|
|
|
|