|
|
|
|
@ -54,7 +54,10 @@
|
|
|
|
|
<div class="xy-table-item-label" style="font-weight: bold">
|
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;">*</span>所属区域:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<div>
|
|
|
|
|
<el-checkbox @change="changeAllArea" v-model="allArea">全部区域</el-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
<el-select :disabled="stateObj.auth_type==1 || is_search" style="width:100%" v-model="form.area_ids" multiple
|
|
|
|
|
placeholder="请选择">
|
|
|
|
|
<el-option v-for="item in areaList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
|
@ -157,7 +160,8 @@
|
|
|
|
|
showTinymce: false,
|
|
|
|
|
is_next: false, // 是否 可以延续
|
|
|
|
|
catalogList: [],
|
|
|
|
|
is_search:false, // 是否到期 预警提醒的编辑
|
|
|
|
|
is_search:false, // 是否到期 预警提醒的编辑
|
|
|
|
|
allArea:false,
|
|
|
|
|
statusList: [{
|
|
|
|
|
id: 0,
|
|
|
|
|
name: '正常'
|
|
|
|
|
@ -225,7 +229,20 @@
|
|
|
|
|
this.stateObj = state.state
|
|
|
|
|
this.uploadOther.token = getToken();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
methods: {
|
|
|
|
|
changeAllArea(e){
|
|
|
|
|
console.log(e)
|
|
|
|
|
if(e){
|
|
|
|
|
|
|
|
|
|
let arr = []
|
|
|
|
|
this.areaList.map(item=>{
|
|
|
|
|
arr.push(item.id)
|
|
|
|
|
})
|
|
|
|
|
this.form.area_ids = arr
|
|
|
|
|
}else{
|
|
|
|
|
this.form.area_ids = []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
changeEditor(e) {
|
|
|
|
|
this.form.content = e
|
|
|
|
|
},
|
|
|
|
|
@ -344,11 +361,14 @@
|
|
|
|
|
console.log("res---", res)
|
|
|
|
|
this.form = this.base.requestToForm(res, this.form)
|
|
|
|
|
console.log("form---", this.form)
|
|
|
|
|
this.checkArr = res.catalog_id ? [res.catalog_id] : [],
|
|
|
|
|
this.form.area_ids = res.area_ids ? res.area_ids : []
|
|
|
|
|
this.checkArr = res.catalog_id ? [res.catalog_id] : []
|
|
|
|
|
this.form.area_ids = res.area_ids ? res.area_ids : []
|
|
|
|
|
if(this.form.area_ids.length===this.areaList.length){
|
|
|
|
|
this.allArea = true
|
|
|
|
|
}
|
|
|
|
|
this.form.tag_ids = res.tag_ids ? res.tag_ids : []
|
|
|
|
|
this.form.files = res.files ? res.files : [],
|
|
|
|
|
this.form.status = res.status ? res.status : 0
|
|
|
|
|
this.form.files = res.files ? res.files : []
|
|
|
|
|
this.form.status = res.status ? res.status : 0
|
|
|
|
|
// 是否已延续 如果已延续,则不能更改状态
|
|
|
|
|
if (this.form.status === 2) {
|
|
|
|
|
this.is_next = true
|
|
|
|
|
@ -384,7 +404,8 @@
|
|
|
|
|
this.showTinymce = false
|
|
|
|
|
this.checkArr = []
|
|
|
|
|
this.filesList = []
|
|
|
|
|
this.is_next = false
|
|
|
|
|
this.is_next = false
|
|
|
|
|
this.allArea = false
|
|
|
|
|
this.form = {
|
|
|
|
|
title: '',
|
|
|
|
|
status: 0,
|
|
|
|
|
|