From 32049e33ebea04f8d9f3b59a90e3707e010d2503 Mon Sep 17 00:00:00 2001 From: liudianxin Date: Thu, 21 May 2020 19:02:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=B3=A8=E5=86=8C+url/params?= =?UTF-8?q?=E8=81=94=E5=8A=A8=EF=BC=8CorderList?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/commodity-list.vue | 1 - src/components/order-list/order-list-cell.vue | 316 +++++++++++++++++- src/components/order-list/order-list-com.vue | 71 +++- src/components/order-list/order-list-list.vue | 26 +- .../shopping-cart/shopping-cart-cell.vue | 4 +- .../shopping-cart/shopping-cart-com.vue | 2 +- src/components/table-um.vue | 2 +- src/pages/fwzc_fwcs.vue | 43 ++- 8 files changed, 438 insertions(+), 27 deletions(-) diff --git a/src/components/commodity-list.vue b/src/components/commodity-list.vue index 02525bf..717419f 100644 --- a/src/components/commodity-list.vue +++ b/src/components/commodity-list.vue @@ -141,7 +141,6 @@ export default { + \ No newline at end of file diff --git a/src/components/order-list/order-list-com.vue b/src/components/order-list/order-list-com.vue index fa0336e..5b64914 100644 --- a/src/components/order-list/order-list-com.vue +++ b/src/components/order-list/order-list-com.vue @@ -118,12 +118,56 @@ export default { } ], datas: [ - { id: "23123" }, - { id: "23ss123" }, - { id: "2311223" }, - { id: "2311423" }, - { id: "23131223" }, - { id: "231123" } + { + id: 0, + name: "水路货物周转量情况", + type: "基础数据服务", + creator: "贵州省交通运输厅0", + state: 1, + mapService: 1, + num: 2, + checkedSubscription: false, + specification: 1, + specificationApplication: 2, + evaluationText: "这条服条服务非常好非常实用这条服务非常好非常实用这条服务非常好非常实用。这条服务非常好非常实用这条服务非常好非常实用这条服务非常好非常实用这条服务非常好非常实用这条服务非常好非常实用这条服务非常好非常实用。", + evaluationRate: 4.7, + applicationTime: "2021-04-24 15:02:00", + orderNumber: "2020042422222222000001", + getStatus: 2 + }, + { + id: 1, + name: "水路货物周转量情况水路货物周水路货物周转量情况水路货物周", + type: "基础数据服务", + creator: "贵州省交通运输厅1", + state: 1, + num: 2, + checkedSubscription: false, + specification: 1, + specificationApplication: 2, + evaluationText: "这条服务非常好务非常好非常实用这非常实用这条服务非常好非常实用。", + evaluationRate: 3.7, + applicationTime: "2020-04-24 15:02:00", + orderNumber: "202004241502000001", + getStatus: 3 + }, + { + id: 2, + name: "水路货物周转量情况水路货物周转量情况路货物周转量情况", + type: "基础数据服务", + creator: "贵州省交通运输厅2", + state: 1, + mapService: 1, + num: 2, + checkedSubscription: true, + specification: 1, + specificationApplication: 2, + evaluationText: "这条服务非常好非常实用这条服务非常好非常实用这条服务非常好非常实用这条服务非常好非常实用这条服务非常好非常实用这条服务非常好非常实用。这条服务非常好非常实用这条服务非常好非常实用这条服务非常好非常实用这条服务非常好非常实用这条服务非常好非常实用这条服务非常好非常实用。", + evaluationRate: 3.7, + applicationTime: "2020-04-24 15:02:00", + orderNumber: "202004241502000001", + getStatus: 1 + } ] }), mounted() { @@ -173,10 +217,10 @@ export default { display: flex; justify-content: space-between; padding: 0 20px; - border-bottom: 2px #dcdfe6 solid; + border-bottom: 1px solid #e9ecf3; } .button_group { - padding: 15px 10px; + padding: 17px 10px; } .btn_actice { background-color: blue; @@ -187,10 +231,8 @@ export default { padding: 10px; } .order-pagination { - margin-top: 20px; - padding-bottom: 20px; font-size: 14px; - padding: 0 5%; + padding: 0 5% 20px; display: flex; justify-content: space-between; align-items: center; @@ -266,4 +308,11 @@ export default { border: 0; padding: 0; } +.button_group .el-button { + border: 0; +} +.button_group .el-button:hover { + background-color: #515fe7; + color: #fff; +} diff --git a/src/components/order-list/order-list-list.vue b/src/components/order-list/order-list-list.vue index cbe762a..06d5f3b 100644 --- a/src/components/order-list/order-list-list.vue +++ b/src/components/order-list/order-list-list.vue @@ -1,5 +1,13 @@ @@ -24,4 +32,20 @@ export default { }; \ No newline at end of file diff --git a/src/components/shopping-cart/shopping-cart-cell.vue b/src/components/shopping-cart/shopping-cart-cell.vue index 703d5a9..800ffce 100644 --- a/src/components/shopping-cart/shopping-cart-cell.vue +++ b/src/components/shopping-cart/shopping-cart-cell.vue @@ -42,7 +42,7 @@ >申请方式:{{ specificationApplicationBtns[cellItems.specificationApplication] }}
服务地址:
- + @@ -305,7 +312,6 @@ export default { { label: "字段名称", prop: "label", type: "input", align: "left" }, { label: "字段说明", prop: "descript", type: "input", align: "left" } ], - url: "", emptyText: "暂无数据", resultShow: false, resSuccess: false, @@ -354,11 +360,13 @@ export default { { label: "其他", value: 10 } ], optionsOrganization: [], + datasFw: [], datasQqcs: [], datasFhcs: [], request_fields: [], response_fields: [], - cover: "" + cover: "", + noSearchUrl: "" }), computed: {}, watch: {}, @@ -369,6 +377,23 @@ export default { this.select = "GET"; this.serviceUrl = ""; }, + getUrl(url) { + if (url.indexOf("?") != -1) { + this.noSearchUrl = url.substring(0, url.indexOf("?")); + let search = url.substring(url.indexOf("?") + 1); + let vars = search.split("&"); + let arr = []; + for (let i = 0; i < vars.length; i++) { + if (vars[i] != "") { + let pair = vars[i].split("="); + arr[i] = {}; + arr[i].requestEncoding = pair[0] ? pair[0] : ""; + arr[i].requestValue = pair[1] ? pair[1] : ""; + } + } + this.datasFw = arr; + } + }, clickFwcs() { let headers = {}; let requestData = {}; @@ -378,6 +403,7 @@ export default { headers.Authorization[0] = this.sqfsVal + " " + this.tokenVal; } let request = this.$refs.fwcs_sjfw_qq.getTableData(); + console.log(request); for (let i = 0; i < request.length; i++) { if ( request[i] && @@ -481,6 +507,17 @@ export default { .catch(function(response) { console.log("unkonw error"); }); + }, + changeTable(val) { + let search = "?"; + for (let i = 0; i < val.length; i++) { + if (val[i].requestEncoding != "") { + search = + search + val[i].requestEncoding + "=" + val[i].requestValue + "&"; + } + } + let searchDel = search.substring(0, search.length - 1); + this.serviceUrl = this.noSearchUrl + searchDel; } }, mounted() {} -- 2.26.0