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
c110d83e
Commit
c110d83e
authored
Oct 14, 2024
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加执行解析
parent
5cbc90f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
Variables.vue
src/views/var/variables/Variables.vue
+16
-0
No files found.
src/views/var/variables/Variables.vue
View file @
c110d83e
...
...
@@ -47,6 +47,11 @@
<vxe-column
field=
"productType"
title=
"产品类型"
width=
"120"
></vxe-column>
<vxe-column
field=
"productCode"
title=
"产品编码"
width=
"120"
></vxe-column>
<vxe-column
field=
"productName"
title=
"产品名称"
width=
"240"
></vxe-column>
<vxe-column
title=
"解析"
width=
"100"
>
<
template
#
default=
"{ row }"
>
<el-button
v-if=
"!!row.varOrderFileId"
type=
"text"
size=
"small"
@
click=
"toRun(row)"
>
执行解析
</el-button>
</
template
>
</vxe-column>
<vxe-column
title=
"操作"
width=
"240"
>
<
template
#
default=
"{ row }"
>
<el-button
type=
"text"
size=
"small"
@
click=
"handleImportVar(row)"
>
上传变量
</el-button>
...
...
@@ -196,6 +201,17 @@ const changeUpload = (file: any) => {
}
})
}
const
toRun
=
async
(
row
)
=>
{
const
{
data
}
=
await
apiOrderVarRun
(
row
.
orderItemId
)
if
(
data
?.
code
==
'200'
)
{
ElMessage
.
success
(
data
.
message
||
'解析成功!'
)
importVisible
.
value
=
false
onQuery
()
nextTick
(()
=>
{
handleShowVarRun
(
row
)
})
}
}
const
submitImport
=
async
()
=>
{
const
params
=
{
...
importForm
.
value
,
...
...
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