diff --git a/seller/src/views/Main.vue b/seller/src/views/Main.vue index 6430ff5e..378a1c36 100644 --- a/seller/src/views/Main.vue +++ b/seller/src/views/Main.vue @@ -87,6 +87,7 @@ export default { }, }, methods: { + // 初始化方法 init() { // 菜单 let pathArr = util.setCurrentPath(this, this.$route.name); @@ -103,25 +104,7 @@ export default { this.sliceNum = 2; } }, - selectNav(name) { - this.$store.commit("setCurrNav", name); - this.setStore("currNav", name); - // 清空所有已打开标签 - // this.$store.commit("clearAllTags"); - if (this.$route.name != "home_index") { - this.$router.push({ - name: "home_index", - }); - } - util.initRouter(this); - }, - toggleClick() { - this.shrink = !this.shrink; - }, - handleLanDropdown(name) { - this.$i18n.locale = name; - this.$store.commit("switchLang", name); - }, + // 用户头像下拉 handleClickUserDropdown(name) { if (name == "ownSpace") { util.openNewPage(this, "personal-enter"); @@ -142,6 +125,7 @@ export default { this.$router.push({ path: "/login" }); } }, + // 快捷页签选中状态 checkTag(name) { let openpageHasTag = this.pageTagsList.some((item) => { if (item.name == name) { @@ -158,7 +142,7 @@ export default { ); } }, - + // 宽度变化 resize() { let currWidth = document.body.clientWidth; let count = currWidth / 300; diff --git a/seller/src/views/goods/goods-manage/category.vue b/seller/src/views/goods/goods-manage/category.vue index a6278c62..7a5b2271 100644 --- a/seller/src/views/goods/goods-manage/category.vue +++ b/seller/src/views/goods/goods-manage/category.vue @@ -75,13 +75,11 @@ import * as API_Goods from "@/api/goods"; import TreeTable from "@/views/my-components/tree-table/Table/Table"; -import uploadPicInput from "@/views/my-components/lili/upload-pic-input"; export default { name: "lili-components", components: { - TreeTable, - uploadPicInput + TreeTable }, data() { return { diff --git a/seller/src/views/lili-components/multiple-region.vue b/seller/src/views/lili-components/multiple-region.vue index 91d509d7..21f07bdc 100644 --- a/seller/src/views/lili-components/multiple-region.vue +++ b/seller/src/views/lili-components/multiple-region.vue @@ -191,7 +191,6 @@ export default { this.selectedWay.push({ name: data.title, id: data.id }); }); - console.log(this.data); this.$store.state.regions = this.data; } }); diff --git a/seller/src/views/my-components/map/index.vue b/seller/src/views/my-components/map/index.vue index 6b79b88b..3685e12b 100644 --- a/seller/src/views/my-components/map/index.vue +++ b/seller/src/views/my-components/map/index.vue @@ -1,183 +1,185 @@ diff --git a/seller/src/views/order/after-order/orderComplaint.vue b/seller/src/views/order/after-order/orderComplaint.vue index d4ad014d..b20a21d4 100644 --- a/seller/src/views/order/after-order/orderComplaint.vue +++ b/seller/src/views/order/after-order/orderComplaint.vue @@ -17,12 +17,12 @@ type="text" v-model="searchForm.orderSn" clearable - placeholder="请输入商品名" + placeholder="请输入订单号" style="width: 200px" /> - @@ -43,9 +43,6 @@ :data="data" class="mt_10" ref="table" - sortable="custom" - @on-sort-change="changeSort" - @on-selection-change="changeSelect" > @@ -137,14 +84,7 @@ }, data() { return { - image:[],//评价图片 - replyStatus:false,//回复状态 - modalType: 0, // 添加或编辑标识 - modalVisible: false, // 添加或编辑显示 - modalTitle: "", // 添加或编辑标题 - openTip: true, // 显示提示 loading: true, // 表单加载状态 - content: "",//评价内容 searchForm: { // 搜索框初始化对象 pageNumber: 1, // 当前页数 @@ -152,10 +92,6 @@ sort: "createTime", // 默认排序字段 order: "desc", // 默认排序方式 }, - form: {}, // 表单数据 - submitLoading: false, // 添加或编辑提交状态 - selectList: [], // 多选数据 - selectCount: 0, // 多选计数 columns: [ // 表头 { @@ -213,9 +149,8 @@ "Button", { props: { - type: "primary", - size: "small", - icon: "ios-create-outline", + type: "info", + size: "small" }, style: { marginRight: "5px", @@ -236,8 +171,7 @@ { props: { type: "primary", - size: "small", - icon: "ios-create-outline", + size: "small" }, style: { marginRight: "5px", @@ -262,60 +196,34 @@ }; }, methods: { - init() { + // 初始化数据 + init() { this.getDataList(); }, + // 改变页码 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(); }, + // 重置 handleReset() { this.searchForm = {} 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; - }, - selectDateRange(v) { - if (v) { - this.searchForm.startDate = v[0]; - this.searchForm.endDate = v[1]; - } - }, - dropDown() { - if (this.drop) { - this.dropDownContent = "展开"; - this.dropDownIcon = "ios-arrow-down"; - } else { - this.dropDownContent = "收起"; - this.dropDownIcon = "ios-arrow-up"; - } - this.drop = !this.drop; - }, + // 获取数据 getDataList() { this.loading = true; API_Order.getComplainPage(this.searchForm).then((res) => { @@ -328,21 +236,6 @@ this.total = this.data.length; this.loading = false; }, - //回复 - handleSubmit() { - this.$refs.form.validate((valid) => { - if (valid) { - API_Member.replyMemberReview(this.form.id, this.form).then((res) => { - this.submitLoading = false; - if (res.success) { - this.$Message.success("回复成功"); - this.getDataList(); - this.modalVisible = false; - } - }); - } - }); - }, //投诉详情 detail(v) { let id = v.id; diff --git a/seller/src/views/order/after-order/orderComplaintDetail.vue b/seller/src/views/order/after-order/orderComplaintDetail.vue index c59c4d34..8425eb6b 100644 --- a/seller/src/views/order/after-order/orderComplaintDetail.vue +++ b/seller/src/views/order/after-order/orderComplaintDetail.vue @@ -1,257 +1,245 @@ diff --git a/seller/src/views/promotion/pintuan/pintuanGoods.vue b/seller/src/views/promotion/pintuan/pintuanGoods.vue index b782cf57..90ddd36d 100644 --- a/seller/src/views/promotion/pintuan/pintuanGoods.vue +++ b/seller/src/views/promotion/pintuan/pintuanGoods.vue @@ -146,6 +146,7 @@ export default { ); this.$router.go(-1); }, + // 保存商品 save() { if (this.goodsData.length == 0) { this.$Modal.warning({ title: "提示", content: "请选择活动商品" }); @@ -203,8 +204,6 @@ export default { this.searchForm.pageNumber = 0; this.searchForm.promotionName = ""; this.selectDate = null; - - // 重新加载数据 this.getDataList(); }, @@ -229,7 +228,6 @@ export default { } }); }, - getPintuanMsg() { // 获取拼团详情 getPintuanDetail(this.$route.query.id).then((res) => { if (res.success) this.data.push(res.result); diff --git a/seller/src/views/promotion/seckill/seckill.vue b/seller/src/views/promotion/seckill/seckill.vue index fa0c6ed9..b912778f 100644 --- a/seller/src/views/promotion/seckill/seckill.vue +++ b/seller/src/views/promotion/seckill/seckill.vue @@ -28,6 +28,7 @@ :columns="columns" :data="data" ref="table" + class="mt_10" sortable="custom" >