Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
6e0bf5eb
Commit
6e0bf5eb
authored
Apr 16, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完工配置-数据对接
parent
14d2a9ad
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
125 additions
and
18 deletions
+125
-18
XhInput.vue
src/components/createCom/XhInput.vue
+12
-4
XhSelect.vue
src/components/createCom/XhSelect.vue
+30
-0
formCom.vue
src/pages/order/components/formCom.vue
+83
-14
No files found.
src/components/createCom/XhInput.vue
View file @
6e0bf5eb
<
template
>
<
template
>
<view>
<view>
input-shuru
<u-input
v-model=
"item.fieldsValue"
/>
</view>
</view>
<!--
<u-form-item
label=
"姓名"
><u-input
v-model=
"value"
/></u-form-item>
-->
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'xhInput'
,
name
:
'xhInput'
,
props
:
{
item
:
{
type
:
Object
,
default
()
{
return
[{}]
}
},
},
data
()
{
data
()
{
return
{
return
{
value
:
''
,
value
:
''
,
type
:
'text'
,
type
:
'text'
,
border
:
true
border
:
true
,
}
}
}
}
}
}
...
...
src/components/createCom/XhSelect.vue
0 → 100644
View file @
6e0bf5eb
<
template
>
<view>
<u-input
v-model=
"item.fieldsValue"
/>
</view>
</
template
>
<
script
>
export
default
{
name
:
'xhInput'
,
props
:
{
item
:
{
type
:
Object
,
default
()
{
return
[{}]
}
},
},
data
()
{
return
{
value
:
''
,
type
:
'text'
,
border
:
true
,
}
}
}
</
script
>
<
style
>
</
style
>
src/pages/order/components/formCom.vue
View file @
6e0bf5eb
<!-- 实现动态组件的绑定 -->
<!-- 实现动态组件的绑定 -->
<
template
>
<
template
>
<view>
<view
class=
"group-list"
>
书籍及
书籍及
<template
v-for=
"(item,index) in list"
>
<u-form
:model=
"form"
ref=
"uForm"
>
<view
:key=
"index"
>
<template
v-for=
"(groupItem,index) in group"
>
<view
class=
"group-item"
>
<!--
<xh-input></xh-input>
-->
<view
class=
"group-title"
:key=
"index"
>
{{
groupItem
.
groupName
}}
</view>
<view
class=
"group-items"
:key=
"index"
>
<u-form-item
:label-width=
"0"
:required=
"item.required"
v-for=
"(item,itemIndex) in groupItem.item"
:key=
"index"
>
<!--
<view
:key=
"index"
>
-->
<view>
{{
item
.
fieldsName
}}
</view>
<xh-input
:item=
"item"
v-if=
"item.fieldsType==='input'"
></xh-input>
<!--
<xh-input
v-if=
"item.fieldsType==='input'"
></xh-input>
-->
<!--
<xh-input
v-if=
"item.fieldsType==='input'"
></xh-input>
-->
<!--
<xh-input
v-if=
"item.fieldsType==='input'"
></xh-input>
-->
<!--
</view>
-->
</u-form-item>
</view>
</view>
</view>
<!--
<component
:key=
"contentIndex"
:item=
"contentItem"
:orderId=
"orderId"
:is=
"contentItem.inputType | typeToComponentName"
/>
-->
</
template
>
</
template
>
</u-form>
</view>
</view>
</template>
</template>
...
@@ -29,7 +37,15 @@
...
@@ -29,7 +37,15 @@
import
XhInput
from
'@/components/createCom/XhInput.vue'
import
XhInput
from
'@/components/createCom/XhInput.vue'
export
default
{
export
default
{
components
:
{
components
:
{
// 'xh-input': XhInput,
'xh-input'
:
XhInput
,
},
props
:
{
item
:
{
type
:
Object
,
default
()
{
return
[{}]
}
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -44,11 +60,26 @@
...
@@ -44,11 +60,26 @@
label
:
''
label
:
''
}]
}]
}],
}],
// 完工信息的不同项
group
:
[{
groupName
:
'接入点信息'
,
item
:
[{
fieldsId
:
'基础信息'
,
fieldsType
:
'input'
,
fieldsName
:
'产品规格'
,
fieldsValue
:
''
,
required
:
true
,
fields_options
:
[{
key
:
''
,
label
:
''
}]
}]
}],
configList
:
[{
configList
:
[{
panelName
:
''
,
panelName
:
''
,
panelType
:
''
,
panelType
:
''
,
group
:
[{
group
:
[{
groupName
:
''
,
groupName
:
'
接入点信息
'
,
item
:
[{
item
:
[{
fieldsId
:
'基础信息'
,
fieldsId
:
'基础信息'
,
fieldsType
:
'input'
,
fieldsType
:
'input'
,
...
@@ -62,6 +93,38 @@
...
@@ -62,6 +93,38 @@
}]
}]
}]
}]
}],
}],
form
:
{
name
:
''
,
intro
:
''
,
sex
:
''
},
checkboxList
:
[{
name
:
'苹果'
,
checked
:
false
,
disabled
:
false
},
{
name
:
'雪梨'
,
checked
:
false
,
disabled
:
false
},
{
name
:
'柠檬'
,
checked
:
false
,
disabled
:
false
}
],
radioList
:
[{
name
:
'鲜甜'
,
disabled
:
false
},
{
name
:
'麻辣'
,
disabled
:
false
}
],
radio
:
''
,
switchVal
:
false
}
}
},
},
created
()
{
created
()
{
...
@@ -70,5 +133,11 @@
...
@@ -70,5 +133,11 @@
}
}
</
script
>
</
script
>
<
style
>
<
style
lang=
"scss"
scoped
>
.group-list
{
.group-item
{
}
}
</
style
>
</
style
>
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