广告增加字段

This commit is contained in:
shane 2021-07-08 16:45:56 +08:00
parent 97437bf389
commit 576a60fdc8
6 changed files with 62 additions and 1 deletions

View File

@ -41,6 +41,24 @@
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">发布类型</label>
<div class="col-sm-10">
<select class="custom-select" v-model="addAdvertInfo.advertType">
<option selected disabled value="">必填,请选择发布类型</option>
<option value="1">站内</option>
<option value="2">站外</option>
<option value="3">不跳转</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">跳转路径</label>
<div class="col-sm-10">
<input v-model="addAdvertInfo.pageUrl" type="text" placeholder="请填写跳转路径"
class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">播放顺序</label>
<div class="col-sm-10">

View File

@ -16,6 +16,8 @@
startTime: '',
endTime: '',
floorId: '',
advertType: '',
pageUrl: '',
floorNum: '',
floorName: '',
unitId: '',
@ -135,6 +137,13 @@
errInfo: "投放位置格式错误"
},
],
'addAdvertInfo.advertType': [
{
limit: "required",
param: "",
errInfo: "发布类型不能为空"
}
],
'addAdvertInfo.seq': [
{
limit: "required",
@ -226,6 +235,8 @@
seq: '',
startTime: '',
endTime: '',
advertType: '',
pageUrl: '',
floorId: '',
floorNum: '',
floorName: '',

View File

@ -42,6 +42,24 @@
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">发布类型</label>
<div class="col-sm-10">
<select class="custom-select" v-model="editAdvertInfo.advertType">
<option selected disabled value="">必填,请选择发布类型</option>
<option value="1">站内</option>
<option value="2">站外</option>
<option value="3">不跳转</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">跳转路径</label>
<div class="col-sm-10">
<input v-model="editAdvertInfo.pageUrl" type="text" placeholder="请填写跳转路径"
class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">播放顺序</label>
<div class="col-sm-10">

View File

@ -11,6 +11,8 @@
locationObjName: '',
state: '',
seq: '',
advertType: '',
pageUrl: '',
startTime: '',
endTime: '',
floorId: '',
@ -127,6 +129,13 @@
errInfo: "广告分类格式错误"
},
],
'editAdvertInfo.advertType': [
{
limit: "required",
param: "",
errInfo: "发布类型不能为空"
}
],
'editAdvertInfo.locationTypeCd': [
{
limit: "required",
@ -259,6 +268,8 @@
locationObjId: '',
state: '',
seq: '',
advertType: '',
pageUrl: '',
startTime: '',
endTime: '',
floorId: '',

View File

@ -70,17 +70,19 @@
<th class="text-center">广告ID</th>
<th class="text-center">广告名称</th>
<th class="text-center">投放位置</th>
<th class="text-center">发布类型</th>
<th class="text-center">投放时间</th>
<th class="text-center">结束时间</th>
<th class="text-center">创建时间</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody>
<tbody>
<tr v-for="advert in advertManageInfo.adverts">
<td class="text-center">{{advert.advertId}}</td>
<td class="text-center">{{advert.adName}}</td>
<td class="text-center">{{advert.locationObjName}}</td>
<td class="text-center">{{advertManageInfo.advertTypeName[advert.advertType]}}</td>
<td class="text-center">{{advert.startTime}}</td>
<td class="text-center">{{advert.endTime}}</td>
<td class="text-center">{{advert.createTime}}</td>

View File

@ -7,6 +7,7 @@
vc.extends({
data: {
advertManageInfo: {
advertTypeName:["","站内","站外","不跳转"],
adverts: [],
total: 0,
records: 1,