需求修改

This commit is contained in:
a0049873 2022-12-13 11:55:23 +08:00
parent 95252d1f49
commit 5ad71c3ef1
2 changed files with 12 additions and 10 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-09 15:41:19
* @LastEditors: Light
* @LastEditTime: 2022-11-28 17:05:33
* @LastEditTime: 2022-12-13 11:38:48
* @Description: 上传组件
-->
<template>
@ -56,7 +56,8 @@
}
const beforeUpload = (file) => {
console.log(file)
const isLt10M = file.size / 1024 / 1024 < 100
// const isLt10M = file.size / 1024 / 1024 < 100
const isLt10M = file.size / 1024 / 1024 < 1
let flag
console.log(props.type)
if (props.type === '图片') {

View File

@ -372,19 +372,20 @@
let _postData = JSON.parse(JSON.stringify(formName))
_postData.detailsField = detailsField
if (id.value) {
_postData.id = id.value
updateDemandForm(_postData).then((upres) => {
if (upres.data.code == 0) {
relaunch({ data: _postData, taskId: taskId.value }).then(
(res) => {
console.log('驳回================>', res)
// if (res.data.code == 0) {
// message.success('')
// window.setTimeout(() => {
// window.close()
// }, 1000)
// } else {
// message.error('')
// }
if (res.data.code == 0) {
message.success('重新发起流程成功!')
window.setTimeout(() => {
window.close()
}, 1000)
} else {
message.error('重新发起流程失败!')
}
}
)
} else {