Commit dce62d39 authored by 黄奎's avatar 黄奎

页面修改

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