Commit bdb33035 by xiexiaoqin

对接口

parent bb81785e
.desc {
color: rgba(10, 10, 10, 1);
font-size: 32rpx;
line-height: 48rpx;
margin-top: 10rpx;
}
.task-list { .task-list {
border: 1rpx solid rgba(245, 246, 247, 1); border: 1rpx solid rgba(245, 246, 247, 1);
border-radius: 16rpx; border-radius: 16rpx;
...@@ -13,6 +20,10 @@ ...@@ -13,6 +20,10 @@
height: 64rpx; height: 64rpx;
} }
.file-box-close {
padding-right: 70rpx;
}
.file-box>.file-icon { .file-box>.file-icon {
position: absolute; position: absolute;
width: 50rpx; width: 50rpx;
...@@ -29,6 +40,14 @@ ...@@ -29,6 +40,14 @@
line-height: 38rpx; line-height: 38rpx;
} }
.file-box>.iconfont {
font-size: 40rpx;
color: rgba(25, 31, 37, 0.4);
position: absolute;
right: 0;
top: 10rpx;
}
.file-box>.file-title>text:first-child { .file-box>.file-title>text:first-child {
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
...@@ -46,7 +65,8 @@ ...@@ -46,7 +65,8 @@
} }
.file-box-mask { .file-box-mask {
background: rgba(25, 31, 37, 0.12) background: rgba(10, 10, 10, 0.04);
position: relative;
} }
.btns-pop { .btns-pop {
...@@ -75,7 +95,7 @@ ...@@ -75,7 +95,7 @@
.btns-pop .triangle { .btns-pop .triangle {
position: absolute; position: absolute;
bottom: -28rpx; bottom: -31rpx;
width: 0; width: 0;
left: 50%; left: 50%;
margin-left: -16rpx; margin-left: -16rpx;
......
<view class="task-list"> <view class="{{fileView.logId == logId ? 'file-box-mask' : ''}}" data-logId="{{fileView.logId}}" catchLongTap="showOperate">
<view class="file-box {{show ? 'file-box-mask' : ''}}" a:for="{{fileList}}" data-data="{{item}}" onTap="preview" onLongTap="showOperate"> <view class="desc" meeta:if='{{fileView.description}}'>
{{fileView.description}}
</view>
<view class="task-list" a:if="{{fileView.fileInfos && fileView.fileInfos.length > 0}}">
<view class="file-box {{isCanDelete ? 'file-box-close': ''}}" a:for="{{ fileView.fileInfos}}" onTap="preview" data-file="{{item}}">
<view class="file-icon {{item.fileType}}"></view> <view class="file-icon {{item.fileType}}"></view>
<view class="file-title"> <view class="file-title">
<text>{{item.fileName.slice(0, item.fileName.length - 5)}}</text> <text>{{item.fileName.slice(0, item.fileName.length - 5)}}</text>
<text>{{item.fileName.slice(-5)}}</text></view> <text>{{item.fileName.slice(-5)}}</text></view>
<view class="file-size">{{(item.fileSize/1024/1024).toFixed(2)}}KB</view> <view class="file-size">{{(item.fileSize/1024/1024).toFixed(2)}}KB</view>
<view class="btns-pop" a:if="{{show}}"> <view a:if="{{isCanDelete}}" class="iconfont iconicon_noAgreed1" catchTap="removeFile" data-id="{{item.fileId}}"></view>
<view class="edit" catchTap="updateFile" data-file="{{item}}"> </view>
</view>
<view class="btns-pop" a:if="{{fileView.logId == logId}}">
<view class="edit" catchTap="updateFile" data-fileView="{{fileView}}">
编辑 编辑
</view> </view>
<view catchTap="deleteFile" data-file="{{item}}"> <view catchTap="deleteFile" data-id="{{fileView.id}}">
删除 删除
</view> </view>
<view class="triangle"></view> <view class="triangle"></view>
</view> </view>
</view>
</view> </view>
\ No newline at end of file
Component({ import create from 'dd-store';
import pageStore from '../../pages/meetingDetail/store';
import { previewPermissions } from '../../api/request.js'
create.Component({
store: pageStore,
mixins: [], mixins: [],
data: { data: {
show: false logId: '' //store
}, },
props: { props: {
isCanEdit: true isCanEdit: true,
isCanDelete: false
}, },
didMount() { didMount() {
}, },
...@@ -13,21 +19,41 @@ Component({ ...@@ -13,21 +19,41 @@ Component({
}, },
didUnmount() { }, didUnmount() { },
methods: { methods: {
//移除文件
removeFile(e) {
const fileInfos = this.store.data.fileInfos.filter(it => it.fileId !== e.target.dataset.id);
this.store.data.fileInfos = fileInfos;
this.update();
},
//预览文件
preview(e) { preview(e) {
const file = e.target.dataset.file
const data = {
ddUserId: getApp().globalData.userid,
type: 'download',
fileIds: file.fileId,
projectName: 'MING_MEETING'
}
previewPermissions(data).then(res => {
dd.previewFileInDingTalk({ dd.previewFileInDingTalk({
corpId: dd.corpId, corpId: dd.corpId,
...e.target.dataset.file spaceId: res.data.data,
fileId: file.fileId,
fileName: file.fileName,
fileSize: file.fileSize,
fileType: file.fileType
})
}) })
}, },
showOperate() { //显示操作框
showOperate(e) {
if (this.props.isCanEdit) { if (this.props.isCanEdit) {
this.setData({ this.store.data.logId = e.target.dataset.logId;
show: true this.update();
})
} }
}, },
//删除动态下的文件和描述
deleteFile(e) { deleteFile(e) {
// let data = event.target.dataset.file.id
dd.confirm({ dd.confirm({
title: '删除文件', title: '删除文件',
content: '确认删除文件吗?', content: '确认删除文件吗?',
...@@ -35,16 +61,22 @@ Component({ ...@@ -35,16 +61,22 @@ Component({
cancelButtonText: '取消', cancelButtonText: '取消',
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
this.props.deleteTaskFile() this.props.onDeleteMeetingFile(e.target.dataset.id)
} }
} }
}) })
}, },
//去编辑文件页面
updateFile(e) { updateFile(e) {
this.setData({ this.setData({
show: false logId: ''
}) });
dd.navigateTo({ url: `./../editFile/editFile?file=${JSON.stringify(e.target.dataset.file)}` }) const { fileInfos, description } = e.target.dataset.fileView;
this.store.data.oldFileInfos = JSON.stringify(fileInfos);
this.store.data.oldDescription = description;
this.store.data.fileInfos = fileInfos;
this.store.data.description = e.target.dataset.fileView.description;
dd.navigateTo({ url: `./../uploadFile/uploadFile?action=update` })
} }
}, },
}); });
...@@ -30,27 +30,27 @@ create.Component({ ...@@ -30,27 +30,27 @@ create.Component({
// this.props.onCheckChange({ status, id }); // this.props.onCheckChange({ status, id });
}, },
inputChange(e) { // inputChange(e) {
const value = e.detail.value;
if (value) {
this.store.data.currentTask.taskInfos = { taskTitle: value };
this.update();
}
},
// inputChange: debounce(function (e) {
// const value = e.detail.value; // const value = e.detail.value;
// if (value) { // if (value) {
// this.store.data.currentTask.taskInfos = { taskTitle: value }; // this.store.data.currentTask.taskInfos = { taskTitle: value };
// this.update(); // this.update();
// //更新要调用更新接口
// // if (this.props.action === 'update') {
// // if (value !== this.props.oldTask.taskInfos.taskTitle) {
// // this.store.data.isEditTaskTitle = true;
// // // this.props.onInputChange(value);
// // }
// // }
// } // }
// }, 1000), // },
inputChange: debounce(function (e) {
const value = e.detail.value;
if (value) {
this.store.data.currentTask.taskInfos = { taskTitle: value };
this.update();
//更新要调用更新接口
// if (this.props.action === 'update') {
// if (value !== this.props.oldTask.taskInfos.taskTitle) {
// this.store.data.isEditTaskTitle = true;
// // this.props.onInputChange(value);
// }
// }
}
}, 1000),
handleExcutorChange(e) { handleExcutorChange(e) {
//执行人页面删除执行人 //执行人页面删除执行人
if (e.target.dataset.acceptorId) { if (e.target.dataset.acceptorId) {
......
...@@ -22,12 +22,12 @@ page { ...@@ -22,12 +22,12 @@ page {
padding-left: 104rpx; padding-left: 104rpx;
} }
.compose-column .desc { /* .compose-column .desc {
color: rgba(25, 31, 37, 1); color: rgba(10, 10, 10, 1);
font-size: 32rpx; font-size: 32rpx;
line-height: 48rpx; line-height: 48rpx;
margin-top: 10rpx; margin-top: 10rpx;
} } */
.compose-column>.avater { .compose-column>.avater {
width: 80rpx; width: 80rpx;
......
<import src="../../template/avater/index.axml"/> <import src="../../template/avater/index.axml"/>
<view class="list"> <view class="list" onTap="hideFileOperate">
<block a:for="{{affairList}}"> <block a:for="{{affairList}}">
<view a:if="{{item.category == '3' && item.taskViewList}}" class='compose-column'> <view a:if="{{item.category == '3' && item.taskViewList}}" class='compose-column'>
<view class="avater task-avater"> <view class="avater task-avater">
...@@ -11,16 +11,13 @@ ...@@ -11,16 +11,13 @@
</view> </view>
<task-list onShowPop="showPop" onSetCurrentTask="setCurrentTask" taskList="{{item.taskViewList}}" onChangeTaskStatusOnList="changeTaskStatusOnList"/> <task-list onShowPop="showPop" onSetCurrentTask="setCurrentTask" taskList="{{item.taskViewList}}" onChangeTaskStatusOnList="changeTaskStatusOnList"/>
</view> </view>
<view a:if="{{item.logType == '2' && item.fileView.fileInfos}}" class='compose-column'> <view a:if="{{item.category == '2' && item.fileView && item.fileView.fileInfos && item.fileView.fileInfos.length > 0 }}" class='compose-column'>
<template is="avater" data="{{item: item.fileView.creatorInfo}}"/> <template is="avater" data="{{item: item.fileView.creatorInfo}}"/>
<view class="title"> <view class="title">
{{item.fileView.creatorInfo.username}} {{item.fileView.creatorInfo.username}}
<text>{{item.createTime}}</text> <text>{{item.createTime}}</text>
</view> </view>
<view class="desc"> <file-list fileView="{{item.fileView}}" onDeleteMeetingFile="deleteMeetingFile"/>
{{item.description}}
</view>
<file-list fileList="{{item.fileInfos}}" onReload="reload"/>
</view> </view>
<view a:if="{{item.content}}" class='simple-column'>{{item.content}}{{item.createTime}}</view> <view a:if="{{item.content}}" class='simple-column'>{{item.content}}{{item.createTime}}</view>
</block> </block>
......
...@@ -13,6 +13,17 @@ create.Page({ ...@@ -13,6 +13,17 @@ create.Page({
type: '' type: ''
} }
}, },
onShow() {
dd.alert({
content: 'onshow'
})
if (this.store.data.isNeedReloadList) {
dd.alert({
content: 'reload'
})
this.reload(this.data.scheduleItem.id);
}
},
onLoad(query) { onLoad(query) {
this.setData({ this.setData({
scheduleItem: JSON.parse(query.scheduleItem), scheduleItem: JSON.parse(query.scheduleItem),
...@@ -71,6 +82,10 @@ create.Page({ ...@@ -71,6 +82,10 @@ create.Page({
// this.$store.$data.participatorUserId = participatorUserId // this.$store.$data.participatorUserId = participatorUserId
// this.$store.update(); // this.$store.update();
// this.conflictPeople() // this.conflictPeople()
this.store.data.scheduleId = res.data.data.id;
this.store.data.groupId = res.data.data.groupId;
this.update();
this.reload(this.data.scheduleItem.id); this.reload(this.data.scheduleItem.id);
} }
}) })
...@@ -80,7 +95,7 @@ create.Page({ ...@@ -80,7 +95,7 @@ create.Page({
getMeetingRoomAffairs(id).then(res => { getMeetingRoomAffairs(id).then(res => {
const affairList = res.data.data; const affairList = res.data.data;
const newAffairList = affairList.map(it => { const newAffairList = affairList.map(it => {
if (it.logType == '2') { if (it.category == '2' && it.fileView) {
if (it.fileView.creatorInfo) { if (it.fileView.creatorInfo) {
it.fileView.creatorInfo = JSON.parse(it.fileView.creatorInfo); it.fileView.creatorInfo = JSON.parse(it.fileView.creatorInfo);
} }
...@@ -176,10 +191,6 @@ create.Page({ ...@@ -176,10 +191,6 @@ create.Page({
}, },
// 添加文件 // 添加文件
addMeetingFile() { addMeetingFile() {
decodeURI.navagac
},
// 文件上传
addMeetingFile() {
let data = { let data = {
ddUserId: getApp().globalData.userid, ddUserId: getApp().globalData.userid,
type: 'add', type: 'add',
...@@ -187,13 +198,13 @@ create.Page({ ...@@ -187,13 +198,13 @@ create.Page({
} }
uploadPermissions(data).then(res => { uploadPermissions(data).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
const _that = this
dd.uploadAttachmentToDingTalk({ dd.uploadAttachmentToDingTalk({
image: { multiple: true, compress: true, max: 9, spaceId: res.data.data }, image: { multiple: true, compress: true, max: 9, spaceId: res.data.data },
space: { spaceId: res.data.data, compress: true, isCopy: 1, max: 9 }, space: { spaceId: res.data.data, compress: true, isCopy: 1, max: 9 },
types: ["photo", "camera", "space"], types: ["photo", "camera", "space"],
success: (res) => { success: (res) => {
dd.navigateTo({ url: `./../uploadFile/uploadFile?scheduleItem=${JSON.stringify(_that.data.scheduleItem)}&upLoadInfo=${encodeURIComponent(JSON.stringify(res))}` }) this.store.data.fileInfos = res.data;
dd.navigateTo({ url: `./../uploadFile/uploadFile` })
}, },
fail: (err) => { fail: (err) => {
} }
...@@ -201,13 +212,20 @@ create.Page({ ...@@ -201,13 +212,20 @@ create.Page({
} }
}) })
}, },
// 修改文件描述 //隐藏文件操作浮窗
updateMeetingFile() { hideFileOperate() {
this.store.data.logId = '';
this.update();
}, },
// 删除文件 // 删除文件
deleteMeetingFile() { deleteMeetingFile(id) {
this.updateTask({
"logType": "schedule_accessory_remove",
"resourceType": "accessory",
"id": id
}, () => {
this.reload(this.data.scheduleItem.id);
})
}, },
// 删除执行人 // 删除执行人
deleteTaskExcutor() { deleteTaskExcutor() {
......
{ {
"window": {
"title": "会议详情"
},
"usingComponents": { "usingComponents": {
"popup": "../../components/popup/index", "popup": "../../components/popup/index",
"task-list": "../../components/taskList/taskList", "task-list": "../../components/taskList/taskList",
......
...@@ -8,10 +8,14 @@ class Store { ...@@ -8,10 +8,14 @@ class Store {
taskStatus: '', taskStatus: '',
taskInfos: null taskInfos: null
}, },
// isAddAcceptorInfo: false, fileInfos: null,
// isDeleteAcceptorInfo: false, description: '',
oldFileInfos: '',
oldDescription: '',
scheduleId: '',
groupId: '',
isNeedReloadList: false, isNeedReloadList: false,
// isEditTaskTitle: false logId: ''
} }
} }
export default new Store() export default new Store()
\ No newline at end of file
@import "../../assests/font/iconfont.acss";
page { page {
background: #fff; background: #fff;
font-family: PingFangSC-Regular;
font-size: 34rpx;
color: #191F25;
padding-bottom: 180rpx;
}
.describe {
padding:32rpx 32rpx 0 32rpx;
}
.textarea {
padding-left: 0!important;
display: block;
}
.fileList {
margin-top: 32rpx;
padding: 0 32rpx;
display: flex;
justify-content: space-between;
}
.file {
background: #F6F7F8;
border-radius: 2rpx;
width: 634rpx;
height: 88rpx;
line-height: 88rpx;
display: flex;
overflow: hidden;
}
.fileimage {
flex: 0 0 58rpx;
width: 60rpx;
height: 72rpx;
background: url(../../assests/all.png) center /100% 100%;
margin: 8rpx 16rpx 8rpx 8rpx;
}
.fileName {
font-size: 26rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
.close { .uploadFile {
line-height: 88rpx; padding: 48rpx 48rpx 136rpx 48rpx;
font-size: 30rpx; box-sizing: border-box;
color: rgba(25, 31, 37, 0.40);
text-align: right;
} }
.add { .textarea {
padding: 0 32rpx; padding: 0;
margin-top: 40rpx; display: block;
height: 32rpx; margin-bottom: 32rpx;
line-height: 32rpx;
}
.icontianjia1 {
height: 100%;
display: inline-block;
vertical-align: middle;
line-height: 30rpx;
color: #3296fa;
margin-right: 16rpx;
} }
.addText { .addText {
height: 32rpx;
line-height: 32rpx; line-height: 32rpx;
font-size: 28rpx; font-size: 28rpx;
color: #3296FA; color: #3296FA;
} padding-left: 24rpx;
margin-top: 32rpx;
.save {
padding: 24rpx 34rpx;
position: fixed;
bottom: 0;
} }
.saveButton { .saveButton {
font-size: 36rpx; position: fixed;
width: 686rpx; bottom: 32rpx;
line-height: 90rpx; left: 0.32rem;
font-size: 32rpx;
width: calc(100% - 72rpx);
line-height: 72rpx;
text-align: center; text-align: center;
color: #fff; color: #fff;
background: #3296FA; background: rgba(234, 12, 40, 1);
border: 1rpx solid rgba(25, 31, 37, 0.12);
border-radius: 48rpx; border-radius: 48rpx;
} }
\ No newline at end of file
.pdf {
background: url(../../assests/pdf.png) center /100% 100%;
}
.image {
background: url(../../assests/image.png) center /100% 100%;
}
.docx {
background: url(../../assests/docx.png) center /100% 100%;
}
.mov {
background: url(../../assests/mp4.png) center /100% 100%;
}
.mp4 {
background: url(../../assests/mp4.png) center /100% 100%;
}
.ppt {
background: url(../../assests/ppt.png) center /100% 100%;
}
.pptx {
background: url(../../assests/ppt.png) center /100% 100%;
}
.pdf {
background: url(../../assests/pdf.png) center /100% 100%;
}
.xlsx {
background: url(../../assests/xlsx.png) center /100% 100%;
}
.zip {
background: url(../../assests/zip.png) center /100% 100%;
}
\ No newline at end of file
<view class="uploadFile"> <view class="uploadFile">
<view class="describe"> <view class="describe">
<textarea class="textarea" onInput="inputDes" placeholder="添加文件描述..." maxlength="-1" /> <textarea value="{{description}}" class="textarea" onInput="inputChange" placeholder="添加文件描述..." maxlength="-1" />
</view> </view>
<view class="fileList" a:for="{{upLoadInfo.data}}" onTap="preview" data-file="{{item}}"> <file-list fileView="{{{fileInfos: fileInfos}}}" isCanEdit="{{false}}" isCanDelete="{{true}}"/>
<view class="file"> <view class="addText" onTap="{{add}}">继续添加</view>
<view class="fileimage {{item.fileType==('png' || 'PNG'|| 'jpg' || 'svg' || 'jpeg' || 'JPG') ?'image': item.fileType}}"> </view>
</view> <view class="saveButton" onTap="saveUpload">
<view class="fileName">
{{item.fileName}}
</view>
</view>
<view class="close iconshanchu2 iconfont" data-item="{{item}}" onTap="close">
</view>
</view>
<view class="add" onTap="add">
<text class="icontianjia1 iconfont"></text>
<text class="addText">继续添加</text>
</view>
<view class="save">
<view class="saveButton" onTap="saveUpload">
保存 保存
</view>
</view>
</view> </view>
\ No newline at end of file
import create from 'dd-store' import create from 'dd-store'
import exampleStore from '/stores/exampleStore'
import { saveFileInfo, addSchedule, uploadPermissions, previewPermissions } from '../../api/request.js' import { saveFileInfo, addSchedule, uploadPermissions, previewPermissions } from '../../api/request.js'
import { throttle } from './../../utils/utils.js' import { throttle, debounce } from './../../utils/utils.js'
import pageStore from '../meetingDetail/store';
create.Page({ create.Page({
store: exampleStore, store: pageStore,
useAll: true,
data: { data: {
scheduleItem: '', fileInfos: null, //store
upLoadInfo: '', description: '',//store
descript: '' action: ''
}, },
onLoad(event) { onLoad(query) {
let scheduleItem = JSON.parse(event.scheduleItem) dd.setNavigationBar({
let upLoadInfo = JSON.parse(decodeURIComponent(event.upLoadInfo)) title: '添加会议文件'
});
// 编辑的时候传action=update
if (query) {
this.setData({ this.setData({
scheduleItem: scheduleItem, action: query.action
upLoadInfo: upLoadInfo });
})
dd.setNavigationBar({ dd.setNavigationBar({
title: '上传文件' title: '编辑会议文件'
}) });
}
}, },
onShow() { onShow() {
}, },
inputDes(event) { // inputDes(event) {
let value = event.detail.value // let value = event.detail.value
this.setData({ // this.setData({
descript: value // description: value
}) // })
// },
}, inputChange: debounce(function (e) {
close(event) { const value = e.detail.value;
let fileId = event.target.dataset.item.fileId if (value) {
this.data.upLoadInfo.data.forEach((item, index) => { this.store.data.description = value;
if (item.fileId == fileId) { this.update();
this.data.upLoadInfo.data.splice(index, 1)
return
} }
}) }, 1000),
this.setData({
upLoadInfo: this.data.upLoadInfo
})
},
add() { add() {
let data = { const data = {
ddUserId: getApp().globalData.userid, ddUserId: getApp().globalData.userid,
type: 'add', type: 'add',
projectName: 'MING_MEETING' projectName: 'MING_MEETING'
...@@ -56,10 +54,8 @@ create.Page({ ...@@ -56,10 +54,8 @@ create.Page({
space: { spaceId: res.data.data, compress: true, isCopy: 1, max: 9 }, space: { spaceId: res.data.data, compress: true, isCopy: 1, max: 9 },
types: ["photo", "camera", "space"], types: ["photo", "camera", "space"],
success: (res) => { success: (res) => {
_that.data.upLoadInfo.data.push(...res.data) _that.store.data.fileInfos.push(...res.data)
_that.setData({ _that.update();
upLoadInfo: _that.data.upLoadInfo
})
}, },
fail: (err) => { fail: (err) => {
} }
...@@ -67,53 +63,47 @@ create.Page({ ...@@ -67,53 +63,47 @@ create.Page({
} }
}) })
}, },
// 文件预览
preview(event) {
const _that = this
let file = event.target.dataset.file
let data = {
ddUserId: getApp().globalData.userid,
type: 'download',
fileIds: file.fileId,
projectName: 'MING_MEETING'
}
previewPermissions(data).then(res => {
dd.previewFileInDingTalk({
corpId: dd.corpId,
spaceId: res.data.data,
fileId: file.fileId,
fileName: file.fileName,
fileSize: file.fileSize,
fileType: file.fileType
})
})
},
// 保存的接口 // 保存的接口
saveUpload: throttle(function () { saveUpload: throttle(function () {
let data = { const { fileInfos, oldFileInfos, description, oldDescription } = this.store.data;
if (!fileInfos || (fileInfos && fileInfos.length == 0)) {
dd.showToast({
content: '请上传文件'
})
return;
}
//如果实际没有修改,不生成记录
if (this.data.action == 'update') {
if (oldFileInfos == JSON.stringify(fileInfos) && description == oldDescription) {
return dd.navigateBack()
}
}
const data = {
resourceType: 'accessory', resourceType: 'accessory',
creatorId: '2', creatorId: getApp().globalData.userid,
scheduleId: this.data.scheduleItem.id, category: '2',
scheduleId: this.store.data.scheduleId,
groupId: this.store.data.groupId,
uploader: getApp().globalData.userid, uploader: getApp().globalData.userid,
groupId: this.data.scheduleItem.groupId, creatorInfo: getApp().globalData.userInfo,
creatorInfo: JSON.stringify({
userId: getApp().globalData.userid,
username: getApp().globalData.name,
headUrl: getApp().globalData.avatar,
platform: 'dingtalk'
}),
thirdStoreTenant: 'dingTalk', thirdStoreTenant: 'dingTalk',
fileInfos: JSON.stringify(this.data.upLoadInfo.data), fileInfos: JSON.stringify(fileInfos),
description: this.data.descript, description: description,
logType: 'schedule_accessory_add' logType: 'schedule_accessory_add'
} }
if (this.data.action == 'update') {
data.logType = 'schedule_accessory_modify';
}
saveFileInfo(data).then(res => { saveFileInfo(data).then(res => {
dd.alert({ this.store.data.isNeedReloadList = true;
content: JSON.stringify(data) this.update();
}) dd.navigateBack()
dd.navigateBack({
delta: 1
})
}) })
}, 1000) }, 1000)
}); });
{} {
\ No newline at end of file "usingComponents": {
"file-list": "../../components/fileList/fileList"
}
}
\ No newline at end of file
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