wangggziwen 2 years ago
parent
commit
6a78fb4593

+ 12 - 6
ui/src/api/process/moc.js

@@ -227,49 +227,55 @@ export function delMoc(id) {
 }
 
 // 导出永久MOC
-export function exportPermanentMoc() {
+export function exportPermanentMoc(query) {
   return request({
     url: '/process/moc/exportpermanent',
     method: 'get',
+    params: query
   })
 }
 
 // 导出临时MOC
-export function exportTemporaryMoc() {
+export function exportTemporaryMoc(query) {
   return request({
     url: '/process/moc/exporttemporary',
     method: 'get',
+    params: query
   })
 }
 
 // 导出临时MOC - 带压消漏清单
-export function exportAquifier() {
+export function exportAquifier(query) {
   return request({
     url: '/process/moc/exportaquifier',
     method: 'get',
+    params: query
   })
 }
 
 // 导出临时MOC - 临时设施、其它
-export function exportFacility() {
+export function exportFacility(query) {
   return request({
     url: '/process/moc/exportfacility',
     method: 'get',
+    params: query
   })
 }
 
 // 导出临时MOC - 仪表联锁旁路
-export function exportInterlock() {
+export function exportInterlock(query) {
   return request({
     url: '/process/moc/exportinterlock',
     method: 'get',
+    params: query
   })
 }
 
 // 导出MOC
-export function exportMoc() {
+export function exportMoc(query) {
   return request({
     url: '/process/moc/export',
     method: 'get',
+    params: query
   })
 }

+ 2 - 1
ui/src/views/process/moc/aquifier/index.vue

@@ -1288,12 +1288,13 @@
       },
       /** 导出按钮操作 */
       handleExport() {
+        let _this = this;
         this.$confirm(this.$t('是否确认导出所有带压消漏清单数据项?'), this.$t('警告'), {
           confirmButtonText: this.$t('确定'),
           cancelButtonText: this.$t('取消'),
           type: "warning"
         }).then(function() {
-          return exportAquifier();
+          return exportAquifier(_this.queryParams);
         }).then(response => {
           this.download(response.msg);
         })

+ 2 - 1
ui/src/views/process/moc/facility/index.vue

@@ -877,12 +877,13 @@
       },
       /** 导出按钮操作 */
       handleExport() {
+        let _this = this;
         this.$confirm(this.$t('是否确认导出所有临时设施及其它数据项?'), this.$t('警告'), {
           confirmButtonText: this.$t('确定'),
           cancelButtonText: this.$t('取消'),
           type: "warning"
         }).then(function() {
-          return exportFacility();
+          return exportFacility(_this.queryParams);
         }).then(response => {
           this.download(response.msg);
         })

+ 2 - 1
ui/src/views/process/moc/interlock/index.vue

@@ -964,12 +964,13 @@
       },
       /** 导出按钮操作 */
       handleExport() {
+        let _this = this;
         this.$confirm(this.$t('是否确认导出所有仪表联锁旁路数据项?'), this.$t('警告'), {
           confirmButtonText: this.$t('确定'),
           cancelButtonText: this.$t('取消'),
           type: "warning"
         }).then(function() {
-          return exportInterlock();
+          return exportInterlock(_this.queryParams);
         }).then(response => {
           this.download(response.msg);
         })

+ 2 - 1
ui/src/views/process/moc/permanentMoc/index.vue

@@ -1067,12 +1067,13 @@ export default {
     },
     /** 导出按钮操作 */
     handleExport() {
+      let _this = this;
       this.$confirm(this.$t('是否确认导出所有永久MOC数据项?'), this.$t('警告'), {
           confirmButtonText: this.$t('确定'),
           cancelButtonText: this.$t('取消'),
           type: "warning"
         }).then(function() {
-          return exportPermanentMoc();
+          return exportPermanentMoc(_this.queryParams);
         }).then(response => {
           this.download(response.msg);
         })

+ 2 - 1
ui/src/views/process/moc/summary/index.vue

@@ -626,12 +626,13 @@
       },
       /** 导出按钮操作 */
       handleExport() {
+        let _this = this;
         this.$confirm(this.$t('是否确认导出所有MOC数据项?'), this.$t('警告'), {
           confirmButtonText: this.$t('确定'),
           cancelButtonText: this.$t('取消'),
           type: "warning"
         }).then(function() {
-          return exportMoc();
+          return exportMoc(_this.queryParams);
         }).then(response => {
           this.download(response.msg);
         })

+ 2 - 1
ui/src/views/process/moc/temporaryMoc/index.vue

@@ -1241,12 +1241,13 @@
       },
       /** 导出按钮操作 */
       handleExport() {
+        let _this = this;
         this.$confirm(this.$t('是否确认导出所有临时MOC数据项?'), this.$t('警告'), {
           confirmButtonText: this.$t('确定'),
           cancelButtonText: this.$t('取消'),
           type: "warning"
         }).then(function() {
-          return exportTemporaryMoc();
+          return exportTemporaryMoc(_this.queryParams);
         }).then(response => {
           this.download(response.msg);
         })