8a796e68 by joe

管理端增加小程序跳转配置

1 parent 2422e4ef
...@@ -325,7 +325,8 @@ ...@@ -325,7 +325,8 @@
325 "version": "1.0.0", 325 "version": "1.0.0",
326 "resolved": "http://registry.npm.taobao.org/assert-plus/download/assert-plus-1.0.0.tgz", 326 "resolved": "http://registry.npm.taobao.org/assert-plus/download/assert-plus-1.0.0.tgz",
327 "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", 327 "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
328 "dev": true 328 "dev": true,
329 "optional": true
329 }, 330 },
330 "assign-symbols": { 331 "assign-symbols": {
331 "version": "1.0.0", 332 "version": "1.0.0",
...@@ -1972,6 +1973,7 @@ ...@@ -1972,6 +1973,7 @@
1972 "resolved": "http://registry.npm.taobao.org/combined-stream/download/combined-stream-1.0.7.tgz", 1973 "resolved": "http://registry.npm.taobao.org/combined-stream/download/combined-stream-1.0.7.tgz",
1973 "integrity": "sha1-LR0kMXr7ir6V1tLAsHtXgTU52Cg=", 1974 "integrity": "sha1-LR0kMXr7ir6V1tLAsHtXgTU52Cg=",
1974 "dev": true, 1975 "dev": true,
1976 "optional": true,
1975 "requires": { 1977 "requires": {
1976 "delayed-stream": "~1.0.0" 1978 "delayed-stream": "~1.0.0"
1977 } 1979 }
...@@ -2763,7 +2765,8 @@ ...@@ -2763,7 +2765,8 @@
2763 "version": "1.0.0", 2765 "version": "1.0.0",
2764 "resolved": "http://registry.npm.taobao.org/delayed-stream/download/delayed-stream-1.0.0.tgz", 2766 "resolved": "http://registry.npm.taobao.org/delayed-stream/download/delayed-stream-1.0.0.tgz",
2765 "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", 2767 "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
2766 "dev": true 2768 "dev": true,
2769 "optional": true
2767 }, 2770 },
2768 "depd": { 2771 "depd": {
2769 "version": "1.1.2", 2772 "version": "1.1.2",
...@@ -3531,7 +3534,8 @@ ...@@ -3531,7 +3534,8 @@
3531 "version": "1.3.0", 3534 "version": "1.3.0",
3532 "resolved": "http://registry.npm.taobao.org/extsprintf/download/extsprintf-1.3.0.tgz", 3535 "resolved": "http://registry.npm.taobao.org/extsprintf/download/extsprintf-1.3.0.tgz",
3533 "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", 3536 "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
3534 "dev": true 3537 "dev": true,
3538 "optional": true
3535 }, 3539 },
3536 "fast-deep-equal": { 3540 "fast-deep-equal": {
3537 "version": "1.1.0", 3541 "version": "1.1.0",
...@@ -3870,7 +3874,8 @@ ...@@ -3870,7 +3874,8 @@
3870 "ansi-regex": { 3874 "ansi-regex": {
3871 "version": "2.1.1", 3875 "version": "2.1.1",
3872 "bundled": true, 3876 "bundled": true,
3873 "dev": true 3877 "dev": true,
3878 "optional": true
3874 }, 3879 },
3875 "aproba": { 3880 "aproba": {
3876 "version": "1.2.0", 3881 "version": "1.2.0",
...@@ -3891,12 +3896,14 @@ ...@@ -3891,12 +3896,14 @@
3891 "balanced-match": { 3896 "balanced-match": {
3892 "version": "1.0.0", 3897 "version": "1.0.0",
3893 "bundled": true, 3898 "bundled": true,
3894 "dev": true 3899 "dev": true,
3900 "optional": true
3895 }, 3901 },
3896 "brace-expansion": { 3902 "brace-expansion": {
3897 "version": "1.1.11", 3903 "version": "1.1.11",
3898 "bundled": true, 3904 "bundled": true,
3899 "dev": true, 3905 "dev": true,
3906 "optional": true,
3900 "requires": { 3907 "requires": {
3901 "balanced-match": "^1.0.0", 3908 "balanced-match": "^1.0.0",
3902 "concat-map": "0.0.1" 3909 "concat-map": "0.0.1"
...@@ -3911,17 +3918,20 @@ ...@@ -3911,17 +3918,20 @@
3911 "code-point-at": { 3918 "code-point-at": {
3912 "version": "1.1.0", 3919 "version": "1.1.0",
3913 "bundled": true, 3920 "bundled": true,
3914 "dev": true 3921 "dev": true,
3922 "optional": true
3915 }, 3923 },
3916 "concat-map": { 3924 "concat-map": {
3917 "version": "0.0.1", 3925 "version": "0.0.1",
3918 "bundled": true, 3926 "bundled": true,
3919 "dev": true 3927 "dev": true,
3928 "optional": true
3920 }, 3929 },
3921 "console-control-strings": { 3930 "console-control-strings": {
3922 "version": "1.1.0", 3931 "version": "1.1.0",
3923 "bundled": true, 3932 "bundled": true,
3924 "dev": true 3933 "dev": true,
3934 "optional": true
3925 }, 3935 },
3926 "core-util-is": { 3936 "core-util-is": {
3927 "version": "1.0.2", 3937 "version": "1.0.2",
...@@ -4038,7 +4048,8 @@ ...@@ -4038,7 +4048,8 @@
4038 "inherits": { 4048 "inherits": {
4039 "version": "2.0.3", 4049 "version": "2.0.3",
4040 "bundled": true, 4050 "bundled": true,
4041 "dev": true 4051 "dev": true,
4052 "optional": true
4042 }, 4053 },
4043 "ini": { 4054 "ini": {
4044 "version": "1.3.5", 4055 "version": "1.3.5",
...@@ -4050,6 +4061,7 @@ ...@@ -4050,6 +4061,7 @@
4050 "version": "1.0.0", 4061 "version": "1.0.0",
4051 "bundled": true, 4062 "bundled": true,
4052 "dev": true, 4063 "dev": true,
4064 "optional": true,
4053 "requires": { 4065 "requires": {
4054 "number-is-nan": "^1.0.0" 4066 "number-is-nan": "^1.0.0"
4055 } 4067 }
...@@ -4064,6 +4076,7 @@ ...@@ -4064,6 +4076,7 @@
4064 "version": "3.0.4", 4076 "version": "3.0.4",
4065 "bundled": true, 4077 "bundled": true,
4066 "dev": true, 4078 "dev": true,
4079 "optional": true,
4067 "requires": { 4080 "requires": {
4068 "brace-expansion": "^1.1.7" 4081 "brace-expansion": "^1.1.7"
4069 } 4082 }
...@@ -4071,12 +4084,14 @@ ...@@ -4071,12 +4084,14 @@
4071 "minimist": { 4084 "minimist": {
4072 "version": "0.0.8", 4085 "version": "0.0.8",
4073 "bundled": true, 4086 "bundled": true,
4074 "dev": true 4087 "dev": true,
4088 "optional": true
4075 }, 4089 },
4076 "minipass": { 4090 "minipass": {
4077 "version": "2.2.4", 4091 "version": "2.2.4",
4078 "bundled": true, 4092 "bundled": true,
4079 "dev": true, 4093 "dev": true,
4094 "optional": true,
4080 "requires": { 4095 "requires": {
4081 "safe-buffer": "^5.1.1", 4096 "safe-buffer": "^5.1.1",
4082 "yallist": "^3.0.0" 4097 "yallist": "^3.0.0"
...@@ -4095,6 +4110,7 @@ ...@@ -4095,6 +4110,7 @@
4095 "version": "0.5.1", 4110 "version": "0.5.1",
4096 "bundled": true, 4111 "bundled": true,
4097 "dev": true, 4112 "dev": true,
4113 "optional": true,
4098 "requires": { 4114 "requires": {
4099 "minimist": "0.0.8" 4115 "minimist": "0.0.8"
4100 } 4116 }
...@@ -4175,7 +4191,8 @@ ...@@ -4175,7 +4191,8 @@
4175 "number-is-nan": { 4191 "number-is-nan": {
4176 "version": "1.0.1", 4192 "version": "1.0.1",
4177 "bundled": true, 4193 "bundled": true,
4178 "dev": true 4194 "dev": true,
4195 "optional": true
4179 }, 4196 },
4180 "object-assign": { 4197 "object-assign": {
4181 "version": "4.1.1", 4198 "version": "4.1.1",
...@@ -4187,6 +4204,7 @@ ...@@ -4187,6 +4204,7 @@
4187 "version": "1.4.0", 4204 "version": "1.4.0",
4188 "bundled": true, 4205 "bundled": true,
4189 "dev": true, 4206 "dev": true,
4207 "optional": true,
4190 "requires": { 4208 "requires": {
4191 "wrappy": "1" 4209 "wrappy": "1"
4192 } 4210 }
...@@ -4272,7 +4290,8 @@ ...@@ -4272,7 +4290,8 @@
4272 "safe-buffer": { 4290 "safe-buffer": {
4273 "version": "5.1.1", 4291 "version": "5.1.1",
4274 "bundled": true, 4292 "bundled": true,
4275 "dev": true 4293 "dev": true,
4294 "optional": true
4276 }, 4295 },
4277 "safer-buffer": { 4296 "safer-buffer": {
4278 "version": "2.1.2", 4297 "version": "2.1.2",
...@@ -4308,6 +4327,7 @@ ...@@ -4308,6 +4327,7 @@
4308 "version": "1.0.2", 4327 "version": "1.0.2",
4309 "bundled": true, 4328 "bundled": true,
4310 "dev": true, 4329 "dev": true,
4330 "optional": true,
4311 "requires": { 4331 "requires": {
4312 "code-point-at": "^1.0.0", 4332 "code-point-at": "^1.0.0",
4313 "is-fullwidth-code-point": "^1.0.0", 4333 "is-fullwidth-code-point": "^1.0.0",
...@@ -4327,6 +4347,7 @@ ...@@ -4327,6 +4347,7 @@
4327 "version": "3.0.1", 4347 "version": "3.0.1",
4328 "bundled": true, 4348 "bundled": true,
4329 "dev": true, 4349 "dev": true,
4350 "optional": true,
4330 "requires": { 4351 "requires": {
4331 "ansi-regex": "^2.0.0" 4352 "ansi-regex": "^2.0.0"
4332 } 4353 }
...@@ -4370,12 +4391,14 @@ ...@@ -4370,12 +4391,14 @@
4370 "wrappy": { 4391 "wrappy": {
4371 "version": "1.0.2", 4392 "version": "1.0.2",
4372 "bundled": true, 4393 "bundled": true,
4373 "dev": true 4394 "dev": true,
4395 "optional": true
4374 }, 4396 },
4375 "yallist": { 4397 "yallist": {
4376 "version": "3.0.2", 4398 "version": "3.0.2",
4377 "bundled": true, 4399 "bundled": true,
4378 "dev": true 4400 "dev": true,
4401 "optional": true
4379 } 4402 }
4380 } 4403 }
4381 }, 4404 },
...@@ -5589,7 +5612,8 @@ ...@@ -5589,7 +5612,8 @@
5589 "version": "0.1.1", 5612 "version": "0.1.1",
5590 "resolved": "http://registry.npm.taobao.org/jsbn/download/jsbn-0.1.1.tgz", 5613 "resolved": "http://registry.npm.taobao.org/jsbn/download/jsbn-0.1.1.tgz",
5591 "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", 5614 "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
5592 "dev": true 5615 "dev": true,
5616 "optional": true
5593 }, 5617 },
5594 "jsesc": { 5618 "jsesc": {
5595 "version": "1.3.0", 5619 "version": "1.3.0",
...@@ -10765,7 +10789,8 @@ ...@@ -10765,7 +10789,8 @@
10765 "version": "0.14.5", 10789 "version": "0.14.5",
10766 "resolved": "http://registry.npm.taobao.org/tweetnacl/download/tweetnacl-0.14.5.tgz", 10790 "resolved": "http://registry.npm.taobao.org/tweetnacl/download/tweetnacl-0.14.5.tgz",
10767 "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", 10791 "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
10768 "dev": true 10792 "dev": true,
10793 "optional": true
10769 }, 10794 },
10770 "type-check": { 10795 "type-check": {
10771 "version": "0.3.2", 10796 "version": "0.3.2",
......
...@@ -189,3 +189,38 @@ export const dashboardExport = params => { ...@@ -189,3 +189,38 @@ export const dashboardExport = params => {
189 console.log("url:", url); 189 console.log("url:", url);
190 window.open(url) 190 window.open(url)
191 }; 191 };
192
193
194 export const request = {
195 post(url, data) {
196 return axios.post(`${base}${url}`, data);
197 },
198 get(url, data) {
199 return axios.get(`${base}${url}`, { params: data });
200 },
201 form(url, params) {
202 let formData = new FormData(); //使用formData对象
203 for (let key in params) {
204 formData.append(key, params[key]);
205 }
206 let requestUrl = url.indexOf("://") >= 0 ? `${url}` : `${base}${url}`;
207 return axios.post(requestUrl, formData, formDataHeaders)
208 },
209 build(url, params) {
210 let fullUrl = `${base}${url}`;
211 let split = "";
212 for (let key in params) {
213 if (split) {
214 split = "&";
215 } else {
216 split = "?"
217 }
218 fullUrl += split + key + "=" + params[key];
219 }
220 return fullUrl;
221 },
222 requestDomain() {
223 return `${base}`
224 }
225 /*test*/
226 };
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
27 style="width: 100%;" 27 style="width: 100%;"
28 > 28 >
29 <el-table-column prop="title" label="标题"></el-table-column> 29 <el-table-column prop="title" label="标题"></el-table-column>
30 <el-table-column label="所属分类">
31 <template slot-scope="scope">{{formatClassify(scope.row)}}</template>
32 </el-table-column>
30 <!-- <el-table-column prop="thumb" label="封面"></el-table-column> --> 33 <!-- <el-table-column prop="thumb" label="封面"></el-table-column> -->
31 <el-table-column label="封面图"> 34 <el-table-column label="封面图">
32 <template slot-scope="scope"> 35 <template slot-scope="scope">
...@@ -161,6 +164,7 @@ export default { ...@@ -161,6 +164,7 @@ export default {
161 classifyDialogList: [], 164 classifyDialogList: [],
162 tagList: [] 165 tagList: []
163 }, 166 },
167 classifyMap: {},
164 listLoading: false, 168 listLoading: false,
165 editLoading: false, 169 editLoading: false,
166 editFormVisible: false, 170 editFormVisible: false,
...@@ -294,6 +298,9 @@ export default { ...@@ -294,6 +298,9 @@ export default {
294 this.$set(this.totalData, 'classifyDialogList', content) 298 this.$set(this.totalData, 'classifyDialogList', content)
295 //深复制 299 //深复制
296 let content2 = Object.assign([], content) 300 let content2 = Object.assign([], content)
301 content2.forEach(element => {
302 this.classifyMap[element.classify] = element.name;
303 });
297 content2.unshift({ 304 content2.unshift({
298 classify: '', 305 classify: '',
299 dispayType: '', 306 dispayType: '',
...@@ -330,6 +337,9 @@ export default { ...@@ -330,6 +337,9 @@ export default {
330 this.reqTagList() 337 this.reqTagList()
331 console.log('editForm:', this.editForm) 338 console.log('editForm:', this.editForm)
332 }, 339 },
340 formatClassify(data) {
341 return this.classifyMap[data.classify];
342 },
333 deleteHandler(index, row) { 343 deleteHandler(index, row) {
334 let data = { 344 let data = {
335 articleCode: row.articleCode 345 articleCode: row.articleCode
......