zhaowei
2025-03-06 ddd818f74d59c1fdeeed29714d660d7e49200c04
src/views/eam/PrecisionParametersTemplateList.vue
@@ -1,5 +1,5 @@
<template>
  <a-card :bordered="false" title='精度参数模版'>
  <a-card :bordered="false" title=''>
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
@@ -20,7 +20,7 @@
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
              <a-button type="info" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
            </span>
          </a-col>
        </a-row>
@@ -32,6 +32,9 @@
    <div class="table-operator">
      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
      <a-button @click="handleCopy" type="primary" icon="copy" :disabled="selectedRowKeys.length!=1">复制</a-button>
      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
                <a-button type="primary" icon="import">导入</a-button>
      </a-upload>
    </div>
    <!-- table区域-begin -->
@@ -177,6 +180,7 @@
          list: "/eam/precisionParametersTemplate/list",
          delete: "/eam/precisionParametersTemplate/delete",
          deleteBatch: "/eam/precisionParametersTemplate/deleteBatch",
          importExcelUrl: "/eam/precisionParametersTemplate/importExcel",
        },
        dictOptions:{
        },
@@ -274,7 +278,12 @@
        record.num = '';
        this.handleEdit(record);
      }
    }
    },
    computed: {
      importExcelUrl: function(){
        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
      }
    },
  }
</script>
<style scoped>