Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
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
杨硕
template_vue
Commits
d8aa9dd8
Commit
d8aa9dd8
authored
Jul 21, 2023
by
kzy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产管理
parent
a0a324a3
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
757 additions
and
4 deletions
+757
-4
index.vue
src/views/production/craftsmanship/index.vue
+40
-0
index.vue
src/views/production/data/index.vue
+717
-4
No files found.
src/views/production/craftsmanship/index.vue
0 → 100644
View file @
d8aa9dd8
<
template
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"80px"
>
<el-form-item
label=
"活动区域"
>
<el-select
v-model=
"form.region"
placeholder=
"请选择活动区域"
@
change=
"updateTextBoxes"
>
<el-option
label=
"区域一"
value=
"region1"
></el-option>
<el-option
label=
"区域二"
value=
"region2"
></el-option>
</el-select>
</el-form-item>
<el-row
v-for=
"(textbox, index) in form.textboxes"
:key=
"index"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"'文本框 ' + (index + 1)"
>
<el-input
v-model=
"textbox.value"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
form
:
{
region
:
'region1'
,
textboxes
:
[{
value
:
''
},
{
value
:
''
},
{
value
:
''
},
{
value
:
''
}]
},
};
},
methods
:
{
updateTextBoxes
()
{
if
(
this
.
form
.
region
===
'region2'
)
{
this
.
form
.
textboxes
.
push
({
value
:
''
},
{
value
:
''
});
// 添加两个额外的文本框
}
else
{
this
.
form
.
textboxes
=
this
.
form
.
textboxes
.
slice
(
0
,
4
);
// 保留四个文本框
}
},
},
};
</
script
>
\ No newline at end of file
src/views/production/data/index.vue
View file @
d8aa9dd8
This diff is collapsed.
Click to expand it.
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