项目管理

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

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

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

Loading…
Cancel
Save