款式详情

zhc4dev
暖暖 2 years ago
parent 31cb1d49af
commit 102e0894e6
  1. 6
      ant-design-vue-jeecg/src/views/zyclothsstyle/ZyClothsStyleList.vue
  2. 9
      ant-design-vue-jeecg/src/views/zyclothsstyle/modules/ZyClothsStyleListDetail.vue

@ -120,7 +120,7 @@
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a> <a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical"/> <a-divider type="vertical"/>
<a @click="handleDetail(record)">详情</a> <a @click="handleDetail(record.id)">详情</a>
<a-divider type="vertical"/> <a-divider type="vertical"/>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a> <a>删除</a>
@ -301,8 +301,8 @@
}); });
}, },
// //
handleDetail(record){ handleDetail(id){
this.$refs.ZyClothsStyleListDetail.showModal(record) this.$refs.ZyClothsStyleListDetail.showModal(id)
}, },
getSuperFieldList() { getSuperFieldList() {
let fieldList = []; let fieldList = [];

@ -368,10 +368,9 @@
} }
}, },
methods: { methods: {
showModal(record) { showModal(id) {
this.visible = true; this.visible = true;
this.model = record this.id = id
this.id = record.id
// this.$http.get('/zyclothsstyle/zyClothsStyle/detail?id='+record.id).then( // this.$http.get('/zyclothsstyle/zyClothsStyle/detail?id='+record.id).then(
// res=>{ // res=>{
// console.log('res') // console.log('res')
@ -390,8 +389,6 @@
}); });
} }
this.confirmLoading = false this.confirmLoading = false
console.log('res.result')
console.log(res.result)
if(this.data1.length == 0){ if(this.data1.length == 0){
this.data1.push(res.result.zyClothsStyle) this.data1.push(res.result.zyClothsStyle)
} }
@ -399,8 +396,6 @@
this.data3 = res.result.zyStyleAccessoriesList this.data3 = res.result.zyStyleAccessoriesList
this.data = res.result.zyStyleModuleList this.data = res.result.zyStyleModuleList
this.data5 = res.result.zyStyleModularList this.data5 = res.result.zyStyleModularList
console.log('data')
console.log(this.data)
}, },
handleOk(e) { handleOk(e) {
this.confirmLoading = true; this.confirmLoading = true;

Loading…
Cancel
Save