|
@@ -15,7 +15,7 @@
|
|
|
<script>
|
|
|
import toolbar from './toolbar';
|
|
|
import mxFilterList from '@/mixins/filterList';
|
|
|
-import { getList, delItem } from '@/api/photoWarehouse';
|
|
|
+import { getPage, delItem } from '@/api/photoWarehouse';
|
|
|
|
|
|
export default {
|
|
|
name: 'ImageGoodsManagement',
|
|
@@ -24,7 +24,7 @@ export default {
|
|
|
|
|
|
mixins: [
|
|
|
mxFilterList({
|
|
|
- fetchList: getList // 在下方data再声明一个 fetchList: iGetList 同等效果
|
|
|
+ fetchList: getPage // 在下方data再声明一个 fetchList: iGetList 同等效果
|
|
|
})
|
|
|
],
|
|
|
|
|
@@ -34,7 +34,7 @@ export default {
|
|
|
{
|
|
|
key: 'listPreview',
|
|
|
name: '图片',
|
|
|
- width: '160',
|
|
|
+ width: this.$col.b,
|
|
|
render: (h, { row }) =>
|
|
|
h('img', {
|
|
|
style: {
|
|
@@ -55,41 +55,41 @@ export default {
|
|
|
{
|
|
|
key: 'location',
|
|
|
name: '上传位置',
|
|
|
- minWidth: '180',
|
|
|
+ minWidth: this.$col.b,
|
|
|
render: (h, { row }) =>
|
|
|
h('span', `${row.kindergartenName}/${row.activityName}`)
|
|
|
},
|
|
|
{
|
|
|
key: 'createAt',
|
|
|
name: '上传时间',
|
|
|
- width: '140'
|
|
|
+ width: this.$col.b
|
|
|
},
|
|
|
{
|
|
|
key: 'likes',
|
|
|
name: '点赞数',
|
|
|
- width: '140'
|
|
|
+ width: this.$col.m
|
|
|
},
|
|
|
{
|
|
|
key: 'collections',
|
|
|
name: '收藏数',
|
|
|
- width: '140'
|
|
|
+ width: this.$col.m
|
|
|
},
|
|
|
{
|
|
|
key: 'hdLogoPhotoPrice',
|
|
|
name: '高清价',
|
|
|
- width: '140',
|
|
|
+ width: this.$col.m,
|
|
|
render: (h, { row }) => h('span', `${row.hdLogoPhotoPrice}`)
|
|
|
},
|
|
|
{
|
|
|
key: 'originPhotoPrice',
|
|
|
name: '原图价',
|
|
|
- width: '140',
|
|
|
+ width: this.$col.m,
|
|
|
render: (h, { row }) => h('span', `${row.originPhotoPrice}`)
|
|
|
},
|
|
|
{
|
|
|
key: 'isShow',
|
|
|
name: '状态',
|
|
|
- width: '80',
|
|
|
+ width: this.$col.s,
|
|
|
type: 'tag',
|
|
|
fetchTagType: val => (val ? 'success' : 'info'),
|
|
|
tagName: row => (row.isShow ? '上架' : '下架')
|