Commit 300672b8 authored by 黄奎's avatar 黄奎

页面修改

parent a3f0bcc2
......@@ -12,16 +12,17 @@
<q-input filled stack-label maxlength="100" :dense="false" v-model="objOption.MenuUrl" ref="MenuUrl"
class="col-6 q-pb-lg" label="菜单地址" />
<q-select class="col-6 q-pr-lg q-pb-lg" v-model="objOption.MenuLevel" :options="MenuLevelOpts" emit-value
map-options label="菜单等级" @input="getFatherData(objOption.MenuLevel)" />
map-options label="菜单等级" @input="getFatherData()" />
<q-select class="col-6 q-pb-lg" v-model="objOption.ParentId" option-value="Id" option-label="Name"
:options="FatherLevelOpts" emit-value map-options label="父级Id" />
<q-input filled stack-label maxlength="100" :dense="false" v-model="objOption.ClassName" ref="ClassName"
<q-input filled stack-label maxlength="50" :dense="false" v-model="objOption.ClassName" ref="ClassName"
class="col-6 q-pb-lg q-pr-lg" label="样式" />
<q-input filled stack-label maxlength="100" :dense="false" @keyup.native="checkInteger(objOption,'SortNum')"
<q-input filled stack-label maxlength="4" :dense="false" @keyup.native="checkInteger(objOption,'SortNum')"
v-model="objOption.SortNum" ref="SortNum" class="col-6 q-pb-lg" label="排序" />
<div class="col-6 q-pb-lg q-pr-lg">
<q-uploader :style="{ backgroundImage: 'url(' + objOption.Icon + ')' }" style="width:auto;height:200px;background-repeat:no-repeat;background-size:cover;" flat
hide-upload-btn max-files="1" label="菜单图标" accept=".jpg, image/*" :factory="uploadFile" auto-upload>
<q-uploader :style="{ backgroundImage: 'url(' + objOption.Icon + ')' }"
style="width:auto;height:200px;background-repeat:no-repeat;background-size:cover;" flat hide-upload-btn
max-files="1" label="菜单图标" accept=".jpg, image/*" :factory="uploadFile" auto-upload>
</q-uploader>
</div>
</div>
......@@ -97,15 +98,18 @@
//下拉切换父级数据
getFatherData() {
this.objOption.ParentId = 0;
this.FatherLevelOpts=[];
let msg = {
MenuLevel: Number(this.objOption.MenuLevel-1)
}
GetWebMenuList(msg).then(res => {
if (res.Code == 1) {
this.FatherLevelOpts = res.Data;
this.FatherLevelOpts = [];
var MenuLevel = Number(this.objOption.MenuLevel - 1)
if (MenuLevel && MenuLevel > 0) {
let msg = {
MenuLevel: MenuLevel
}
})
GetWebMenuList(msg).then(res => {
if (res.Code == 1) {
this.FatherLevelOpts = res.Data;
}
})
}
},
uploadFile(files) {
UploadSelfFile("course", files[0], res => {
......
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