|
@@ -67,7 +67,7 @@
|
|
|
</view>
|
|
|
<view class="content-area-item mt10 p10 bg-white">
|
|
|
<view class="font14 weight mb10">图片上传</view>
|
|
|
- <oa-upload :uploadCount="5" :uploadList="state.form.reportFile" :uploadListSrc="'url'" @uploadSuccessChange="uploadSuccessChange" @uploadDeleteChange="uploadDeleteChange"></oa-upload>
|
|
|
+ <oa-upload :uploadCount="5" :uploadList="state.form.reportImage" :uploadListSrc="'url'" @uploadSuccessChange="uploadSuccessChange" @uploadDeleteChange="uploadDeleteChange"></oa-upload>
|
|
|
</view>
|
|
|
|
|
|
<view class="content-area-item mt10 p10 bg-white">
|
|
@@ -223,7 +223,7 @@ const state = reactive({
|
|
|
sendDingTalk: 1,
|
|
|
isRegularlySend: 0,
|
|
|
timingTime: null,
|
|
|
- reportFile: [],
|
|
|
+ reportImage: [],
|
|
|
},
|
|
|
projectsCheck: [],
|
|
|
projectsList: [],
|
|
@@ -327,7 +327,7 @@ function modalConfirm() {
|
|
|
* @图片上传成功回调
|
|
|
*/
|
|
|
function uploadSuccessChange(e) {
|
|
|
- state.form.reportFile.push({
|
|
|
+ state.form.reportImage.push({
|
|
|
name: e.name,
|
|
|
url: e.url,
|
|
|
})
|
|
@@ -337,7 +337,7 @@ function modalConfirm() {
|
|
|
* @图片删除回调
|
|
|
*/
|
|
|
function uploadDeleteChange(e) {
|
|
|
- state.form.reportFile = e;
|
|
|
+ state.form.reportImage = e;
|
|
|
realTimeSaving()
|
|
|
}
|
|
|
|
|
@@ -351,7 +351,7 @@ function handleSubmit() {
|
|
|
state.form.workContents.forEach((e) => {
|
|
|
e.workTime = Number(e.workTime);
|
|
|
});
|
|
|
- state.form.reportFile=JSON.stringify(state.form.reportFile)
|
|
|
+ state.form.reportImage=JSON.stringify(state.form.reportImage)
|
|
|
projectApi()
|
|
|
.ReportInsert(state.form)
|
|
|
.then((requset) => {
|
|
@@ -361,10 +361,10 @@ function handleSubmit() {
|
|
|
state.form.coordinateWork = null;
|
|
|
state.form.isRegularlySend = 0;
|
|
|
state.form.timingTime = null;
|
|
|
- state.form.reportFile=[];
|
|
|
+ state.form.reportImage=[];
|
|
|
// storageSystem.set("project", state);
|
|
|
}).catch((err) => {
|
|
|
- state.form.reportFile=JSON.parse(state.form.reportFile)
|
|
|
+ state.form.reportImage=JSON.parse(state.form.reportImage)
|
|
|
});;
|
|
|
}
|
|
|
|
|
@@ -374,13 +374,13 @@ watch(
|
|
|
state.userList = [];
|
|
|
state.projectsCheck = [];
|
|
|
state.projectsList = [];
|
|
|
- state.form.reportFile = [];
|
|
|
+ state.form.reportImage = [];
|
|
|
|
|
|
Object.keys(props.projectList).forEach((key) => {
|
|
|
state.form[key] = props.projectList[key];
|
|
|
});
|
|
|
|
|
|
- state.form.reportFile=state.form.reportFile?JSON.parse(state.form.reportFile):[];
|
|
|
+ state.form.reportImage=state.form.reportImage?JSON.parse(state.form.reportImage):[];
|
|
|
state.form.workContents.forEach((e) => {
|
|
|
state.projectsCheck.push(e.projectId);
|
|
|
});
|