Commit a3f0bcc2 authored by 黄奎's avatar 黄奎

页面修改

parent 7b3012e0
......@@ -91,8 +91,6 @@
},
created() {
this.initConfig();
console.log(this.data[1],'data1');
console.log(this.data[0],'data0');
},
methods: {
initConfig() {
......
......@@ -8,10 +8,10 @@
<div class="text-caption q-mb-lg q-px-md text-grey-6">网站导航信息</div>
<div class="row wrap">
<q-input filled stack-label maxlength="50" :dense="false" v-model="objOption.NavTitle" ref="NavTitle"
class="col-12 q-pb-lg" label="导航大标题" :rules="[val => !!val || '请填写导航大标题']" />
<q-input v-model="objOption.SubTitle" class="col-12 q-pb-lg" filled type="textarea" placeholder="导航子标题" maxlength="150" />
class="col-12 q-pb-lg" label="导航主标题" :rules="[val => !!val || '请填写导航主标题']" />
<q-input v-model="objOption.SubTitle" class="col-12 q-pb-lg" filled type="textarea" placeholder="导航子标题" maxlength="300" />
<q-input stack-label maxlength="200" :dense="false" v-model="objOption.LinkUrl" class="col-6 q-pr-lg q-pb-lg"
label="导航地址" />
label="链接地址" />
<q-select class="col-6 q-pb-lg" option-value="Id" option-label="Name" v-model="objOption.NavType"
:options="NavTypeList" emit-value map-options label="导航类型" />
<div class="col-6 q-pb-lg q-pr-lg">
......@@ -56,10 +56,10 @@
persistent: true,
objOption: {
Id: 0,
NavTitle: '', //导航标题
NavTitle: '', //导航标题
SubTitle: '', //导航子标题
BgImg: '', // 导航背景图
LinkUrl: '', //导航地址
LinkUrl: '', //链接地址
NavType: 0 //导航类型
},
optionTitle: "",
......@@ -100,7 +100,6 @@
GetWebNav({
Id: this.saveObj.Id
}).then(res => {
console.log(res, '数据');
this.objOption.Id = res.Data.Id;
this.objOption.NavTitle = res.Data.NavTitle;
this.objOption.SubTitle = res.Data.SubTitle;
......
......@@ -108,7 +108,7 @@
pageSize: 12,
rowsPerPage: 12,
TypeName:'',
Status: -1
Status: 0
},
pageCount: 0,
isShowNewsForm: false,
......
......@@ -4,15 +4,12 @@
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" class="col-6 q-pr-lg q-pr-lg"
v-model="msg.NavTitle" label="导航大图标" maxlength="20" @clear="resetSearch" />
v-model="msg.NavTitle" label="导航标题" maxlength="20" @clear="resetSearch" />
</div>
<div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" class="col-6 q-pr-lg q-pr-lg"
v-model="msg.SubTitle" label="导航子标题" maxlength="20" @clear="resetSearch" />
</div>
<div class="col-3">
<q-select @input="resetSearch" option-value="Id" option-label="Name" standout="bg-primary text-white" v-model="msg.NavType"
class="col-6 q-pr-lg q-pr-lg" :options="NavTypeList" emit-value map-options label="导航类型" />
<q-select @input="resetSearch" option-value="Id" option-label="Name" standout="bg-primary text-white"
v-model="msg.NavType" class="col-6 q-pr-lg q-pr-lg" :options="NavTypeList" emit-value map-options
label="导航类型" />
</div>
<div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" class="col-6 q-pr-lg q-pr-lg"
......@@ -75,25 +72,19 @@
return {
columns: [{
name: 'NavTitle',
label: '导航标题',
label: '导航标题',
field: 'NavTitle',
align: 'left'
},
// {
// name: 'SubTitle',
// label: '导航子标题',
// field: 'SubTitle',
// align: 'left'
// },
{
name: 'BgImg',
label: '导航背景图',
label: '背景图',
field: 'BgImg',
align: 'left'
},
{
name: 'LinkUrl',
label: '导航地址',
label: '链接地址',
field: 'LinkUrl',
align: 'left'
},
......@@ -139,7 +130,7 @@
NavTitle: "",
SubTitle: "",
NavType: 0,
Status: -1,
Status: 0,
},
pageCount: 0,
isShowWebkitForm: false,
......@@ -157,8 +148,8 @@
if (res.Code == 1) {
this.NavTypeList = res.Data;
let obj = {
Id:0,
Name:'不限'
Id: 0,
Name: '不限'
}
this.NavTypeList.unshift(obj);
} else {
......
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