添加注释,删除无用代码

This commit is contained in:
mabo
2021-05-13 18:09:36 +08:00
parent 967e673647
commit a2752a731d
122 changed files with 868 additions and 1185 deletions

View File

@@ -104,11 +104,7 @@ export default {
},
data() {
return {
maxHeight: "240px",
modalType: 0,
/** 当前状态/模式 默认发布商品0 编辑商品1 编辑草稿箱商品2 */
currentStatus: 0,
categoryId: 0,
modalType: 0, // 当前类型
loading: false, // 表单加载状态
searchForm: {
// 搜索框初始化对象

View File

@@ -150,12 +150,7 @@ export default {
}
};
return {
arrScopeId: [],
maxHeight: "240px",
modalType: 0,
/** 当前状态/模式 默认发布商品0 编辑商品1 编辑草稿箱商品2 */
currentStatus: 0,
categoryId: 0,
modalType: 0, // 是否编辑
form: {
/** 店铺承担比例 */
storeCommission: 0,
@@ -173,7 +168,7 @@ export default {
promotionGoodsList: [],
scopeIdGoods: [],
},
id: this.$route.query.id,
id: this.$route.query.id, // 优惠券id
submitLoading: false, // 添加或编辑提交状态
selectedGoods: [], // 已选商品列表,便于删除
goodsCategoryList: [], // 商品分类列表

View File

@@ -61,7 +61,6 @@ export default {
data() {
return {
loading: true, // 表单加载状态
modalType: 0, // 添加或编辑标识
searchForm: {
// 搜索框初始化对象
@@ -70,7 +69,7 @@ export default {
sort: "createTime", // 默认排序字段
order: "desc", // 默认排序方式
},
id: this.$route.query.id,
id: this.$route.query.id, // 优惠券id
submitLoading: false, // 添加或编辑提交状态
selectList: [], // 多选数据

View File

@@ -96,13 +96,13 @@ export default {
data() {
return {
loading: false, // 表单加载状态
searchForm: {
searchForm: { // 请求参数
pageNumber: 0,
pageSize: 10,
sort: "startTime",
order: "desc",
},
columns: [
columns: [ // 表头
{
title: "活动名称",
key: "promotionName",

View File

@@ -184,16 +184,15 @@ export default {
name: "addFullCut",
data() {
return {
form: {
form: { // 表单
discountType: "isFullMinus",
scopeType: "ALL",
promotionGoodsList: [],
},
id: this.$route.query.id,
couponList: [],
giftList: [],
giftLoading: false,
couponList: false,
id: this.$route.query.id, // 活动id
couponList: [], // 优惠券列表
giftList: [], // 赠品列表
giftLoading: false, // 赠品加载状态
columns: [
{
type: "selection",

View File

@@ -100,7 +100,7 @@ export default {
data() {
return {
loading: true, // 表单加载状态
openSearch: true,
openSearch: true, // 显示搜索项
searchForm: {
// 搜索框初始化对象
pageNumber: 0, // 当前页数
@@ -108,7 +108,7 @@ export default {
sort: "startTime",
order: "desc", // 默认排序方式
},
columns: [
columns: [ // 表头
{
title: "活动名称",
key: "promotionName",

View File

@@ -71,8 +71,8 @@ const buyerUrl =
export default {
data() {
return {
visible: false,
showImg: "",
visible: false,// 预览图片
showImg: "", // 预览图片url
openSearch: true, // 显示搜索
openTip: true, // 显示提示
loading: false, // 表单加载状态

View File

@@ -150,11 +150,6 @@ export default {
}
};
return {
maxHeight: "240px",
modalType: 0,
/** 当前状态/模式 默认发布商品0 编辑商品1 编辑草稿箱商品2 */
currentStatus: 0,
categoryId: 0,
form: {
/** 店铺承担比例 */
sellerCommission: 0,
@@ -171,8 +166,8 @@ export default {
getType: "FREE",
promotionGoodsList: [],
},
pointsGoodsList: [],
categoryList: [],
pointsGoodsList: [], // 积分商品列表
categoryList: [], // 分类列表
submitLoading: false, // 添加或编辑提交状态
selectedGoods: [], // 已选商品列表,便于删除
formRule: {

View File

@@ -118,11 +118,7 @@ export default {
name: "addCoupon",
data() {
return {
maxHeight: "240px",
modalType: 0,
/** 当前状态/模式 默认发布商品0 编辑商品1 编辑草稿箱商品2 */
currentStatus: 0,
categoryId: 0,
modalType: 0, // 添加、编辑标识
form: {
/** 活动名称 */
promotionName: "",
@@ -137,9 +133,8 @@ export default {
goodsSku: {},
promotionStatus: "NEW",
},
categoryList: [],
id: this.$route.query.id,
periodTime: 0,
categoryList: [], // 分类列表
id: this.$route.query.id, // 活动id
submitLoading: false, // 添加或编辑提交状态
formRule: {

View File

@@ -150,13 +150,13 @@ export default {
pageSize: 10, // 页面大小
order: "desc", // 默认排序方式
},
statusList: [
statusList: [ // 活动状态
{ label: "未开始", value: "NEW" },
{ label: "已开始", value: "START" },
{ label: "已结束", value: "END" },
{ label: "已关闭", value: "CLOSE" },
],
columns: [
columns: [ // 表头
{
title: "商品名称",
slot: "goodsName",

View File

@@ -76,11 +76,7 @@ export default {
},
data() {
return {
currView: "index",
loading: false,
selectCount: 0,
categoryId: "",
expandLevel: 1,
loading: false, // 加载状态
modalType: 0, // 添加或编辑标识
modalVisible: false, // 添加或编辑显示
modalTitle: "", // 添加或编辑标题

View File

@@ -97,11 +97,7 @@ export default {
name: "addSeckill",
data() {
return {
maxHeight: "240px",
modalType: 0,
/** 当前状态/模式 默认发布商品0 编辑商品1 编辑草稿箱商品2 */
currentStatus: 0,
categoryId: 0,
modalType: 0, // 添加、编辑标识
form: {
/** 活动名称 */
promotionName: "",
@@ -115,9 +111,9 @@ export default {
seckillRule: "",
promotionStatus: "NEW",
},
id: this.$route.query.id,
periodTime: null,
showAddPeriod: false,
id: this.$route.query.id, // 活动id
periodTime: null, // 抢购时间段
showAddPeriod: false, // input显隐
submitLoading: false, // 添加或编辑提交状态
formRule: {

View File

@@ -145,9 +145,7 @@ export default {
sort: "startTime",
order: "desc", // 默认排序方式
},
selectList: [], // 多选数据
selectCount: 0, // 多选计数
columns: [
columns: [ // 表单
{
title: "活动名称",
key: "promotionName",

View File

@@ -168,21 +168,21 @@
export default {
data() {
return {
promotionStatus: "",
showModal: false,
openTip: true,
promotionStatus: "", // 活动状态
showModal: false, // modal显隐
openTip: true, // 显示提示
loading: false, // 表单加载状态
submitLoading: false,
submitLoading: false, // 加载状态
searchForm: {
// 搜索框初始化对象
pageNumber: 0, // 当前页数
pageSize: 100, // 页面大小
},
total: 0,
total: 0, // 总数
selectList: [], // 多选数据
selectCount: 0, // 多选计数
data: [], // 表单数据
columns: [
columns: [ // 表头
{
title: "活动名称",
key: "promotionName",
@@ -246,7 +246,7 @@
},
},
],
goodsColumns: [
goodsColumns: [ // 商品表单
{type: "selection", width: 60, align: "center"},
{
title: "商品名称",