Commit dce62d39 authored by 黄奎's avatar 黄奎

页面修改

parent 43421509
......@@ -335,7 +335,7 @@
v-model="addMsg3.OtherContent" :rows="5"></el-input>
<q-btn color="accent" size="sm" style="float:right;margin-top:10px;" @click="saveJiaojie" label="保存" />
</div>
<div slot="reference" class="addSche" @click="clearAddMsg3" v-if="workAuthObj.isShowAdd">
<div slot="reference" class="addSche" @click="clearAddMsg2" v-if="workAuthObj.isShowAdd">
<i class="iconfont icon-img_haha"></i>
</div>
</el-popover>
......@@ -395,7 +395,6 @@
import {
UploadSelfFile
} from '../../api/common/common'
export default {
props: {
saveObj: {
......@@ -409,8 +408,6 @@
},
data() {
return {
dataList: {},
tufaVisible: false,
HandoverIndex: 0, //交接事项索引
HandoverObj: {}, //交接事项对象
EmergenciesIndex: 0, //突发事项索引
......@@ -437,21 +434,11 @@
OtherContent: "", //突发事项、工作交接(值班类型为2.3是使用)内容
OtherRemark: "", //突发事项、工作交接(值班类型为2.3是使用)备注
},
uploadDisabled: false,
logoId: "1", //专区logo id
dialogVisible: false,
fileList: [],
ruleForm: {
dialogImageUrl: "1", //专区logo 上传到后台之后,后台会返回一个id,只需要给后台传id,但是点击编辑的时候后台返回的是http地址
},
fileList: [], //文件数组
fileListOne: [], //突发新增图片数组
fileListTwo: [], //突发修改图片数组
fileListThree: [], //交接说明图片数组
fileListFour: [], //交接修改图片数组
WorkContent: '',
isShowSure: false, //是否显示确认完成按钮
//是否显示工作内容相关按钮
workAuthObj: {
......@@ -479,7 +466,6 @@
deep: true
},
},
methods: {
//初始化权限信息
initAuth() {
......@@ -563,9 +549,6 @@
}
})
},
getWorkContnt(obj) {
this.WorkContent = obj.WorkContent;
},
//保存工作清单
saveOrder(type) {
var saveWorkMsg = {
......@@ -580,7 +563,6 @@
if (type == 2) {
saveWorkMsg.WorkContent = this.WorkContent;
}
SetDutyContent(saveWorkMsg).then(res => {
this.isShowSure = false;
this.$emit('refreshPage');
......@@ -627,8 +609,6 @@
this.$refs.hengLine.click();
})
},
//删除交接新增图片
jiaojieRemoveAdd(file, fileList) {
this.fileListThree.forEach((item, index) => {
......@@ -641,9 +621,7 @@
this.addMsg3.FileList.splice(index, 1)
}
})
},
//删除突发新增图片
handleRemoveAdd(file, fileList) {
this.fileListOne.forEach((item, index) => {
......@@ -657,7 +635,6 @@
}
})
},
//删除突发编辑图片
handleRemoveEdit(file, fileList) {
this.fileListTwo.forEach((item, index) => {
......@@ -693,7 +670,7 @@
}
})
},
//
//交接修改
jiaojieEdit(files) {
UploadSelfFile('Attachment', files.file, res => {
if (res.Code == 1) {
......@@ -704,10 +681,8 @@
}
})
},
//修改突发
EditTufa(obj) {
console.log(obj, 'obj');
this.addMsg2.OtherContent = obj.OtherContent;
this.addMsg2.FileList = obj.FileList;
this.fileListTwo = [];
......@@ -718,7 +693,6 @@
})
},
EditJiaojie(obj) {
console.log(obj, 'objjjj');
this.addMsg3.OtherContent = obj.OtherContent;
this.addMsg3.FileList = obj.FileList;
this.fileListFour = [];
......@@ -730,6 +704,14 @@
},
//删除突发
delTufa() {
this.$q.dialog({
title: '删除提示',
message: "是否要删除此突发事项?",
cancel: true,
persistent: true,
ok: "确定",
cancel: "取消",
}).onOk(() => {
this.$nextTick(() => {
var Obj = this.saveObj.EmergenciesList[this.EmergenciesIndex];
let msg = {
......@@ -743,14 +725,26 @@
message: res.Message,
position: 'top'
})
this.EmergenciesIndex = 0;
this.EmergenciesObj={};
this.EmergenciesMove(2);
this.$emit('refreshPage');
this.$forceUpdate();
})
})
}).onCancel(() => {
});
},
//删除交接
delJiaojie() {
this.$q.dialog({
title: '删除提示',
message: "是否要删除此交接事项?",
cancel: true,
persistent: true,
ok: "确定",
cancel: "取消",
}).onOk(() => {
this.$nextTick(() => {
var Obj = this.saveObj.HandoverList[this.HandoverIndex];
let msg = {
......@@ -764,23 +758,25 @@
message: res.Message,
position: 'top'
})
this.HandoverIndex = 0;
this.HandoverObj={};
this.HandoverMove(2);
this.$emit('refreshPage');
this.$forceUpdate();
})
})
}).onCancel(() => {
});
},
//清除addmsg2
//清除addmsg
clearAddMsg2() {
this.addMsg2.OtherContent = '';
this.addMsg2.FileList = [];
this.fileListOne = [];
},
clearAddMsg3() {
this.addMsg3.OtherContent = '';
this.addMsg3.FileList = [];
this.fileListThree = [];
}
},
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment