需求修改

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

View File

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