shish 2 лет назад
Родитель
Сommit
d84e6704d5
1 измененных файлов с 2 добавлено и 17 удалено
  1. 2 17
      ghsApp/src/admin/item/detail.vue

+ 2 - 17
ghsApp/src/admin/item/detail.vue

@@ -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'})