Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ffe58a1e
authored
2025-01-20 10:43:48 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
56913a67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
src/components/Form/index.vue
src/components/Form/index.vue
View file @
ffe58a1
...
...
@@ -418,8 +418,8 @@ const downloadTemplate = async (url) => {
}
// 解码文件名
name
=
decodeURIComponent
(
name
);
name
=
name
.
replace
(
/_
\d{8}\d{9}
_
\d
+/g
,
''
);
var
fileSuffix
=
name
?
name
.
substring
(
name
.
lastIndexOf
(
'.'
)
+
1
)
:
''
;
console
.
log
(
name
,
res
,
fileSuffix
,
'-------------------name'
);
download
(
res
,
name
,
fileSuffix
);
}
else
{
res
?.
msg
&&
ElMessage
.
error
(
res
?.
msg
);
...
...
@@ -617,7 +617,7 @@ const panelChange = (scope, row) => {
required_mark: item.required,
}">
{{
item
.
label
}}
</span>
}}
</span>
</span>
<div
class=
"header_title_tooltip"
style=
"width: auto"
v-if=
"item.tooltip"
>
...
...
@@ -710,7 +710,7 @@ const panelChange = (scope, row) => {
<div
class=
"item_panel"
:class=
"
{ is_block: panel.block }" v-for="panel in item.children">
<label
:class=
"
{ required_mark: panel.required }">
{{
panel
.
label
}}
</label>
}}
</label>
<el-checkbox
v-if=
"panel.type == 'checkbox'"
v-model=
"formInline[panel.field]"
:disabled=
"panel.disabled || readonly"
:true-label=
"panel.trueValue ?? true"
:false-label=
"panel.falseValue ?? false"
>
{{
panel
.
placeholder
}}
</el-checkbox>
...
...
@@ -793,7 +793,7 @@ const panelChange = (scope, row) => {
<span
class=
"item-label"
slot=
"label"
>
<span
v-if=
"child.label"
:class=
"{ required_mark: child.required }"
>
{{
child.label
}}
</span>
}}
</span>
</span>
<el-select
v-if=
"child.type == 'select'"
v-model=
"formInline[child.field]"
:placeholder=
"child.placeholder"
:disabled=
"child.disabled || readonly"
:filterable=
"child.filterable"
...
...
@@ -852,7 +852,7 @@ const panelChange = (scope, row) => {
<span
class=
"item-label"
slot=
"label"
>
<span
:class=
"
{ required_mark: child.required }">
{{
child
.
label
}}
</span>
}}
</span>
</span>
<el-cascader
v-if=
"child.type == 'cascader'"
v-model=
"formInline[child.field]"
:props=
"child.props"
:options=
"child.options"
:show-all-levels=
"child.showAllLevels ?? true"
...
...
@@ -895,7 +895,7 @@ const panelChange = (scope, row) => {
<div
class=
"item_panel"
v-for=
"child in item.children"
>
<label
:class=
"{ required_mark: child.required }"
>
{{
child.label
}}
</label>
}}
</label>
<div
class=
"tool_item"
>
<el-select
v-model=
"formInline[child.field]"
:class=
"{ is_block: child.block }"
:placeholder=
"child.placeholder"
:multiple=
"child.multiple"
:collapse-tags=
"child.collapse"
...
...
@@ -970,7 +970,7 @@ const panelChange = (scope, row) => {
<span
class=
"item-label"
slot=
"label"
>
<span
:class=
"
{ required_mark: child.required }">
{{
child
.
label
}}
</span>
}}
</span>
</span>
<el-input
:class=
"[child.col,
{ is_block: child.block }]" v-model="formInline[child.field]"
:rows="child.rows ?? 4" type="textarea" :placeholder="child.placeholder"
...
...
@@ -1026,7 +1026,7 @@ const panelChange = (scope, row) => {
<span
class=
"item-label"
slot=
"label"
>
<span
:class=
"
{ required_mark: child.required }">
{{
child
.
label
}}
</span>
}}
</span>
</span>
<div
class=
"input_group"
:class=
"[child.col]"
v-if=
"child.type == 'input-group'"
>
<template
v-for=
"(group, c) in child.children"
>
...
...
@@ -1035,7 +1035,7 @@ const panelChange = (scope, row) => {
<span
class=
"item-label"
slot=
"label"
>
<span
:class=
"
{ required_mark: group.required }">
{{
group
.
label
}}
</span>
}}
</span>
</span>
<el-select
v-if=
"group.type == 'select'"
v-model=
"formInline[group.field]"
:placeholder=
"group.placeholder"
:clearable=
"group.clearable"
...
...
@@ -1176,7 +1176,7 @@ const panelChange = (scope, row) => {
<span
class=
"item-label"
slot=
"label"
>
<span
:class=
"
{ required_mark: child.required }">
{{
child
.
label
}}
</span>
}}
</span>
</span>
<el-select
v-if=
"child.type == 'select'"
v-model=
"formInline[child.field]"
:placeholder=
"child.placeholder"
:clearable=
"child.clearable"
:disabled=
"child.disabled || readonly"
...
...
@@ -1227,7 +1227,7 @@ const panelChange = (scope, row) => {
<span
class=
"item-label"
slot=
"label"
:class=
"[child.col]"
>
<span
:class=
"
{ required_mark: child.required }">
{{
child
.
label
}}
</span>
}}
</span>
</span>
<div
class=
"input_popover_panel"
v-if=
"child.type == 'input-popover-panel'"
>
<el-popover
placement=
"bottom-start"
width=
"100%"
trigger=
"click"
:teleported=
"false"
>
...
...
@@ -1281,7 +1281,7 @@ const panelChange = (scope, row) => {
<span
class=
"item-label"
slot=
"label"
>
<span
:class=
"
{ required_mark: child.required }">
{{
child
.
label
}}
</span>
}}
</span>
</span>
<template
v-if=
"child.type == 'upload-image'"
>
<el-upload
:class=
"[child.col, 'avatar-uploader',
{ is_block: child.block }]" action="#"
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment