Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
紫光云
web-project
Commits
751afde5
Commit
751afde5
authored
Mar 21, 2025
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(招标): 文件上传添加loading
parent
1ffd9e0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
+19
-14
edit.vue
src/views/tendeYearManage/edit.vue
+10
-9
edit.vue
src/views/tenderYearPlan/edit.vue
+9
-5
No files found.
src/views/tendeYearManage/edit.vue
View file @
751afde5
...
...
@@ -45,10 +45,9 @@
:file-list=
"fileList"
accept=
".xlsx,.xls"
:on-success=
"uploadFile"
:onChange=
"onChangeUpload"
>
<a-button
v-if=
"!disabled"
type=
"dashed"
class=
"ml-2"
preIcon=
"ei:plus"
>
Excel导入
</a-button>
<a-button
v-if=
"!disabled"
type=
"dashed"
class=
"ml-2"
preIcon=
"ei:plus"
>
Excel导入
</a-button>
</Upload>
<projectDrawer
@
register=
"registerDrawer"
@
success=
"handleSuccess"
/>
<projectlibraryModel
@
register=
"register"
@
close=
"handleNewData"
/>
...
...
@@ -117,7 +116,7 @@
for
(
let
i
=
0
;
i
<
res
.
length
;
i
++
)
{
const
source
=
res
[
i
];
const
item
=
{
name
:
'项目:'
+
source
.
pro
ject
Name
,
name
:
'项目:'
+
source
.
proName
,
show
:
true
,
proId
:
source
.
proId
,
forceRender
:
true
,
...
...
@@ -157,8 +156,10 @@
};
const
tabsFormSchema
=
reactive
<
TabsFormType
[]
>
([]);
async
function
uploadFile
(
response
)
{
function
onChangeUpload
(
info
)
{
loadingRef
.
value
=
true
;
}
async
function
uploadFile
(
response
)
{
if
(
response
.
code
==
1
)
{
response
.
data
.
map
((
info
)
=>
{
const
item
=
{
...
...
@@ -166,7 +167,7 @@
forceRender
:
true
,
show
:
true
,
Form
:
useForm
(
Object
.
assign
({
schemas
:
formSchema
},
baseFormConfig
)
as
FormProps
),
proId
:
info
.
id
?
info
.
id
:
''
,
proId
:
info
.
id
?
info
.
id
:
null
,
};
const
{
setFieldsValue
}
=
item
.
Form
[
1
];
tabsFormSchema
.
push
(
item
);
...
...
@@ -206,7 +207,7 @@
forceRender
:
true
,
show
:
true
,
Form
:
useForm
(
Object
.
assign
({
schemas
:
formSchema
},
baseFormConfig
)
as
FormProps
),
proId
:
info
.
id
?
info
.
id
:
''
,
proId
:
info
.
id
?
info
.
id
:
null
,
};
const
{
setFieldsValue
}
=
item
.
Form
[
1
];
tabsFormSchema
.
push
(
item
);
...
...
@@ -216,7 +217,7 @@
fundingSource
:
info
.
fundingSource
,
constructionMode
:
info
.
constructionMode
,
investmentAmount
:
info
.
projectInvestment
,
proId
:
info
.
id
?
info
.
id
:
''
,
proId
:
info
.
id
?
info
.
id
:
null
,
});
});
}
...
...
@@ -235,7 +236,7 @@
let
formSchema
=
tabsFormSchema
[
i
].
Form
[
1
];
const
{
updateSchema
}
=
formSchema
;
await
nextTick
(()
=>
{
if
(
isSubmit
==
'0'
)
{
if
(
isSubmit
==
'0'
||
tabsFormSchema
[
i
].
show
==
false
)
{
updateSchema
([
{
field
:
'proName'
,
required
:
false
},
{
field
:
'fundingSource'
,
required
:
false
},
...
...
src/views/tenderYearPlan/edit.vue
View file @
751afde5
...
...
@@ -57,6 +57,7 @@
:file-list=
"fileList"
accept=
".xlsx,.xls"
:on-success=
"uploadFile"
:onChange=
"onChangeUpload"
>
<a-button
v-if=
"!disabled"
type=
"dashed"
class=
"ml-2"
preIcon=
"ei:plus"
>
Excel导入
</a-button>
</Upload>
...
...
@@ -126,7 +127,7 @@
getTitle
.
value
=
'编辑年度招标计划'
;
}
let
res
=
await
selectDetail
({
id
});
console
.
log
(
'11111'
,
res
)
console
.
log
(
'11111'
,
res
);
formData
.
value
.
tenderPlanPro
=
[];
for
(
let
i
=
0
;
i
<
res
.
length
;
i
++
)
{
const
source
=
res
[
i
];
...
...
@@ -134,7 +135,7 @@
name
:
'项目:'
+
source
.
proName
,
forceRender
:
true
,
show
:
true
,
proId
:
source
.
proId
?
source
.
proId
:
''
,
proId
:
source
.
proId
?
source
.
proId
:
null
,
Form
:
useForm
(
Object
.
assign
({
schemas
:
formSchema
,
disabled
},
baseFormConfig
)
as
FormProps
,
),
...
...
@@ -145,7 +146,7 @@
tabsFormSchema
.
push
(
item
);
formData
.
value
.
tenderPlanPro
.
push
({
id
:
source
.
id
,
proId
:
source
.
proId
?
source
.
proId
:
''
,
proId
:
source
.
proId
?
source
.
proId
:
null
,
tenderId
:
source
.
tenderId
,
});
nextTick
(()
=>
{
...
...
@@ -224,7 +225,7 @@
let
formSchema
=
tabsFormSchema
[
i
].
Form
[
1
];
const
{
updateSchema
}
=
formSchema
;
await
nextTick
(()
=>
{
if
(
isSubmit
==
'0'
)
{
if
(
isSubmit
==
'0'
||
tabsFormSchema
[
i
].
show
==
false
)
{
updateSchema
([
{
field
:
'projectName'
,
required
:
false
},
{
field
:
'projectInitiator'
,
required
:
false
},
...
...
@@ -306,8 +307,11 @@
loadingRef
.
value
=
false
;
}
}
async
function
uploadFile
(
response
)
{
function
onChangeUpload
(
info
)
{
loadingRef
.
value
=
true
;
}
async
function
uploadFile
(
response
)
{
if
(
response
.
code
==
1
)
{
response
.
data
.
map
((
info
)
=>
{
const
item
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment