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