|
@@ -8,7 +8,10 @@
|
|
|
<view class="search-bar">
|
|
<view class="search-bar">
|
|
|
<app-search-module v-model="py" placeholder="输拼音首字母也可以搜" @input="searchFn"/>
|
|
<app-search-module v-model="py" placeholder="输拼音首字母也可以搜" @input="searchFn"/>
|
|
|
</view>
|
|
</view>
|
|
|
- <view style="padding:0 0upx 0 20upx;" >
|
|
|
|
|
|
|
+ <view style="padding:0 0upx 0 15upx;" >
|
|
|
|
|
+ <button class="admin-button-com middle blue" @click="refreshItem()">刷新</button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view style="padding:0 0upx 0 15upx;" >
|
|
|
<button class="admin-button-com middle blue" @click="pageTo({ url: '/admin/ptItem/itemList' })">添花材</button>
|
|
<button class="admin-button-com middle blue" @click="pageTo({ url: '/admin/ptItem/itemList' })">添花材</button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -162,19 +165,25 @@ export default {
|
|
|
...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo" })
|
|
...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo" })
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
|
- this.shopId = this.getMyShopInfo.id;
|
|
|
|
|
- let type = '';
|
|
|
|
|
- if(this.option.delStatus){
|
|
|
|
|
- this.delStatus = this.option.delStatus
|
|
|
|
|
- }
|
|
|
|
|
- let requestType = this.option.warning && this.option.warning == 1 ? 'warning' : 'itemList'
|
|
|
|
|
- this.initData({ type, shopId: this.shopId,status:this.status,delStatus:this.delStatus,requestType:requestType})
|
|
|
|
|
|
|
+ this.initItem()
|
|
|
let that = this
|
|
let that = this
|
|
|
getWeixinId().then(res => {
|
|
getWeixinId().then(res => {
|
|
|
that.getAppIdList = res.data
|
|
that.getAppIdList = res.data
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ initItem(){
|
|
|
|
|
+ this.shopId = this.getMyShopInfo.id;
|
|
|
|
|
+ let type = '';
|
|
|
|
|
+ if(this.option.delStatus){
|
|
|
|
|
+ this.delStatus = this.option.delStatus
|
|
|
|
|
+ }
|
|
|
|
|
+ let requestType = this.option.warning && this.option.warning == 1 ? 'warning' : 'itemList'
|
|
|
|
|
+ this.initData({ type, shopId: this.shopId,status:this.status,delStatus:this.delStatus,requestType:requestType})
|
|
|
|
|
+ },
|
|
|
|
|
+ refreshItem(){
|
|
|
|
|
+ this.initItem()
|
|
|
|
|
+ },
|
|
|
hideChangeFn(item,status){
|
|
hideChangeFn(item,status){
|
|
|
let that = this
|
|
let that = this
|
|
|
changeFrontHide({id:item.id,status:status}).then(res=>{
|
|
changeFrontHide({id:item.id,status:status}).then(res=>{
|