Commit 8ffe4515 by cpa

商家端上下架完善。

parent 572b97b5
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
</template> </template>
<script> <script>
let DBG = true let DBG = false
import { import {
ZmMixin ZmMixin
......
...@@ -174,7 +174,20 @@ ...@@ -174,7 +174,20 @@
this.$message.success('上架成功') this.$message.success('上架成功')
this.getList(this.page) this.getList(this.page)
}) })
}else if(a.search('审核中') != -1){ }else if(a.search('审核拒绝') != -1){
let ids = d.map(r => { return r.id }).join(',')
this.$confirm('请确认是否上架已勾选的商品', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(function () {
return isUpon({ids: ids})
}).then(data => {
this.$message.success('上架成功')
this.getList(this.page)
})
}
else if(a.search('审核中') != -1){
this.$message.error('只作用于商家下架的商品,已经上架正在审核') this.$message.error('只作用于商家下架的商品,已经上架正在审核')
return; return;
}else if (a.search('平台下架') != -1){ }else if (a.search('平台下架') != -1){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment