Commit 3a3a7ff7 by cwq0219

页面

1 parent 37595dd1
......@@ -319,14 +319,7 @@ export default {
originData: {
type: Object,
default: () => {
return {
goodsCode: '',
retailPrice: '',
maxRetailDiscount: '',
shopPrice: '',
upgradeGoods: [],
linkMerchantIds: []
}
return {}
}
},
formList: {
......
......@@ -265,7 +265,23 @@ export default {
currentPage: res.pageNum,
pageSize: res.pageSize
}
// this.tableParams.needUnique && (res[this.tableParams.listName].forEach((item) => {
// item[this.tableParams.mutiSelectUniqueKey]
// }))
this.data = res[this.tableParams.listName]
if (this.tableParams.needUnique) {
let temp = 1
this.data.forEach((item) => {
item[this.tableParams.mutiSelectUniqueKey] = temp
temp = temp + 1
if (item.hasOwnProperty('upgradeGoodsList')) {
item.upgradeGoodsList.forEach(subItem => {
subItem[this.tableParams.mutiSelectUniqueKey] = temp
temp = temp + 1
})
}
})
}
this.total = res.total
this.loading = false
}).catch(() => {
......
......@@ -16,8 +16,8 @@
flex-box="0"
flex>
<div class="logo-group d2-theme-header-logo" :class="asideCollapse ? 'logo-only' : 'logo-all'" flex-box="0">
<img v-if="asideCollapse" :src="`${$baseUrl}image/theme/logo/icon-only.png`">
<img v-else :src="`${$baseUrl}image/theme/logo/all.png`">
<img v-if="asideCollapse" src="../../assets/icon-only.png">
<img v-else src="../../assets/all.png">
</div>
<hamburger :onClick="handleToggleAside" :isActive="asideCollapse" flex-box="0" class="toggle-aside-btn"></hamburger>
<d2-menu-header flex-box="1"/>
......@@ -176,15 +176,17 @@ export default {
.logo-all{
width: 200px;
img{
height: 75px !important;
width: 100%;
// height: 75px !important;
transform: translate3d(-8px, -6px, 0) !important;
}
}
.logo-only{
width:65px;
img{
height: 35px !important;
transform: translate3d(0px,12px,0) !important;
width: 100%;
// height: 35px !important;
transform: translate3d(0,2px,0) !important;
}
}
</style>
......@@ -127,7 +127,8 @@ export default {
getListApi: getList,
// 表格参数
tableParams: {
mutiSelectUniqueKey: 'goodsCode',
needUnique: true,
mutiSelectUniqueKey: 'uniqueVal',
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: true,
......
......@@ -60,7 +60,7 @@
slot="img"
slot-scope="scope"
class="pro-img"
:src="scope.scope.img"
:src="scope.scope.thumbUrl"
/>
<auth-button
slot="auth-button"
......
......@@ -124,8 +124,8 @@ export default {
time: dayjs().format('HH:mm:ss'),
// 表单
formLogin: {
// userName: 'dongdao',
userName: 'houlai',
userName: 'dongdao',
// userName: 'houlai',
password: '123456'
},
// 表单校验
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!