Compare commits

..

No commits in common. "6219212dc2ddb1663234df3fc536d687f5565ef4" and "4800980a489f3a902a9478dfcf42687dfedc4b52" have entirely different histories.

4 changed files with 44 additions and 64 deletions

View File

@ -143,24 +143,14 @@ router.beforeEach((to, from, next) => {
}); });
console.log(data.data.markets); console.log(data.data.markets);
} else if (data.data.shopId) { } else if (data.data.shopId) {
// 存在单个店铺或云店 // 存在单个店铺
if(data.data.marketId) { store.commit("userData/setState", {
store.commit("userData/setState", { isMerchant: true,
isMerchant: true, marketList: [],
marketList: [], storeList: [],
storeList: [], marketId: data.data.marketId,
marketId: data.data.marketId, shopId: data.data.shopId,
shopId: data.data.shopId, });
});
} else {
store.commit("userData/setState", {
isMerchant: true,
marketList: [],
storeList: [],
marketId: -1,
shopId: data.data.shopId,
});
}
} else { } else {
// 不存在店铺 // 不存在店铺
store.commit("userData/setState", { store.commit("userData/setState", {

View File

@ -32,7 +32,7 @@
<div class="tipsLevel"> <div class="tipsLevel">
<div> <div>
<span style="margin-right: 30px">全部等级({{ list.length }})</span <span style="margin-right: 30px">全部等级({{ list.length }})</span
><el-button @click="add" type="primary">+新增等级</el-button> ><el-button @click="add" type="primary">+新增套餐</el-button>
</div> </div>
<div> <div>
<span v-if="!form.effective" style="margin-right: 30px" <span v-if="!form.effective" style="margin-right: 30px"

View File

@ -63,16 +63,6 @@ export default {
status: true, status: true,
app: 1, app: 1,
}; };
if (
JSON.parse(sessionStorage.getItem("userInfo")).role ===
"ROLE_MANAGER" ||
JSON.parse(sessionStorage.getItem("userInfo")).role ===
"ROLE_MERCHANT"
) {
this.modalData.type = 0;
} else {
this.modalData.type = 1
}
this.fileList = []; this.fileList = [];
this.modalConfig.title = "添加公告"; this.modalConfig.title = "添加公告";
this.isAdd = true; this.isAdd = true;
@ -103,40 +93,40 @@ export default {
trigger: "blur", trigger: "blur",
}, },
}, },
// { {
// label: "", label: "分类",
// prop: "type", prop: "type",
// maxlength: "30", maxlength: "30",
// rules: { rules: {
// required: true, required: true,
// message: "", message: "请输入分类",
// trigger: "blur", trigger: "blur",
// }, },
// type: "jsx", type: "jsx",
// render: () => { render: () => {
// return ( return (
// <el-select <el-select
// v-model={this.modalData.type} v-model={this.modalData.type}
// placeholder="" placeholder="请选择销售单位"
// > >
// {[ {[
// { label: "", value: 0 }, { label: "菜市场", value: 0 },
// { {
// label: "", label: "云店",
// value: 1, value: 1,
// }, },
// ].map((item) => { ].map((item) => {
// return ( return (
// <el-option <el-option
// label={item.label} label={item.label}
// value={item.value} value={item.value}
// ></el-option> ></el-option>
// ); );
// })} })}
// </el-select> </el-select>
// ); );
// }, },
// }, },
{ {
label: "状态", label: "状态",
prop: "status", prop: "status",

View File

@ -17,7 +17,7 @@
> >
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="支付时间:" prop="startTime"> <el-form-item label="订金支付时间:" prop="startTime">
<el-date-picker <el-date-picker
@change="getOrderTime" @change="getOrderTime"
format="yyyy-MM-dd HH:mm" format="yyyy-MM-dd HH:mm"