123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199 |
- <template>
- <div class="pb_content" style="height: auto; width: 94%; margin: 10px auto;background: unset;">
- <div style="width:100%;padding:0 21px;background:#fff;border-radius: 5px;box-sizing: border-box;">
- <div class="pb_head top">
- <div style="
- display: flex;
- align-items: center;
- ">
- <span class="sub_head">课程管理</span>
- <span class="subClick" @click="
- goTo(
- '/works?userid=' +
- userid +
- '&oid=' +
- oid +
- '&org=' +
- org +
- '&role=' +
- role
- )
- ">评价管理</span>
- </div>
- <div class="student_button">
-
-
- <button class="r_pub_button_course" @mouseenter="btnDisplay = true" @mouseleave="btnDisplay = false">
- <span>创建课程</span>
- <div v-show="btnDisplay" class="buttonBox">
- <div type="primary" @click="goToCourse3()">极简式课程</div>
-
-
- <div type="primary" @click="goToCourse4()">阶段式课程</div>
-
- <div type="primary" @click="oepnTemplate()" v-show="orgArray.includes(org) || oidArray.includes(oid)">AI模式</div>
- </div>
- </button>
- </div>
- </div>
- <div class="reBox">
- <div class="reTop">
-
- <div class="reTopCh">
- <el-select v-model="groupA" @change="search" v-if="role == '1'">
- <el-option value="4" label="全部"></el-option>
- <el-option value="2" label="我的课程"></el-option>
- <el-option value="3" label="协同课程"></el-option>
- <el-option value="1" label="他人课程"></el-option>
- </el-select>
- <el-select v-model="groupA" @change="search" v-else>
- <el-option value="0" label="全部"></el-option>
- <el-option value="2" label="我的课程"></el-option>
- <el-option value="3" label="协同课程"></el-option>
- </el-select>
- <div class="searchI">
-
- <div class="search">
- <img src="../../assets/icon/search.png" alt="" />
- </div>
- <input class="sInput" type="text" placeholder="请输入关键字" v-model="courseName" @input="getCourse()" />
- </div>
- <el-button type="primary" class="bgColor" style="margin-left: 10px;" @click="reset">重置</el-button>
- </div>
- </div>
- <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
- <span><span>类型</span></span>
- <el-radio-group v-model="pTypeCheckName" style="display: flex; align-items: center">
- <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
- <el-radio :label="item.name" @click.native.prevent="CourseType2Click(item.name)">{{ item.name }}</el-radio>
- </div>
- </el-radio-group>
- </div>
- <div class="choose">
- <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index"
- :style="{ margin: !CourseTypeJson[item.id].length && 0 }">
- <span v-if="CourseTypeJson[item.id].length &&
- (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
- ? pTypeCheck.indexOf(item.id) != -1
- : true)
- "><span>{{ item.name }}</span></span>
- <div class="typeCss" v-if="CourseTypeJson[item.id].length &&
- (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
- ? pTypeCheck.indexOf(item.id) != -1
- : true)
- ">
- <div class="cName" @click="getCourse2(item.name, '', item.id, 1)"
- :class="typeE.indexOf(item.id) != -1 ? 'isCType' : ''">
- 全部
- </div>
- <div v-for="(item1, index1) in CourseTypeJson[item.id]" :key="index + '-' + index1" :label="item1.id"
- @click="getCourse2(item.name, item.id, item1.id, 2)">
- <div class="cName" :class="typea == item1.id || typeb == item1.id || typed == item1.id
- ? 'isCType'
- : ''
- ">
- {{ item1.name }}
- </div>
- </div>
- </div>
- </div>
- <div class="all_choose" v-if="role == '1'">
- <span><span>所有者</span></span>
- <div class="typeCss">
- <div class="cName" :class="groupA == '4' ? 'isCType' : ''" @click="groupA = '4'; search();">
- 全部
- </div>
- <div class="cName" :class="groupA == '2' ? 'isCType' : ''" @click="groupA = '2'; search();">
- 我的课程
- </div>
- <div class="cName" :class="groupA == '3' ? 'isCType' : ''" @click="groupA = '3'; search();">
- 协同课程
- </div>
- <div class="cName" :class="groupA == '1' ? 'isCType' : ''" @click="groupA = '1'; search();">
- 他人课程
- </div>
- </div>
- </div>
- <div class="all_choose" v-else>
- <span><span>所有者</span></span>
- <div class="typeCss">
- <div class="cName" :class="groupA == '0' ? 'isCType' : ''" @click="groupA = '0'; search();">
- 全部
- </div>
- <div class="cName" :class="groupA == '2' ? 'isCType' : ''" @click="groupA = '2'; search();">
- 我的课程
- </div>
- <div class="cName" :class="groupA == '3' ? 'isCType' : ''" @click="groupA = '3'; search();">
- 协同课程
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="line"></div>
- <div class="pb_content_body" style="height: 100%;width: 100%;background: #e6eaf0;margin: 0 auto;">
- <div class="student_head" v-if="false">
- <div class="choose">
- <div class="student_search">
- <span>课程筛选</span>
- <el-select v-model="groupA" @change="search">
- <el-option value="0" label="我的课程"></el-option>
- <el-option value="1" label="他人课程"></el-option>
- </el-select>
- </div>
- <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
- <span v-if="CourseTypeJson[item.id].length">{{ item.name }}</span>
- <el-select v-if="CourseTypeJson[item.id].length" v-model="courseTypeId[item.id]" placeholder="请选择"
- @change="getTypeName">
- <el-option label="全部" value="1">全部</el-option>
- <el-option v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.name" :value="item1.id">
- </el-option>
- </el-select>
- </div>
- <div @click="clear" class="clear">重置</div>
- </div>
- <div class="student_right">
- <div class="head_left">
- <el-input v-model="courseName" class="student_input" placeholder="请输入课程名称"></el-input>
- <el-button class="course_button" @click="searchCourse">查询</el-button>
- </div>
- </div>
- </div>
- <div class="student_table">
- <div class="course_box">
- <div class="out_box" v-for="(item, index) in course" :key="index">
-
- <div class="myCourse" v-if="item.userid == userid">我的课程</div>
- <div class="myCourse" style="background: #4187f0" v-else-if="!item.course_teacher ||
- (item.course_teacher &&
- item.course_teacher.indexOf(userid) == -1)
- ">
- 他人课程
- </div>
- <div class="xtCourse" v-else>协同课程</div>
- <div class="tup">
- <img :src="item.cover != null && item.cover != ''
- ? JSON.parse(item.cover).length > 0
- ? JSON.parse(item.cover)[0].url
- : mr
- : mr
- " alt />
- </div>
-
- {{ item.title }}
- {{ item.uname }}
- {{ item.time }}
- <div class="bottom_box">
- <div>
- <el-tooltip :content="item.title" popper-class="text_tooltip" placement="top" effect="dark">
- <span>{{ item.title }}</span>
- </el-tooltip>
- </div>
-
- <div class="kc_t">
- <span>{{ item.uname }}</span>
- <span>{{ item.state == 1 ? '阶段模式' : item.state == 2 ? '任务模式' : item.state == 3 ? '极简模式' : 'AI模式' }}</span>
- </div>
- <div class="kc_time">
- <span style="color: #717C8D">创建日期:</span>{{ item.time }}
- </div>
- <div class="kc_time">
- <span style="color: #717C8D">修改日期:</span>{{ item.utime }}
- </div>
- </div>
- <div class="three_bottom">
- <el-tooltip effect="dark" content="预览" placement="top">
- <div class="t_b_Item" @click="get(item)">
- <img style="height: 90%;width: 90%;" src="../../assets/icon/course/lookeye.svg">
- </div>
- </el-tooltip>
- <el-tooltip effect="dark" content="Ai一下" placement="top">
- <div class="t_b_Item" @click="aiCourse(item.courseId)">
- <img src="../../assets/icon/course/aiEdit.svg">
- </div>
- </el-tooltip>
- <el-tooltip effect="dark" content="复制" placement="top">
- <div class="t_b_Item" @click="copyCourse(item.courseId)">
- <img src="../../assets/icon/course/copy.svg">
- </div>
- </el-tooltip>
- <el-tooltip effect="dark" content="修改" placement="top">
- <div class="t_b_Item" v-if="((item.userid == userid) ||
- (item.course_teacher &&
- item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
- item.state == 1
- " @click="goToCourse(item.courseId)">
- <img src="../../assets/icon/course/edit.svg">
- </div>
- <div class="t_b_Item" v-if="((item.userid == userid) ||
- (item.course_teacher &&
- item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
- item.state == 2
- " @click="goToCourse(item.courseId)">
- <img src="../../assets/icon/course/edit.svg">
- </div>
- <div class="t_b_Item" v-if="((item.userid == userid) ||
- (item.course_teacher &&
- item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
- item.state == 3
- " @click="goToCourse3(item.courseId)">
- <img src="../../assets/icon/course/edit.svg">
- </div>
- <div class="t_b_Item" v-if="((item.userid == userid) ||
- (item.course_teacher &&
- item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
- (item.state == 4 || item.state == 5)
- " @click="goToCourse5(item.courseId)">
- <img src="../../assets/icon/course/edit.svg">
- </div>
- </el-tooltip>
- <el-tooltip effect="dark" content="删除" placement="top">
- <div class="t_b_Item" @click="deleteCourse(item.courseId)">
- <img src="../../assets/icon/course/del.svg">
- </div>
- </el-tooltip>
- <el-tooltip effect="dark" content="分享" placement="top">
- <div class="t_b_Item" @click="shareCourse(item.courseId)">
- <img src="../../assets/icon/course/share.svg">
- </div>
- </el-tooltip>
-
-
-
-
-
-
-
- </div>
- </div>
- <div class="course_empty" v-if="course.length == 0">暂无数据</div>
- </div>
- </div>
- </div>
- <div class="student_page">
- <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
- v-if="page && course.length" style="padding-bottom: 20px" @current-change="handleCurrentChange"></el-pagination>
- </div>
- <el-dialog :visible.sync="dialogVisible1" size="tiny">
- <img width="100%" :src="dialogImageUrl" alt />
- </el-dialog>
- <el-dialog title="查看提问" :visible.sync="dialogVisible" :append-to-body="true" width="750px" :before-close="handleClose"
- class="dialog_diy">
- <div>
- <div class="a_addBox">
- <CourseProblem :problemCourse="problemCourse"></CourseProblem>
- </div>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="dialogVisible = false">关 闭</el-button>
- </span>
- </el-dialog>
- <el-dialog title="查看协同课程" :visible.sync="dialogVisibleCourse" :append-to-body="true" width="850px"
- :before-close="handleClose" class="dialog_diy">
- <div class="ct_box">
- <div class="out_box" v-for="(item, index) in courseTeam" :key="index" style="margin-left: 15px">
- <div class="tup">
- <img :src="item.cover != null && item.cover != ''
- ? JSON.parse(item.cover).length > 0
- ? JSON.parse(item.cover)[0].url
- : mr
- : mr
- " alt />
- </div>
- <div class="bottom_box">
- <div>{{ item.title }}</div>
- <div class="kc_t">创建老师:{{ item.uname }}</div>
- <div class="kc_time">{{ item.time }}</div>
- </div>
- <div class="three_bottom">
- <div @click="jump(item.courseId)">查看内容</div>
- <div @click="
- goTo(
- '/course/addCourse?cid=' +
- item.courseId +
- '&userid=' +
- userid +
- '&oid=' +
- oid +
- '&org=' +
- org
- )
- ">
- 编辑
- </div>
- </div>
- </div>
- <div class="course_empty" v-if="courseTeam.length == 0">暂无数据</div>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="dialogVisibleCourse = false">关 闭</el-button>
- </span>
- </el-dialog>
- <shareDialog ref="shareDialogRef"/>
- <templateDialog :dialogVisibleTemplate.sync="dialogVisibleTemplate" :userid="userid" :org="org" :oid="oid" @goToCourseTemplate="goToCourseTemplate" @goToCourseTemplate2="goToCourseTemplate2"></templateDialog>
- </div>
- </template>
- <script>
- import "../../common/aws-sdk-2.235.1.min";
- import EditorBar from "../../components/tools/wangEnduit";
- import CourseProblem from "./components/courseProblem";
- import shareDialog from './dialog/shareDialog.vue'
- import templateDialog from "./aiAddCourse/templateDialog.vue";
- export default {
- components: { EditorBar, CourseProblem,shareDialog,templateDialog },
- data() {
- return {
- itemCount: 1,
- courseTitle: "",
- courseText: "",
- courseTime: "",
- isLoading: false,
- fileList: [],
- fileList1: [],
- homeworkList: [{ name: "" }],
- formLabelWidth: "100px",
- dialogVisible: false,
- dialogVisible1: false,
- dialogVisibleCourse: false,
- dialogImageUrl: "",
- group: "",
- userid: this.$route.query.userid,
- oid: this.$route.query.oid,
- org: this.$route.query.org,
- role: this.$route.query.role,
- Juri: "",
- groupList: [],
- JuriList: [],
- page: 1,
- total: 0,
- pageSize: 20,
- tableData: [],
- now: "",
- courseDetail: {},
- addCourse: {},
- groupA: "0",
- classX: "",
- course: [],
- courseName: "",
- mr: require("../../assets/icon/kc1.png"),
- CourseType: [],
- CourseType2: [],
- CourseTypeJson: {},
- courseTypeId: {},
- courseTypeSon: [],
- isChoose: 0,
- problemCourse: null,
- courseTeam: [],
- typeE: [],
- typea: "",
- typeb: "",
- typed: "",
- pTypeCheck: [],
- pTypeCheckName: [],
- btnDisplay: false,
- dialogVisibleTemplate: false,
- orgArray:[],
- oidArray:[]
- };
- },
- methods: {
- getAIJ(){
- this.ajax
- .get(this.$store.state.api + "getAIJ", "")
- .then((res) => {
- let oid = res.data[0];
- let org = res.data[1];
- let oidArray = []
- let orgArray = []
- for(var i = 0; i < oid.length; i++){
- oidArray.push(oid[i].oid)
- }
- for(var i = 0; i < org.length; i++){
- orgArray.push(org[i].oid)
- }
- this.orgArray = orgArray
- this.oidArray = oidArray
- })
- .catch((err) => {
- console.error(err);
- });
- },
-
- shareCourse(courseId){
- this.$refs.shareDialogRef.open(courseId)
- },
- change(val) {
- console.log(val);
- },
- time() {
- if (!this.now) {
- this.now = new Date().getTime();
- return true;
- } else {
- let time = new Date().getTime();
- if (time - this.now > 3000) {
- this.now = time;
- return true;
- } else {
- return false;
- }
- }
- },
- addHomeworkBox() {
- this.homeworkList.push({ name: "" });
- this.itemCount++;
- },
- reduceHomeworkBox() {
- var a = this.homeworkList;
- a.splice(a.length - 1);
- this.itemCount--;
- },
- goTo(path) {
- this.$router.push(path);
- },
- CourseType2Change(val) {
- this.pTypeCheck = [];
- for (var i = 0; i < this.CourseType2.length; i++) {
- let typeA = this.CourseType2[i];
- if (val.indexOf(typeA.name) != -1) {
- this.pTypeCheck.push(...typeA.id);
- }
- }
- this.typea = "";
- this.typeb = "";
- this.typed = "";
- this.getCourse();
- },
- CourseType2Click(val) {
- this.pTypeCheck = [];
- this.typeE = [];
- if (val === this.pTypeCheckName) {
- this.pTypeCheckName = "";
- } else {
- this.pTypeCheckName = val;
- for (var i = 0; i < this.CourseType2.length; i++) {
- let typeA = this.CourseType2[i];
- if (val.indexOf(typeA.name) != -1) {
- this.pTypeCheck.push(...typeA.id);
- this.typeE = [...typeA.id];
- }
- }
- }
- this.typea = "";
- this.typeb = "";
- this.typed = "";
- this.getCourse();
- },
- goToCourse(courseId) {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- this.goToCourse4(courseId)
-
-
- },
- goToCourse4(courseId) {
- if (courseId) {
- this.$router.push(
- "/newAddCourse?cid=" +
- courseId +
- "&userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&role=" +
- this.role
- );
- } else {
- this.$router.push(
- "/newAddCourse?userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&role=" +
- this.role
- );
- }
-
- },
- oepnTemplate(){
-
- this.dialogVisibleTemplate = true;
- },
- goToCourseTemplate(tid){
- this.$router.push(
- "/aiAddCourse?userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&role=" +
- this.role +
- "&templateid=" +
- tid
- );
- },
- goToCourseTemplate2(tid){
- if(tid){
- this.$router.push(
- "/aiAddCourse?userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&role=" +
- this.role +
- "&templateid=" +
- tid +
- "&istemplate=1"
- );
- }else{
- this.$router.push(
- "/aiAddCourse?userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&role=" +
- this.role +
- "&templateid=" +
- "&istemplate=1"
- );
- }
- },
- goToCourse5(courseId) {
- if (courseId) {
- this.$router.push(
- "/aiAddCourse?cid=" +
- courseId +
- "&userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&role=" +
- this.role
- );
- } else {
- this.$router.push(
- "/aiAddCourse?userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&role=" +
- this.role
- );
- }
-
- },
- aiCourse(courseId){
- this.$router.push(
- "/aiAddCourse?userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&role=" +
- this.role +
- "&aiId=" +
- courseId
- );
- },
- reset() {
- this.typeE = []
- this.typea = ''
- this.typeb = ''
- this.typed = ''
- this.courseName = ''
- if (this.role == "1") {
- this.groupA = "4";
- } else {
- this.groupA = "0";
- }
- this.getCourse();
- },
- goToCourse2(courseId) {
- if (courseId) {
- this.$router.push(
- "/course/addCourseT?cid=" +
- courseId +
- "&userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&role=" +
- this.role
- );
- } else {
- this.$router.push(
- "/course/addCourseT?userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&role=" +
- this.role
- );
- }
- },
- goToCourse3(courseId) {
- if (courseId) {
- this.$router.push(
- "/course/addCourseE?cid=" +
- courseId +
- "&userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&role=" +
- this.role
- );
- } else {
- this.$router.push(
- "/course/addCourseE?userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&role=" +
- this.role
- );
- }
- },
- tableRowClassName({ row, rowIndex }) {
- if ((rowIndex + 1) % 2 === 0) {
- return "even_row";
- } else {
- return "";
- }
- },
- jump(cid) {
-
-
-
-
-
-
- top.postMessage({ cid: cid, screenType: "2" }, "*");
- },
- get(item) {
- top.postMessage({ cid: item.courseId, screenType: "3" }, "*");
- },
- getNT(cid) {
- top.postMessage({ cid: cid, screenType: "3NT" }, "*");
- },
- handle_remove(file, fileList) {
- var _tmp = this.fileList;
- for (var i = 0, len = _tmp.length; i < len; i++) {
- if (_tmp[i].uid == file.uid) {
- _tmp.splice(i, 1);
- break;
- }
- this.fileList = _tmp;
- }
- },
- handle_remove1(file, fileList) {
- var _tmp = this.fileList1;
- for (var i = 0, len = _tmp.length; i < len; i++) {
- if (_tmp[i].uid == file.uid) {
- _tmp.splice(i, 1);
- break;
- }
- this.fileList1 = _tmp;
- }
- },
- handleCurrentChange(val) {
-
- this.page = val;
- this.getCourse();
- },
- init() { },
- handleClose(done) {
- done();
- },
- handleRemove(file, fileList) {
- console.log(file, fileList);
- },
- handlePictureCardPreview(file) {
- this.dialogImageUrl = file.url;
- this.dialogVisible1 = true;
- },
- onExceed() {
- this.$message.error("课程海报仅支持上传一张,请删除后再进行上传");
- },
-
- guid() {
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
- /[xy]/g,
- function (c) {
- var r = (Math.random() * 16) | 0,
- v = c == "x" ? r : (r & 0x3) | 0x8;
- return v.toString(16);
- }
- );
- },
- time() {
- if (!this.now) {
- this.now = new Date().getTime();
- return true;
- } else {
- let time = new Date().getTime();
- if (time - this.now > 3000) {
- this.now = time;
- return true;
- } else {
- return false;
- }
- }
- },
- searchCourse() {
- this.page = 1;
- this.getCourse();
- },
- clear() {
- for (var i = 0; i < this.CourseType[0].length; i++) {
- this.courseTypeId[this.CourseType[0][i].id] = "";
- }
- this.getCourse();
- },
- getCourse2(typeName, ftypeId, typeid, type) {
- this.page = 1;
- if (typeid == "34628934-d02f-11ec-8c78-005056b86db5" || ftypeId == '34628934-d02f-11ec-8c78-005056b86db5' || typeid == "34628934-d02f-11ec-8c78-005056b86ac5" || ftypeId == "34628934-d02f-11ec-8c78-005056b86ac5") {
- if (type == 1) {
- if (this.typeE.indexOf(typeid) != -1) {
- if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
- return;
- } else {
- this.typeE.splice(this.typeE.indexOf(typeid), 1);
- }
- } else {
- this.typeE.push(typeid);
- if (this.typea != "") {
- this.typea = "";
- }
- }
- } else {
- if (this.typea == typeid) {
- this.typea = "";
- if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
- this.typeE.push(ftypeId);
- }
- } else {
- this.typea = typeid;
- if (this.typeE.indexOf(ftypeId) != -1) {
- this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
- }
- }
- }
- } else if (typeName == "专栏") {
- if (type == 1) {
- if (this.typeE.indexOf(typeid) != -1) {
- if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
- return;
- } else {
- this.typeE.splice(this.typeE.indexOf(typeid), 1);
- }
- } else {
- this.typeE.push(typeid);
- if (this.typeb != "") {
- this.typeb = "";
- }
- }
- } else {
- if (this.typeb == typeid) {
- this.typeb = "";
- if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
- this.typeE.push(ftypeId);
- }
- } else {
- this.typeb = typeid;
- if (this.typeE.indexOf(ftypeId) != -1) {
- this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
- }
- }
- }
- } else if (typeName == "栏目") {
- if (type == 1) {
- if (this.typeE.indexOf(typeid) != -1) {
- if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
- return;
- } else {
- this.typeE.splice(this.typeE.indexOf(typeid), 1);
- }
- } else {
- this.typeE.push(typeid);
- if (this.typeb != "") {
- this.typeb = "";
- }
- }
- } else {
- if (this.typeb == typeid) {
- this.typeb = "";
- if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
- this.typeE.push(ftypeId);
- }
- } else {
- this.typeb = typeid;
- if (this.typeE.indexOf(ftypeId) != -1) {
- this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
- }
- }
- }
- } else if (typeid == "34629bcc-d02f-11ec-8c78-005056b86db5" || ftypeId == '34629bcc-d02f-11ec-8c78-005056b86db5') {
- if (type == 1) {
- if (this.typeE.indexOf(typeid) != -1) {
- if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
- return;
- } else {
- this.typeE.splice(this.typeE.indexOf(typeid), 1);
- }
- } else {
- this.typeE.push(typeid);
- if (this.typeb != "") {
- this.typeb = "";
- }
- }
- } else {
- if (this.typeb == typeid) {
- this.typeb = "";
- if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
- this.typeE.push(ftypeId);
- }
- } else {
- this.typeb = typeid;
- if (this.typeE.indexOf(ftypeId) != -1) {
- this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
- }
- }
- }
- } else if (typeName == "学院") {
- if (type == 1) {
- if (this.typeE.indexOf(typeid) != -1) {
- if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
- return;
- } else {
- this.typeE.splice(this.typeE.indexOf(typeid), 1);
- }
- } else {
- this.typeE.push(typeid);
- if (this.typeb != "") {
- this.typeb = "";
- }
- }
- } else {
- if (this.typeb == typeid) {
- this.typeb = "";
- if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
- this.typeE.push(ftypeId);
- }
- } else {
- this.typeb = typeid;
- if (this.typeE.indexOf(ftypeId) != -1) {
- this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
- }
- }
- }
- } else if (typeid == "34629907-d02f-11ec-8c78-005056b86db5" || ftypeId == '34629907-d02f-11ec-8c78-005056b86db5' || typeid == "34629907-d02f-11ec-8c78-005056b86ac5" || ftypeId == "34629907-d02f-11ec-8c78-005056b86ac5") {
- if (type == 1) {
- if (this.typeE.indexOf(typeid) != -1) {
- if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
- return;
- } else {
- this.typeE.splice(this.typeE.indexOf(typeid), 1);
- }
- } else {
- this.typeE.push(typeid);
- if (this.typed != "") {
- this.typed = "";
- }
- }
- } else {
- if (this.typed == typeid) {
- this.typed = "";
- if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
- this.typeE.push(ftypeId);
- }
- } else {
- this.typed = typeid;
- if (this.typeE.indexOf(ftypeId) != -1) {
- this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
- }
- }
- }
- }
-
- this.getCourse();
- },
- getCourse() {
- if (!this.loading) {
- this.loading = this.openLoading(
- document.querySelector(".student_table")
- );
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- console.log("typea", this.typea);
- this.isLoading = true;
- let params = {
- type: this.groupA,
- uid: this.userid,
- oid: this.oid,
- org: this.org,
- typea: this.typea != undefined ? this.typea : "",
- typeb: this.typeb != undefined ? this.typeb : "",
- typec: "",
- typed: this.typed != undefined ? this.typed : "",
- typeE: this.typeE.join(","),
- cu: "",
- cn: this.courseName,
- page: this.page,
- pageSize: this.pageSize,
- };
- this.ajax
- .get(this.$store.state.api + "selectCourseNew2", params)
- .then((res) => {
- this.loading.close();
- this.loading = "";
- this.isLoading = false;
- this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
- this.course = res.data[0];
- })
- .catch((err) => {
- console.error(err);
- });
- },
- getTypeName() {
- this.$forceUpdate();
- this.page = 1;
- this.isChoose = 1;
- this.getCourse();
- },
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- deleteCourse(cid) {
-
- this.$confirm("确定删除此课程吗?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- const loading = this.openLoading(
- document.querySelector(".student_table")
- );
- this.isLoading = true;
- let params = {
- cid: cid,
- };
- this.ajax
- .get(this.$store.state.api + "deleteCourse", params)
- .then((res) => {
- loading.close();
- this.isLoading = false;
- this.$message.success("删除成功");
- this.getCourse();
- })
- .catch((err) => {
- console.error(err);
- });
- })
- .catch(() => {
- loading.close();
- this.isLoading = false;
- return;
- });
-
- },
- selectAllType() {
- let params = {
- org: this.org && this.org != "" ? this.org : "",
- oid: this.oid && this.oid != "" ? this.oid : "",
- };
- this.ajax
- .get(this.$store.state.api + "selectAllType", params)
- .then((res) => {
- if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
- res.data[0] = [...res.data[0], ...res.data[4]]
- }
- this.CourseType = res.data;
- this.CourseType2 = [
- { name: "智见课程", id: [] },
- { name: "智行课程", id: [] },
- { name: "智创课程", id: [] },
- ];
- for (var cti = 0; cti < res.data[0].length; cti++) {
- if (
- res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
- res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
- ) {
- this.CourseType2[0].id.push(res.data[0][cti].id);
- } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
- res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
- this.CourseType2[1].id.push(res.data[0][cti].id);
- } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
- this.CourseType2[2].id.push(res.data[0][cti].id);
- }
- if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
- res.data[0][cti].name = "年级";
- } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
- res.data[0][cti].name = "学科";
- } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
- res.data[0][cti].name = "主题";
- }
- }
- for (var i = 0; i < res.data[0].length; i++) {
- if (!this.cid) {
- this.courseTypeId[res.data[0][i].id] = [];
- }
- if (!this.CourseTypeJson[res.data[0][i].id]) {
- this.CourseTypeJson[res.data[0][i].id] = [];
- }
- if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
- if (res.data[0][i].name == "栏目") {
- this.CourseType[0][i].name = "主题";
- }
- }
- if (res.data[2].length == 0 && res.data[3].length == 0) {
- for (var j = 0; j < res.data[1].length; j++) {
- if (res.data[0][i].id == res.data[1][j].pid) {
- this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
- }
- }
- } else {
- if (res.data[2].length > 0) {
- for (var j = 0; j < res.data[2].length; j++) {
- if (res.data[0][i].id == res.data[2][j].pid) {
- this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]);
- }
- }
- }
- if (res.data[3].length > 0) {
- for (var j = 0; j < res.data[3].length; j++) {
- if (res.data[0][i].id == res.data[3][j].pid) {
- this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]);
- }
- }
- }
- }
- }
- })
- .catch((err) => {
- console.error(err);
- });
- },
- selectType() {
- this.ajax
- .get(this.$store.state.api + "selectType")
- .then((res) => {
- this.CourseType = res.data;
- for (var i = 0; i < res.data[0].length; i++) {
- if (!this.cid) {
- this.courseTypeId[res.data[0][i].id] = "";
- }
-
-
-
-
-
- for (var j = 0; j < res.data[1].length; j++) {
- if (res.data[0][i].id == res.data[1][j].pid) {
- if (!this.CourseTypeJson[res.data[0][i].id]) {
- this.CourseTypeJson[res.data[0][i].id] = [];
- }
- this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
- }
- }
- }
- this.selectTypeByOid();
- this.selectTypeByOrg();
- })
- .catch((err) => {
- console.error(err);
- });
- },
- selectTypeByOid() {
- let params = {
- oid: this.oid,
- };
- this.ajax
- .get(this.$store.state.api + "selectTypeByOid", params)
- .then((res) => {
- for (var i = 0; i < res.data[0].length; i++) {
- for (var j = 0; j < res.data[1].length; j++) {
- if (res.data[0][i].id == res.data[1][j].pid) {
- if (!this.CourseTypeJson[res.data[0][i].id]) {
- this.CourseTypeJson[res.data[0][i].id] = [];
- }
- this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
- }
- }
- }
- this.$forceUpdate();
- })
- .catch((err) => {
- console.error(err);
- });
- },
- selectTypeByOrg() {
- let params = {
- oid: this.org,
- };
- this.ajax
- .get(this.$store.state.api + "selectTypeByOrg", params)
- .then((res) => {
- for (var i = 0; i < res.data[0].length; i++) {
- for (var j = 0; j < res.data[1].length; j++) {
- if (res.data[0][i].id == res.data[1][j].pid) {
- if (!this.CourseTypeJson[res.data[0][i].id]) {
- this.CourseTypeJson[res.data[0][i].id] = [];
- }
- this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
- }
- }
- }
- this.$forceUpdate();
- })
- .catch((err) => {
- console.error(err);
- });
- },
- openCourse() {
- this.dialogVisibleCourse = true;
- this.getTeamCourse();
- },
- getTeamCourse() {
- let params = {
- uid: this.userid,
- oid: this.oid,
- };
- this.ajax
- .get(this.$store.state.api + "selectCourseTeam", params)
- .then((res) => {
- this.courseTeam = res.data[0];
- })
- .catch((err) => {
- console.error(err);
- });
- },
- search() {
- this.page = 1;
- this.getCourse();
- },
- checkProblem(res) {
- this.problemCourse = res;
- this.dialogVisible = true;
- },
- copyCourse(cid) {
- let params = [
- {
- cid: cid,
- uid: this.userid,
- },
- ];
- this.ajax
- .post(this.$store.state.api + "copyCourse", params)
- .then((res) => {
- this.page = 1;
- if (this.role == "1") {
- this.groupA = "4";
- } else {
- this.groupA = "0";
- }
- this.$message.success("复制成功")
- this.clear();
- })
- .catch((err) => {
- console.error(err);
- });
- },
- },
- created() {
- if (this.role == "1") {
- this.groupA = "4";
- }
- this.getAIJ();
- this.page = 1;
-
- this.selectAllType();
- this.getCourse();
- let _this = this
- window.goToCourse3 = function(){
- _this.goToCourse3()
- }
- window.goToCourse = function(){
- _this.goToCourse()
- }
- },
- };
- </script>
- <style scoped>
- @media screen and (max-width: 1380px) {
- .out_box {
- width: calc(100% / 4 - (15px * 3) / 4) !important;
- }
- .out_box:nth-child(5n) {
- margin-right: 15px !important;
- }
- .out_box:nth-child(4n) {
- margin-right: 0 !important;
- }
- }
- @media screen and (max-width: 1080px) {
- .out_box {
- width: calc(100% / 3 - (15px * 2) / 3) !important;
- }
- .out_box:nth-child(5n) {
- margin-right: 15px !important;
- }
- .out_box:nth-child(4n) {
- margin-right: 15px !important;
- }
- .out_box:nth-child(3n) {
- margin-right: 0 !important;
- }
- }
- .dialog_diy>>>.el-dialog__header {
- background: #3d67bc !important;
- padding: 15px 20px;
- }
- .dialog_diy>>>.el-dialog__title {
- color: #fff;
- }
- .dialog_diy>>>.el-dialog__headerbtn {
- top: 19px;
- }
- .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
- color: #fff;
- }
- .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
- color: #fff;
- }
- .student_head>>>.el-button--primary {
- background-color: #2268bc;
- }
- .xls_button {
- font-size: 14px;
- cursor: pointer;
- text-decoration: underline;
- color: rgb(34, 104, 188);
- }
- .student_head {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- flex-direction: row;
- flex-wrap: wrap;
- }
- .top {
- display: flex;
- justify-content: space-between;
- width: 100% !important;
- box-sizing: border-box;
- margin: 0px auto;
- padding: 10px 5px;
- height: 54px;
- }
- .bgColor {
- background: #0061FF;
- }
- .student_search {
- display: flex;
- align-items: center;
- width: calc(100% / 3);
- }
- .student_search span {
- margin: 0 10px 0 0;
- min-width: 65px;
- }
- .student_button {
- display: flex;
-
- height: 40px;
- }
- .upload-demo {
- display: flex;
- flex-direction: column;
- align-items: end;
-
- width: 100px;
- overflow: hidden;
- }
- .student_table {
-
- height: 100%;
-
- min-height: 360px;
- }
- .student_empty {
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .el-table>>>.even_row {
- background-color: #f1f1f1;
- }
- .time {
- font-size: 13px;
- color: #999;
- }
- .course_button {
- padding: 10px 20px;
- }
- .course_button_box {
- display: flex;
- margin-top: 5px;
- justify-content: space-between;
- }
- .course_rate {
- margin-top: 5px;
- }
- .course_view {
- display: flex;
- align-items: center;
- margin: 5px 0 0 0;
- }
- .course_view i {
- background-image: url("../../assets/liulan.png");
- width: 25px;
- height: 25px;
- background-size: 100% 100%;
-
- line-height: 25px;
- vertical-align: text-top;
- background-repeat: no-repeat;
- }
- .image {
- width: 100%;
- height: 150px;
- display: block;
- }
- .course_box {
- display: flex;
- flex-wrap: wrap;
- }
- .student_page {
- width: 100%;
- margin: 0 auto;
- background: #e6eaf0;
- }
- .course_create_box {
- font-size: 18px;
- }
- .course_name {
- margin-top: 10px;
- }
- .course_name span {
- margin-bottom: 10px;
- display: block;
- }
- .homework_box {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- }
- .course_homework {
- width: 130px;
- display: flex;
- justify-content: center;
- flex-direction: column;
- align-items: center;
- margin: 0 10px 10px 0;
- }
- .course_type {
- margin-top: 10px;
- display: flex;
- }
- .course_type1 span {
- margin-bottom: 10px;
- display: block;
- }
- .course_type2 {
- margin-left: 20px;
- }
- .course_type2 span {
- margin-bottom: 10px;
- display: block;
- }
- .course_empty {
- color: rgb(110, 110, 110);
- width: 100%;
- height: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .el_cards>>>.el-card__body {
- height: 100%;
- }
- .courseBtnBox {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- height: calc(100% - 170px);
- padding: 10px;
- }
- .wordUpload {
- display: flex;
- }
- .wordUpload>.buttonUp {
- margin-right: 5px;
- }
- .out_box {
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- width: calc(100% / 5 - (15px * 4) / 5);
-
- background: #fff;
- margin-right: 15px;
-
- height: fit-content;
- box-sizing: border-box;
- border-radius: 0px 0px 5px 5px;
-
- margin-bottom: 15px;
- position: relative;
- border-radius: 8px;
- box-sizing: border-box;
- overflow: hidden;
- border: 1px solid #3682fc00;
- }
- .out_box:hover {
- border: 1px solid #3681FC;
- }
- .out_box:nth-child(5n) {
- margin-right: 0;
- }
- .bottom_box {
- display: flex;
- padding: 10px;
- flex-direction: column;
- box-sizing: border-box;
- height: 121px;
- flex-wrap: nowrap;
- justify-content: space-evenly;
- }
- .bottom_box>div:nth-child(1) {
- width: 100%;
-
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .bottom_box>div:nth-child(1)>span:nth-child(1) {
- max-width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-weight: bold;
- }
- .bottom_box>div:nth-child(1)>span:nth-child(2) {
- min-width: fit-content;
- font-size: 14px;
- color: #8c8c8c;
- }
- .tup {
- width: 100%;
- height: 180px;
- margin: 0 auto;
- overflow: hidden;
- display: flex;
- align-items: center;
- padding: 10px;
- box-sizing: border-box;
- }
- .tup>img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- .kc_time {
- margin-top: 8px;
- font-size: 14px;
- color: #717C8D;
- }
- .kc_time+.kc_time {
- margin-top: 0;
- }
- .kc_t {
- margin-top: 5px;
- width: 100%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .kc_t>span:nth-child(1) {
- max-width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .kc_t>span:nth-child(2) {
- min-width: fit-content;
- font-size: 14px;
- color: #8c8c8c;
- }
- .three_bottom {
- display: flex;
- flex-direction: row;
-
- justify-content: flex-end;
- height: 45px;
- align-items: center;
- background: #fff;
- font-size: 14px;
- border-top: 1px solid #ddd;
- box-sizing: border-box;
- }
- .t_b_Item{
- width: 30px;
- height: 30px;
- background-color: white;
- border-radius: 2px;
- display: flex;
- justify-content: center;
- align-items: center;
- transition: .3s;
- margin-right: 10px;
- cursor: pointer;
- }
- .t_b_Item:hover{
- background-color: #E8E8E8;
- }
- .t_b_Item>img{
- width: 80%;
- height: 80%;
- }
- .three_bottom .deleteB {
- color: #E96E6E;
- }
- .three_bottom .deleteB:hover {
- color: #E96E6E;
- font-weight: bold;
- }
- .head_left {
- display: flex;
- }
- .student_input>>>.el-input__inner {
- height: 40px;
- width: 190px;
- font-size: 13px;
- padding: 0 10px;
- }
- .course_button {
- color: #fff;
- background: #2268bc;
- width: 75px;
- height: 40px;
- padding: 0 !important;
- font-size: 12px;
- line-height: 40px;
- }
- .clear {
- width: 70px;
- height: 35px;
- background: #0061FF;
- color: #fff;
- text-align: center;
- border-radius: 5px;
- line-height: 35px;
- cursor: pointer;
- margin-left: 20px;
- }
- .ct_box {
- height: 500px;
- overflow: auto;
- display: flex;
- flex-wrap: wrap;
- }
- .myCourse {
- position: absolute;
- background: #3c3c3c;
- width: 70px;
- height: 30px;
- border-radius: 5px;
- color: #fff;
- font-size: 14px;
- text-align: center;
- line-height: 30px;
- top: 5px;
- left: 5px;
- }
- .xtCourse {
- position: absolute;
- background: #0061FF;
- width: 70px;
- height: 30px;
- border-radius: 5px;
- color: #fff;
- font-size: 14px;
- text-align: center;
- line-height: 30px;
- top: 5px;
- left: 5px;
- }
- .sub_head {
- position: relative;
- }
- .sub_head::after {
- content: "";
- width: 100%;
- background: #5a9cea;
- height: 2px;
- position: absolute;
- left: 0;
- bottom: -10px;
- }
- .subClick {
-
- font-size: 26px;
- cursor: pointer;
- margin-left: 17.5px;
-
-
- color: #999;
- }
- .subClick:hover {
- color: #000;
- }
- .more {
- position: relative;
- }
- .more:hover div {
- display: block;
- color: #000;
- }
- .more div {
- position: absolute;
- bottom: 0px;
- transform: translate(-50%, 100%);
- background: #f5f4f4;
- padding: 10px 20px;
- z-index: 99;
- width: 50px;
- border-radius: 5px;
- box-shadow: 0 0 3px 3px #80808020;
- display: none;
- }
- .more div>span+span {
- margin-top: 10px;
- }
- .more div>span {
- display: block;
- width: 100%;
- text-align: center;
- }
- .more div>span:hover {
- color: #79a2ff;
- }
- .line {
- width: 100%;
- height: 15px;
- background: #e6eaf0;
- }
- .reBox {
- width: 100%;
-
- margin: 0 auto;
- box-sizing: border-box;
- overflow: hidden;
- padding: 10px 15px 0;
- }
- .reTop {
- padding: 0 0 5px;
-
-
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- justify-content: space-between;
- }
- .reTop>div:nth-child(1) {
- font-weight: bold;
-
-
-
- color: #205cc6;
-
- }
- .reTop .reTopCh {
- display: flex;
- }
- .reTop .searchI {
- display: flex;
- flex-direction: row;
- align-items: center;
- border: 1px solid #ccced3;
- width: 250px;
- border-radius: 8px;
- padding: 5px 0;
-
- background: #fafafa;
- margin: 0 0 0 10px;
- }
- .search {
- width: 20px;
- padding: 0 5px;
- display: flex;
- align-items: center;
- }
- .search>img {
- width: 100%;
- height: 100%;
- }
- .sInput {
- border: none;
- width: 85%;
- background: #fafafa;
- }
- .sInput:focus-visible {
- outline: none;
- }
- .typeCss {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- justify-content: flex-start;
- align-items: center;
- }
- .choose {
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- height: 100%;
- justify-content: space-evenly;
- align-items: flex-start;
- padding: 10px 0;
- }
- .all_choose {
- display: flex;
- flex-direction: row;
- align-items: baseline;
- margin: 2px 0;
- width: 100%;
- }
- .all_choose>span {
- display: flex;
- margin-right: 5px;
- }
- .all_choose>span>span {
- min-width: 65px;
- max-width: 65px;
- display: block;
- text-align-last: justify;
- }
- .all_choose>span::after {
- content: ':';
- }
- .all_choose>span:nth-child(1) {
- font-weight: bold;
- }
- .all_choose>>>.el-checkbox-group {
- display: flex;
- flex-direction: row;
- width: 820px;
- flex-wrap: wrap;
- align-content: center;
- justify-content: flex-start;
- align-items: center;
- margin-top: 3px;
- }
- .all_choose>.el-checkbox-group>>>.el-checkbox {
- margin-bottom: 10px;
- display: flex;
- flex-direction: row;
- align-items: center;
- }
- .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
- min-width: 80px;
- overflow: hidden;
- width: 80px;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
- width: auto;
- }
- .cName {
- cursor: pointer;
- margin: 0 10px 5px 0;
- color: #b9b6b9;
- min-width: 80px;
- width: 80px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .isCType {
- color: #6282c2;
- }
- .pType_box {
- margin-top: 0;
- }
- .pType_box>>>.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
- -webkit-box-shadow: none !important;
- box-shadow: none !important;
- }
- .buttonBox {
- position: absolute;
- bottom: -0;
- transform: translateY(100%);
- background: #fff;
- border-radius: 5px;
- box-shadow: 0 0 3px 1px #e3e3e3;
- width: 100%;
- }
- .buttonBox>div {
- height: 40px;
- line-height: 40px;
- width: 100%;
- text-align: center;
- color: #000;
- box-sizing: border-box;
- }
- .buttonBox>div+div {
- border-top: 1px solid #e0e0e0;
- }
- .buttonBox>div:hover {
- background: #f6f8ff;
- }</style>
|