Commit 13fad94a authored by zhengke's avatar zhengke

修改

parent 37c9b5a4
...@@ -206,12 +206,21 @@ ...@@ -206,12 +206,21 @@
</el-form-item> </el-form-item>
<el-form-item label="关联讲师"> <el-form-item label="关联讲师">
<template v-if="addMsg.TeacherList.length>0"> <template v-if="addMsg.TeacherList.length>0">
<el-tag v-for="(item,index) in addMsg.TeacherList" closable size="small" <div>
<div class="Teacher_List" v-for="(item,index) in addMsg.TeacherList" :key="index">
<div class="Teacher_tou">
<img style="width:100%;height:100%;" :src="item.TeacherLogo" alt=""/>
</div>
{{item.Name}}
<el-button @click="yichuTeacher(index)" class="edu_edlBtn" type="danger" icon="el-icon-close" circle></el-button>
</div>
</div>
<!-- <el-tag v-for="(item,index) in addMsg.TeacherList" closable size="small"
@close="yichuTeacher(index)" style="margin-right:5px;" :key="index"> @close="yichuTeacher(index)" style="margin-right:5px;" :key="index">
{{item.Name}} {{item.Name}}
</el-tag> </el-tag> -->
</template> </template>
<el-button @click="choosejsDig=true" size="mini">选择教师</el-button> <el-button @click="choosejsDig=true" style="position:relative;top:-4px;" size="mini">选择教师</el-button>
</el-form-item> </el-form-item>
<el-form-item label="标签" size="small"> <el-form-item label="标签" size="small">
<el-tag :key="tag" size="small" v-for="tag in dynamicTags" closable :disable-transitions="false" <el-tag :key="tag" size="small" v-for="tag in dynamicTags" closable :disable-transitions="false"
...@@ -668,7 +677,7 @@ ...@@ -668,7 +677,7 @@
</span> </span>
</el-dialog> </el-dialog>
<!-- 课程弹窗 --> <!-- 课程弹窗 -->
<el-dialog title="新增课程" :visible.sync="courseDialog" width="500px"> <el-dialog :title="commonTitle" :visible.sync="courseDialog" width="500px">
<el-form label-width="100px"> <el-form label-width="100px">
<el-form-item label="名称"> <el-form-item label="名称">
<el-input v-model="courseMsg.Name" size="small"></el-input> <el-input v-model="courseMsg.Name" size="small"></el-input>
...@@ -686,7 +695,10 @@ ...@@ -686,7 +695,10 @@
</el-form-item> </el-form-item>
<el-form-item label="试看"> <el-form-item label="试看">
<el-input v-model="courseMsg.Number" @keyup.native="checkInteger(courseMsg,'Number')" size="small"> <el-input v-model="courseMsg.Number" @keyup.native="checkInteger(courseMsg,'Number')" size="small">
<template slot="append"></template> <template slot="append">
<span v-if="courseMsg.Type==1"></span>
<span v-else></span>
</template>
</el-input> </el-input>
<div style="color:red;">设置为0表示不限制试看</div> <div style="color:red;">设置为0表示不限制试看</div>
</el-form-item> </el-form-item>
...@@ -965,6 +977,7 @@ ...@@ -965,6 +977,7 @@
dynamicTags: [], dynamicTags: [],
inputVisible: false, inputVisible: false,
inputValue: '', inputValue: '',
commonTitle:'新增课程',
}; };
}, },
created() { created() {
...@@ -1695,12 +1708,14 @@ ...@@ -1695,12 +1708,14 @@
}, },
getckedTeachArr() { getckedTeachArr() {
this.addMsg.TeacherList = []; this.addMsg.TeacherList = [];
console.log(this.ckedTeacher,'this.ckedTeacher');
this.ckedTeacher.forEach(x => { this.ckedTeacher.forEach(x => {
this.teacherList.forEach(y => { this.teacherList.forEach(y => {
if (x == y.ID) { if (x == y.ID) {
this.addMsg.TeacherList.push({ this.addMsg.TeacherList.push({
TeacherId: y.ID, TeacherId: y.ID,
Name: y.Name Name: y.Name,
TeacherLogo:y.TeacherLogo
}) })
} }
}) })
...@@ -1800,6 +1815,7 @@ ...@@ -1800,6 +1815,7 @@
}, },
//修改课件 //修改课件
updateCourse(subItem, index) { updateCourse(subItem, index) {
this.commonTitle='修改课程';
this.isReplace = index; this.isReplace = index;
this.courseDialog = true; this.courseDialog = true;
this.courseMsg.Id = subItem.Id; this.courseMsg.Id = subItem.Id;
...@@ -2158,6 +2174,7 @@ ...@@ -2158,6 +2174,7 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
border: 1px solid #EBEEF5; border: 1px solid #EBEEF5;
border-bottom:0;
} }
.courseHeader { .courseHeader {
...@@ -2182,7 +2199,7 @@ ...@@ -2182,7 +2199,7 @@
.courseContent { .courseContent {
width: 100%; width: 100%;
height: 500px; max-height: 500px;
overflow-y: scroll; overflow-y: scroll;
} }
...@@ -2276,4 +2293,30 @@ ...@@ -2276,4 +2293,30 @@
.directorGoodsEdit .el-checkbox{ .directorGoodsEdit .el-checkbox{
margin-bottom:10px; margin-bottom:10px;
} }
.Teacher_List{
padding:2px 5px;
position: relative;
margin-right:5px;
border:1px solid #d1d1d1;
border-radius:4px;
display: flex;
align-items: center;
line-height: normal;
font-size: 12px;
float: left;
}
.Teacher_tou{
width:25px;
height:25px;
overflow: hidden;
margin-right:3px;
border-radius: 50%;
display: inline-block;
}
.edu_edlBtn{
position: absolute;
right:-8px;
top:-14px;
padding:1px 1px !important;
}
</style> </style>
...@@ -209,7 +209,8 @@ ...@@ -209,7 +209,8 @@
var result = { var result = {
selectId: this.emitmsg[0].selectId, selectId: this.emitmsg[0].selectId,
url: this.emitmsg[0].url, url: this.emitmsg[0].url,
name:this.emitmsg[0].name name:this.emitmsg[0].name,
PathType:this.emitmsg[0].PathType
}; };
this.$emit('SelectFile', result) this.$emit('SelectFile', result)
} }
...@@ -256,7 +257,8 @@ ...@@ -256,7 +257,8 @@
this.emitmsg.push({ this.emitmsg.push({
selectId: item.Id, selectId: item.Id,
url: item.Path, url: item.Path,
name:item.Name name:item.Name,
PathType:item.PathType
}); });
} }
} else { } else {
...@@ -264,7 +266,8 @@ ...@@ -264,7 +266,8 @@
this.emitmsg.push({ this.emitmsg.push({
selectId: item.Id, selectId: item.Id,
url: item.Path, url: item.Path,
name:item.Name name:item.Name,
PathType:item.PathType
}); });
} }
this.selectId = item.Id; this.selectId = item.Id;
......
...@@ -242,7 +242,8 @@ ...@@ -242,7 +242,8 @@
Path:item.Path, Path:item.Path,
Id: item.Id, Id: item.Id,
Image:item.Image, Image:item.Image,
VideoTime:item.VideoTime VideoTime:item.VideoTime,
PathType:item.PathType
} }
this.selectId = item.Id; this.selectId = item.Id;
}, },
......
...@@ -3,14 +3,18 @@ ...@@ -3,14 +3,18 @@
<div class="el-card__body"> <div class="el-card__body">
<div style="margin-bottom: 20px;"> <div style="margin-bottom: 20px;">
<el-button size="small" @click="dialogVisible=true">添加存储位置</el-button> <el-button size="small" @click="dialogVisible=true">添加存储位置</el-button>
<!-- <el-button size="small">选取账户存储</el-button> --> <div style="margin: 10px 0">
<div style="margin-top: 20px">
<div>商城创建者:T1219561424</div> <div>商城创建者:T1219561424</div>
<div>商城当前上传设置:腾讯云COS</div>
</div> </div>
<div class='table-body'> <div class='table-body'>
<el-table :data="tableData" v-loading="loading" border style="width: 100%"> <el-table :data="tableData" v-loading="loading" border style="width: 100%">
<el-table-column fixed prop="Bucket" label="存储位置" width="519"> <el-table-column fixed prop="Bucket" label="存储位置" width="519">
<template slot-scope="scope">
<div style="position:relative">
{{scope.row.Bucket}}
<img v-if="scope.row.IsDefault==1" style="position:absolute;left:-10px;top:-58px;width:60px;" src="../../assets/img/userman/select.png"/>
</div>
</template>
</el-table-column> </el-table-column>
<el-table-column fixed label="使用中" width="568"> <el-table-column fixed label="使用中" width="568">
...@@ -44,7 +48,7 @@ ...@@ -44,7 +48,7 @@
<img src="../../assets/img/setup/edit.png" alt="" class="imgstyle" @click="Edit(scope.row)"> <img src="../../assets/img/setup/edit.png" alt="" class="imgstyle" @click="Edit(scope.row)">
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="设为默认" placement="top"> <el-tooltip class="item" effect="dark" content="设为默认" placement="top">
<img src="../../assets/img/userman/detail.png" alt="" class="imgstyle" @click="setMoren(scope.row)"> <img src="../../assets/img/userman/status_5_active.png" alt="" class="imgstyle" @click="setMoren(scope.row)">
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
...@@ -335,5 +339,7 @@ ...@@ -335,5 +339,7 @@
margin-right: 4px; margin-right: 4px;
font-size: 12px; font-size: 12px;
} }
.uploadSettings .el-table .cell{
overflow: visible;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment