jufubao-admin-library 1.1.19 → 1.1.20
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.
|
@@ -98,5 +98,15 @@ module.exports = {
|
|
|
98
98
|
disabled: true,
|
|
99
99
|
role: ""
|
|
100
100
|
},
|
|
101
|
+
{
|
|
102
|
+
title: "获取站点",
|
|
103
|
+
mapFn: "getSitesList",
|
|
104
|
+
path: "/editx/v1/sites",
|
|
105
|
+
isRule: false,
|
|
106
|
+
params: {},
|
|
107
|
+
disabled: true,
|
|
108
|
+
isPublic: true,
|
|
109
|
+
role: ""
|
|
110
|
+
},
|
|
101
111
|
]
|
|
102
112
|
}
|
|
@@ -145,17 +145,13 @@ export default {
|
|
|
145
145
|
|
|
146
146
|
created() {
|
|
147
147
|
//partner-admin/v1/site/options
|
|
148
|
-
|
|
149
|
-
{
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
]).then((res) => {
|
|
158
|
-
this.siteList = res[0].data.list;
|
|
148
|
+
this.getSitesList().then((res) => {
|
|
149
|
+
this.siteList = res.data.list.map(item=>{
|
|
150
|
+
return {
|
|
151
|
+
label:item.site_name,
|
|
152
|
+
value:item.site_id
|
|
153
|
+
}
|
|
154
|
+
})
|
|
159
155
|
this.site_id = this.siteList&&this.siteList.length>0?this.siteList[0].value:'';
|
|
160
156
|
});
|
|
161
157
|
if (this.has_tab) {
|
|
@@ -170,6 +166,7 @@ export default {
|
|
|
170
166
|
...mapActions("productStat", [
|
|
171
167
|
"getBusinessList",
|
|
172
168
|
"getBusinessChildrenList",
|
|
169
|
+
"getSitesList"
|
|
173
170
|
]),
|
|
174
171
|
getBusiness() {
|
|
175
172
|
this.getBusinessList({
|