zouyu
5 天以前 2bd9b32aa6378ff6a841780628b844a42dbd8f01
src/views/CNAS/resourceDemand/device/component/management.vue
@@ -29,6 +29,7 @@
      <div>
        <el-button size="small" type="primary" @click="dialogVisible2 = true">新增</el-button>
        <el-button size="small" type="primary" @click="handleDownOne">导出</el-button>
        <el-button size="small" type="primary" @click="showDownloadDialog">下载采集器</el-button>
      </div>
    </div>
      <div class="table" v-show="!showData">
@@ -384,6 +385,30 @@
         </span>
      </el-dialog>
      <dataAcquisitionConfig v-if="showData" :deviceId="deviceId" />
    <!--    下载采集器弹框-->
    <el-dialog
      title="下载采集器"
      :visible.sync="downloadCollectorVisible"
      width="30%">
      <el-row :gutter="12">
        <el-col :span="12">
          <el-card shadow="hover">
            <div style="display: flex; justify-content: center; align-items: center;">
              <div style="line-height: 12px"><el-image :src="imageSrc" fit="fill"></el-image></div>
              <div><el-link href="http://192.168.21.53:7001/collector/32.7z" type="primary">Win32位点此下载</el-link></div>
            </div>
          </el-card>
        </el-col>
        <el-col :span="12">
          <el-card shadow="hover">
            <div style="display: flex; justify-content: center; align-items: center;">
              <div style="line-height: 12px"><el-image :src="imageSrc" fit="fill"></el-image></div>
              <div><el-link href="http://192.168.21.53:7001/collector/64.7z" type="primary">Win64位点此下载</el-link></div>
            </div>
          </el-card>
        </el-col>
      </el-row>
    </el-dialog>
   </div>
</template>
@@ -416,6 +441,8 @@
   },
   data() {
      return {
      imageSrc: require('@/assets/logo/Windows.png'),
      downloadCollectorVisible:false,
         dateFormat: 'yyyy-MM-dd',
         deviceId: '',
         fileTypeOptions: [
@@ -569,6 +596,9 @@
      this.clickSidebar(this.clickNodeVal)
   },
   methods: {
    showDownloadDialog(){
      this.downloadCollectorVisible = true
    },
      //分类
      handleNotification(cate) {
         this.queryParams.largeCategory = cate