取消操作

This commit is contained in:
NiSen
2023-06-21 19:04:57 +08:00
parent dcd809c8da
commit 05a8efd5ff

View File

@@ -132,7 +132,7 @@
<!-- 下一步添加学员 -->
</template>
<script setup>
import { reactive, ref, watch, computed, nextTick } from 'vue';
import { reactive, ref, computed, nextTick } from 'vue';
import { Form, message } from "ant-design-vue";
import { downloadErrorData,isTopList } from '@/api/case'
import useDownload from '@/hooks/useDownload'
@@ -148,7 +148,7 @@ defineProps({
}
})
const emit = defineEmits(['update:visible'])
const loading = ref(false)
const state = reactive({
status:'',//上传的状态
progressColor: '',//进度条颜色
@@ -159,18 +159,12 @@ const state = reactive({
selectedRow: [],//选择的每一行数据
dataSource: [],//表格的数据
AMvisible: false,//导入modal框显示隐藏
imptProgress: false,
uploadpercent: -1,//导入进度
uploadErr: false, //上传失败
fileName: '',//下载的名字
uploadAction: process.env.VUE_APP_NEW_API + '/xboe/m/boe/cases/recommend/import',//下载地址
addLoading: false,
fileList: [],//上传列表
member: false,//收起和展开
screenHeight: document.body.clientHeight,
projectParams: {
pid: '', type: '', studentName: ""
},
screenHeight: document.body.clientHeight,//高度
columns: [
{
title: "案例标题",
@@ -192,11 +186,11 @@ const state = reactive({
}
]
})
// 下一步返回的刷新列表
function submitCall(flag) {
flag && getTopList()
}
const loading = ref(false)
// 查询数据
const searchDataInfo = reactive({
pageIndex: 1,
@@ -206,14 +200,6 @@ const searchDataInfo = reactive({
});
const total = ref(0)
watch(() => state.dataSource, (newVal) => {
console.log(newVal);
}, {
deep: true,
})
// 分页
const pagination = computed(() => ({
total: total.value,
@@ -299,6 +285,8 @@ const handleRest = () => {
// 取消抽屉
const closeDrawer = () => {
state.selectedRowKeys=[]
state.selectedRow=[]
resetFields()
emit('update:visible', false)
}
@@ -329,7 +317,6 @@ const closeModal = () => {
const handleChange = (info) => {
console.log("info", info);
console.log("info", info.file.percent);
state.imptProgress = true
state.status = '正在上传'
state.progressColor = ''
state.fileList = []