发布文章图片不回显,发布商品不选类型可以点下一步
parent
1028b8189e
commit
3a76ba2c1f
|
@ -47,7 +47,7 @@
|
||||||
"vue-router": "^3.1.3",
|
"vue-router": "^3.1.3",
|
||||||
"vuedraggable": "^2.23.2",
|
"vuedraggable": "^2.23.2",
|
||||||
"vuex": "^3.4.0",
|
"vuex": "^3.4.0",
|
||||||
"wangeditor": "^4.5.3",
|
"wangeditor": "^4.7.5",
|
||||||
"xlsx": "^0.16.2",
|
"xlsx": "^0.16.2",
|
||||||
"xss": "^1.0.7"
|
"xss": "^1.0.7"
|
||||||
},
|
},
|
||||||
|
|
|
@ -80,11 +80,11 @@ export const updateArticleCategory = (params, id) => {
|
||||||
}
|
}
|
||||||
//文章添加
|
//文章添加
|
||||||
export const saveArticle = (params) => {
|
export const saveArticle = (params) => {
|
||||||
return postRequest('/article', params)
|
return postRequest('/article', params, {"Content-Type": "application/json"})
|
||||||
}
|
}
|
||||||
//文章修改
|
//文章修改
|
||||||
export const updateArticle = (params) => {
|
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) => {
|
export const updateArticleStatus = (id,params) => {
|
||||||
|
|
|
@ -17,14 +17,14 @@ export default {
|
||||||
* @description api请求基础路径
|
* @description api请求基础路径
|
||||||
*/
|
*/
|
||||||
api_dev: {
|
api_dev: {
|
||||||
common: "https://common-api.pickmall.cn",
|
// common: "https://common-api.pickmall.cn",
|
||||||
buyer: "https://buyer-api.pickmall.cn",
|
// buyer: "https://buyer-api.pickmall.cn",
|
||||||
seller: "https://store-api.pickmall.cn",
|
// seller: "https://store-api.pickmall.cn",
|
||||||
manager: "https://admin-api.pickmall.cn"
|
// manager: "https://admin-api.pickmall.cn"
|
||||||
// common: 'http://192.168.0.109:8890',
|
common: 'http://192.168.0.109:8890',
|
||||||
// buyer: 'http://192.168.0.109:8888',
|
buyer: 'http://192.168.0.109:8888',
|
||||||
// seller: 'http://192.168.0.109:8889',
|
seller: 'http://192.168.0.109:8889',
|
||||||
// manager: 'http://192.168.0.109:8887'
|
manager: 'http://192.168.0.109:8887'
|
||||||
},
|
},
|
||||||
api_prod: {
|
api_prod: {
|
||||||
common: "https://common-api.pickmall.cn",
|
common: "https://common-api.pickmall.cn",
|
||||||
|
|
|
@ -122,6 +122,7 @@ export default {
|
||||||
// 如果服务器端返回的不是 {errno:0, data: [...]} 这种格式,可使用该配置
|
// 如果服务器端返回的不是 {errno:0, data: [...]} 这种格式,可使用该配置
|
||||||
customInsert: function (insertImg, result, editor) {
|
customInsert: function (insertImg, result, editor) {
|
||||||
if (result.success == true) {
|
if (result.success == true) {
|
||||||
|
console.log(insertImg,result,editor);
|
||||||
let url = result.result;
|
let url = result.result;
|
||||||
insertImg(url);
|
insertImg(url);
|
||||||
that.$Message.success("上传图片成功");
|
that.$Message.success("上传图片成功");
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="operation">
|
<div class="operation mb_10">
|
||||||
<Button @click="addParent" icon="md-add">添加一级分类</Button>
|
<Button @click="addParent" icon="md-add">添加一级分类</Button>
|
||||||
</div>
|
</div>
|
||||||
<tree-table
|
<tree-table
|
||||||
|
@ -16,10 +16,9 @@
|
||||||
primary-key="id">
|
primary-key="id">
|
||||||
<template slot="action" slot-scope="scope">
|
<template slot="action" slot-scope="scope">
|
||||||
<Button
|
<Button
|
||||||
type="primary"
|
type="info"
|
||||||
@click="edit(scope.row)"
|
@click="edit(scope.row)"
|
||||||
size="small"
|
size="small"
|
||||||
icon="md-add"
|
|
||||||
style="margin-right:5px"
|
style="margin-right:5px"
|
||||||
>编辑
|
>编辑
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -28,17 +27,14 @@
|
||||||
type="error"
|
type="error"
|
||||||
@click="remove(scope.row)"
|
@click="remove(scope.row)"
|
||||||
size="small"
|
size="small"
|
||||||
icon="md-add"
|
|
||||||
style="margin-right:5px"
|
style="margin-right:5px"
|
||||||
>删除
|
>删除
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
v-show="scope.row.level != 2 "
|
v-show="scope.row.level != 2 "
|
||||||
type="primary"
|
type="success"
|
||||||
@click="addChildren(scope.row)"
|
@click="addChildren(scope.row)"
|
||||||
size="small"
|
size="small"
|
||||||
icon="md-add"
|
|
||||||
style="margin-right:5px"
|
style="margin-right:5px"
|
||||||
>添加子分类
|
>添加子分类
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
@ -18,14 +18,14 @@ export default {
|
||||||
* @description api请求基础路径
|
* @description api请求基础路径
|
||||||
*/
|
*/
|
||||||
api_dev: {
|
api_dev: {
|
||||||
// common: 'https://common-api.pickmall.cn',
|
common: 'https://common-api.pickmall.cn',
|
||||||
// buyer: 'https://buyer-api.pickmall.cn',
|
buyer: 'https://buyer-api.pickmall.cn',
|
||||||
// seller: 'https://store-api.pickmall.cn',
|
seller: 'https://store-api.pickmall.cn',
|
||||||
// manager: 'https://admin-api.pickmall.cn',
|
manager: 'https://admin-api.pickmall.cn',
|
||||||
common: 'http://192.168.0.109:8890',
|
// common: 'http://192.168.0.109:8890',
|
||||||
buyer: 'http://192.168.0.109:8888',
|
// buyer: 'http://192.168.0.109:8888',
|
||||||
seller: 'http://192.168.0.109:8889',
|
// seller: 'http://192.168.0.109:8889',
|
||||||
manager: 'http://192.168.0.109:8887'
|
// manager: 'http://192.168.0.109:8887'
|
||||||
|
|
||||||
},
|
},
|
||||||
api_prod: {
|
api_prod: {
|
||||||
|
|
|
@ -151,12 +151,6 @@
|
||||||
<Icon type="ios-eye-outline" size="30" @click.native="handleViewGoodsPicture(item.url)"></Icon>
|
<Icon type="ios-eye-outline" size="30" @click.native="handleViewGoodsPicture(item.url)"></Icon>
|
||||||
<Icon type="ios-trash-outline" size="30" @click.native="handleRemoveGoodsPicture(item)"></Icon>
|
<Icon type="ios-trash-outline" size="30" @click.native="handleRemoveGoodsPicture(item)"></Icon>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div>
|
|
||||||
<Icon type="ios-arrow-dropleft" @click.native="
|
|
||||||
handleGoodsPicRemoteUp(baseInfoForm.goodsGalleryFiles,__index)"/>
|
|
||||||
<Icon type="ios-arrow-dropright" @click.native="
|
|
||||||
handleGoodsPicRemoteDown(baseInfoForm.goodsGalleryFiles,__index)"/>
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
@ -808,23 +802,6 @@ export default {
|
||||||
this.draftId = "";
|
this.draftId = "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 移动商品图片位置
|
|
||||||
handleGoodsPicRemoteUp(fieldData, index) {
|
|
||||||
if (index != 0) {
|
|
||||||
fieldData[index] = fieldData.splice(index - 1, 1, fieldData[index])[0];
|
|
||||||
} else {
|
|
||||||
fieldData.push(fieldData.shift());
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 移动商品图片位置
|
|
||||||
handleGoodsPicRemoteDown(fieldData, index) {
|
|
||||||
if (index != fieldData.length - 1) {
|
|
||||||
fieldData[index] = fieldData.splice(index + 1, 1, fieldData[index])[0];
|
|
||||||
} else {
|
|
||||||
fieldData.unshift(fieldData.splice(index, 1)[0]);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 获取商品模板
|
// 获取商品模板
|
||||||
GET_GoodsTemplate() {
|
GET_GoodsTemplate() {
|
||||||
let searchParams = {
|
let searchParams = {
|
||||||
|
@ -1460,6 +1437,11 @@ export default {
|
||||||
this.GET_GoodsParams();
|
this.GET_GoodsParams();
|
||||||
/** 1级校验 */
|
/** 1级校验 */
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
if (this.activestep === 0 && !this.baseInfoForm.goodsType) {
|
||||||
|
this.$Message.error('请选择商品类型')
|
||||||
|
this.loading = false;
|
||||||
|
return
|
||||||
|
}
|
||||||
if (this.activestep === 0 && !this.activeCategoryName1) {
|
if (this.activestep === 0 && !this.activeCategoryName1) {
|
||||||
this.$Message.error("请选择商品分类");
|
this.$Message.error("请选择商品分类");
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
Loading…
Reference in New Issue