diff --git a/config/settings.js b/config/settings.js index ef40a8c098f653c7730d80cbf0c5025189f5c007..4c9d999a2d97a9653cbaa45ea37864c8e2fe808e 100644 --- a/config/settings.js +++ b/config/settings.js @@ -1,4 +1,4 @@ -var ServiceURL = 'http://192.168.3.216:9002'; +var ServiceURL = 'http://192.168.0.230:9002'; window.VUE_APP_API = {ServiceURL:ServiceURL} diff --git a/src/assets/js/httpApi.js b/src/assets/js/httpApi.js index 261e8147a394d53034b8f1ac5ce23fdef4ca5739..c31dd4bdb65925acc1d5756d4d33c048f1cc13bc 100644 --- a/src/assets/js/httpApi.js +++ b/src/assets/js/httpApi.js @@ -1256,6 +1256,72 @@ var reqApis = function () { reqApi.common.toExports.call(this); } }, + { + type: 'default', icon: 'el-icon-document', name: '鏃ョ疮璁¢檷闆ㄩ噺瀵煎嚭', 'callback': function () { + // reqApi.common.toExports.call(this); + this.$confirm('鎮ㄧ‘璁よ瀵煎嚭璇ラ〉鏁版嵁鍚�?', '鎻愮ず', { + confirmButtonText: '纭畾', + cancelButtonText: '鍙栨秷', + type: 'warning' + }).then((e) => { + var loading = this.$loading({ + lock: true, + text: '璇风◢鍚�.....', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); + reqPublic('/data/rg/downloadDvalue', 'get', {}, { responseType: 'blob' }).then((res) => { + loading.close(); + var name = '鏃ョ疮璁¢檷闆ㄩ噺鏁版嵁' + Tools.Dates.format('yyyy-MM-dd HH:mm:ss'); + Tools.downloadFile(res, name, 'xlsx') + }) + }) + } + }, + { + type: 'default', icon: 'el-icon-document', name: '鏈堢疮璁¢檷闆ㄩ噺瀵煎嚭', 'callback': function () { + // reqApi.common.toExports.call(this); + this.$confirm('鎮ㄧ‘璁よ瀵煎嚭璇ラ〉鏁版嵁鍚�?', '鎻愮ず', { + confirmButtonText: '纭畾', + cancelButtonText: '鍙栨秷', + type: 'warning' + }).then((e) => { + var loading = this.$loading({ + lock: true, + text: '璇风◢鍚�.....', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); + reqPublic('/data/rg/downloadMvalue', 'get', {}, { responseType: 'blob' }).then((res) => { + loading.close(); + var name = '鏈堢疮璁¢檷闆ㄩ噺鏁版嵁' + Tools.Dates.format('yyyy-MM-dd HH:mm:ss'); + Tools.downloadFile(res, name, 'xlsx') + }) + }) + } + }, + { + type: 'default', icon: 'el-icon-document', name: '骞寸疮璁¢檷闆ㄩ噺瀵煎嚭', 'callback': function () { + // reqApi.common.toExports.call(this); + this.$confirm('鎮ㄧ‘璁よ瀵煎嚭璇ラ〉鏁版嵁鍚�?', '鎻愮ず', { + confirmButtonText: '纭畾', + cancelButtonText: '鍙栨秷', + type: 'warning' + }).then((e) => { + var loading = this.$loading({ + lock: true, + text: '璇风◢鍚�.....', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); + reqPublic('/data/rg/downloadYvalue', 'get', {}, { responseType: 'blob' }).then((res) => { + loading.close(); + var name = '骞寸疮璁¢檷闆ㄩ噺鏁版嵁' + Tools.Dates.format('yyyy-MM-dd HH:mm:ss'); + Tools.downloadFile(res, name, 'xlsx') + }) + }) + } + }, { type: 'default', icon: 'el-icon-printer', name: '鎵撳嵃', 'callback': function () { Tools.cuPrint(this.$refs.cuTable); @@ -1310,6 +1376,7 @@ var reqApis = function () { download: function (param) { return reqPublic('data/rg/download', 'get', param, { responseType: 'blob' }) }, + }, }, nbwy: { // 鍐呴儴浣嶇Щ