From c028f0222b0f994327e3c62341507f43c65c49e0 Mon Sep 17 00:00:00 2001 From: yanghao <781521347@qq.com> Date: Mon, 21 Feb 2022 16:59:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=9C=80=E6=96=B0=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/Resources.js | 19 +- src/views/information/index.vue | 120 +++++++++++-- src/views/shop/demandHall/authentication.vue | 4 +- src/views/shop/demandHall/index.vue | 177 ++++++++----------- src/views/shop/goods/form.vue | 4 +- src/views/shop/goods/index.vue | 6 +- vue.config.js | 4 +- 8 files changed, 207 insertions(+), 129 deletions(-) diff --git a/.env.development b/.env.development index 52b5791..2ddefc4 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ ENV = 'development' # 接口地址 -VUE_APP_BASE_API = 'http://192.168.1.34:8094' +VUE_APP_BASE_API = 'http://192.168.68.126:8094' VUE_APP_WS_API = 'ws://localhost:8088' # 是否启用 babel-plugin-dynamic-import-node插件 diff --git a/src/api/Resources.js b/src/api/Resources.js index 5e8280b..8493db1 100644 --- a/src/api/Resources.js +++ b/src/api/Resources.js @@ -1,4 +1,5 @@ import request from '@/utils/request' +import qs from 'qs' export function add(data) { return request({ @@ -13,7 +14,7 @@ export function del(ids) { url: 'api/Resources/', method: 'delete', data: ids - }) + }) } export function edit(data) { @@ -24,4 +25,18 @@ export function edit(data) { }) } -export default { add, edit, del } +export function getResourceList(data) { + return request({ + url: 'api/Resources/listResource'+ '?' + qs.stringify(data, { indices: false }), + method: 'get' + }) +} + +export function examineResources(data) { + return request({ + url: 'api/Resources/examineResources', + method: 'post', + data + }) +} +export default { add, edit, del, getResourceList } diff --git a/src/views/information/index.vue b/src/views/information/index.vue index 5f831e7..60112d1 100644 --- a/src/views/information/index.vue +++ b/src/views/information/index.vue @@ -14,6 +14,14 @@ + + + + @@ -23,35 +31,70 @@ - + - + - +