Browse Source

宣传bug

feature
是小王呀\24601 1 year ago
parent
commit
53d7f4cb97
  1. 15
      src/views/modules/communityParty/comPromotion/add.vue
  2. 3
      src/views/modules/workSys/promotionTab/AddpromotionTab.vue
  3. 12
      src/views/modules/workSys/promotionTab/index.vue
  4. 3
      src/views/modules/workSys/promotionTab/viewPromotionalTags.vue

15
src/views/modules/communityParty/comPromotion/add.vue

@ -115,8 +115,8 @@ export default {
coverPic: "",// coverPic: "",//
releaseTime: "",// releaseTime: "",//
sendMsg: false,// sendMsg: false,//
top: false,// top: 0,//
status: 0 // status: 1 //
}, },
serviceList: [], serviceList: [],
// gridList: [], // gridList: [],
@ -171,10 +171,13 @@ export default {
} }
this.formType=typeid this.formType=typeid
console.log(typeid);
console.log(this.formData,"5164"); console.log(this.formType,"5164");
this.endLoading(); this.endLoading();
this.setDefaultReleaseTime() if(typeid=="add"){
this.setDefaultReleaseTime()
}
}, },
async advertisingTag () { async advertisingTag () {
const url = "/actual/base/advertisingTag/page" const url = "/actual/base/advertisingTag/page"
@ -275,6 +278,7 @@ export default {
let url = '/actual/base/communityPublicity/update' let url = '/actual/base/communityPublicity/update'
this.formData.sendMsg= this.formData.sendMsg? 1:0 this.formData.sendMsg= this.formData.sendMsg? 1:0
this.formData.top= this.formData.top? 1:0 this.formData.top= this.formData.top? 1:0
this.formData.status=0
console.log(this.formData,"formData"); console.log(this.formData,"formData");
const { data, code, msg } = await requestPost(url, this.formData) const { data, code, msg } = await requestPost(url, this.formData)
if (code === 0) { if (code === 0) {
@ -295,6 +299,7 @@ export default {
console.log(this.formData,"formData"); console.log(this.formData,"formData");
this.formData.sendMsg= this.formData.sendMsg? 1:0 this.formData.sendMsg= this.formData.sendMsg? 1:0
this.formData.top= this.formData.top? 1:0 this.formData.top= this.formData.top? 1:0
const { data, code, msg } = await requestPost(url, this.formData) const { data, code, msg } = await requestPost(url, this.formData)
if (code === 0) { if (code === 0) {
this.$message({ this.$message({

3
src/views/modules/workSys/promotionTab/AddpromotionTab.vue

@ -11,6 +11,9 @@
</el-input> </el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="首页显示" style="display: block" prop="peopleCount" label-width="150px">
<el-switch v-model="status" :active-value="1" :inactive-value="0"></el-switch>
</el-form-item>
</el-form> </el-form>
</div> </div>

12
src/views/modules/workSys/promotionTab/index.vue

@ -7,7 +7,12 @@
<el-input v-model.trim="tagName" size="small" class="item_width_1" clearable placeholder="请输入"> <el-input v-model.trim="tagName" size="small" class="item_width_1" clearable placeholder="请输入">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="首页显示">
<el-select class="item_width_1" v-model.trim="status" size="small" placeholder="请选择" clearable>
<el-option v-for="item in statuslist" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
</el-form-item>
<div style="display: flex; justify-content: flex-end;"> <div style="display: flex; justify-content: flex-end;">
<el-button style="margin-left:10px" class="diy-button--blue" size="small" <el-button style="margin-left:10px" class="diy-button--blue" size="small"
@click="handleSearch">查询</el-button> @click="handleSearch">查询</el-button>
@ -29,6 +34,11 @@
<el-table-column label="序号" header-align="center" align="center" type="index" width="80"></el-table-column> <el-table-column label="序号" header-align="center" align="center" type="index" width="80"></el-table-column>
<el-table-column prop="tagName" header-align="center" align="center" label="标签名称" > <el-table-column prop="tagName" header-align="center" align="center" label="标签名称" >
</el-table-column> </el-table-column>
<el-table-column prop="enabled" header-align="center" align="center" label="首页显示" width="380">
<template slot-scope="scope">
<span>{{ scope.row.status === 1 ? '显示' : '关闭' }}</span>
</template>
</el-table-column>
<el-table-column prop="createdTime" header-align="center" align="center" label="创建时间" width="380"> <el-table-column prop="createdTime" header-align="center" align="center" label="创建时间" width="380">
</el-table-column> </el-table-column>

3
src/views/modules/workSys/promotionTab/viewPromotionalTags.vue

@ -8,6 +8,9 @@
<span>{{ tagName }}</span> <span>{{ tagName }}</span>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="首页显示" style="display: block" prop="peopleCount" label-width="150px">
<el-switch v-model="online" disabled></el-switch>
</el-form-item>
</el-form> </el-form>
</div> </div>

Loading…
Cancel
Save