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