diff --git a/src/views/modules/communityParty/comPromotion/add.vue b/src/views/modules/communityParty/comPromotion/add.vue
index f174a2f67..266fe891f 100644
--- a/src/views/modules/communityParty/comPromotion/add.vue
+++ b/src/views/modules/communityParty/comPromotion/add.vue
@@ -115,8 +115,8 @@ export default {
coverPic: "",//封面图
releaseTime: "",//发布时间
sendMsg: false,//是否推送
- top: false,//是否置顶
- status: 0 //状态
+ top: 0,//是否置顶
+ status: 1 //状态
},
serviceList: [],
// gridList: [],
@@ -171,10 +171,13 @@ export default {
}
this.formType=typeid
-
- console.log(this.formData,"5164");
+ console.log(typeid);
+ console.log(this.formType,"5164");
this.endLoading();
- this.setDefaultReleaseTime()
+ if(typeid=="add"){
+ this.setDefaultReleaseTime()
+ }
+
},
async advertisingTag () {
const url = "/actual/base/advertisingTag/page"
@@ -275,6 +278,7 @@ export default {
let url = '/actual/base/communityPublicity/update'
this.formData.sendMsg= this.formData.sendMsg? 1:0
this.formData.top= this.formData.top? 1:0
+ this.formData.status=0
console.log(this.formData,"formData");
const { data, code, msg } = await requestPost(url, this.formData)
if (code === 0) {
@@ -295,6 +299,7 @@ export default {
console.log(this.formData,"formData");
this.formData.sendMsg= this.formData.sendMsg? 1:0
this.formData.top= this.formData.top? 1:0
+
const { data, code, msg } = await requestPost(url, this.formData)
if (code === 0) {
this.$message({
diff --git a/src/views/modules/workSys/promotionTab/AddpromotionTab.vue b/src/views/modules/workSys/promotionTab/AddpromotionTab.vue
index 1d04b7d2f..22f03e2da 100644
--- a/src/views/modules/workSys/promotionTab/AddpromotionTab.vue
+++ b/src/views/modules/workSys/promotionTab/AddpromotionTab.vue
@@ -11,6 +11,9 @@
+