Commit 50174f20 by liucan

fix:删除导入本地编号文件按钮

parent 7d98388c
...@@ -35,7 +35,14 @@ ...@@ -35,7 +35,14 @@
</div> </div>
</div> </div>
<el-dialog style="z-index: 999999" draggable v-model="editDialogVisible" title="指定下载以下卫星" width="550"> <el-dialog
style="z-index: 999999"
draggable
v-model="editDialogVisible"
title="指定下载以下卫星"
width="550"
@close="handleDialogClose"
>
<div class="No-Content" ref="noContentRef"> <div class="No-Content" ref="noContentRef">
<TransitionGroup <TransitionGroup
enter-active-class="animate__animated animate__slideInRight" enter-active-class="animate__animated animate__slideInRight"
...@@ -87,16 +94,6 @@ ...@@ -87,16 +94,6 @@
</el-button> </el-button>
</template> </template>
</el-popconfirm> </el-popconfirm>
<el-upload
:on-change="handleFileChange"
accept=".txt"
action="#"
:auto-upload="false"
:show-file-list="false"
:before-upload="beforeUpload"
>
<el-button type="primary">导入编号文件</el-button>
</el-upload>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
...@@ -152,6 +149,18 @@ const curSelSateNo = ref<string[]>([]); ...@@ -152,6 +149,18 @@ const curSelSateNo = ref<string[]>([]);
const resetSelected = ref(false); const resetSelected = ref(false);
const handleDialogClose = () => {
// 清空已选中的编号
curSelSateNo.value = [];
// 通知子组件全部取消选中
resetSelected.value = true;
nextTick(() => {
resetSelected.value = false;
});
};
//添加选中项到当前列表 //添加选中项到当前列表
const handleSateAdd = (no: string) => { const handleSateAdd = (no: string) => {
if (checkNoLeSix(no)) { if (checkNoLeSix(no)) {
...@@ -177,9 +186,7 @@ const addNoToList = async () => { ...@@ -177,9 +186,7 @@ const addNoToList = async () => {
//编号文件导入后发送到后端 //编号文件导入后发送到后端
const fileImptAddNoList = async () => { const fileImptAddNoList = async () => {
try { try {
console.log(textFileNumbers.value);
const res = await addSateNoList({ norad_id: textFileNumbers.value }); const res = await addSateNoList({ norad_id: textFileNumbers.value });
console.log(res);
if (res.code === 0) { if (res.code === 0) {
ElMessage.success("导入编号成功"); ElMessage.success("导入编号成功");
} }
...@@ -371,7 +378,6 @@ onMounted(() => { ...@@ -371,7 +378,6 @@ onMounted(() => {
.btns { .btns {
display: flex; display: flex;
gap: 10px;
} }
.low-titme { .low-titme {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment