Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-baoshen-excel
Project
Project
Details
Activity
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
何远江
topsun-baoshen-excel
Commits
3271ba26
Commit
3271ba26
authored
Oct 14, 2024
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化提示
parent
3d96d180
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
7 deletions
+23
-7
Variables.vue
src/views/var/variables/Variables.vue
+23
-7
No files found.
src/views/var/variables/Variables.vue
View file @
3271ba26
...
@@ -128,7 +128,7 @@ import type { VxeTableInstance } from 'vxe-table'
...
@@ -128,7 +128,7 @@ import type { VxeTableInstance } from 'vxe-table'
import
TemplateVariable
from
'./components/TemplateVariable.vue'
import
TemplateVariable
from
'./components/TemplateVariable.vue'
import
{
filterRunData2
}
from
'@/utils/excel'
import
{
filterRunData2
}
from
'@/utils/excel'
import
{
uploadFile
}
from
'@/api/excel'
import
{
uploadFile
}
from
'@/api/excel'
import
{
ElMessage
}
from
'element-plus'
import
{
El
Loading
,
El
Message
}
from
'element-plus'
import
{
exportExcel
}
from
'@/utils/export-excel'
import
{
exportExcel
}
from
'@/utils/export-excel'
const
loading
=
ref
(
false
)
const
loading
=
ref
(
false
)
...
@@ -202,13 +202,29 @@ const changeUpload = (file: any) => {
...
@@ -202,13 +202,29 @@ const changeUpload = (file: any) => {
})
})
}
}
const
toRun
=
async
(
row
)
=>
{
const
toRun
=
async
(
row
)
=>
{
const
{
data
}
=
await
apiOrderVarRun
(
row
.
orderItemId
)
const
loading
=
ElLoading
.
service
({
if
(
data
?.
code
==
'200'
)
{
text
:
'解析中...'
,
ElMessage
.
success
(
data
.
message
||
'解析成功!'
)
background
:
'rgba(0, 0, 0, 0.7)'
,
importVisible
.
value
=
false
lock
:
true
,
onQuery
()
spinner
:
'el-icon-loading'
})
try
{
const
{
data
}
=
await
apiOrderVarRun
(
row
.
orderItemId
)
if
(
data
?.
code
==
'200'
)
{
ElMessage
.
success
(
data
.
message
||
'解析成功!'
)
importVisible
.
value
=
false
onQuery
()
nextTick
(()
=>
{
handleShowVarRun
(
row
)
})
}
else
{
loading
.
close
()
ElMessage
.
error
(
data
.
message
||
'解析失败!'
)
}
}
catch
{
nextTick
(()
=>
{
nextTick
(()
=>
{
handleShowVarRun
(
row
)
loading
.
close
(
)
})
})
}
}
}
}
...
...
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