Commit 1bfd58f3 authored by 黄奎's avatar 黄奎

页面修改

parent 71d8727c
......@@ -31,7 +31,7 @@
<el-option label="二级" :key="2" :value="2"></el-option>
<el-option label="三级" :key="3" :value="3"></el-option>
</el-select>
<button type="button" class="normalBtn" @click="menuDialog=true,resetMsg()">新增</button>
<button type="button" class="normalBtn" @click="menuTitle='新增菜单',menuDialog=true,resetMsg()">新增</button>
<button type="button" class="normalBtn" @click="CommonJump('sysmenu',{})">设置商城菜单</button>
</div>
<table class="commonTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
......@@ -72,7 +72,7 @@
</el-pagination>
<!-- 新增菜单 -->
<el-dialog title="新增菜单" :visible.sync="menuDialog" width="500px">
<el-dialog :title="menuTitle" :visible.sync="menuDialog" width="500px">
<el-form :model="addMsg" :rules="menurules" ref="addMsg" label-width="150px">
<el-form-item label="菜单名称" prop="MenuName">
<el-input type="text" style="width:234px" size="small" maxlength="25" v-model="addMsg.MenuName"></el-input>
......@@ -140,7 +140,8 @@
message: '请填写菜单名称。',
trigger: 'blur'
}],
}
},
menuTitle:"新增菜单",
};
},
created() {
......@@ -204,6 +205,7 @@
if (res.data.resultCode == 1) {
this.addMsg = res.data.data;
this.menuDialog = true;
this.menuTitle='修改菜单',
this.getChildMenuList(this.addMsg.MenuLevel);
} else {
this.Info(res.data.message);
......
......@@ -33,7 +33,7 @@
<el-option :key="0" :value="0" label="正常"></el-option>
<el-option :key="1" :value="1" label="禁用"></el-option>
</el-select>
<button type="button" class="normalBtn" @click="menuDialog=true,resetMsg()">新增</button>
<button type="button" class="normalBtn" @click="miniTitle='新增小程序菜单',menuDialog=true,resetMsg()">新增</button>
<button type="button" class="normalBtn" @click="CommonJump('setminipage',{})">设置小程序菜单</button>
</div>
<table class="commonTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
......@@ -80,7 +80,7 @@
</el-pagination>
<!-- 新增菜单 -->
<el-dialog title="新增菜单" :visible.sync="menuDialog" width="500px">
<el-dialog :title="miniTitle" :visible.sync="menuDialog" width="500px">
<el-form :model="addMsg" :rules="menurules" ref="addMsg" label-width="150px">
<el-form-item label="菜单名称" prop="PageName">
<el-input type="text" style="width:234px" size="small" maxlength="25" v-model="addMsg.PageName"></el-input>
......@@ -149,7 +149,8 @@
message: '请填写菜单名称。',
trigger: 'blur'
}],
}
},
miniTitle:"新增小程序菜单",
};
},
created() {
......@@ -222,6 +223,7 @@
if (res.data.resultCode == 1) {
this.addMsg = res.data.data;
this.menuDialog = true;
this.miniTitle="修改小程序菜单";
} else {
this.Info(res.data.message);
}
......
......@@ -24,7 +24,8 @@
<div class="query-box">
名称: <el-input type="text" style="width:234px;" size="small" v-model="msg.PlugName" clearable
@keyup.enter.native="msg.pageIndex=1,getPageList()" @clear="msg.pageIndex=1,getPageList()"></el-input>
<button type="button" class="normalBtn" @click="marketingPlugDialog=true,resetMsg()">新增</button>
<button type="button" class="normalBtn"
@click="plugTitle='新增营销插件',marketingPlugDialog=true,resetMsg()">新增</button>
<button type="button" class="normalBtn" @click="CommonJump('setmarketingplug',{})">设置营销插件</button>
</div>
<table class="commonTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
......@@ -68,10 +69,10 @@
</el-pagination>
<!-- 新增营销插件 -->
<el-dialog title="营销插件" :visible.sync="marketingPlugDialog" width="500px">
<el-dialog :title="plugTitle" :visible.sync="marketingPlugDialog" width="500px">
<el-form :model="addMsg" ref="addMsg" label-width="150px">
<el-form-item label="插件类型">
<el-select size="small" v-model="addMsg.PlugType">
<el-select style="width:234px" size="small" v-model="addMsg.PlugType">
<el-option v-for="(item) in PlugTypeList" :label="item.Name" :key="item.Id" :value="item.Id">
</el-option>
</el-select>
......@@ -86,7 +87,7 @@
<el-input type="text" style="width:234px" size="small" maxlength="50" v-model="addMsg.PlugUrl"></el-input>
</el-form-item>
<el-form-item label="图片地址">
<el-input type="text" style="width:234px" size="small" maxlength="255" v-model="addMsg.Icon"></el-input>
<el-input type="textarea" rows="4" style="width:234px" size="small" maxlength="255" v-model="addMsg.Icon"></el-input>
</el-form-item>
<el-form-item label="样式" prop="IconClass">
<el-input type="text" style="width:234px" size="small" maxlength="100" v-model="addMsg.IconClass"></el-input>
......@@ -115,7 +116,7 @@
dataList: [],
addMsg: {
PId: 0, //插件编号
PlugType: 0, //插件类型(1-默认,2-营销工具)
PlugType: 1, //插件类型(1-默认,2-营销工具)
PlugName: '', //插件名称
PlugSubName: '', //插件子项名称
PlugUrl: '', //跳转路径
......@@ -131,6 +132,7 @@
Name: "营销工具"
},
],
plugTitle: "新增营销插件",
};
},
created() {
......@@ -154,6 +156,7 @@
//重置参数
resetMsg() {
this.addMsg.PId = 0;
this.addMsg.PlugType = 1;
this.addMsg.PlugName = "";
this.addMsg.PlugSubName = "";
this.addMsg.PlugUrl = "";
......@@ -191,6 +194,7 @@
if (res.data.resultCode == 1) {
this.addMsg = res.data.data;
this.marketingPlugDialog = true;
this.plugTitle = "修改营销插件";
} else {
this.Info(res.data.message);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment