Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
cda65106
Commit
cda65106
authored
Aug 30, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
eaf96a66
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
554 additions
and
4 deletions
+554
-4
singletextbox.vue
src/components/tradePavilion/plugin/singletextbox.vue
+80
-0
registrationAdd.vue
src/components/tradePavilion/registrationAdd.vue
+474
-4
No files found.
src/components/tradePavilion/plugin/singletextbox.vue
0 → 100644
View file @
cda65106
<
style
>
.single_Input
{
width
:
500px
;
height
:
60px
;
border
:
1px
solid
#DCDFE6
;
border-radius
:
4px
;
margin-left
:
20px
;
background
:
#fff
;
font-size
:
25px
;
color
:
#c0c4d6
;
line-height
:
60px
;
padding-left
:
20px
;
}
</
style
>
<
template
>
<div
:class=
"
{'active':searchData.isCked}">
<div
class=
"diy-component-options"
v-if=
"searchData.isCked"
>
<el-button
type=
"primary"
icon=
"el-icon-delete"
style=
"left: -25px; top: 0px;"
@
click=
"delPlugin()"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-document-copy"
style=
"left: -25px; top: 30px;"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-arrow-up"
v-if=
"index>0"
@
click=
"resetSord(0)"
style=
"right: -25px; top: 0;"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-arrow-down"
v-if=
"index!=dataLeng-1"
@
click=
"resetSord(1)"
style=
"right: -25px; top: 30px;"
></el-button>
</div>
<div
class=
"diy-component-preview"
>
<div
class=
"diy-search"
>
<!--
<el-form>
<el-form-item
:label=
"searchData.data.Name"
>
<el-input
:placeholder=
"`最多输入$
{searchData.data.WordsLength}个字`" size="small">
</el-input>
</el-form-item>
</el-form>
-->
<div
style=
"display:flex;align-items:center;"
>
<div
style=
"color:red;"
v-show=
"searchData.data.IsRequire"
>
*
</div>
<div>
{{
searchData
.
data
.
Name
}}
</div>
<div
class=
"single_Input"
>
<span
v-if=
"searchData.data.WordsLength>0"
>
最多输入
{{
searchData
.
data
.
WordsLength
}}
个字
</span>
</div>
</div>
</div>
</div>
<div
class=
"diy-component-edit"
v-if=
"searchData.isCked"
>
<el-form
label-width=
"100px"
>
<el-form-item
label=
"名字"
>
<el-input
v-model=
"searchData.data.Name"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"字数"
>
<el-input
type=
"text"
v-model=
"searchData.data.WordsLength"
@
keyup
.
native=
"checkInteger(searchData.data,'WordsLength')"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"是否必填"
>
<el-switch
v-model=
"searchData.data.IsRequire"
>
</el-switch>
</el-form-item>
</el-form>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
[
"searchData"
,
"index"
,
"dataLeng"
],
data
()
{
return
{
};
},
created
()
{},
methods
:
{
//向父组件传值 并调用排序
resetSord
(
IsUp
)
{
this
.
$emit
(
'getSord'
,
this
.
index
,
IsUp
);
},
//点击触发父组件删除
delPlugin
()
{
this
.
$emit
(
'comDelPlugin'
,
this
.
index
);
}
},
mounted
()
{}
};
</
script
>
src/components/tradePavilion/registrationAdd.vue
View file @
cda65106
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