pengwei
2025-03-27 1288a7890deb3b180b1e8df7015b1036514c4e71
项目代码/client/src/views/tts/BasicInformation/Basicinformation.vue
@@ -106,7 +106,8 @@
            ><el-icon style="margin-right: 0.2rem"> <Plus /> </el-icon
            >鏂板缓</el-button
          >
          <!-- <el-button
          <el-button
            @click="importDialogVisible = true"
            size="small"
            style="width: 5.5rem; height: 2rem; font-size: 0.88rem"
            >鎵归噺瀵煎叆</el-button
@@ -116,7 +117,7 @@
            style="width: 5.5rem; height: 2rem; font-size: 0.88rem"
            @click="printExcel"
            >鎵归噺瀵煎嚭</el-button
          > -->
          >
          <el-button
            @click="deleteAll"
            size="small"
@@ -482,12 +483,27 @@
        </div>
      </template>
    </el-dialog>
    <el-dialog v-model="importDialogVisible">
      <UploadExcel
        @importExcelAfter="importExcelAfter"
        :url="isactive == 1 ? 'api/ArticleInfom/Import' : 'api/Tools/Import'"
        :template="{
          url:
            isactive == 1
              ? 'api/ArticleInfom/DownLoadTemplate'
              : 'api/Tools/DownLoadTemplate',
          fileName: isactive == 1 ? '淇℃伅瀵煎叆妯℃澘' : '宸ュ叿瀵煎叆妯℃澘',
        }"
      />
    </el-dialog>
  </div>
</template>
<script setup>
import { ref, reactive, onMounted, toRef } from "vue";
import { ElMessage, ElMessageBox } from "element-plus";
import { formatTime } from "@/utils/index.js";
import UploadExcel from "@/components/basic/UploadExcel.vue";
import {
  getBasicinformation,
  addBasicinformation,
@@ -515,7 +531,7 @@
const isactive = ref(1);
const dialogVisible = ref(false);
const dialogVisible1 = ref(false);
const importDialogVisible = ref(false); // 瀵煎叆
const selectoptions = ref([]);
const infoOpitions = ref([
  {