From 7d65ceab0b95595cb9c93dbaf104a07635e1a204 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com>
Date: Wed, 2 Aug 2023 16:01:53 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8Bjson=E7=9A=84detail=E5=8F=AA?=
=?UTF-8?q?=E5=AD=98=E5=9C=A8=E5=90=8C=E4=B8=80=E6=9D=A1=E6=95=B0=E6=8D=AE?=
=?UTF-8?q?bug=E5=A4=84=E7=90=86+api=E5=88=A0=E9=99=A4=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
PC/UI.WinIn.FasterZ.Store/src/api/wms-api.js | 28 +++
.../components/addEditFromApiPop/index.vue | 28 ++-
.../src/components/umyTable/index.vue | 56 ++---
.../src/mixins/TableMixins.js | 34 ++-
.../src/store/getters.js | 1 +
.../src/store/modules/definition.js | 18 +-
.../src/views/demo/demo_api_handle.vue | 112 ++++++++++
.../src/views/demo/demo_base_handle.vue | 196 ++++++++++++++++++
8 files changed, 426 insertions(+), 47 deletions(-)
create mode 100644 PC/UI.WinIn.FasterZ.Store/src/views/demo/demo_api_handle.vue
create mode 100644 PC/UI.WinIn.FasterZ.Store/src/views/demo/demo_base_handle.vue
diff --git a/PC/UI.WinIn.FasterZ.Store/src/api/wms-api.js b/PC/UI.WinIn.FasterZ.Store/src/api/wms-api.js
index f753ffe..dbe79a6 100644
--- a/PC/UI.WinIn.FasterZ.Store/src/api/wms-api.js
+++ b/PC/UI.WinIn.FasterZ.Store/src/api/wms-api.js
@@ -2,6 +2,7 @@ import request from '@/utils/request'
import store from '@/store'
// let baseURL = process.env.VUE_APP_BASE_API + '/'
+let baseAPI = localStorage.getItem('baseApi') + '/'
let baseURL = localStorage.getItem('baseApi') + '/api/'
//新建
@@ -147,4 +148,31 @@ export function getVsersion() {
url: window.SITE_CONFIG['versionUrl'] + `/version.json?t=${new Date().getTime()}`,
method: 'get'
})
+}
+
+// fast-new
+//API-POST
+export function ApiTypePost(data, url) {
+ return request({
+ url: baseAPI + url,
+ method: 'post',
+ data
+ })
+}
+//API-PUT
+export function ApiTypePut(data, id, url) {
+ return request({
+ url: baseAPI + url,
+ method: 'put',
+ data,
+ params:{id:id}
+ })
+}
+//API-DELETE
+export function ApiTypeDelete(id, url) {
+ return request({
+ url: baseAPI + url,
+ method: 'delete',
+ params:{id:id}
+ })
}
\ No newline at end of file
diff --git a/PC/UI.WinIn.FasterZ.Store/src/components/addEditFromApiPop/index.vue b/PC/UI.WinIn.FasterZ.Store/src/components/addEditFromApiPop/index.vue
index c276e69..ec8858d 100644
--- a/PC/UI.WinIn.FasterZ.Store/src/components/addEditFromApiPop/index.vue
+++ b/PC/UI.WinIn.FasterZ.Store/src/components/addEditFromApiPop/index.vue
@@ -125,10 +125,9 @@
+
\ No newline at end of file
diff --git a/PC/UI.WinIn.FasterZ.Store/src/views/demo/demo_base_handle.vue b/PC/UI.WinIn.FasterZ.Store/src/views/demo/demo_base_handle.vue
new file mode 100644
index 0000000..8c860cf
--- /dev/null
+++ b/PC/UI.WinIn.FasterZ.Store/src/views/demo/demo_base_handle.vue
@@ -0,0 +1,196 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
(displayDialog.detailsDialog = val)"
+ @drawerbutton="drawerbutton"
+ @handleCommand="drawerHandle"
+ @close-value="closeValue"
+ :firstTabs="firstTabs"
+ :totalCount="totalCountDetails"
+ :currentPage="oldSkipCountDetails"
+ :MaxResultCount="MaxResultCountDetails"
+ @alterResultCountDetails="alterResultCountDetails"
+ @alertoldSkipCountDetails="alertoldSkipCountDetails"
+ :buttonOperationList_left="operationButtonsDetail"
+ >
+
+
+
+
\ No newline at end of file