shish hace 2 años
padre
commit
daedac8c54
Se han modificado 2 ficheros con 7 adiciones y 3 borrados
  1. 6 2
      ghsApp/src/admin/cp/ptCpList.vue
  2. 1 1
      ghsApp/src/api/cp/index.js

+ 6 - 2
ghsApp/src/admin/cp/ptCpList.vue

@@ -125,12 +125,16 @@ export default {
                     return
                 }
                 this.$util.confirmModal({content:'确认采用?'},() => {
+                    uni.showLoading({mask:true})
                     addPtCp({id:item.id}).then(res=>{
+                        uni.hideLoading()
                         if(res.code == 1){
-//                    this.$util.pageTo({ url: '/admin/cp/addCp?ptCpId='+item.id,type:2})
+                            that.$msg("导入成功,可修改所属分类")
+                            setTimeout(function(){
+                                that.$util.pageTo({ url: '/admin/cp/updateCp?id='+res.data.cp.id,type:2})
+                            },1500)
                         }
                     })
-
                 })
             }
         }

+ 1 - 1
ghsApp/src/api/cp/index.js

@@ -8,7 +8,7 @@ export const updateCpFn = data => {
 	return https.post('/cp/update-cp', data)
 }
 
-export const usePtCp = data => {
+export const addPtCp = data => {
 	return https.get('/cp/add-pt-cp', data)
 }