|
@@ -17,17 +17,11 @@
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<template #table-column-num="{scope}">
|
|
<template #table-column-num="{scope}">
|
|
|
- <el-link
|
|
|
|
|
- @click="getItemList(scope.row)"
|
|
|
|
|
- >{{ scope.row.num }}</el-link>
|
|
|
|
|
|
|
+ {{ scope.row.num }}
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<template #table-column-name="{scope}">
|
|
<template #table-column-name="{scope}">
|
|
|
- <el-link
|
|
|
|
|
- @click="getItemList(scope.row)"
|
|
|
|
|
- >{{ scope.row.name }}</el-link>
|
|
|
|
|
|
|
+ {{ scope.row.name }}
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #table-column-inTurn="{scope}">
|
|
<template #table-column-inTurn="{scope}">
|
|
@@ -44,7 +38,10 @@
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
- <!-- 排序 -->
|
|
|
|
|
|
|
+ <template #table-column-cover="{scope}">
|
|
|
|
|
+ <img :src="scope.row.cover" style="width:40px;height:40px;margin:0 auto;" />
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
<template #table-header-inTurn>
|
|
<template #table-header-inTurn>
|
|
|
<div class="set-sort">
|
|
<div class="set-sort">
|
|
|
<span>排序</span>
|
|
<span>排序</span>
|
|
@@ -68,7 +65,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #slot-item-list="{scope}">
|
|
<template #slot-item-list="{scope}">
|
|
|
- <el-button type="text" @click.native.stop="getItemList(scope.row)">花材列表</el-button>
|
|
|
|
|
|
|
+ <el-button type="text" @click.native.stop="getItemList(scope.row)">名下花材</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #slot-modify="{scope}">
|
|
<template #slot-modify="{scope}">
|
|
@@ -77,14 +74,7 @@
|
|
|
|
|
|
|
|
</x-crud>
|
|
</x-crud>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- <!-- 新增弹窗 -->
|
|
|
|
|
- <el-dialog
|
|
|
|
|
- :title="`${id == 0 ? '添加' : '修改'}分类`"
|
|
|
|
|
- :visible.sync="replaceDialog"
|
|
|
|
|
- :close-on-click-modal="false"
|
|
|
|
|
- width="600px"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-dialog :title="`${id == 0 ? '添加' : '修改'}分类`" :visible.sync="replaceDialog" :close-on-click-modal="false" width="600px" >
|
|
|
<div class="ad-modal-content">
|
|
<div class="ad-modal-content">
|
|
|
<el-form :model="replaceForm" :rules="ruleForm" ref="replaceForm" label-width="100px" class="demo-form">
|
|
<el-form :model="replaceForm" :rules="ruleForm" ref="replaceForm" label-width="100px" class="demo-form">
|
|
|
<el-form-item label="分类名称" prop="name">
|
|
<el-form-item label="分类名称" prop="name">
|
|
@@ -98,7 +88,6 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -212,6 +201,12 @@ export default {
|
|
|
label: 'ID',
|
|
label: 'ID',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'cover',
|
|
|
|
|
+ label: '图片',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ minWidth: 120
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
prop: 'name',
|
|
prop: 'name',
|
|
|
label: '标题',
|
|
label: '标题',
|
|
@@ -220,9 +215,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'num',
|
|
prop: 'num',
|
|
|
- label: '花材数量',
|
|
|
|
|
|
|
+ label: '数量',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- 'min-width': 100
|
|
|
|
|
|
|
+ minWidth: 100
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'inTurn',
|
|
prop: 'inTurn',
|
|
@@ -237,13 +232,6 @@ export default {
|
|
|
minWidth: 180
|
|
minWidth: 180
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
-
|
|
|
|
|
- on: {
|
|
|
|
|
- 'row-click': (row, column) => {
|
|
|
|
|
- this.getItemList(row)
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
op: {
|
|
op: {
|
|
|
visible: true,
|
|
visible: true,
|
|
|
props: {
|
|
props: {
|
|
@@ -254,9 +242,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
layout: ['slot-item-list','slot-modify']
|
|
layout: ['slot-item-list','slot-modify']
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
})
|
|
})
|
|
|
.set('dict', {
|
|
.set('dict', {
|
|
|
search: {
|
|
search: {
|