|
@@ -494,11 +494,9 @@ export default {
|
|
|
this.$refs['replaceForm'].validateField('cover');
|
|
this.$refs['replaceForm'].validateField('cover');
|
|
|
},
|
|
},
|
|
|
copyCreateCp(info,needLevelItem){
|
|
copyCreateCp(info,needLevelItem){
|
|
|
- if(needLevelItem == 1){
|
|
|
|
|
- if(this.currentCpClassId == 0){
|
|
|
|
|
- this.$message.error('请选产品分类')
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if(this.currentCpClassId == 0){
|
|
|
|
|
+ this.$message.error('请选产品分类')
|
|
|
|
|
+ return false
|
|
|
}
|
|
}
|
|
|
this.$confirm('确认复制新建?', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
|
|
this.$confirm('确认复制新建?', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
|
|
|
this.$service.ptCp.copyCreateCp({id:info.id,needLevelItem:needLevelItem,cpClassId:this.currentCpClassId}).then(res=>{
|
|
this.$service.ptCp.copyCreateCp({id:info.id,needLevelItem:needLevelItem,cpClassId:this.currentCpClassId}).then(res=>{
|