'去掉一个导出'

This commit is contained in:
fooperage
2023-02-14 11:43:15 +08:00
parent 830656649d
commit 370703c7d2
3 changed files with 6888 additions and 44 deletions

View File

@@ -1544,7 +1544,7 @@ import { useStore } from "vuex";
import DropDown from "@/components/common/DropDown";
import { checkPer } from "@/utils/utils";
import dayjs from "dayjs";
import { commonExport } from '@/utils/commonExcel'
// import { commonExport } from '@/utils/commonExcel'
//列表表格
const columns1 = [
@@ -4054,48 +4054,48 @@ export default defineComponent({
}
list({
pageNo: 1,
pageSize: 100000,
auditStatus: state.auditStatus,
// categoryId: state.categoryId,
sysTypeId: state.sysTypeId,
projectName: state.projectName,
name: state.name,
createName: state.createName,
endTime: endTime,
beginTime: startTime,
}).then(res=>{
let list = res.data.data.rows.map(s=>{
s.contentTxt = findClassFullName(sysTypeOptions.value, s.sysTypeId) || "-";
s.typeName = '面授'
s.publishStatusText = s.publishStatus === 0?'未发布':'已发布'
s.statusText = s.status === 0?'否':'是'
s.auditStatusText = s.auditStatus === 0?'未提交': s.auditStatus === 1?'待审核':s.auditStatus === 2?'已审核':s.auditStatus === -1?"审核未通过":''
return s
})
console.log(list)
let heads = [
{ header: '名称', key: 'name', width: 18 },
{ header: '类型', key: 'typeName', width: 10 },
{ header: '归属路径图', key: 'routerName', width: 13 },
{ header: '归属项目', key: 'projectName', width: 13 },
{ header: '内容分类', key: 'contentTxt', width: 20 },
// { header: '一级分类', key: 'firstLevelCategory', width: 10 },
// { header: '二级分类', key: 'secondLevelCategory', width: 10 },
// { header: '三级分类', key: 'thirdLevelCategory', width: 10 },
{ header: '开课次数', key: 'planCnt', width: 10 },
{ header: '学习人数', key: 'studentCnt', width: 10 },
{ header: '评分', key: 'score', width: 10 },
{ header: '状态', key: 'auditStatusText', width: 20 },
{ header: '是否发布', key: 'publishStatusText', width: 10 },
{ header: '创建人', key: 'createName', width: 10 },
{ header: '创建时间', key: 'createTime', width: 22 },
{ header: '上线时间', key: 'publishTime', width: 22 },
{ header: '是否停用', key: 'statusText', width: 10 },
]
commonExport(heads,list,"课程导出")
})
// list({
// pageNo: 1,
// pageSize: 100000,
// auditStatus: state.auditStatus,
// // categoryId: state.categoryId,
// sysTypeId: state.sysTypeId,
// projectName: state.projectName,
// name: state.name,
// createName: state.createName,
// endTime: endTime,
// beginTime: startTime,
// }).then(res=>{
// let list = res.data.data.rows.map(s=>{
// s.contentTxt = findClassFullName(sysTypeOptions.value, s.sysTypeId) || "-";
// s.typeName = '面授'
// s.publishStatusText = s.publishStatus === 0?'未发布':'已发布'
// s.statusText = s.status === 0?'否':'是'
// s.auditStatusText = s.auditStatus === 0?'未提交': s.auditStatus === 1?'待审核':s.auditStatus === 2?'已审核':s.auditStatus === -1?"审核未通过":''
// return s
// })
// console.log(list)
// let heads = [
// { header: '名称', key: 'name', width: 18 },
// { header: '类型', key: 'typeName', width: 10 },
// { header: '归属路径图', key: 'routerName', width: 13 },
// { header: '归属项目', key: 'projectName', width: 13 },
// { header: '内容分类', key: 'contentTxt', width: 20 },
// // { header: '一级分类', key: 'firstLevelCategory', width: 10 },
// // { header: '二级分类', key: 'secondLevelCategory', width: 10 },
// // { header: '三级分类', key: 'thirdLevelCategory', width: 10 },
// { header: '开课次数', key: 'planCnt', width: 10 },
// { header: '学习人数', key: 'studentCnt', width: 10 },
// { header: '评分', key: 'score', width: 10 },
// { header: '状态', key: 'auditStatusText', width: 20 },
// { header: '是否发布', key: 'publishStatusText', width: 10 },
// { header: '创建人', key: 'createName', width: 10 },
// { header: '创建时间', key: 'createTime', width: 22 },
// { header: '上线时间', key: 'publishTime', width: 22 },
// { header: '是否停用', key: 'statusText', width: 10 },
// ]
// commonExport(heads,list,"课程导出")
// })
// window.open(
// `${process.env.VUE_APP_BASE_API}/admin/offcourse/export?pageNo=${

View File

@@ -12,7 +12,7 @@ module.exports = defineConfig({
publicPath: process.env.VUE_APP_BASE,
outputDir: process.env.VUE_APP_OUTPUT_DIR,
devServer: {
port: 8080,
port: 8070,
proxy: {
"/manageApi": {
target: 'http:' + process.env.VUE_APP_PROXY_URL,

6844
yarn.lock Normal file

File diff suppressed because it is too large Load Diff