Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
5dfecece30
@ -188,27 +188,31 @@ export default {
|
|||||||
getList() {
|
getList() {
|
||||||
//console.log(this.queryParams.wpid);
|
//console.log(this.queryParams.wpid);
|
||||||
listMonthplanitem(this.queryParams).then((response) => {
|
listMonthplanitem(this.queryParams).then((response) => {
|
||||||
this.bodyData.monthplanitemList = response.rows;
|
|
||||||
|
|
||||||
//获取所有的活动id
|
|
||||||
var activityIds = "";
|
|
||||||
response.rows.forEach(function (value, key, arr) {
|
|
||||||
if (value.activityid != null) {
|
|
||||||
activityIds = activityIds + value.activityid + ";";
|
|
||||||
}
|
|
||||||
});
|
|
||||||
var array = [];
|
|
||||||
activityIds.split(";").forEach(function (value, key, arr) {
|
|
||||||
if (value != "") {
|
|
||||||
array.push(parseInt(value));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (response.rows.length > 0) {
|
if (response.rows.length > 0) {
|
||||||
this.getThemeActivityList(array);
|
this.bodyData.monthplanitemList = response.rows;
|
||||||
}
|
|
||||||
|
|
||||||
this.bodyData.monthplanitemList[0].theme = activityIds;
|
//获取所有的活动id
|
||||||
|
var activityIds = "";
|
||||||
|
response.rows.forEach(function (value, key, arr) {
|
||||||
|
if (value.activityid != null) {
|
||||||
|
activityIds = activityIds + value.activityid + ";";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
var array = [];
|
||||||
|
activityIds.split(";").forEach(function (value, key, arr) {
|
||||||
|
if (value != "") {
|
||||||
|
array.push(parseInt(value));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (response.rows.length > 0) {
|
||||||
|
this.getThemeActivityList(array);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.bodyData.monthplanitemList[0].theme = activityIds;
|
||||||
|
}else{
|
||||||
|
this.bodyData.monthplanitemList[0].theme = " ";
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 主题--字典状态字典翻译
|
// 主题--字典状态字典翻译
|
||||||
|
@ -108,7 +108,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 主题--字典状态字典翻译
|
// 主题--字典状态字典翻译
|
||||||
themeFormat(themeids) {
|
themeFormat(themeids) {
|
||||||
if (themeids != "") {
|
if (themeids != "" && themeids != null) {
|
||||||
var ilength = themeids.split(";").length - 1;
|
var ilength = themeids.split(";").length - 1;
|
||||||
var names = "";
|
var names = "";
|
||||||
for (var i = 1; i < ilength; i++) {
|
for (var i = 1; i < ilength; i++) {
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<if test="createuserid != null ">and createuserid = #{createuserid}</if>
|
<if test="createuserid != null ">and createuserid = #{createuserid}</if>
|
||||||
<if test="xnxq != null and xnxq != ''">and xnxq = #{xnxq}</if>
|
<if test="xnxq != null and xnxq != ''">and xnxq = #{xnxq}</if>
|
||||||
</where>
|
</where>
|
||||||
order by month desc
|
order by month,zc desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectByThemeWeekplanById" parameterType="String" resultMap="ByThemeWeekplanResult">
|
<select id="selectByThemeWeekplanById" parameterType="String" resultMap="ByThemeWeekplanResult">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user