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 @@ - + - + - + - + --> - +