jufubao-admin-library 1.1.72 → 1.1.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -498,6 +498,9 @@ export default {
|
|
|
498
498
|
server: "thirdmall-partner",
|
|
499
499
|
fn: "brand",
|
|
500
500
|
path: "p1",
|
|
501
|
+
params:{
|
|
502
|
+
channel_code:this.$channelCode
|
|
503
|
+
}
|
|
501
504
|
},
|
|
502
505
|
])
|
|
503
506
|
.then((res) => {
|
|
@@ -746,6 +749,9 @@ export default {
|
|
|
746
749
|
if (res.data.pay_url_data) {
|
|
747
750
|
res.data.pay_url_data = JSON.parse(res.data.pay_url_data);
|
|
748
751
|
}
|
|
752
|
+
if (res.data.pay_error_url_data) {
|
|
753
|
+
res.data.pay_error_url_data = JSON.parse(res.data.pay_error_url_data);
|
|
754
|
+
}
|
|
749
755
|
this.initForm(res.data);
|
|
750
756
|
})
|
|
751
757
|
.catch((err) => {});
|
|
@@ -1125,6 +1131,84 @@ export default {
|
|
|
1125
1131
|
},
|
|
1126
1132
|
],
|
|
1127
1133
|
},
|
|
1134
|
+
this.$channelCode==='gxzx'&&{
|
|
1135
|
+
label: "订单错误页:",
|
|
1136
|
+
ele: "xd-select-site-path",
|
|
1137
|
+
className: "input100",
|
|
1138
|
+
valueKey: "pay_error_url_data",
|
|
1139
|
+
value: params.pay_error_url_data || null,
|
|
1140
|
+
setting: {
|
|
1141
|
+
site_id: this.site_id,
|
|
1142
|
+
},
|
|
1143
|
+
handleCustom: ({ action, data }) => {
|
|
1144
|
+
if (action === "siteList") {
|
|
1145
|
+
this.getEditxSiteListm()
|
|
1146
|
+
.then((res) => {
|
|
1147
|
+
data.cb(
|
|
1148
|
+
res.data.list.map((item) => {
|
|
1149
|
+
return {
|
|
1150
|
+
...item,
|
|
1151
|
+
label: item["site_name"],
|
|
1152
|
+
value: item["site_id"],
|
|
1153
|
+
};
|
|
1154
|
+
})
|
|
1155
|
+
);
|
|
1156
|
+
})
|
|
1157
|
+
.catch((res) => {
|
|
1158
|
+
console.error(res);
|
|
1159
|
+
data.cb([]);
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
//获取应用列表
|
|
1164
|
+
if (action === "appList") {
|
|
1165
|
+
if (data.params && data.params.value) {
|
|
1166
|
+
this.getSaasSiteAppListm({ site_id: data.params.value })
|
|
1167
|
+
.then((res) => {
|
|
1168
|
+
if (!res.data.items) {
|
|
1169
|
+
this.$message({
|
|
1170
|
+
message:
|
|
1171
|
+
"您选择的站点无应用数据,请发布应用之后在进行配置!",
|
|
1172
|
+
type: "error",
|
|
1173
|
+
});
|
|
1174
|
+
data.cb([]);
|
|
1175
|
+
return;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
//有数据
|
|
1179
|
+
let routerData = [];
|
|
1180
|
+
res.data.items.map((item) => {
|
|
1181
|
+
if (item["children"]) {
|
|
1182
|
+
routerData = routerData.concat(
|
|
1183
|
+
getEditPagesTreeToPathArr(
|
|
1184
|
+
item["children"],
|
|
1185
|
+
item["label"],
|
|
1186
|
+
item["value"],
|
|
1187
|
+
item["route"],
|
|
1188
|
+
item["aopen_app_code"]
|
|
1189
|
+
)
|
|
1190
|
+
);
|
|
1191
|
+
}
|
|
1192
|
+
});
|
|
1193
|
+
data.cb(routerData);
|
|
1194
|
+
})
|
|
1195
|
+
.catch((res) => {
|
|
1196
|
+
console.error(res);
|
|
1197
|
+
data.cb([]);
|
|
1198
|
+
});
|
|
1199
|
+
} else {
|
|
1200
|
+
data.cb([]);
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
},
|
|
1204
|
+
rules: [
|
|
1205
|
+
{
|
|
1206
|
+
required: true,
|
|
1207
|
+
message: "请选择网站地址",
|
|
1208
|
+
trigger: "change",
|
|
1209
|
+
},
|
|
1210
|
+
],
|
|
1211
|
+
},
|
|
1128
1212
|
{
|
|
1129
1213
|
label: "状态:",
|
|
1130
1214
|
ele: "xd-radio",
|
|
@@ -1314,6 +1398,11 @@ export default {
|
|
|
1314
1398
|
this.listValue.pay_url_data
|
|
1315
1399
|
);
|
|
1316
1400
|
}
|
|
1401
|
+
if (this.listValue.pay_error_url_data) {
|
|
1402
|
+
copyListValue.pay_error_url_data = JSON.stringify(
|
|
1403
|
+
this.listValue.pay_error_url_data
|
|
1404
|
+
);
|
|
1405
|
+
}
|
|
1317
1406
|
return copyListValue;
|
|
1318
1407
|
},
|
|
1319
1408
|
handleConfirmSave() {
|