|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="app-list-content">
|
|
<div class="app-list-content">
|
|
|
<x-crud class="liu-crud-wrap" @load="onLoad">
|
|
<x-crud class="liu-crud-wrap" @load="onLoad">
|
|
|
- <template #slot-tabs="{ scope }">
|
|
|
|
|
|
|
+ <template #slot-tabs>
|
|
|
<el-tabs
|
|
<el-tabs
|
|
|
class="liu-tabs"
|
|
class="liu-tabs"
|
|
|
type="border-card"
|
|
type="border-card"
|
|
@@ -20,17 +20,13 @@
|
|
|
|
|
|
|
|
<template #table-column-num="{scope}">
|
|
<template #table-column-num="{scope}">
|
|
|
<el-link
|
|
<el-link
|
|
|
- :underline="true"
|
|
|
|
|
@click="getItemList(scope.row)"
|
|
@click="getItemList(scope.row)"
|
|
|
- style="font-size:12px;display:inline-block;color:#409EFF"
|
|
|
|
|
>{{ scope.row.num }}</el-link>
|
|
>{{ scope.row.num }}</el-link>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #table-column-name="{scope}">
|
|
<template #table-column-name="{scope}">
|
|
|
<el-link
|
|
<el-link
|
|
|
- :underline="true"
|
|
|
|
|
@click="getItemList(scope.row)"
|
|
@click="getItemList(scope.row)"
|
|
|
- style="font-size:12px;display:inline-block;color:#409EFF"
|
|
|
|
|
>{{ scope.row.name }}</el-link>
|
|
>{{ scope.row.name }}</el-link>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -71,15 +67,11 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #slot-item-list="{scope}">
|
|
<template #slot-item-list="{scope}">
|
|
|
- <el-button type="text" @click="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}">
|
|
|
- <el-button type="text" @click="replaceBtnFn(scope.row.id,scope.row.name)">修改</el-button>
|
|
|
|
|
- </template>
|
|
|
|
|
-
|
|
|
|
|
- <template #slot-delete="{scope}">
|
|
|
|
|
- <el-button type="text" @click="deleteFn(scope.row.id)">删除</el-button>
|
|
|
|
|
|
|
+ <el-button type="text" @click.native.stop="replaceBtnFn(scope.row.id,scope.row.name)">修改</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
</x-crud>
|
|
</x-crud>
|
|
@@ -237,6 +229,13 @@ export default {
|
|
|
minWidth: 180
|
|
minWidth: 180
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
|
|
+
|
|
|
|
|
+ on: {
|
|
|
|
|
+ 'row-click': (row, column) => {
|
|
|
|
|
+ this.getItemList(row)
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
op: {
|
|
op: {
|
|
|
visible: true,
|
|
visible: true,
|
|
|
props: {
|
|
props: {
|
|
@@ -245,8 +244,11 @@ export default {
|
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
|
label: '操作'
|
|
label: '操作'
|
|
|
},
|
|
},
|
|
|
- layout: ['slot-item-list','slot-modify','slot-delete',]
|
|
|
|
|
|
|
+ layout: ['slot-item-list','slot-modify']
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
})
|
|
})
|
|
|
.set('dict', {
|
|
.set('dict', {
|
|
|
search: {
|
|
search: {
|