项目管理

Branch_d40a2540 V2.2.5
yujialong 2 years ago
parent bb460cac8a
commit f0fb411670
  1. 1
      README.md
  2. 18
      src/pages/course/contentSettings/index.vue
  3. 28
      src/pages/project/list/index.vue
  4. 2
      src/pages/station/preview/index.vue

@ -0,0 +1 @@
# 职站后台前端

@ -12,8 +12,8 @@
<div class="p-title">内容设置</div> <div class="p-title">内容设置</div>
<div class="btns" style="top: -10px"> <div class="btns" style="top: -10px">
<template v-if="!sorting"> <template v-if="!sorting">
<el-button v-auth="'课程管理:内容设置:添加章节'" type="primary" round v-throttle @click="addChapter">添加章节</el-button> <el-button v-auth="'/course/list:课程管理:内容设置:添加章节'" type="primary" round v-throttle @click="addChapter">添加章节</el-button>
<el-button v-auth="'课程管理:内容设置:编辑顺序'" type="primary" round v-throttle @click="sort">编辑顺序</el-button> <el-button v-auth="'/course/list:课程管理:内容设置:编辑顺序'" type="primary" round v-throttle @click="sort">编辑顺序</el-button>
</template> </template>
<template v-else> <template v-else>
<el-button type="primary" round @click="move">批量移动</el-button> <el-button type="primary" round @click="move">批量移动</el-button>
@ -29,9 +29,9 @@
<div>{{ chapter.name }}</div> <div>{{ chapter.name }}</div>
<div> <div>
<template v-if="!sorting"> <template v-if="!sorting">
<el-button v-auth="'课程管理:内容设置:修改章节名称'" class="action-btn" type="primary" round v-throttle @click="editChapter(chapter)">修改章节名称</el-button> <el-button v-auth="'/course/list:课程管理:内容设置:修改章节名称'" class="action-btn" type="primary" round v-throttle @click="editChapter(chapter)">修改章节名称</el-button>
<el-button v-auth="'课程管理:内容设置:添加小节'" class="action-btn" type="primary" round v-throttle @click="addSection(chapter.id)">添加小节</el-button> <el-button v-auth="'/course/list:课程管理:内容设置:添加小节'" class="action-btn" type="primary" round v-throttle @click="addSection(chapter.id)">添加小节</el-button>
<el-button v-auth="'课程管理:内容设置:章节删除'" class="action-btn" type="primary" round v-throttle @click="delChapter(chapter.id)">删除</el-button> <el-button v-auth="'/course/list:课程管理:内容设置:章节删除'" class="action-btn" type="primary" round v-throttle @click="delChapter(chapter.id)">删除</el-button>
</template> </template>
<template v-else> <template v-else>
<i class="el-icon-top sort-icon" :class="{disabled: index == 0}" style="margin-right: 5px" @click="sortChapter(chapter,'up',index == 0,index)"></i> <i class="el-icon-top sort-icon" :class="{disabled: index == 0}" style="margin-right: 5px" @click="sortChapter(chapter,'up',index == 0,index)"></i>
@ -57,10 +57,10 @@
<el-table-column label="操作" align="center" width="300"> <el-table-column label="操作" align="center" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="!sorting"> <template v-if="!sorting">
<el-button v-auth="'课程管理:内容设置:查看'" type="text" @click="preview(scope.row)">查看</el-button> <el-button v-auth="'/course/list:课程管理:内容设置:查看'" type="text" @click="preview(scope.row)">查看</el-button>
<el-button v-auth="'课程管理:内容设置:小节删除'" type="text" @click="delSection(scope.row)">删除</el-button> <el-button v-auth="'/course/list:课程管理:内容设置:小节删除'" type="text" @click="delSection(scope.row)">删除</el-button>
<el-button v-auth="'课程管理:内容设置:修改小节名称'" type="text" @click="editSectionName(scope.row,chapter.id)">修改小节名称</el-button> <el-button v-auth="'/course/list:课程管理:内容设置:修改小节名称'" type="text" @click="editSectionName(scope.row,chapter.id)">修改小节名称</el-button>
<el-button v-auth="'课程管理:内容设置:更换文件'" type="text" @click="switchFile(scope.row,chapter.id)">更换文件</el-button> <el-button v-auth="'/course/list:课程管理:内容设置:更换文件'" type="text" @click="switchFile(scope.row,chapter.id)">更换文件</el-button>
</template> </template>
<template v-else> <template v-else>
<i class="el-icon-top sort-icon" :class="{disabled: scope.$index == 0}" style="margin-right: 5px" @click="sortSection(index,'up',scope.$index == 0,scope.$index)"></i> <i class="el-icon-top sort-icon" :class="{disabled: scope.$index == 0}" style="margin-right: 5px" @click="sortSection(index,'up',scope.$index == 0,scope.$index)"></i>

@ -9,7 +9,7 @@
<ul class="filter"> <ul class="filter">
<li> <li>
<label>创建人</label> <label>创建人</label>
<el-select v-model="queryData.founder" clearable placeholder="请选择创建人" @change="founderChange"> <el-select v-model="queryData.founder" placeholder="请选择创建人" @change="founderChange">
<el-option <el-option
v-for="(item,index) in founderList" v-for="(item,index) in founderList"
:key="index" :key="index"
@ -257,15 +257,6 @@ export default {
...mapMutations({ ...mapMutations({
setQueryStatus: "project/SET_QUERYDATASTATUS" setQueryStatus: "project/SET_QUERYDATASTATUS"
}), }),
getSystemData() {
this.$get(this.api.getSystemIdBySchool).then(res => {
if (res.status == 200){
this.systemListAll = res.data;
// systemIdsystemIdsystemId
this.getschoolCourse()
}
});
},
getData() { getData() {
this.setSystemId(this.systemId); this.setSystemId(this.systemId);
if (this.isFirst) this.page = +this.$route.query.page || 1 if (this.isFirst) this.page = +this.$route.query.page || 1
@ -283,9 +274,17 @@ export default {
}).catch(err => { }).catch(err => {
}); });
}, },
getschoolCourse() { // //
this.$get(this.api.schoolCourseByAchievement).then(res => { getSystemData() {
const { data } = res this.$get(this.api.getSystemIdBySchool).then(({ data }) => {
this.systemListAll = data
// systemIdsystemIdsystemId
this.getschoolCourse()
});
},
//
getschoolCourse() {
this.$get(this.api.schoolCourse).then(({ data }) => {
this.curriculumList = data this.curriculumList = data
const { cid } = this.queryData const { cid } = this.queryData
if (data.length) { if (data.length) {
@ -298,7 +297,7 @@ export default {
courseChange(val) { courseChange(val) {
const systemIds = this.curriculumList.find(e => e.cid == this.queryData.cid).systemId.split(',') // systemId const systemIds = this.curriculumList.find(e => e.cid == this.queryData.cid).systemId.split(',') // systemId
this.systemList = this.systemListAll.filter(e => systemIds.includes(e.id + '')) // this.systemList = this.systemListAll.filter(e => systemIds.includes(e.id + '')) //
if (this.systemList.length) this.systemId = this.systemList[0].id this.systemId = this.systemList.length ? this.systemList[0].id : ''
this.initData() this.initData()
}, },
// //
@ -310,6 +309,7 @@ export default {
founder: val founder: val
} }
}) })
this.initData()
}, },
initData() { initData() {
this.page = 1; this.page = 1;

@ -313,7 +313,7 @@ export default {
util.cookies.set("curriculumName", escape(this.curriculumName)); util.cookies.set("curriculumName", escape(this.curriculumName));
util.cookies.set("systemId", id); util.cookies.set("systemId", id);
location.href = process.env.NODE_ENV === 'development' ? location.href = process.env.NODE_ENV === 'development' ?
`http://${location.hostname}:8080/#/` : `http://${location.hostname}:8085/#/` :
`${location.origin}/pyTrials` // 8pythoncookiesystemId `${location.origin}/pyTrials` // 8pythoncookiesystemId
} }
} }

Loading…
Cancel
Save