![]()
@@ -156,6 +156,7 @@
import { Loading } from "element-ui"; // 引入Loading服务
import nextTick from "dai-js/tools/nextTick";
import daiMap from "@/utils/dai-map";
+import { requestPost,requestGet } from "@/js/dai/request";
var map;
var search;
@@ -169,27 +170,49 @@ export default {
return {
formData: {},
initLoading: false,
+ NameList:[],
+ actList:[],
+ activityId:""
};
},
components: {},
- created() { },
+ created() {
+
+ },
mounted () {
+
},
methods: {
- async activityType () {
- const url = "/actual/base/activityType/page"
+ async communityActivityApplicationRecord () {
+ const url = "/actual/base/communityActivityApplicationRecord/page"
let params = {
- // agencyId: this.agencyId
pageSize: 20,
pageNo: 1,
- typeName: "",
- enabled: 0
+ activityId:this.activityId
+ }
+ console.log("df ");
+ const { data, code, msg } = await requestGet(url, params)
+ if (code === 0) {
+
+ this.NameList=data.list
+ console.log( this.NameList);
+ } else {
+ this.$message.error(msg)
+ }
+ },
+ async livereclist () {
+ const url = "/heart/resi/act/livereclist"
+ let params = {
+ pageSize: 20,
+ pageNo: 1,
+ actId:this.formData.id
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
- this.typeList = data.list
+ this.actList=data.actLives
+ console.log(data);
} else {
this.$message.error(msg)
}
@@ -206,9 +229,12 @@ export default {
},
async initForm(row) {
- console.log("df ");
+
this.startLoading();
this.formData = JSON.parse(JSON.stringify(row));
+ console.log(this.formData,"this.formData");
+ this.activityId=this.formData.id
+ console.log( this.activityId,"this.activ");
this.initLoading = true;
// console.log('this.formData,',this.formData);
@@ -223,6 +249,8 @@ export default {
longitude = 116.39743841556731;
}
this.endLoading();
+ this.communityActivityApplicationRecord()
+ this.livereclist()
},
// 开启加载动画
diff --git a/src/views/modules/communityParty/comPromotion/add.vue b/src/views/modules/communityParty/comPromotion/add.vue
index 80c492d7a..3172d800a 100644
--- a/src/views/modules/communityParty/comPromotion/add.vue
+++ b/src/views/modules/communityParty/comPromotion/add.vue
@@ -25,7 +25,7 @@
-
+
@@ -90,6 +90,7 @@ export default {
sendMsg: 0,//是否推送
top: 0,//是否置顶
status: 0 //状态
+
}
return _form
@@ -121,6 +122,7 @@ export default {
serviceList: [],
// gridList: [],
agencyId: '',
+ agencyName:"",
demandOptions: [],
uploadUrl: window.SITE_CONFIG['apiURL'] + '/oss/file/uploadqrcodeV2',
@@ -130,11 +132,19 @@ export default {
},
components: { Tinymce, UploadImage },
mounted() {
+ this.agencyName=this.$store.state.user.agencyName,
+ this.agencyId=this.$store.state.user.agencyId,
this.advertisingTag()
},
methods: {
+ handleFileRemoved(file) {
+ // 处理从子组件接收到的删除文件的信息
+ console.log('File removed:', file);
+ this.formData.coverPic=""
+ // 例如,可以在这里更新父组件的文件列表或执行其他操作
+ },
// 获取广告标签
advertisingTag(){
@@ -251,11 +261,14 @@ export default {
}, 10000)
this.$refs['ref_form'].validate((valid, messageObj) => {
+ this.formData.agencyName= this.agencyName
+ this.formData.agencyId= this.agencyId
console.log("this.formData看看里面村的什么",this.formData)
if (!valid) {
app.util.validateRule(messageObj)
this.btnDisable = false
} else {
+
this.addActivity()
}
})
@@ -264,6 +277,7 @@ export default {
if (this.formType === 'edit') {
let url = '/actual/base/communityPublicity/update'
this.formData.sendMsg= this.formData.sendMsg? 1:0
+
const { data, code, msg } = await requestPost(url, this.formData)
if (code === 0) {
this.$message({
@@ -282,7 +296,6 @@ export default {
let url = '/actual/base/communityPublicity/save'
console.log(this.formData,"formData");
this.formData.sendMsg= this.formData.sendMsg? 1:0
- console.log(this.formData);
const { data, code, msg } = await requestPost(url, this.formData)
if (code === 0) {
this.$message({
diff --git a/src/views/modules/communityParty/comPromotion/event.vue b/src/views/modules/communityParty/comPromotion/event.vue
index 7cc5d2512..d481e8585 100644
--- a/src/views/modules/communityParty/comPromotion/event.vue
+++ b/src/views/modules/communityParty/comPromotion/event.vue
@@ -13,7 +13,7 @@
标签:
- {{ formData.tagId || "--" }}
+ {{ formData.tagName || "--" }}
@@ -130,7 +130,7 @@ export default {
this.startLoading();
this.formData = JSON.parse(JSON.stringify(row));
this.initLoading = true;
-
+ console.log(this.formData,"sdf ");
this.endLoading();
},
diff --git a/src/views/modules/communityParty/comPromotion/index.vue b/src/views/modules/communityParty/comPromotion/index.vue
index 87cf54560..51eac7a7a 100644
--- a/src/views/modules/communityParty/comPromotion/index.vue
+++ b/src/views/modules/communityParty/comPromotion/index.vue
@@ -53,13 +53,13 @@