wyh 1 年之前
父节点
当前提交
15e6e8a7b2
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 10 1
      src/views/module_ems/tpmTag/TpmTagList.vue

+ 10 - 1
src/views/module_ems/tpmTag/TpmTagList.vue

@@ -23,6 +23,7 @@
     <!-- 操作按钮区域 -->
     <div class="table-operator">
       <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
+      <a-button @click="handleAddPL" type="primary" icon="plus">批量引入</a-button>
       <!-- <a-button type="primary" icon="download" @click="handleExportXls('设备点位表')">导出</a-button>
       <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
         <a-button type="primary" icon="import">导入</a-button>
@@ -101,6 +102,7 @@
     </div>
 
     <tpm-tag-modal ref="modalForm" @ok="modalFormOk"></tpm-tag-modal>
+    <TpmTagModalPL ref="modalFormPL" @ok="modalFormOk"></TpmTagModalPL>
   </a-card>
 </template>
 
@@ -111,12 +113,14 @@
   import { JeecgListMixin } from '@/mixins/JeecgListMixin'
   import TpmTagModal from './modules/TpmTagModal'
   import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
+import TpmTagModalPL from './modulesPL/TpmTagModalPL.vue'
 
   export default {
     name: 'TpmTagList',
     mixins:[JeecgListMixin, mixinDevice],
     components: {
-      TpmTagModal
+      TpmTagModal,
+      TpmTagModalPL
     },
     data () {
       return {
@@ -252,6 +256,11 @@
         fieldList.push({type:'BigDecimal',value:'tagvalue',text:'当前点位值',dictCode:''})
         fieldList.push({type:'datetime',value:'lastalarmtime',text:'最后一次报警时间'})
         this.superFieldList = fieldList
+      },
+      handleAddPL(){
+        this.$refs.modalFormPL.title = "批量引入点位";
+        this.$refs.modalFormPL.disableSubmit = false;
+        this.$refs.modalFormPL.visible = true;
       }
     }
   }