diff --git a/manager/src/views/my-components/lili/editor.vue b/manager/src/views/my-components/lili/editor.vue
index e871d5b5..cc064388 100644
--- a/manager/src/views/my-components/lili/editor.vue
+++ b/manager/src/views/my-components/lili/editor.vue
@@ -63,7 +63,7 @@ export default {
data() {
return {
editor: null, // 富文本编辑器初始化
- data: this.value, // 富文本数据
+ data: '', // 富文本数据
dataEdit: "", // 编辑数据
showHTMLModal: false, // 显示html
full: false, // html全屏开关
@@ -185,12 +185,10 @@ export default {
if (!editor) {
this.initEditor();
}
- if (value && value != this.data) {
- this.data = value;
- editor.txt.html(this.data);
- this.$emit("input", this.data);
- this.$emit("on-change", this.data);
- }
+ this.data = value;
+ editor.txt.html(this.data);
+ this.$emit("input", this.data);
+ this.$emit("on-change", this.data);
},
},
watch: {
diff --git a/manager/src/views/my-components/lili/upload-pic-input.vue b/manager/src/views/my-components/lili/upload-pic-input.vue
index d112cc01..86f8166a 100644
--- a/manager/src/views/my-components/lili/upload-pic-input.vue
+++ b/manager/src/views/my-components/lili/upload-pic-input.vue
@@ -11,15 +11,15 @@
:readonly="readonly"
:maxlength="maxlength"
>
-
+
+
+
+
-
-
-
-
+
-
+
diff --git a/manager/src/views/page/article-manage/articleList.vue b/manager/src/views/page/article-manage/articleList.vue
index cc66d389..d8d97d6e 100644
--- a/manager/src/views/page/article-manage/articleList.vue
+++ b/manager/src/views/page/article-manage/articleList.vue
@@ -4,7 +4,7 @@
-
+
@@ -18,9 +18,9 @@
-
+
-
+
@@ -57,7 +57,7 @@
-
+
@@ -154,28 +154,7 @@ export default {
title: "是否显示",
key: "openStatus",
width: 100,
- slot: "openStatusSlot",
- /*render: (h, params) => {
- if (params.row.openStatus == "CLOSE") {
- return h("div", [
- h("Badge", {
- props: {
- status: "error",
- text: "隐藏",
- },
- }),
- ]);
- } else if (params.row.openStatus == "OPEN") {
- return h("div", [
- h("Badge", {
- props: {
- status: "success",
- text: "展示",
- },
- }),
- ]);
- }
- },*/
+ slot: "openStatusSlot"
},
{
title: "排序",
@@ -266,11 +245,13 @@ export default {
},
},
methods: {
+ // 初始化数据
init() {
this.getDataList();
this.getAllList(0);
},
- handleSearchChange(data) {
+ // 选择分类回调
+ handleCateChange(data) {
let { value, title } = data[0];
this.list.push({
value,
@@ -279,7 +260,7 @@ export default {
this.searchForm.categoryId = value;
this.searchTreeValue = title;
},
- //是否展示事件
+ //是否展示文章
changeSwitch(v) {
let params = {
status: v.openStatus,
@@ -290,6 +271,7 @@ export default {
}
});
},
+ // 文章分类的选择事件
handleCheckChange(data) {
let value = "";
let title = "";
@@ -307,36 +289,33 @@ export default {
this.form.categoryId = value;
this.treeValue = title;
},
+ // 改变页数
changePage(v) {
this.searchForm.pageNumber = v;
this.getDataList();
this.clearSelectAll();
},
+ // 改变页码
changePageSize(v) {
this.searchForm.pageSize = v;
this.getDataList();
},
+ // 搜索列表
handleSearch() {
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
- changeSort(e) {
- this.searchForm.sort = e.key;
- this.searchForm.order = e.order;
- if (e.order === "normal") {
- this.searchForm.order = "";
- }
- this.getDataList();
- },
+ // 取消全选
clearSelectAll() {
this.$refs.table.selectAll(false);
},
+ // 列表选择回调
changeSelect(e) {
this.selectList = e;
this.selectCount = e.length;
},
-
+ // 获取全部文章分类
getAllList(parent_id) {
this.loading = true;
getArticleCategory(parent_id).then((res) => {
@@ -353,6 +332,7 @@ export default {
}
});
},
+ // 文章分类格式化方法
getTree(tree = []) {
let arr = [];
if (!!tree && tree.length !== 0) {
@@ -369,6 +349,7 @@ export default {
}
return arr;
},
+ // 获取文章列表
getDataList(val) {
if (val) this.form = {};
this.loading = true;
@@ -387,7 +368,7 @@ export default {
this.total = this.data.length;
this.loading = false;
},
-
+ // 添加文章
handleSubmit() {
this.$refs.form.validate((valid) => {
if (valid) {
@@ -417,16 +398,26 @@ export default {
}
});
},
+ // 添加文章modal
add() {
this.modalType = 0;
this.modalTitle = "添加文章";
+ this.treeValue = '';
+ this.form = {
+ content:''
+ };
this.$refs.form.resetFields();
delete this.form.id;
this.modalVisible = true;
},
+ // 编辑文章modal
edit(data) {
this.modalType = 1;
this.modalTitle = "编辑文章";
+ this.treeValue = '';
+ this.form = {
+ content:''
+ };
this.$refs.form.resetFields();
seeArticle(data.id).then((res) => {
diff --git a/manager/src/views/promotion/coupon/couponPublish.vue b/manager/src/views/promotion/coupon/couponPublish.vue
index 58f7dafa..35847cad 100644
--- a/manager/src/views/promotion/coupon/couponPublish.vue
+++ b/manager/src/views/promotion/coupon/couponPublish.vue
@@ -145,7 +145,7 @@ export default {
if (this.id) {
this.getCoupon()
} else {
- this.$refs.form.resetFiles()
+ this.$refs.form.resetFields()
}
}
},
diff --git a/manager/src/views/sys/slider/slider.vue b/manager/src/views/sys/slider/slider.vue
index e9b94ea7..62f98ca6 100644
--- a/manager/src/views/sys/slider/slider.vue
+++ b/manager/src/views/sys/slider/slider.vue
@@ -13,8 +13,6 @@
:data="data"
ref="table"
sortable="custom"
- @on-sort-change="changeSort"
- @on-selection-change="changeSelect"
>
@@ -53,8 +51,6 @@
:data="data"
ref="table"
sortable="custom"
- @on-sort-change="changeSort"
- @on-selection-change="changeSelect"
>
@@ -99,7 +95,7 @@
/>
-
+
@@ -119,15 +115,16 @@
-
diff --git a/seller/src/views/goods/goods-seller/goodsOperationFirst.vue b/seller/src/views/goods/goods-seller/goodsOperationFirst.vue
index ef282159..296eaed7 100644
--- a/seller/src/views/goods/goods-seller/goodsOperationFirst.vue
+++ b/seller/src/views/goods/goods-seller/goodsOperationFirst.vue
@@ -108,10 +108,8 @@ export default {
goodsType: '',
/** 1级分类列表*/
categoryListLevel1: [],
-
/** 2级分类列表*/
categoryListLevel2: [],
-
/** 3级分类列表*/
categoryListLevel3: [],
}
diff --git a/seller/src/views/goods/goods-seller/goodsOperationSec.vue b/seller/src/views/goods/goods-seller/goodsOperationSec.vue
index bb84c629..371dbbca 100644
--- a/seller/src/views/goods/goods-seller/goodsOperationSec.vue
+++ b/seller/src/views/goods/goods-seller/goodsOperationSec.vue
@@ -59,36 +59,33 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -98,7 +95,7 @@
规格名称