mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-18 00:45:54 +08:00
发布文章图片不回显,发布商品不选类型可以点下一步
This commit is contained in:
@@ -80,11 +80,11 @@ export const updateArticleCategory = (params, id) => {
|
||||
}
|
||||
//文章添加
|
||||
export const saveArticle = (params) => {
|
||||
return postRequest('/article', params)
|
||||
return postRequest('/article', params, {"Content-Type": "application/json"})
|
||||
}
|
||||
//文章修改
|
||||
export const updateArticle = (params) => {
|
||||
return putRequest(`/article/update/${params.id}`, params)
|
||||
return putRequest(`/article/update/${params.id}`, params, {"Content-Type": "application/json"})
|
||||
}
|
||||
//文章是否展示修改
|
||||
export const updateArticleStatus = (id,params) => {
|
||||
|
||||
@@ -17,14 +17,14 @@ export default {
|
||||
* @description api请求基础路径
|
||||
*/
|
||||
api_dev: {
|
||||
common: "https://common-api.pickmall.cn",
|
||||
buyer: "https://buyer-api.pickmall.cn",
|
||||
seller: "https://store-api.pickmall.cn",
|
||||
manager: "https://admin-api.pickmall.cn"
|
||||
// common: 'http://192.168.0.109:8890',
|
||||
// buyer: 'http://192.168.0.109:8888',
|
||||
// seller: 'http://192.168.0.109:8889',
|
||||
// manager: 'http://192.168.0.109:8887'
|
||||
// common: "https://common-api.pickmall.cn",
|
||||
// buyer: "https://buyer-api.pickmall.cn",
|
||||
// seller: "https://store-api.pickmall.cn",
|
||||
// manager: "https://admin-api.pickmall.cn"
|
||||
common: 'http://192.168.0.109:8890',
|
||||
buyer: 'http://192.168.0.109:8888',
|
||||
seller: 'http://192.168.0.109:8889',
|
||||
manager: 'http://192.168.0.109:8887'
|
||||
},
|
||||
api_prod: {
|
||||
common: "https://common-api.pickmall.cn",
|
||||
|
||||
@@ -122,6 +122,7 @@ export default {
|
||||
// 如果服务器端返回的不是 {errno:0, data: [...]} 这种格式,可使用该配置
|
||||
customInsert: function (insertImg, result, editor) {
|
||||
if (result.success == true) {
|
||||
console.log(insertImg,result,editor);
|
||||
let url = result.result;
|
||||
insertImg(url);
|
||||
that.$Message.success("上传图片成功");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="operation">
|
||||
<div class="operation mb_10">
|
||||
<Button @click="addParent" icon="md-add">添加一级分类</Button>
|
||||
</div>
|
||||
<tree-table
|
||||
@@ -16,10 +16,9 @@
|
||||
primary-key="id">
|
||||
<template slot="action" slot-scope="scope">
|
||||
<Button
|
||||
type="primary"
|
||||
type="info"
|
||||
@click="edit(scope.row)"
|
||||
size="small"
|
||||
icon="md-add"
|
||||
style="margin-right:5px"
|
||||
>编辑
|
||||
</Button>
|
||||
@@ -28,17 +27,14 @@
|
||||
type="error"
|
||||
@click="remove(scope.row)"
|
||||
size="small"
|
||||
icon="md-add"
|
||||
style="margin-right:5px"
|
||||
>删除
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
v-show="scope.row.level != 2 "
|
||||
type="primary"
|
||||
type="success"
|
||||
@click="addChildren(scope.row)"
|
||||
size="small"
|
||||
icon="md-add"
|
||||
style="margin-right:5px"
|
||||
>添加子分类
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user