From 2b4abfa6fc83152b800a7696636fe682b7ec6cbf Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期五, 12 一月 2024 16:39:50 +0800
Subject: [PATCH] 问题项修改

---
 src/views/eam/modules/maintenancePlan/StandardSelect.vue |   54 +++++++++++++++++++++++++++---------------------------
 1 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/src/views/eam/modules/maintenancePlan/StandardSelect.vue b/src/views/eam/modules/maintenancePlan/StandardSelect.vue
index f35b0b1..0f3e8a3 100644
--- a/src/views/eam/modules/maintenancePlan/StandardSelect.vue
+++ b/src/views/eam/modules/maintenancePlan/StandardSelect.vue
@@ -87,10 +87,10 @@
   mixins: [JeecgListMixin],
   components: {},
   props: {
-    maintenanceType:{
-      type:String,
-      default:'',
-      required:true
+    maintenanceType: {
+      type: String,
+      default: '',
+      required: true
     }
 
   },
@@ -105,7 +105,7 @@
           key: 'rowIndex',
           width: 50,
           align: 'center',
-          customRender: function(t, r, index) {
+          customRender: function (t, r, index) {
             return parseInt(index) + 1
           }
         },
@@ -113,49 +113,49 @@
           title: '缁熶竴缂栫爜',
           align: 'center',
           dataIndex: 'num',
-          width:200
+          width: 200
         },
         {
           title: '璁惧鍚嶇О',
           align: 'center',
           dataIndex: 'name',
-          width:200
+          width: 200
         },
         {
           title: '璁惧鍨嬪彿',
           align: 'center',
           dataIndex: 'model',
-          width:200
+          width: 200
         },
         {
           title: '璁惧瑙勬牸',
           align: 'center',
           dataIndex: 'specification',
-          width:200
+          width: 200
         },
         {
           title: 'ABC鏍囪瘑',
           align: "center",
           dataIndex: 'equipmentImportanceId',
-          width:100
+          width: 100
         },
         {
           title: '鍏抽敭璁惧鏍囪瘑',
           align: "center",
           dataIndex: 'specificEquipment_dictText',
-          width:100
+          width: 100
         },
         {
           title: '璁惧鐘舵��',
           align: 'center',
           dataIndex: 'equipmentStatus_dictText',
-          width:100
+          width: 100
         },
         {
           title: '鎶�鏈姸鎬�',
           align: 'center',
           dataIndex: 'technologyStatus_dictText',
-          width:100
+          width: 100
         },
       ],
       selectedRowKeys: [],
@@ -183,8 +183,8 @@
       visible: false,
       loading: false,
       url: {
-        list: '/eam/equipment/getEquipmentList',
-        getStandards:'/eam/equipmentMaintenancePlan/getStandards'
+        list: '/eam/equipment/showEquipmentList',
+        getStandards: '/eam/equipmentMaintenancePlan/getStandards'
       },
     }
   },
@@ -280,34 +280,34 @@
         this.isorter.order = 'ascend' === sorter.order ? 'asc' : 'desc';
       }
       this.ipagination = pagination;
-      this.loadData(); 
+      this.loadData();
     },
     handleSubmit() {
       this.loading = true
       let that = this;
       var ids = '';
-      if(this.selectionRows.length==0){
+      if (this.selectionRows.length == 0) {
         that.$message.warning("璇烽�夋嫨淇濆吇璁惧");
-        this.loading=false;
+        this.loading = false;
         return false;
       }
-      for(var i = 0;i<this.selectionRows.length;i++){
-          ids = ids+this.selectionRows[i].id+',';
+      for (var i = 0; i < this.selectionRows.length; i++) {
+        ids = ids + this.selectionRows[i].id + ',';
       }
-      getAction(this.url.getStandards,{ids:ids,maintenanceType:this.maintenanceType}).then(res=>{
-        if(res.success){
-          if(res.result.records.length!==that.selectionRows.length){
+      getAction(this.url.getStandards, { ids: ids, maintenanceType: this.maintenanceType }).then(res => {
+        if (res.success) {
+          if (res.result.records.length !== that.selectionRows.length) {
             that.$message.warning(res.result.message);
           }
           that.$emit('selectionEquipmentRows', res.result.records);
           that.searchReset(0)
           that.close();
         }
-      }).finally(res=>{
-        this.loading=false;
+      }).finally(res => {
+        this.loading = false;
       })
-      
-     
+
+
     },
     onSelectChange(selectionRows) {
       this.selectionRows = selectionRows;

--
Gitblit v1.9.3