|
|
@@ -50,7 +50,7 @@ import productContraposeMins from "@/mixins/ptProductContrapose";
|
|
|
import { mapGetters } from "vuex";
|
|
|
import { delStatusUpdate } from "@/api/product";
|
|
|
import { changeAuth } from "@/api/pt-item";
|
|
|
-import { getPtCpList } from "@/api/cp"
|
|
|
+import { getPtCpList,usePtCp } from "@/api/cp"
|
|
|
export default {
|
|
|
name: "ptCpList",
|
|
|
components: {
|
|
|
@@ -125,7 +125,12 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
this.$util.confirmModal({content:'确认采用?'},() => {
|
|
|
- this.$util.pageTo({ url: '/admin/cp/addCp?ptCpId='+item.id,type:2})
|
|
|
+ usePtCp({id:item.id}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+// this.$util.pageTo({ url: '/admin/cp/addCp?ptCpId='+item.id,type:2})
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
}
|