|
|
@@ -380,27 +380,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
if(this.backCpInfo.needUpdate == 1){
|
|
|
- addCpItem({cpId:that.backCpInfo.cpId,productId:that.productData.id}).then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- that.$msg(res.msg)
|
|
|
- that.hasRequest = 0
|
|
|
- that.init()
|
|
|
- }
|
|
|
- })
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
delOneCp(cp){
|
|
|
- let that = this
|
|
|
- that.$util.confirmModal({content:'确认删除'+cp.cpName+'?'},() => {
|
|
|
- delCpItem({id:cp.id}).then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- that.$msg(res.msg)
|
|
|
- that.hasRequest = 0
|
|
|
- that.init()
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
+ console.log(cp)
|
|
|
},
|
|
|
changeCp(item){
|
|
|
this.$util.pageTo({url: '/admin/cp/list?skip=1'})
|