Browse Source

更新表单提交

epdc-admin-dangqun
fengyu 3 years ago
parent
commit
5d25e18adf
  1. 16
      src/views/modules/events/item-reject-deal-detail-view.vue

16
src/views/modules/events/item-reject-deal-detail-view.vue

@ -119,6 +119,7 @@
:rules="dataRule"> :rules="dataRule">
<el-form-item label="处置部门" prop="handlerDeptIdRule"> <el-form-item label="处置部门" prop="handlerDeptIdRule">
<el-cascader <el-cascader
v-if="changeHandleShow"
ref="name" ref="name"
v-model="dataForm.handlerDeptIdRule" v-model="dataForm.handlerDeptIdRule"
:options="options" :options="options"
@ -395,6 +396,7 @@ export default {
idea: '', idea: '',
isWhistle: true, // isWhistle: true, //
isShowDeal: false, isShowDeal: false,
changeHandleShow:true,
checkParentName: '', checkParentName: '',
timeloading: true, timeloading: true,
disabledCategory: false, disabledCategory: false,
@ -607,6 +609,7 @@ export default {
this.dataForm.handlePeopleMobile = val this.dataForm.handlePeopleMobile = val
}, },
'postDataForm.handleCategoryShow': function (val) { 'postDataForm.handleCategoryShow': function (val) {
console.log("getCategory"+val)
if (this.typeKey == 'community_party') { if (this.typeKey == 'community_party') {
// //
if (val == 6) { if (val == 6) {
@ -647,6 +650,7 @@ export default {
} }
}, },
'postDataForm.handleCategory': function (val) { 'postDataForm.handleCategory': function (val) {
console.log("getCategory2"+val)
if (val === 1) { if (val === 1) {
this.deptResultDTOSVisible = false this.deptResultDTOSVisible = false
this.evaluateDeptDTOSVisible = false this.evaluateDeptDTOSVisible = false
@ -934,7 +938,8 @@ export default {
this.postDataForm.handlerDept = res.data.handlerDept this.postDataForm.handlerDept = res.data.handlerDept
this.postDataForm.handlerDeptId = res.data.handlerDeptId this.postDataForm.handlerDeptId = res.data.handlerDeptId
this.getHandleResultDTOS() this.getHandleResultDTOS();
this.postDataForm = res.data; this.postDataForm = res.data;
this.postDataForm.handlerDeptIdRule = res.data.handlerDeptId this.postDataForm.handlerDeptIdRule = res.data.handlerDeptId
@ -943,6 +948,8 @@ export default {
...this.dataForm, ...this.dataForm,
...res.data ...res.data
} }
this.dataForm.handlerDeptId = res.data.handlerDeptId
let imagesList =[]; let imagesList =[];
res.data.images.forEach(element => { res.data.images.forEach(element => {
@ -960,6 +967,12 @@ export default {
this.postDataForm.outHandleImagesPC = imagesList; this.postDataForm.outHandleImagesPC = imagesList;
this.postDataForm.outHandleImages = []; this.postDataForm.outHandleImages = [];
this.postDataForm.handleImages = []; this.postDataForm.handleImages = [];
this.postDataForm.handleCategory = this.postDataForm.handleCategoryShow;
this.changeHandleShow = false;
this.$nextTick(()=>{
this.changeHandleShow = true;
})
// this.changeHandleShow = true;
// this.postDataForm.handleImagesPC = [{name: 'food.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}, {name: 'food2.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}] // this.postDataForm.handleImagesPC = [{name: 'food.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}, {name: 'food2.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}]
this.dataForm.handleProgressResultDTOS.forEach((item, index, arr) => { this.dataForm.handleProgressResultDTOS.forEach((item, index, arr) => {
// if (index === arr.length - 1) { // if (index === arr.length - 1) {
@ -1070,7 +1083,6 @@ export default {
// //
dataFormSubmitHandle: debounce( dataFormSubmitHandle: debounce(
function (type = '') { function (type = '') {
debugger;
this.postDataForm.categoryId = this.categoryIds[ this.postDataForm.categoryId = this.categoryIds[
this.categoryIds.length - 1 this.categoryIds.length - 1
] ]

Loading…
Cancel
Save