Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c38d6bcd
authored
Sep 05, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
配置
1 parent
80159e2a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
67 deletions
src/views/contentManager/packageConfig/edit.vue
src/views/contentManager/packageConfig/edit.vue
View file @
c38d6bc
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-09-05 11:16:25
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-09-05 15:46:42
* @FilePath: \dj-car-life-system\src\views\contentManager\packageConfig\edit.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
<
template
>
<d2-container
class=
"edit-content"
>
<d2-container
class=
"edit-content"
>
<div
class=
"content-form"
>
<div
class=
"content-form"
>
...
@@ -15,31 +7,23 @@
...
@@ -15,31 +7,23 @@
<span>
素材配置
</span>
<span>
素材配置
</span>
</div>
</div>
<div
class=
"info-form-main"
>
<div
class=
"info-form-main"
>
<el-tabs
v-model=
"
activeName"
type=
"card"
@
tab-click=
"handleClick
"
>
<el-tabs
v-model=
"
packageName"
type=
"card
"
>
<el-tab-pane
<el-tab-pane
v-for=
"(item, index) in
tabPaneList
"
v-for=
"(item, index) in
configInfo.packageInfo
"
:label=
"item.
label
"
:label=
"item.
name
"
:name=
"item.name"
:name=
"item.name"
:key=
"index"
:key=
"index"
>
>
</el-tab-pane>
</el-tabs>
<div
class=
"tab-content"
>
<div
class=
"tab-content"
>
<div
class=
"tab-header"
>
套餐包
</div>
<div
class=
"tab-header"
>
套餐包
</div>
<div
class=
"child-tab"
>
<div
class=
"child-tab"
>
<el-tabs
<el-tabs
v-model=
"packageSubName"
type=
"card"
>
v-model=
"activeName"
type=
"card"
@
tab-click=
"handleClick"
>
<el-tab-pane
<el-tab-pane
v-for=
"(item, index) in tabPaneList
"
v-for=
"(sub, idx) in item.subItem
"
:label=
"item.label
"
:label=
"sub.name
"
:name=
"item
.name"
:name=
"sub
.name"
:key=
"inde
x"
:key=
"id
x"
>
>
</el-tab-pane>
</el-tabs>
<table
<table
cellspacing=
"0"
cellspacing=
"0"
cellpadding=
"0"
cellpadding=
"0"
...
@@ -54,45 +38,57 @@
...
@@ -54,45 +38,57 @@
<th>
详图
</th>
<th>
详图
</th>
<th>
操作
</th>
<th>
操作
</th>
</tr>
</tr>
<tr
>
<tr
v-for=
"(pItem, pindex) in sub.subItem"
>
<td>
1
</td>
<td>
1
</td>
<td
class=
"flex"
>
<td
class=
"flex"
>
<glsx-preview
<glsx-preview
:image-url-arr=
"
cover"
:image-url-arr=
"item.
cover"
limit=
"1"
limit=
"1"
></glsx-preview>
></glsx-preview>
</td>
</td>
<td>
<td>
<el-input
<el-input
v-model=
"input
"
v-model=
"pItem.name
"
placeholder=
"请输入选购卡名称"
placeholder=
"请输入选购卡名称"
></el-input>
></el-input>
</td>
</td>
<td>
<td>
<el-input
<el-input
type=
"textarea"
type=
"textarea"
v-model=
"input
"
v-model=
"pItem.desc
"
placeholder=
"请输入选购卡描述"
placeholder=
"请输入选购卡描述"
></el-input>
></el-input>
</td>
</td>
<td
class=
"flex"
>
<td
class=
"flex"
>
<glsx-preview
<glsx-preview
:image-url-arr=
"
cover"
:image-url-arr=
"pItem.
cover"
limit=
"1"
limit=
"1"
></glsx-preview>
></glsx-preview>
</td>
</td>
<td>
<td>
<el-button
type=
"text"
@
click=
"handleAdd"
>
<el-button
type=
"text"
v-if=
"pindex == sub.subItem.length - 1"
@
click=
"handleAdd"
>
新增一行
新增一行
</el-button>
</el-button>
<el-button
type=
"text"
@
click=
"handleDel"
>
<el-button
type=
"text"
v-if=
"pindex != 0"
@
click=
"handleDel()"
>
删除此项
删除此项
</el-button>
</el-button>
</td>
</td>
</tr>
</tr>
</table>
</table>
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -118,60 +114,61 @@ export default {
...
@@ -118,60 +114,61 @@ export default {
subItem
:
[
subItem
:
[
{
{
id
:
511
,
id
:
511
,
cover
:
"/cover.png"
,
cover
:
[]
,
name
:
"名称"
name
:
"名称
1
"
},
},
{
{
id
:
511
,
id
:
511
,
cover
:
"/cover.png"
,
cover
:
[]
,
name
:
"名称"
name
:
"名称
1
"
}
}
]
]
},
},
{
{
id
:
52
,
id
:
52
,
name
:
"专享"
name
:
"专享"
,
subItem
:
[
{
id
:
511
,
cover
:
[],
name
:
"名称2"
},
{
id
:
511
,
cover
:
[],
name
:
"名称2"
}
}
]
]
}
}
],
]
MembraneInfo
:
[],
boutiqueInfo
:
[]
},
activeName
:
"1"
,
tabPaneList
:
[
{
label
:
"tab1"
,
name
:
"1"
},
},
{
{
label
:
"tab2"
,
name
:
"问界M7"
name
:
"2"
}
}
],
],
tableData
:
[
MembraneInfo
:
[],
{
boutiqueInfo
:
[]
date
:
"2016-05-02"
,
name
:
"王小虎"
,
address
:
"上海市普陀区金沙江路 1518 弄"
},
},
{
packageName
:
""
,
date
:
"2016-05-04"
,
packageSubName
:
""
name
:
"王小虎"
,
}
address
:
"上海市普陀区金沙江路 1517 弄"
},
},
{
watch
:
{
date
:
"2016-05-01"
,
// packageName() {
name
:
"王小虎"
,
// this.packageIndex = this.packageInfo.findIndex(
address
:
"上海市普陀区金沙江路 1519 弄"
// (item) => item.name === this.packageName
// )
// },
// packageSubName() {
// this.packageSubIndex = this.packageInfo[
// this.packageIndex
// ].subItem.findIndex((item) => item.name === this.packageSubName)
// }
},
},
{
mounted
()
{
date
:
"2016-05-03"
,
const
{
packageInfo
}
=
this
.
configInfo
name
:
"王小虎"
,
this
.
packageName
=
packageInfo
[
0
].
name
address
:
"上海市普陀区金沙江路 1516 弄"
this
.
packageSubName
=
packageInfo
[
0
].
subItem
[
0
].
name
}
]
}
},
},
methods
:
{
methods
:
{
handleAdd
()
{},
handleAdd
()
{},
...
@@ -241,6 +238,9 @@ export default {
...
@@ -241,6 +238,9 @@ export default {
&
.flex
{
&
.flex
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
::v-deep.photo-activity
{
position
:
static
;
}
}
}
}
}
}
}
...
...
Write
Preview
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