From c63fd9557d84091f4d35ecd5015227b1dd989791 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Thu, 22 Jul 2021 14:06:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/api.js | 2 +- src/views/data/Framework.vue | 10 ++++++---- src/views/order/AddOrder.vue | 17 +++++++++-------- src/views/order/selectClient.vue | 3 +-- src/views/setting/Person.vue | 2 +- 5 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/utils/api.js b/src/utils/api.js index cf0abfc..6e179c3 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -116,7 +116,7 @@ export default { deleteCategory:`${host}/data/data/table/deleteCategory`, deleteTable:`${host}/data/data/table/deleteTable`, previewData:`${host}/data/data/preview`, - + staticPreview:`${host}/data/data/staticPreview`, // 产品管理 deleteProduct:`${host}/data/data/product/delete`, findById:`${host}/data/data/product/findById`, diff --git a/src/views/data/Framework.vue b/src/views/data/Framework.vue index 5512b9e..ec1d5a9 100644 --- a/src/views/data/Framework.vue +++ b/src/views/data/Framework.vue @@ -55,9 +55,9 @@ - - - +
+ +
@@ -238,6 +238,7 @@ export default { for(let i in n){ if(typeof n[i] == 'string' && n[i].endsWith('+0000')) n[i] = this.formatDate('yyyy-MM-dd hh:mm:ss',new Date(n[i])) } + }) this.previewData = data this.previewVisible = true @@ -329,7 +330,7 @@ export default { }).catch(res => {}) }, getFields(){ - this.$get(`${this.api.previewData}?tableName=${this.tableName}&tableId=${this.curId}`).then(res => { + this.$get(`${this.api.staticPreview}?tableName=${this.tableName}`).then(res => { let comment = res.comment let fieldHead = [] comment.map(n => { @@ -344,6 +345,7 @@ export default { } }) this.fieldData = data + console.log(data,'data'); }).catch(res => {}) this.importVisible = true }, diff --git a/src/views/order/AddOrder.vue b/src/views/order/AddOrder.vue index a78741e..599759f 100644 --- a/src/views/order/AddOrder.vue +++ b/src/views/order/AddOrder.vue @@ -207,7 +207,7 @@ - + - + - + - + --> - +