|
@@ -15,7 +15,7 @@
|
|
|
<view class="operate-icon">
|
|
<view class="operate-icon">
|
|
|
<i class="iconfont iconbianji" style="font-size:38upx;"></i>
|
|
<i class="iconfont iconbianji" style="font-size:38upx;"></i>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="operate-icon" @click.stop="delJhClass(item)">
|
|
|
|
|
|
|
+ <view class="operate-icon" @click.stop="delCpClass(item)">
|
|
|
<i class="iconfont iconshanchu1" style="font-size:38upx;"></i>
|
|
<i class="iconfont iconshanchu1" style="font-size:38upx;"></i>
|
|
|
</view>
|
|
</view>
|
|
|
</div>
|
|
</div>
|
|
@@ -63,7 +63,7 @@ import AppUploader from '@/components/app-uploader'
|
|
|
import OperateModule from '@/admin/home/components/module/operate'
|
|
import OperateModule from '@/admin/home/components/module/operate'
|
|
|
import AppWrapperEmpty from '@/components/app-wrapper-empty'
|
|
import AppWrapperEmpty from '@/components/app-wrapper-empty'
|
|
|
import { list } from '@/mixins'
|
|
import { list } from '@/mixins'
|
|
|
-import { getJhClassList,addJhClass,updateJhClass,delJhClass} from '@/api/cp'
|
|
|
|
|
|
|
+import { getCpClassList,addCpClass,updateCpClass,delCpClass} from '@/api/cp'
|
|
|
export default {
|
|
export default {
|
|
|
name: 'item-class-list',
|
|
name: 'item-class-list',
|
|
|
components: {
|
|
components: {
|
|
@@ -138,10 +138,10 @@ export default {
|
|
|
printChange(e){
|
|
printChange(e){
|
|
|
this.replaceForm.print = e.target.value ? 1 : 0
|
|
this.replaceForm.print = e.target.value ? 1 : 0
|
|
|
},
|
|
},
|
|
|
- delJhClass(item){
|
|
|
|
|
|
|
+ delCpClass(item){
|
|
|
let that = this
|
|
let that = this
|
|
|
that.$util.confirmModal({content:'确认删除?此分类的产品将移到默认分类'},() => {
|
|
that.$util.confirmModal({content:'确认删除?此分类的产品将移到默认分类'},() => {
|
|
|
- delJhClass({id:item.id}).then(res=>{
|
|
|
|
|
|
|
+ delCpClass({id:item.id}).then(res=>{
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
that.$msg('删除成功')
|
|
that.$msg('删除成功')
|
|
|
that.getClassList()
|
|
that.getClassList()
|
|
@@ -177,7 +177,7 @@ export default {
|
|
|
this.getClassList()
|
|
this.getClassList()
|
|
|
},
|
|
},
|
|
|
getClassList() {
|
|
getClassList() {
|
|
|
- return getJhClassList({page: this.list.page}).then(res => {
|
|
|
|
|
|
|
+ return getCpClassList({page: this.list.page}).then(res => {
|
|
|
this.completes(res)
|
|
this.completes(res)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -186,7 +186,7 @@ export default {
|
|
|
this.$msg('请填写分类名称')
|
|
this.$msg('请填写分类名称')
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
- let host = this.replaceForm.id == 0 ? addJhClass : updateJhClass;
|
|
|
|
|
|
|
+ let host = this.replaceForm.id == 0 ? addCpClass : updateCpClass;
|
|
|
let form = JSON.parse(JSON.stringify(this.replaceForm))
|
|
let form = JSON.parse(JSON.stringify(this.replaceForm))
|
|
|
host({
|
|
host({
|
|
|
...form
|
|
...form
|