|
@@ -292,7 +292,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
inject: {
|
|
|
- reload: { value: "reload", default: null },
|
|
|
+ // reload: { value: "reload", default: null },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -374,12 +374,30 @@ export default {
|
|
|
previewHandle() {
|
|
|
this.$refs.myRealTimeView.changeShowHandler();
|
|
|
},
|
|
|
+ // 重置页面数据
|
|
|
+ reload() {
|
|
|
+ if (this.$route.query.id) {
|
|
|
+ this.isEdit = true;
|
|
|
+ this.initPageData(this.$route.query.id);
|
|
|
+ } else {
|
|
|
+ this.pageComponents = [];
|
|
|
+ this.pageSetup = {
|
|
|
+ // 页面设置属性
|
|
|
+ name: "页面标题", //页面名称
|
|
|
+ details: "", //页面描述
|
|
|
+ isPerson: false, // 是否显示个人中心
|
|
|
+ isBack: true, // 是否返回按钮
|
|
|
+ titleHeight: 35, // 高度
|
|
|
+ bgColor: "rgba(249, 249, 249, 10)", //背景颜色
|
|
|
+ bgImg: "", // 背景图片
|
|
|
+ };
|
|
|
+ }
|
|
|
+ },
|
|
|
// 初始化编辑数据
|
|
|
initPageData(id) {
|
|
|
this.id = id;
|
|
|
getmobilePageData(id).then((response) => {
|
|
|
if (response.code == 200) {
|
|
|
- console.log(111111111111, response.data);
|
|
|
let { pageSetup, pageComponents } = JSON.parse(
|
|
|
response.data.pageJson
|
|
|
);
|
|
@@ -440,7 +458,7 @@ export default {
|
|
|
fieldName,
|
|
|
label: optionConditions.label,
|
|
|
value: optionConditions.value,
|
|
|
- queryCondition,
|
|
|
+ queryCondition: JSON.stringify(queryCondition),
|
|
|
};
|
|
|
});
|
|
|
return JSON.stringify(res);
|