|
@@ -44,7 +44,8 @@
|
|
|
<view class="cmd-info_bx">
|
|
<view class="cmd-info_bx">
|
|
|
<view class="tit">
|
|
<view class="tit">
|
|
|
{{ xjItem.name || "" }}
|
|
{{ xjItem.name || "" }}
|
|
|
- <text @click="changeNameFn(xjItem)" style="color:#3385ff;margin-left:32upx;font-size:30upx;">修改</text>
|
|
|
|
|
|
|
+ <text @click="delXj(xjItem)" style="color:#3385ff;margin-left:35upx;font-size:30upx;">删除</text>
|
|
|
|
|
+ <text @click="changeNameFn(xjItem)" style="color:#3385ff;margin-left:35upx;font-size:30upx;">修改</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="kc"></view>
|
|
<view class="kc"></view>
|
|
|
<view class="num-open_bx">
|
|
<view class="num-open_bx">
|
|
@@ -89,7 +90,7 @@ import {getProductDetail } from "@/api/product";
|
|
|
import { changeVariety } from "@/api/item"
|
|
import { changeVariety } from "@/api/item"
|
|
|
import { mapGetters } from "vuex"
|
|
import { mapGetters } from "vuex"
|
|
|
import ModalModule from "@/components/plugin/modal"
|
|
import ModalModule from "@/components/plugin/modal"
|
|
|
-import { getFilterXj,ReplaceXj,clearAll,batchAdd,saveAllNum,changeXjName } from "@/api/product/xj"
|
|
|
|
|
|
|
+import { getFilterXj,ReplaceXj,clearAll,batchAdd,saveAllNum,changeXjName,delItem } from "@/api/product/xj"
|
|
|
//图片上传插件来源:https://ext.dcloud.net.cn/plugin?id=2922 已改造,不能再升级 shish 20211228
|
|
//图片上传插件来源:https://ext.dcloud.net.cn/plugin?id=2922 已改造,不能再升级 shish 20211228
|
|
|
import htzImageUpload from '@/components/htz-image-upload/htz-image-upload.vue'
|
|
import htzImageUpload from '@/components/htz-image-upload/htz-image-upload.vue'
|
|
|
export default {
|
|
export default {
|
|
@@ -161,6 +162,17 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ delXj(item){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ that.$util.confirmModal({content:'确认删除?'},() => {
|
|
|
|
|
+ delItem({id:item.id}).then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ that.$msg('删除成功')
|
|
|
|
|
+ that.initXj()
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
changeNameFn(item){
|
|
changeNameFn(item){
|
|
|
this.xjName = item.name
|
|
this.xjName = item.name
|
|
|
this.xjId = item.id
|
|
this.xjId = item.id
|