From 5e157fa3d9eba5ff955436e4bf731b2808594258 Mon Sep 17 00:00:00 2001 From: clay <20932067@zju.edu.cn> Date: Thu, 11 Nov 2021 19:52:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- avue-data/src/api/visual.js | 6 +- avue-data/src/config.js | 6 +- avue-data/src/mock/index.js | 871 +++++++++++++++++++++++++++++------ avue-data/src/mock/utils.js | 2 +- avue-data/src/option/base.js | 4 +- 5 files changed, 727 insertions(+), 162 deletions(-) diff --git a/avue-data/src/api/visual.js b/avue-data/src/api/visual.js index 41443f5..b656293 100644 --- a/avue-data/src/api/visual.js +++ b/avue-data/src/api/visual.js @@ -13,7 +13,7 @@ export const getList = (params) => request({ // }; // return new Promise((resolve, reject) => { // request({ -// url: url + '/bladevisuals/searchdefault', +// url: url + '/visual/searchdefault', // method: 'post', // data: JSON.stringify(newparams), // headers: { 'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json' } @@ -50,7 +50,7 @@ export const getCategory = (params) => request({ // export const getCategory = (params) => { // return request({ -// url: url + '/bladevisualcategories/fetchdefault', +// url: url + '/categories/default', // method: 'get', // params: params // }); @@ -94,7 +94,7 @@ export const addObj = (data) => { data.status = 1; } request({ - url: url + '/bladevisuals', + url: url + '/visual/save', method: 'post', data: { password: data.password, diff --git a/avue-data/src/config.js b/avue-data/src/config.js index 0e9d911..73818f9 100644 --- a/avue-data/src/config.js +++ b/avue-data/src/config.js @@ -2,6 +2,6 @@ export default { COMPNAME: "avue-echart-", NAME: "list", DEAFNAME: 'item' -}/* -export const url = 'https://data.bladex.vip/blade-visual' */ -export const url = '' \ No newline at end of file +} +export const url = 'https://data.bladex.vip/blade-visual' +// export const url = '' diff --git a/avue-data/src/mock/index.js b/avue-data/src/mock/index.js index dd0c1eb..ce51a20 100644 --- a/avue-data/src/mock/index.js +++ b/avue-data/src/mock/index.js @@ -24,160 +24,725 @@ Mock.mock('/category/list', 'get', (res) => { //折线图 -Mock.mock('/visual/list', 'GET', () => { +Mock.mock('/visual/list', 'get', () => { const data = { - "records": [ - { - "id": "1", - "createUser": -1, - "createDept": -1, - "createTime": "2020-03-31 16:05:27", - "updateUser": -1, - "updateTime": "2020-05-12 20:32:21", - "status": 1, - "isDeleted": 0, - "title": "数据大屏模板1", - "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/f26107bbb77a84949285617848745d81.jpg", - "category": 1, - "password": "" - }, - { - "id": "2", - "createUser": -1, - "createDept": -1, - "createTime": "2020-03-31 16:05:27", - "updateUser": -1, - "updateTime": "2020-05-12 20:49:40", - "status": 1, - "isDeleted": 0, - "title": "数据大屏模板2", - "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/454472c2daac5f428a9f9f63657b22f0.jpg", - "category": 1, - "password": "" - }, - { - "id": "3", - "createUser": -1, - "createDept": -1, - "createTime": "2020-03-31 16:05:27", - "updateUser": -1, - "updateTime": "2020-05-12 16:19:21", - "status": 1, - "isDeleted": 0, - "title": "数据大屏模板3", - "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/23a6035f0f77e304c37cdc4237b2a4aa.jpg", - "category": 1, - "password": "" - }, - { - "id": "4", - "createUser": -1, - "createDept": -1, - "createTime": "2020-03-31 16:05:27", - "updateUser": -1, - "updateTime": "2020-05-12 17:28:14", - "status": 1, - "isDeleted": 0, - "title": "数据大屏模板4", - "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/a16bb5d8be962267ffbb6efdd3d0b5c2.jpg", - "category": 1, - "password": "" - }, - { - "id": "5", - "createUser": -1, - "createDept": -1, - "createTime": "2020-03-31 16:05:27", - "updateUser": -1, - "updateTime": "2020-05-12 16:52:22", - "status": 1, - "isDeleted": 0, - "title": "数据大屏模板5", - "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/f69c0faabe9762a1c51dca402ae63931.jpg", - "category": 1, - "password": "" - }, - { - "id": "6", - "createUser": -1, - "createDept": -1, - "createTime": "2020-03-16 15:06:20", - "updateUser": -1, - "updateTime": "2020-05-12 16:26:43", - "status": 1, - "isDeleted": 0, - "title": "数据大屏模板6", - "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/1d787fe711bd3914b22faa242abda9c1.jpg", - "category": 1, - "password": "" - }, - { - "id": "7", - "createUser": -1, - "createDept": -1, - "createTime": "2020-04-06 22:27:50", - "updateUser": -1, - "updateTime": "2020-05-12 16:40:43", - "status": 1, - "isDeleted": 0, - "title": "数据大屏模板7", - "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/e0c3a296f9d095c61bfe010ff4d44256.jpg", - "category": 1, - "password": "" - }, - { - "id": "8", - "createUser": -1, - "createDept": -1, - "createTime": "2020-04-06 21:21:00", - "updateUser": -1, - "updateTime": "2020-05-12 18:04:58", - "status": 1, - "isDeleted": 0, - "title": "数据大屏模板8", - "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/4dbf1f8ecd19a8bfa7f9eb59882224aa.jpg", - "category": 1, - "password": "" - }, - { - "id": "9", - "createUser": -1, - "createDept": -1, - "createTime": "2020-04-01 09:30:13", - "updateUser": -1, - "updateTime": "2020-05-12 17:31:32", - "status": 1, - "isDeleted": 0, - "title": "数据大屏模板9", - "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/bc65a08a22e1169c1f6854d0b0b3d108.jpg", - "category": 1, - "password": "" - }, - { - "id": "10", - "createUser": -1, - "createDept": -1, - "createTime": "2020-03-19 10:56:33", - "updateUser": -1, - "updateTime": "2020-05-12 16:30:34", - "status": 1, - "isDeleted": 0, - "title": "数据大屏模板10", - "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/e76f338c749acd8cce676d706f47ea99.jpg", - "category": 1, - "password": "" - } - ], - "total": 35, - "size": 10, - "current": 1, - "orders": [], - "optimizeCountSql": true, - "hitCount": false, - "countId": "", - "maxLimit": -1, - "searchCount": true, - "pages": 4 + "code": 200, + "success": true, + "data": { + "records": [ + { + "id": "1", + "createUser": -1, + "createDept": -1, + "createTime": "2020-11-20 16:28:17", + "updateUser": -1, + "updateTime": "2020-11-20 18:28:27", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20201120/59ed8621a5e3518aeea50a78f48de52f.jpg", + "category": 1, + "password": "" + }, + { + "id": "2", + "createUser": -1, + "createDept": -1, + "createTime": "2020-11-20 10:15:04", + "updateUser": -1, + "updateTime": "2020-11-23 10:58:29", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20201123/abe47c7959de86f7b1b7e6134b7c8e7c.jpg", + "category": 1, + "password": "" + }, + { + "id": "3", + "createUser": -1, + "createDept": -1, + "createTime": "2020-11-19 17:48:56", + "updateUser": -1, + "updateTime": "2020-11-20 18:28:39", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20201120/ba6387c840d534047d55dc65e97b2ae4.jpg", + "category": 1, + "password": "" + }, + { + "id": "4", + "createUser": -1, + "createDept": -1, + "createTime": "2020-11-18 16:22:32", + "updateUser": -1, + "updateTime": "2020-11-23 13:36:06", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20201122/2bcf7deba047b28954099fea71b64c29.jpg", + "category": 1, + "password": "" + }, + { + "id": "5", + "createUser": -1, + "createDept": -1, + "createTime": "2020-11-20 14:03:30", + "updateUser": -1, + "updateTime": "2020-11-20 18:28:50", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20201120/c44e4027b2497e4c0f4b3a1470d488f6.jpg", + "category": 1, + "password": "" + }, + { + "id": "6", + "createUser": -1, + "createDept": -1, + "createTime": "2021-07-25 10:58:25", + "updateUser": -1, + "updateTime": "2021-07-30 23:24:38", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210730/8bb6300dea753536bb63a391021267e3.jpg", + "category": 1, + "password": "" + }, + { + "id": "7", + "createUser": -1, + "createDept": -1, + "createTime": "2021-07-24 14:47:53", + "updateUser": -1, + "updateTime": "2021-07-25 10:27:33", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210725/2603641a5f510994ccc740191673e96f.jpg", + "category": 1, + "password": "" + }, + { + "id": "8", + "createUser": -1, + "createDept": -1, + "createTime": "2021-03-20 13:31:05", + "updateUser": -1, + "updateTime": "2021-10-11 09:55:04", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20211011/a5b594bf7cce334a591830323ab216ee.jpg", + "category": 1, + "password": "" + }, + { + "id": "9", + "createUser": -1, + "createDept": -1, + "createTime": "2020-04-01 09:30:13", + "updateUser": -1, + "updateTime": "2020-05-12 17:31:32", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/bc65a08a22e1169c1f6854d0b0b3d108.jpg", + "category": 1, + "password": "" + }, + { + "id": "10", + "createUser": -1, + "createDept": -1, + "createTime": "2021-08-16 08:52:12", + "updateUser": -1, + "updateTime": "2021-08-17 15:19:19", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210817/b15eaf86c1cad0ac605279dac8ff9fe7.jpg", + "category": 1, + "password": "" + }, + { + "id": "11", + "createUser": -1, + "createDept": -1, + "createTime": "2020-03-22 19:14:54", + "updateUser": -1, + "updateTime": "2020-05-12 16:31:18", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/519219afbfee5542478f9b62db4c4991.jpg", + "category": 1, + "password": "" + }, + { + "id": "12", + "createUser": -1, + "createDept": -1, + "createTime": "2020-03-24 10:50:10", + "updateUser": -1, + "updateTime": "2020-05-12 16:32:30", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/d27b573357a88357e0dd36a2760196a0.jpg", + "category": 1, + "password": "" + }, + { + "id": "13", + "createUser": -1, + "createDept": -1, + "createTime": "2020-03-24 16:40:12", + "updateUser": -1, + "updateTime": "2020-05-12 16:34:15", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/31fcbd5df9c3f27bad492768c4ce3d60.jpg", + "category": 1, + "password": "" + }, + { + "id": "14", + "createUser": -1, + "createDept": -1, + "createTime": "2020-04-02 09:49:48", + "updateUser": -1, + "updateTime": "2020-05-12 16:35:47", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/6d5502f8bc7b148656ecf92842987dd8.jpg", + "category": 1, + "password": "" + }, + { + "id": "15", + "createUser": -1, + "createDept": -1, + "createTime": "2020-04-02 15:23:30", + "updateUser": -1, + "updateTime": "2020-05-12 16:36:26", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/ffbbf2289594622fa7bb458507eee1c6.jpg", + "category": 1, + "password": "" + }, + { + "id": "17", + "createUser": -1, + "createDept": -1, + "createTime": "2020-04-08 14:30:09", + "updateUser": -1, + "updateTime": "2020-05-12 16:38:45", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200512/5e0129ea973df30204d0b1781289123c.jpg", + "category": 1, + "password": "" + }, + { + "id": "20", + "createUser": -1, + "createDept": -1, + "createTime": "2020-07-07 10:45:32", + "updateUser": -1, + "updateTime": "2020-07-07 14:28:09", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200707/b3e21d4182e107ebb307f46e08572701.jpg", + "category": 1, + "password": "" + }, + { + "id": "21", + "createUser": -1, + "createDept": -1, + "createTime": "2020-07-04 13:59:53", + "updateUser": -1, + "updateTime": "2020-07-04 17:44:52", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200704/d0a752d227a8a95d9aa572bcd017bce0.jpg", + "category": 1, + "password": "" + }, + { + "id": "22", + "createUser": -1, + "createDept": -1, + "createTime": "2020-07-03 21:36:22", + "updateUser": -1, + "updateTime": "2020-07-06 10:49:34", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200706/b81ffab8dcc6d2cde005397986b3dba4.jpg", + "category": 1, + "password": "" + }, + { + "id": "23", + "createUser": -1, + "createDept": -1, + "createTime": "2020-07-03 14:48:09", + "updateUser": -1, + "updateTime": "2020-07-06 10:13:46", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200706/f949c7ac4bbeb1dcbbfc01eeb0056248.jpg", + "category": 1, + "password": "" + }, + { + "id": "24", + "createUser": -1, + "createDept": -1, + "createTime": "2020-07-02 17:17:12", + "updateUser": -1, + "updateTime": "2020-07-02 17:17:12", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200702/e7a5c8c25f9fd8e27cc7cfa7dad55335.jpg", + "category": 1, + "password": "" + }, + { + "id": "25", + "createUser": -1, + "createDept": -1, + "createTime": "2020-07-01 10:43:06", + "updateUser": -1, + "updateTime": "2020-07-01 17:39:30", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200701/7abb2c799253a2c8093b725b7c70398a.jpg", + "category": 1, + "password": "" + }, + { + "id": "26", + "createUser": -1, + "createDept": -1, + "createTime": "2020-06-23 11:35:18", + "updateUser": -1, + "updateTime": "2020-07-01 15:19:18", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200701/f3b5b0c45bfc7563036a3818b8b0efa3.jpg", + "category": 1, + "password": "" + }, + { + "id": "27", + "createUser": -1, + "createDept": -1, + "createTime": "2020-06-23 10:03:52", + "updateUser": -1, + "updateTime": "2020-06-23 17:01:34", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200623/c86e8012b0b0052a9550ed242ae4e00b.jpg", + "category": 1, + "password": "" + }, + { + "id": "30", + "createUser": -1, + "createDept": -1, + "createTime": "2020-07-13 16:32:13", + "updateUser": -1, + "updateTime": "2020-07-13 16:50:05", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200713/b215d60661e5b896db5c26948f130a59.jpg", + "category": 1, + "password": "" + }, + { + "id": "31", + "createUser": -1, + "createDept": -1, + "createTime": "2020-08-24 08:35:36", + "updateUser": -1, + "updateTime": "2020-08-27 18:00:00", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200827/8fcf144d7ba54e166dad6110e878bd18.jpg", + "category": 1, + "password": "" + }, + { + "id": "32", + "createUser": -1, + "createDept": -1, + "createTime": "2020-09-02 08:46:30", + "updateUser": -1, + "updateTime": "2020-09-07 08:59:59", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200907/a6849c296760529eea8a9b466254faef.jpg", + "category": 1, + "password": "" + }, + { + "id": "33", + "createUser": -1, + "createDept": -1, + "createTime": "2020-09-04 16:18:54", + "updateUser": -1, + "updateTime": "2020-09-15 11:44:53", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200915/0d26df7b3d96fc7311879937ffec62eb.jpg", + "category": 1, + "password": "" + }, + { + "id": "34", + "createUser": -1, + "createDept": -1, + "createTime": "2020-09-05 17:24:19", + "updateUser": -1, + "updateTime": "2020-09-05 18:23:11", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200905/469ecb292907bee5866b6212bfcc011c.jpg", + "category": 1, + "password": "" + }, + { + "id": "35", + "createUser": -1, + "createDept": -1, + "createTime": "2020-09-05 16:44:49", + "updateUser": -1, + "updateTime": "2020-09-06 17:26:46", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200906/f1d2aa70279ccebcfb1db79cf1607fea.jpg", + "category": 1, + "password": "" + }, + { + "id": "36", + "createUser": -1, + "createDept": -1, + "createTime": "2020-09-07 09:11:09", + "updateUser": -1, + "updateTime": "2020-09-08 16:11:34", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200908/3b00d8307c51914265f28ae59b349264.jpg", + "category": 1, + "password": "" + }, + { + "id": "37", + "createUser": -1, + "createDept": -1, + "createTime": "2020-09-07 11:32:48", + "updateUser": -1, + "updateTime": "2020-09-11 19:31:14", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200911/a752bf33260dd8db5c11360bbff39728.jpg", + "category": 1, + "password": "" + }, + { + "id": "38", + "createUser": -1, + "createDept": -1, + "createTime": "2020-09-09 11:00:55", + "updateUser": -1, + "updateTime": "2020-09-09 11:41:59", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200909/709e18fb7f555fde7d1804db785565ff.jpg", + "category": 1, + "password": "" + }, + { + "id": "39", + "createUser": -1, + "createDept": -1, + "createTime": "2020-09-09 14:30:51", + "updateUser": -1, + "updateTime": "2020-09-14 11:17:30", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20200914/85d107196017e9b268bd6a64f334ae1e.jpg", + "category": 1, + "password": "" + }, + { + "id": "45", + "createUser": -1, + "createDept": -1, + "createTime": "2020-11-13 09:20:26", + "updateUser": -1, + "updateTime": "2020-11-13 10:04:26", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20201113/86e04a63792952a1b57b2e519272d7f3.jpg", + "category": 1, + "password": "" + }, + { + "id": "46", + "createUser": -1, + "createDept": -1, + "createTime": "2020-10-28 10:18:46", + "updateUser": -1, + "updateTime": "2020-11-22 17:38:04", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20201122/e6750e9388175e5dedf32329172f5180.jpg", + "category": 1, + "password": "" + }, + { + "id": "47", + "createUser": -1, + "createDept": -1, + "createTime": "2021-02-01 16:03:14", + "updateUser": -1, + "updateTime": "2021-02-02 14:57:05", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210202/45e71508fd51b1cf06d056bc74acac3a.jpg", + "category": 1, + "password": "" + }, + { + "id": "48", + "createUser": -1, + "createDept": -1, + "createTime": "2020-10-11 11:44:20", + "updateUser": -1, + "updateTime": "2020-11-16 04:34:59", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20201116/c538a902087ea03f96267dcacfa80398.jpg", + "category": 1, + "password": "" + }, + { + "id": "49", + "createUser": -1, + "createDept": -1, + "createTime": "2021-02-07 09:25:27", + "updateUser": -1, + "updateTime": "2021-02-08 10:57:51", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210208/a084c02c40341af87d7a3f899ae03cce.jpg", + "category": 1, + "password": "" + }, + { + "id": "50", + "createUser": -1, + "createDept": -1, + "createTime": "2021-02-26 21:21:46", + "updateUser": -1, + "updateTime": "2021-03-05 09:26:24", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210305/498d0be500f0c5339296e74bbff83bd6.jpg", + "category": 1, + "password": "" + }, + { + "id": "53", + "createUser": -1, + "createDept": -1, + "createTime": "2021-01-20 09:39:40", + "updateUser": -1, + "updateTime": "2021-01-26 13:58:34", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210126/21427aef5045204a103fe502eacfaeb1.jpg", + "category": 1, + "password": "" + }, + { + "id": "54", + "createUser": -1, + "createDept": -1, + "createTime": "2021-01-15 17:19:08", + "updateUser": -1, + "updateTime": "2021-02-25 16:51:34", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210225/bb77c84dfb15a80c33e11357ec370003.jpg", + "category": 1, + "password": "" + }, + { + "id": "57", + "createUser": -1, + "createDept": -1, + "createTime": "2021-04-09 17:57:05", + "updateUser": -1, + "updateTime": "2021-04-15 15:19:40", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210415/10710bd3f76396caec35cd6e1878b1ef.jpg", + "category": 1, + "password": "" + }, + { + "id": "58", + "createUser": -1, + "createDept": -1, + "createTime": "2021-04-23 22:48:00", + "updateUser": -1, + "updateTime": "2021-06-25 17:55:57", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210625/df8c1918b95574a8e49b98aa34f6e0ce.jpg", + "category": 1, + "password": "" + }, + { + "id": "59", + "createUser": -1, + "createDept": -1, + "createTime": "2021-05-12 16:02:58", + "updateUser": -1, + "updateTime": "2021-05-21 13:17:12", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210521/7edd8f3f2b4ccdfca151bc1a0ec65b70.jpg", + "category": 1, + "password": "" + }, + { + "id": "60", + "createUser": -1, + "createDept": -1, + "createTime": "2021-05-17 10:26:46", + "updateUser": -1, + "updateTime": "2021-05-21 17:45:41", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210521/ddf15a0ec948e811832ae5011ca66029.jpg", + "category": 1, + "password": "" + }, + { + "id": "61", + "createUser": -1, + "createDept": -1, + "createTime": "2021-06-27 18:44:46", + "updateUser": -1, + "updateTime": "2021-06-28 19:07:16", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210628/2252eff7c006006883db99b77d738c4b.jpg", + "category": 1, + "password": "" + }, + { + "id": "62", + "createUser": -1, + "createDept": -1, + "createTime": "2021-07-21 17:42:47", + "updateUser": -1, + "updateTime": "2021-07-22 13:33:02", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210722/1a5e4f6a01af703a9d7d374329302b9b.jpg", + "category": 1, + "password": "" + }, + { + "id": "66", + "createUser": -1, + "createDept": -1, + "createTime": "2021-09-05 09:45:03", + "updateUser": -1, + "updateTime": "2021-09-29 22:46:25", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210929/18ed0260289afacf09b7ac0fd523f8e0.jpg", + "category": 1, + "password": "" + }, + { + "id": "67", + "createUser": -1, + "createDept": -1, + "createTime": "2021-09-07 16:38:05", + "updateUser": -1, + "updateTime": "2021-09-12 16:40:18", + "status": 1, + "isDeleted": 0, + "title": "数据大屏模板", + "backgroundUrl": "https://oss.bladex.vip/caster/upload/20210912/c316a23870b88e78a0f2b74532968516.jpg", + "category": 1, + "password": "" + } + ], + "total": 788, + "size": 50, + "current": 1, + "orders": [], + "optimizeCountSql": true, + "hitCount": false, + "countId": "", + "maxLimit": -1, + "searchCount": true, + "pages": 16 + }, + "msg": "操作成功" } return getResult(data) }) diff --git a/avue-data/src/mock/utils.js b/avue-data/src/mock/utils.js index ad5378d..943ace8 100644 --- a/avue-data/src/mock/utils.js +++ b/avue-data/src/mock/utils.js @@ -1,3 +1,3 @@ export const getResult = (data) => { return data -} \ No newline at end of file +} diff --git a/avue-data/src/option/base.js b/avue-data/src/option/base.js index ffd6b88..e665c01 100644 --- a/avue-data/src/option/base.js +++ b/avue-data/src/option/base.js @@ -1,6 +1,6 @@ //基础公共url -var baseUrl = '.' +var baseUrl = 'http://data.bladex.vip/' //基础组件库 export default [{ "label": '图表', @@ -1151,4 +1151,4 @@ export default [{ }, }, }] -}] \ No newline at end of file +}]