Merge pull request 'fix : 修复附件上传' (#263) from dj into master

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/263
This commit is contained in:
2024-06-01 14:18:22 +00:00
6 changed files with 25 additions and 19 deletions

View File

@@ -114,9 +114,14 @@ watch(() => props.showTable, (newVal) => {
watch(() => props.otherFileList, (newVal) => { watch(() => props.otherFileList, (newVal) => {
console.log('newotherFileList',newVal) console.log('newotherFileList',newVal)
if (props.preview) { if (props.preview) {
newVal?.forEach(item => { if(props.formData.fileList==null){
allFileList.value.push(item) allFileList.value=newVal
}) }else {
newVal?.forEach(item => {
allFileList.value.push(item)
})
}
}else { }else {
allFileList.value=newVal allFileList.value=newVal
} }
@@ -124,9 +129,9 @@ watch(() => props.otherFileList, (newVal) => {
watch(() => props.formData.fileList, (newVal) => { watch(() => props.formData.fileList, (newVal) => {
console.log('newVal-fileList',newVal) console.log('newVal-fileList',newVal)
if (props.preview) { if (props.preview) {
newVal?.forEach(item => { newVal?.forEach(item => {
allFileList.value.push(item) allFileList.value.push(item)
}) })
} }
}, {deep: true}) }, {deep: true})
watch(() => props.formData.singleFile, (newVal) => { watch(() => props.formData.singleFile, (newVal) => {

View File

@@ -90,18 +90,18 @@ const tableConfig = reactive({
if(row.buttons){ if(row.buttons){
buttons = new Set(Array.from(row.buttons)) buttons = new Set(Array.from(row.buttons))
} }
// if (buttons.has("details")) { if (buttons.has("details")) {
btn.push({label: '详情', prem: ['mosr:requirement:info'], func: () => handleDetail(row), type: 'primary'}) btn.push({label: '详情', prem: ['mosr:requirement:info'], func: () => handleDetail(row), type: 'primary'})
// } }
// if (buttons.has("edit")) { if (buttons.has("edit")) {
btn.push({label: '编辑', prem: ['mosr:requirement:resubmit'], func: () => handleEdit(row), type: 'primary'}) btn.push({label: '编辑', prem: ['mosr:requirement:resubmit'], func: () => handleEdit(row), type: 'primary'})
// } }
// if (buttons.has("report")) { if (buttons.has("report")) {
btn.push({label: '明细导出', prem: ['mosr:requirement:info'], func: () => handleReport(row), type: 'primary'}) btn.push({label: '明细导出', prem: ['mosr:requirement:info'], func: () => handleReport(row), type: 'primary'})
// } }
// if (buttons.has("report")) { if (buttons.has("report")) {
btn.push({label: '汇总导出', prem: ['mosr:requirement:info'], func: () => handleReport(row), type: 'primary'}) btn.push({label: '汇总导出', prem: ['mosr:requirement:info'], func: () => handleReport(row), type: 'primary'})
// } }
return ( return (
<div style={{width: '100%'}}> <div style={{width: '100%'}}>
{ {
@@ -117,11 +117,11 @@ const tableConfig = reactive({
)) ))
} }
{ {
// buttons.has("delete") ? buttons.has("delete") ?
<popover-delete name={row.requirementName} type={'费用分摊'} btnType={'danger'} <popover-delete name={row.requirementName} type={'费用分摊'} btnType={'danger'}
perm={['mosr:requirement:del']} perm={['mosr:requirement:del']}
onDelete={() => handleDelete(row)}/> onDelete={() => handleDelete(row)}/>
// : '' : ''
} }
</div> </div>
) )

View File

@@ -393,6 +393,7 @@ const handleSubmit = debounce(async (instance) => {
// } // }
let params = { let params = {
...formData.value, ...formData.value,
isSpecialFund:false,
deploymentId: deploymentId.value, deploymentId: deploymentId.value,
fileList: otherFiles, fileList: otherFiles,
singleFile: singleFile, singleFile: singleFile,

View File

@@ -167,7 +167,7 @@ const tableConfig = reactive({
}, },
{ {
prop: 'economicEstimate', prop: 'economicEstimate',
label: '经济概算', label: '经济概算(万元)',
align: 'center' align: 'center'
}, },
{ {

View File

@@ -172,7 +172,7 @@ const tableConfig = reactive({
}, },
{ {
prop: 'economicEstimate', prop: 'economicEstimate',
label: '经济概算', label: '经济概算(万元)',
align: 'center' align: 'center'
}, },
{ {

View File

@@ -166,7 +166,7 @@ const tableConfig = reactive({
}, },
{ {
prop: 'economicEstimate', prop: 'economicEstimate',
label: '经济概算', label: '经济概算(万元)',
align: 'center' align: 'center'
}, },
{ {