未测导出修改
This commit is contained in:
parent
74a1734ab7
commit
666d9b080a
|
@ -108,8 +108,8 @@ const batchNo = props.batchNo
|
|||
const sessionName = props.sessionName
|
||||
const scaleList = ref<any[]>([])
|
||||
|
||||
const currentScaleName = ref('')
|
||||
const currentDeptName = ref('')
|
||||
const currentScale = ref({ scaleId: '', scaleName: '' })
|
||||
const currentDept = ref({ deptId: '', deptName: '' })
|
||||
|
||||
const total = ref(10)
|
||||
const completeTableData = ref<any[]>([])
|
||||
|
@ -132,7 +132,7 @@ const getTreeSelect = async () => {
|
|||
if (res.data && res.data.length > 0) {
|
||||
queryParams.value.deptId = res.data[0].id;
|
||||
|
||||
currentDeptName.value = res.data[0].label
|
||||
currentDept.value = { deptId: res.data[0].id, deptName: res.data[0].label }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -149,7 +149,7 @@ async function getScalePublishList() {
|
|||
|
||||
if (scaleIds.length) {
|
||||
queryParams.value.scaleId = scaleIds[0]
|
||||
currentScaleName.value = scaleNames[0]
|
||||
currentScale.value = { scaleId: scaleIds[0], scaleName: scaleNames[0] }
|
||||
|
||||
getList()
|
||||
}
|
||||
|
@ -175,17 +175,17 @@ async function getList() {
|
|||
|
||||
function handleScaleChange(val: any) {
|
||||
const current = scaleList.value.find(item => item.scaleId === val)
|
||||
currentScaleName.value = current.scaleName
|
||||
currentScale.value = { scaleId: current.scaleId, scaleName: current.scaleName }
|
||||
}
|
||||
|
||||
function handleDeptClick(dept: any) {
|
||||
currentDeptName.value = dept.label
|
||||
currentDept.value = { deptId: dept.id, deptName: dept.label }
|
||||
}
|
||||
|
||||
function exportUncomplete() {
|
||||
proxy?.download('scale/publish/evaluation/undone/export', {
|
||||
batchNo, sessionName
|
||||
}, `${sessionName}-${currentScaleName.value}-${currentDeptName.value}.xlsx`)
|
||||
batchNo, sessionName, scaleId: currentScale.value.scaleId, deptId: currentDept.value.deptId
|
||||
}, `${sessionName}-${currentScale.value.scaleName}-${currentDept.value.deptName}.xlsx`)
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue