Commit 7418b237 by cpa

添加视频未加载

parent e050452c
......@@ -41,15 +41,25 @@ export function getGoodsDetails(query) {
}
// addOrEditGoods(this.form)
// .then((res)=>{
// this.$message.success('添加成功')
// this.$emit('success')
// }).catch(e => {
// this.$message.success('添加失败')
// });
// }).catch(() => {
// this.tableLoading = false
// })
// export function addOrEditGoods(data) {
// return request({
// url: '/admin/merchantMallGoods/addOrEditGoods',
// method: 'post',
// params: data
//
// })
// }
export function addOrEditGoods(data) {
return request({
url: '/admin/mallGoods/addOrEditGoods',
method: 'post',
params: data
})
}
/*** 自定义添加 ***/
......
......@@ -175,7 +175,7 @@
<script>
let DBG = false
let DBG = true
import {
ZmMixin
} from '@/mixins/ZmMixin.js'
......@@ -189,6 +189,7 @@
getGoodsDetails,
addOrEditGoods,
getMerchantByAccount,
addOrEdit
} from './goods_api.js'
export default {
......@@ -687,23 +688,26 @@
{account: account}
).then(response => {
this.form.merchantId=response.data.data.id
this.$http.post('/admin/mallGoods/addOrEdit',JSON.stringify(this.form),
this.$http.post('/admin/merchantMallGoods/addOrEditGoods',JSON.stringify(this.form),
{headers:{'Content-Type':'application/json;charset=UTF-8'}})
.then((res)=>{
this.$message.success('添加成功')
this.$message.success('操作成功')
this.$emit('success')
}).catch(e => {
this.$message.success('添加失败')
this.$message.success('操作失败')
});
}).catch(() => {
this.tableLoading = false
})
}else{
addOrEditGoods(this.form).then(data => {
this.$message.success('修改成功')
this.$emit('success')
}).catch(() => {
this.$http.post('/admin/merchantMallGoods/addOrEditGoods',JSON.stringify(this.form),
{headers:{'Content-Type':'application/json;charset=UTF-8'}})
.then((res)=>{
this.$message.success('操作成功')
this.$emit('success')
}).catch(e => {
this.$message.success('操作失败')
});
}
}
......
......@@ -22,6 +22,7 @@
<el-button type="button" size="small"
@click="lookDetail(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">详情</el-button>
<el-button type="button" size="small"
v-if="scope.row.auditState!=0"
@click="handleUpdate(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">编辑</el-button>
<el-button type="button" size="small"
@click="handleDel(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">删除</el-button>
......
......@@ -309,7 +309,7 @@
loadInfo() {
this.loading = true
getOrderInfo({
orderNo: this.id
id: this.id
}).then(r => {
this.loading = false
this.info = this.zmRes(r)
......
......@@ -267,7 +267,7 @@
},
// 查看详情
checkTheDetails(row){
this.$router.push('/businessOrder/details?id=' + row.orderNo)
this.$router.push('/businessOrder/details?id=' + row.id)
},
// 列表查询
getList(page, params) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment