sc
This commit is contained in:
@@ -63,9 +63,9 @@ router.beforeEach(async (to, from, next) => {
|
||||
const tenantId = getTenantId()
|
||||
const appId = getAppId()
|
||||
if (tenantId && appId) {
|
||||
next(`/login?tenantId=${tenantId}&appId=${appId}&redirect=${to.fullPath}`) // 否则全部重定向到登录页
|
||||
next(`/tiku/login?tenantId=${tenantId}&appId=${appId}&redirect=${to.fullPath}`) // 否则全部重定向到登录页
|
||||
} else {
|
||||
next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
|
||||
next(`/tiku/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
type="primary"
|
||||
link
|
||||
@click="openForm('update', scope.row)"
|
||||
v-hasPermi="['pers:employee:update']"
|
||||
v-hasPermi="['customer:customer:update']"
|
||||
>
|
||||
修改
|
||||
</el-button>
|
||||
@@ -93,7 +93,7 @@
|
||||
type="primary"
|
||||
link
|
||||
@click="handleDelete(scope.row.userId)"
|
||||
v-hasPermi="['pers:employee:delete']"
|
||||
v-hasPermi="['customer:customer:delete']"
|
||||
>
|
||||
删除
|
||||
</el-button>
|
||||
|
||||
@@ -57,9 +57,12 @@
|
||||
<el-date-picker
|
||||
v-model="searchForm.examTime"
|
||||
type="daterange"
|
||||
format="YYYY-MM-DD"
|
||||
value-format="YYYY-MM-DD"
|
||||
range-separator="-"
|
||||
start-placeholder="考试日期"
|
||||
end-placeholder="日期"
|
||||
@change="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@@ -96,9 +99,6 @@ import download from '@/utils/download'
|
||||
|
||||
import { getCustomerExamCarType } from '@/api/customer/customer.js'
|
||||
|
||||
const message = useMessage() // 消息弹窗
|
||||
const { t } = useI18n() // 国际化
|
||||
|
||||
const carTypeOptions = ref([])
|
||||
|
||||
const searchForm = ref({
|
||||
@@ -130,8 +130,8 @@ const getList = async () => {
|
||||
loading.value = true
|
||||
try {
|
||||
if (searchForm.value.examTime && searchForm.value.examTime.length > 0) {
|
||||
searchForm.value.startTime = searchForm.value.examTime[0]
|
||||
searchForm.value.endTime = searchForm.value.examTime[1]
|
||||
searchForm.value.startTime = searchForm.value.examTime[0] + ' 00:00:00'
|
||||
searchForm.value.endTime = searchForm.value.examTime[1] + ' 23:59:59'
|
||||
} else {
|
||||
searchForm.value.startTime = undefined
|
||||
searchForm.value.endTime = undefined
|
||||
@@ -147,20 +147,14 @@ const getList = async () => {
|
||||
function handleExport() {
|
||||
const params = removeNullField(searchForm.value)
|
||||
if (params.examTime && params.examTime.length > 0) {
|
||||
params.startTime = params.examTime[0]
|
||||
params.endTime = params.examTime[1]
|
||||
params.startTime = params.examTime[0] + ' 00:00:00'
|
||||
params.endTime = params.examTime[1] + ' 23:59:59'
|
||||
} else {
|
||||
params.startTime = undefined
|
||||
params.endTime = undefined
|
||||
}
|
||||
ExamRecordApi.exportRecord(params).then((res) => {
|
||||
download.excel(res, '考试成绩.xls')
|
||||
|
||||
// if (res.code === 200) {
|
||||
// message.success('导出成功')
|
||||
// } else {
|
||||
// message.error(res.msg)
|
||||
// }
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user