Commit 7418b237 by cpa

添加视频未加载

parent e050452c
...@@ -41,15 +41,25 @@ export function getGoodsDetails(query) { ...@@ -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 @@ ...@@ -175,7 +175,7 @@
<script> <script>
let DBG = false let DBG = true
import { import {
ZmMixin ZmMixin
} from '@/mixins/ZmMixin.js' } from '@/mixins/ZmMixin.js'
...@@ -189,6 +189,7 @@ ...@@ -189,6 +189,7 @@
getGoodsDetails, getGoodsDetails,
addOrEditGoods, addOrEditGoods,
getMerchantByAccount, getMerchantByAccount,
addOrEdit
} from './goods_api.js' } from './goods_api.js'
export default { export default {
...@@ -687,23 +688,26 @@ ...@@ -687,23 +688,26 @@
{account: account} {account: account}
).then(response => { ).then(response => {
this.form.merchantId=response.data.data.id this.form.merchantId=response.data.data.id
this.$http.post('/admin/merchantMallGoods/addOrEditGoods',JSON.stringify(this.form),
this.$http.post('/admin/mallGoods/addOrEdit',JSON.stringify(this.form),
{headers:{'Content-Type':'application/json;charset=UTF-8'}}) {headers:{'Content-Type':'application/json;charset=UTF-8'}})
.then((res)=>{ .then((res)=>{
this.$message.success('添加成功') this.$message.success('操作成功')
this.$emit('success') this.$emit('success')
}).catch(e => { }).catch(e => {
this.$message.success('添加失败') this.$message.success('操作失败')
}); });
}).catch(() => { }).catch(() => {
this.tableLoading = false this.tableLoading = false
}) })
}else{ }else{
addOrEditGoods(this.form).then(data => { this.$http.post('/admin/merchantMallGoods/addOrEditGoods',JSON.stringify(this.form),
this.$message.success('修改成功') {headers:{'Content-Type':'application/json;charset=UTF-8'}})
this.$emit('success') .then((res)=>{
}).catch(() => { this.$message.success('操作成功')
this.$emit('success')
}).catch(e => {
this.$message.success('操作失败')
}); });
} }
} }
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<el-button type="button" size="small" <el-button type="button" size="small"
@click="lookDetail(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">详情</el-button> @click="lookDetail(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">详情</el-button>
<el-button type="button" size="small" <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> @click="handleUpdate(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">编辑</el-button>
<el-button type="button" size="small" <el-button type="button" size="small"
@click="handleDel(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">删除</el-button> @click="handleDel(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">删除</el-button>
......
...@@ -309,7 +309,7 @@ ...@@ -309,7 +309,7 @@
loadInfo() { loadInfo() {
this.loading = true this.loading = true
getOrderInfo({ getOrderInfo({
orderNo: this.id id: this.id
}).then(r => { }).then(r => {
this.loading = false this.loading = false
this.info = this.zmRes(r) this.info = this.zmRes(r)
......
...@@ -267,7 +267,7 @@ ...@@ -267,7 +267,7 @@
}, },
// 查看详情 // 查看详情
checkTheDetails(row){ checkTheDetails(row){
this.$router.push('/businessOrder/details?id=' + row.orderNo) this.$router.push('/businessOrder/details?id=' + row.id)
}, },
// 列表查询 // 列表查询
getList(page, params) { 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