| | |
| | | ><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 |
| | |
| | | style="width: 5.5rem; height: 2rem; font-size: 0.88rem" |
| | | @click="printExcel" |
| | | >鎵归噺瀵煎嚭</el-button |
| | | > --> |
| | | > |
| | | <el-button |
| | | @click="deleteAll" |
| | | size="small" |
| | |
| | | </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, |
| | |
| | | const isactive = ref(1); |
| | | const dialogVisible = ref(false); |
| | | const dialogVisible1 = ref(false); |
| | | |
| | | const importDialogVisible = ref(false); // 瀵煎叆 |
| | | const selectoptions = ref([]); |
| | | const infoOpitions = ref([ |
| | | { |