|
|
|
@ -31,8 +31,8 @@
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;">*</span>开始日期:
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;">*</span>开始日期:
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<el-date-picker :disabled="is_search" v-model="form.date" style="width:100%" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
|
|
|
<el-date-picker :disabled="is_search" v-model="form.date" style="width:100%" format="yyyy-MM-dd"
|
|
|
|
type="date" placeholder="选择日期">
|
|
|
|
value-format="yyyy-MM-dd" type="date" placeholder="选择日期">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -43,8 +43,8 @@
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>结束日期:
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>结束日期:
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<el-date-picker :disabled="is_search" v-model="form.end_date" style="width:100%" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
|
|
|
<el-date-picker :disabled="is_search" v-model="form.end_date" style="width:100%" format="yyyy-MM-dd"
|
|
|
|
type="date" placeholder="选择日期">
|
|
|
|
value-format="yyyy-MM-dd" type="date" placeholder="选择日期">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -58,8 +58,7 @@
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-checkbox :disabled="is_search" @change="changeAllArea" v-model="allArea">全部区域</el-checkbox>
|
|
|
|
<el-checkbox :disabled="is_search" @change="changeAllArea" v-model="allArea">全部区域</el-checkbox>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<el-select :disabled="is_search" style="width:100%" v-model="form.area_ids" multiple
|
|
|
|
<el-select :disabled="is_search" style="width:100%" v-model="form.area_ids" multiple placeholder="请选择">
|
|
|
|
placeholder="请选择">
|
|
|
|
|
|
|
|
<el-option v-for="item in areaList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
<el-option v-for="item in areaList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
@ -86,8 +85,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="xy-table-item-content" style="height:150px;overflow: scroll;">
|
|
|
|
<div class="xy-table-item-content" style="height:150px;overflow: scroll;">
|
|
|
|
<el-tree v-if="isShow" :default-checked-keys="checkArr" :check-strictly="true" @check="getSelectedNodes"
|
|
|
|
<el-tree v-if="isShow" :default-checked-keys="checkArr" :check-strictly="true" @check="getSelectedNodes"
|
|
|
|
:data="catalogList" show-checkbox node-key="id" ref="tree" highlight-current
|
|
|
|
:data="catalogList" show-checkbox node-key="id" ref="tree" highlight-current :props="defaultProps">
|
|
|
|
:props="defaultProps">
|
|
|
|
|
|
|
|
</el-tree>
|
|
|
|
</el-tree>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -98,10 +96,12 @@
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>附件:
|
|
|
|
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>附件:
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<el-upload :disabled="is_search" :action="action" class='upload-demo' multiple :file-list="filesList" ref="pictureUpload"
|
|
|
|
<el-upload :disabled="is_search" :action="action" class='upload-demo' multiple :file-list="filesList"
|
|
|
|
:auto-upload="true" :data="uploadOther" :on-success="handlesuccess" :on-remove="handleRemove">
|
|
|
|
ref="pictureUpload" :auto-upload="true" :data="uploadOther" :on-progress="handleProgress"
|
|
|
|
|
|
|
|
:on-success="handlesuccess" :on-remove="handleRemove">
|
|
|
|
<el-button v-if="!is_search" size="small" type="primary">点击上传</el-button>
|
|
|
|
<el-button v-if="!is_search" size="small" type="primary">点击上传</el-button>
|
|
|
|
</el-upload>
|
|
|
|
</el-upload>
|
|
|
|
|
|
|
|
<el-progress v-if="showProgress" :percentage="uploadProgress"></el-progress>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
@ -112,7 +112,8 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<!-- <wangEditor :isShow="isShow && !is_search" v-show="showTinymce" :value="form.content" @change="changeEditor"></wangEditor> -->
|
|
|
|
<!-- <wangEditor :isShow="isShow && !is_search" v-show="showTinymce" :value="form.content" @change="changeEditor"></wangEditor> -->
|
|
|
|
<my-tinymce v-if="isShow && !is_search && showTinymce" @input="changeEditor" :value="form.content"></my-tinymce>
|
|
|
|
<my-tinymce v-if="isShow && !is_search && showTinymce" @input="changeEditor"
|
|
|
|
|
|
|
|
:value="form.content"></my-tinymce>
|
|
|
|
<div v-if="is_search" v-html="form.content"></div>
|
|
|
|
<div v-if="is_search" v-html="form.content"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -160,15 +161,17 @@
|
|
|
|
showTinymce: false,
|
|
|
|
showTinymce: false,
|
|
|
|
is_next: false, // 是否 可以延续
|
|
|
|
is_next: false, // 是否 可以延续
|
|
|
|
catalogList: [],
|
|
|
|
catalogList: [],
|
|
|
|
is_search:false, // 是否到期 预警提醒的编辑
|
|
|
|
is_search: false, // 是否到期 预警提醒的编辑
|
|
|
|
allArea:false,
|
|
|
|
allArea: false,
|
|
|
|
|
|
|
|
showProgress:false,
|
|
|
|
|
|
|
|
uploadProgress:0,
|
|
|
|
statusList: [{
|
|
|
|
statusList: [{
|
|
|
|
id: 0,
|
|
|
|
id: 0,
|
|
|
|
name: '正常'
|
|
|
|
name: '正常'
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
id: 3,
|
|
|
|
id: 3,
|
|
|
|
name: '已结束'
|
|
|
|
name: '已结束'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
id: 1,
|
|
|
|
id: 1,
|
|
|
|
name: '已到期'
|
|
|
|
name: '已到期'
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
@ -230,16 +233,16 @@
|
|
|
|
this.uploadOther.token = getToken();
|
|
|
|
this.uploadOther.token = getToken();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
changeAllArea(e){
|
|
|
|
changeAllArea(e) {
|
|
|
|
console.log(e)
|
|
|
|
console.log(e)
|
|
|
|
if(e){
|
|
|
|
if (e) {
|
|
|
|
|
|
|
|
|
|
|
|
let arr = []
|
|
|
|
let arr = []
|
|
|
|
this.areaList.map(item=>{
|
|
|
|
this.areaList.map(item => {
|
|
|
|
arr.push(item.id)
|
|
|
|
arr.push(item.id)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.form.area_ids = arr
|
|
|
|
this.form.area_ids = arr
|
|
|
|
}else{
|
|
|
|
} else {
|
|
|
|
this.form.area_ids = []
|
|
|
|
this.form.area_ids = []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -253,7 +256,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getSelectedNodes(data, node) {
|
|
|
|
getSelectedNodes(data, node) {
|
|
|
|
console.log("data", data)
|
|
|
|
console.log("data", data)
|
|
|
|
if(data.children && data.children.length>0){
|
|
|
|
if (data.children && data.children.length > 0) {
|
|
|
|
this.$Message.warning('当前节点不可选择')
|
|
|
|
this.$Message.warning('当前节点不可选择')
|
|
|
|
this.form.catalog_name = ''
|
|
|
|
this.form.catalog_name = ''
|
|
|
|
this.form.catalog_id = ''
|
|
|
|
this.form.catalog_id = ''
|
|
|
|
@ -290,6 +293,10 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.filesList = fileList
|
|
|
|
this.filesList = fileList
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
handleProgress(event, file, fileList) {
|
|
|
|
|
|
|
|
this.showProgress = true;
|
|
|
|
|
|
|
|
this.uploadProgress = event.percent;
|
|
|
|
|
|
|
|
},
|
|
|
|
clickSubmit(bol) {
|
|
|
|
clickSubmit(bol) {
|
|
|
|
this.$refs.dialog.submit()
|
|
|
|
this.$refs.dialog.submit()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -301,8 +308,8 @@
|
|
|
|
this.$refs.addRecordLink.setCheck(this.form.catalog_id)
|
|
|
|
this.$refs.addRecordLink.setCheck(this.form.catalog_id)
|
|
|
|
this.$refs.addRecordLink.isShow = true
|
|
|
|
this.$refs.addRecordLink.isShow = true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
saveLink(e,id) {
|
|
|
|
saveLink(e, id) {
|
|
|
|
console.log("e", e,id)
|
|
|
|
console.log("e", e, id)
|
|
|
|
if (e) {
|
|
|
|
if (e) {
|
|
|
|
this.is_next = true
|
|
|
|
this.is_next = true
|
|
|
|
this.form.next_link_id = id
|
|
|
|
this.form.next_link_id = id
|
|
|
|
@ -363,7 +370,7 @@
|
|
|
|
console.log("form---", this.form)
|
|
|
|
console.log("form---", this.form)
|
|
|
|
this.checkArr = res.catalog_id ? [res.catalog_id] : []
|
|
|
|
this.checkArr = res.catalog_id ? [res.catalog_id] : []
|
|
|
|
this.form.area_ids = res.area_ids ? res.area_ids : []
|
|
|
|
this.form.area_ids = res.area_ids ? res.area_ids : []
|
|
|
|
if(this.form.area_ids.length===this.areaList.length){
|
|
|
|
if (this.form.area_ids.length === this.areaList.length) {
|
|
|
|
this.allArea = true
|
|
|
|
this.allArea = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.form.tag_ids = res.tag_ids ? res.tag_ids : []
|
|
|
|
this.form.tag_ids = res.tag_ids ? res.tag_ids : []
|
|
|
|
@ -406,6 +413,8 @@
|
|
|
|
this.filesList = []
|
|
|
|
this.filesList = []
|
|
|
|
this.is_next = false
|
|
|
|
this.is_next = false
|
|
|
|
this.allArea = false
|
|
|
|
this.allArea = false
|
|
|
|
|
|
|
|
this.showProgress = false;
|
|
|
|
|
|
|
|
this.uploadProgress = 0;
|
|
|
|
this.form = {
|
|
|
|
this.form = {
|
|
|
|
title: '',
|
|
|
|
title: '',
|
|
|
|
status: 0,
|
|
|
|
status: 0,
|
|
|
|
|