1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419 |
- <template>
- <!-- 项目基础信息 -->
- <div class="pb_content">
- <div class="race_content_body">
- <div class="raceBox">
- <div class="stepBg">
- <div class="steps">
- <div>
- <img src="../../../../assets/icon/race/progress.png" alt="" />
- </div>
- <div class="stepRightNav" @click="jump('first')">
- <div>项目基本信息</div>
- <div
- class="isFinishCss"
- v-if="raceDetail.title != '' && raceDetail.type.length > 0"
- >
- <div class="isFinish">
- <img src="../../../../assets/icon/race/finish.png" alt="" />
- </div>
- <div>已填写</div>
- </div>
- </div>
- </div>
- <div class="steps">
- <div>
- <img src="../../../../assets/icon/race/progress.png" alt="" />
- </div>
- <div class="stepRightNav" @click="jump('second')">
- <div>案例封面设置</div>
- <div class="isFinishCss" v-if="raceDetail.cover.length > 0">
- <div class="isFinish">
- <img src="../../../../assets/icon/race/finish.png" alt="" />
- </div>
- <div>已填写</div>
- </div>
- </div>
- </div>
- <div class="steps">
- <div>
- <img src="../../../../assets/icon/race/progress.png" alt="" />
- </div>
- <div class="stepRightNav" @click="jump('third')">
- <div>联系人</div>
- <div class="isFinishCss" v-if="raceDetail.autor.length > 0">
- <div class="isFinish">
- <img src="../../../../assets/icon/race/finish.png" alt="" />
- </div>
- <div>已填写</div>
- </div>
- </div>
- </div>
- <div class="steps">
- <div>
- <img src="../../../../assets/icon/race/progress.png" alt="" />
- </div>
- <div class="stepRightNav" @click="jump('sixth')">
- <div>协作者</div>
- <div class="isFinishCss" v-if="raceDetail.tableData.length > 0">
- <div class="isFinish">
- <img src="../../../../assets/icon/race/finish.png" alt="" />
- </div>
- <div>已填写</div>
- </div>
- </div>
- </div>
- <div class="steps">
- <div>
- <img src="../../../../assets/icon/race/progress.png" alt="" />
- </div>
- <div class="stepRightNav" @click="jump('fouth')">
- <div>项目简介</div>
- <div class="isFinishCss" v-if="raceDetail.courseText != ''">
- <div class="isFinish">
- <img src="../../../../assets/icon/race/finish.png" alt="" />
- </div>
- <div>已填写</div>
- </div>
- </div>
- </div>
- <div class="steps">
- <div>
- <img src="../../../../assets/icon/race/progress.png" alt="" />
- </div>
- <div class="stepRightNav" @click="jump('fivth')">
- <div>文件上传</div>
- <div class="isFinishCss" v-if="raceDetail.data.length > 0">
- <div class="isFinish">
- <img src="../../../../assets/icon/race/finish.png" alt="" />
- </div>
- <div>已填写</div>
- </div>
- </div>
- </div>
- </div>
- <div class="right">
- <div class="whiteBg">
- <div class="right_title" id="first">
- <span style="color: red">*</span>项目基本信息
- </div>
- <div class="basic_box">
- <div class="big_box">
- <div class="left_first">
- <div>
- <div>
- <div class="bInfo_title" style="margin-bottom: 15px">
- <span style="color: red">*</span> 案例名称
- </div>
- <div style="display: flex; margin-right: 20px">
- <img
- src="../../../../assets/icon/projectName.png"
- alt
- style="margin-right: 8px"
- />
- <input
- type="text"
- placeholder="请输入项目名称"
- class="binfo_input"
- v-model="raceDetail.title"
- @input="updateTitle"
- />
- </div>
- </div>
- <div class="both">
- <div class="choose">
- <div
- class="all_choose"
- v-for="(item, index) in CourseType[0]"
- :key="index"
- >
- <div
- v-if="item.name == '案例组别' || item.name == '类型'"
- style="position: relative; width: 120px;margin-right: 10px;"
- >
- <span
- style="
- color: red;
- position: absolute;
- top: 0;
- left: 0;
- "
- >*</span
- ><span style="width: 100px px; margin-left: 10px">{{
- item.name
- }}</span>
- </div>
- <span v-else>{{ item.name }}</span>
- <el-checkbox-group
- :class="item.name == '案例组别' ? 'radiusCss' : ''"
- v-model="raceDetail.type"
- @change="updateTitle"
- >
- <el-checkbox
- @change="updateType(item1)"
- v-for="item1 in arrayPan(CourseTypeJson[item.id], item.id)"
- :key="item1.id"
- :label="item1.id"
- :class="
- item1.id ==
- '6b6ac83d-c923-11ed-9546-005056b86db5'
- ? 'isOtherCss'
- : ''
- "
- >{{ item1.name }}
- <div
- v-if="
- isOther &&
- item.name == '学科' &&
- item1.name == '其他'
- "
- class="isOtherInput"
- >
- <el-input
- v-model="raceDetail.typeOtherName"
- @change="updateTitle"
- ></el-input>
- <div
- class="otherIcon"
- v-if="raceDetail.typeOtherName != ''"
- >
- <img
- src="../../../../assets/icon/otherIcon.png"
- alt=""
- />
- </div></div
- ></el-checkbox>
- </el-checkbox-group>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="whiteBg" style="border-radius: 0">
- <div class="right_first">
- <div class="right_title" id="second">案例封面设置</div>
- <div class="fmBox">
- <div>
- <div class="bInfo_title" style="margin-top: 0 !important">
- 案例封面
- </div>
- <div class="picBox">
- <div>
- <div
- class="uploadFm"
- v-if="raceDetail.cover.length === 0"
- @click="choosePicVisible = true"
- >
- <!-- @click="addImg($event)" -->
- <img
- src="../../../../assets/icon/addPoster.png"
- alt=""
- />
- <!-- <input
- type="file"
- accept="image/*"
- style="display: none"
- @change="beforeUpload1"
- /> -->
- </div>
- <el-upload
- :class="{ disUoloadSty: noneBtnImg }"
- class="upCss"
- action="#"
- list-type="picture"
- v-loading="uploadLoading1"
- :http-request="beforeUpload1"
- ref="upload1"
- :on-preview="handlePictureCardPreview"
- :on-remove="handle_remove1"
- :show-file-list="true"
- :file-list="raceDetail.cover"
- accept="image/*"
- :limit="1"
- :on-exceed="onExceed"
- v-else
- >
- <i class="el-icon-plus"></i>
- </el-upload>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="whiteBg" style="border-radius: 0">
- <div class="right_first">
- <div class="right_title" id="third">
- <span style="color: red">*</span>联系人
- </div>
- <div
- class="addPeople"
- @click="addAutor(0)"
- v-if="raceDetail.autor.length == 0"
- >
- 添加联系人
- </div>
- <div class="raTable">
- <el-table
- class="tableColor"
- ref="table"
- :data="raceDetail.autor"
- :height="tableHeight"
- :fit="true"
- style="width: 100%"
- :header-cell-style="{
- background: '#f1f1f1',
- fontSize: '17px',
- }"
- :row-class-name="tableRowClassName"
- >
- <el-table-column label="姓名" min-width="15" align="center">
- <template slot-scope="scope">
- <!-- <div class="userImg">
- <div class="tx">
- <img :src="tx" alt />
- </div>
- <div class="fontWidth">
- {{ scope.row.sn }}
- </div>
- </div> -->
- <div class="fontWidth">
- {{ scope.row.sn }}
- </div>
- </template>
- </el-table-column>
- <el-table-column label="学科" min-width="15" align="center">
- <template slot-scope="scope">
- <div>{{ scope.row.su ? scope.row.su : "" }}</div>
- </template>
- </el-table-column>
- <el-table-column label="学校" min-width="20" align="center">
- <template slot-scope="scope">
- <div>{{ scope.row.sc ? scope.row.sc : "" }}</div>
- </template>
- </el-table-column>
- <el-table-column label="邮箱" min-width="20" align="center">
- <template slot-scope="scope">
- <div>{{ scope.row.em ? scope.row.em : "" }}</div>
- </template>
- </el-table-column>
- <el-table-column label="电话" min-width="15" align="center">
- <template slot-scope="scope">
- <div>
- {{ scope.row.ph ? scope.row.ph : "" }}
- </div>
- </template>
- </el-table-column>
- <el-table-column label="操作" min-width="20">
- <template slot-scope="scope">
- <div class="pb_buttonBox">
- <!-- <el-button
- size="mini"
- type="primary"
- style="cursor: pointer"
- @click="updateStudent(scope.row, scope.$index)"
- >修改</el-button
- > -->
- <div
- class="delete"
- style="margin-left: 0"
- @click="updateStudent(scope.row, scope.$index, 0)"
- >
- <img src="../../../../assets/autorUp.png" alt />
- </div>
- <div
- class="delete"
- @click="deleteStudent(scope.$index, 0)"
- >
- <img src="../../../../assets/remove.png" alt />
- </div>
- </div>
- </template>
- </el-table-column>
- </el-table>
- </div>
- <div
- style="
- color: #cd0808;
- width: 97%;
- margin: 10px auto;
- font-size: 14px;
- "
- >
- *项目联系人的所有信息为必填项,每个项目只限1名联系人。
- </div>
- </div>
- </div>
- <div class="whiteBg" style="border-radius: 0">
- <div class="right_first">
- <div class="right_title" id="sixth">协作者</div>
- <div
- class="addPeople"
- @click="addAutor(1)"
- v-if="raceDetail.tableData.length < 4"
- >
- 添加协作者
- </div>
- <div class="raTable">
- <el-table
- class="tableColor"
- ref="table"
- :data="raceDetail.tableData"
- :height="tableHeight"
- :fit="true"
- style="width: 100%"
- :header-cell-style="{
- background: '#f1f1f1',
- fontSize: '17px',
- }"
- >
- <el-table-column label="姓名" min-width="20" align="center">
- <template slot-scope="scope">
- <!-- <div class="userImg">
- <div class="tx">
- <img :src="tx" alt />
- </div>
-
- </div> -->
- <div class="fontWidth">
- {{ scope.row.sn }}
- </div>
- </template>
- </el-table-column>
- <el-table-column label="学科" min-width="15" align="center">
- <template slot-scope="scope">
- <div>{{ scope.row.su ? scope.row.su : "" }}</div>
- </template>
- </el-table-column>
- <el-table-column label="学校" min-width="15" align="center">
- <template slot-scope="scope">
- <div>{{ scope.row.sc ? scope.row.sc : "" }}</div>
- </template>
- </el-table-column>
- <el-table-column label="邮箱" min-width="15" align="center">
- <template slot-scope="scope">
- <div>{{ scope.row.em ? scope.row.em : "" }}</div>
- </template>
- </el-table-column>
- <el-table-column label="电话" min-width="15" align="center">
- <template slot-scope="scope">
- <div>
- {{ scope.row.ph ? scope.row.ph : "" }}
- </div>
- </template>
- </el-table-column>
- <el-table-column label="操作" min-width="20">
- <template slot-scope="scope">
- <div class="pb_buttonBox">
- <!-- <el-button
- size="mini"
- type="primary"
- style="cursor: pointer"
- @click="updateStudent(scope.row, scope.$index)"
- >修改</el-button
- > -->
- <div
- class="delete"
- style="margin-left: 0"
- @click="updateStudent(scope.row, scope.$index, 1)"
- >
- <img src="../../../../assets/autorUp.png" alt />
- </div>
- <div
- class="delete"
- @click="deleteStudent(scope.$index, 1)"
- >
- <img src="../../../../assets/remove.png" alt />
- </div>
- </div>
- </template>
- </el-table-column>
- </el-table>
- </div>
- <div
- style="
- color: #cd0808;
- width: 97%;
- margin: 10px auto;
- font-size: 14px;
- "
- >
- 协作者(不含联系人)不超过4人;姓名为必填项,其余信息非必填项。
- </div>
- </div>
- </div>
- <div class="whiteBg" style="border-radius: 0">
- <div class="right_first">
- <div class="right_title" id="fouth">
- <span style="color: red">*</span>项目简介
- </div>
- <div class="secondTop">
- <el-input
- type="textarea"
- placeholder="200字以内,介绍项目背景,描述生活中的现象,引出要解决的核心问题,概述解决问题的思路及预期成果等。"
- v-model="raceDetail.courseText"
- @input="updateTitle"
- maxlength="200"
- show-word-limit
- rows="8"
- class="tAreaCss"
- cols
- >
- </el-input>
- <!-- <textarea
- rows="8"
- class="binfo_input tAreaCss"
- cols
- v-model="raceDetail.courseText"
- @input="updateTitle"
- maxlength="200"
- show-word-limit
- placeholder="200字以内,介绍项目背景,描述生活中的现象,引出要解决的核心问题,概述解决问题的思路及预期成果等。"
- style="font-size: 14px"
- ></textarea> -->
- </div>
- </div>
- </div>
- <div class="whiteBg" style="border-radius: 0">
- <div class="right_first">
- <div class="right_title" id="fivth">
- <span style="color: red">*</span>文件上传
- </div>
- <div class="secondTop">
- <div>
- <div class="basic_box1" style="width: 100%">
- <div>
- <div
- class="add_chapters_box"
- v-if="raceDetail.data && raceDetail.data.length == 0"
- ></div>
- <div
- v-else
- class="add_chapters_box"
- style="display: flex; flex-direction: column"
- >
- <div
- class="chapter_upload"
- v-for="(item, index) in raceDetail.data"
- :key="index"
- draggable="true"
- @dragstart="handleDragStart($event, index)"
- @dragover.prevent="handleDragOver($event, index)"
- @dragenter="handleDragEnter($event, index)"
- @dragend="handleDragEnd($event, index)"
- >
- <div class="chapter_upload_t"></div>
- <div class="chapter_upload_o">
- <div class="chapter_upload_l">
- <div
- v-if="item.type == 2"
- class="chapter_upload_l_i1"
- ></div>
- <div
- v-if="item.type == 1 || item.type == 3"
- class="chapter_upload_l_i5"
- ></div>
- </div>
- <div class="chapter_upload_ic">
- <div class="chapter_upload_ic_l"></div>
- <div
- class="chapter_upload_ic_r"
- @click.stop="
- deleteChapterData($event, index, 0)
- "
- >
- <div></div>
- </div>
- </div>
- <div class="chapter_upload_n">
- <input
- class="first"
- v-if="item.type == 1 || item.type == 3"
- :placeholder="item.name"
- />
- <input
- class="first"
- v-if="item.type == 2"
- :placeholder="item.name"
- />
- <div class="chapter_upload_ud">
- <div
- class="chapter_upload_up"
- @click="upCd($event, index)"
- ></div>
- <div
- class="chapter_upload_down"
- @click="downCd($event, index)"
- ></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="add_info_box">
- <div class="upTips">
- <button
- class="info_btn"
- @click="addImg($event)"
- style="min-width: 108px"
- id="forUp"
- >
- 上传附件
- <input
- type="file"
- accept="application/pdf,application/zip"
- style="display: none"
- @change="beforeUpload($event, null, 0)"
- />
- </button>
- <div style="color: red">
- *此处需提交《项目式学习案例格式》的PDF格式文件。建议大小为80M以内。
- </div>
- </div>
- </div>
- <div v-if="raceDetail.data.proVisible" class="mask">
- <div class="progressBox">
- <!-- <div id="closePro" class="closeCss">
- <img
- src="../../../../assets/icon/proClose.png"
- alt=""
- />
- </div> -->
- <div class="lbox">
- <img
- src="../../../../assets/loading.gif"
- />上传中,请稍后
- </div>
- <div style="margin-bottom: 10px">
- <div>
- {{ raceDetail.data.isFinishSize }}M /
- {{
- raceDetail.data.isAllSize
- ? raceDetail.data.isAllSize
- : 0
- }}M
- </div>
- </div>
- <el-progress
- :text-inside="true"
- :stroke-width="20"
- :percentage="
- raceDetail.data.progress
- ? raceDetail.data.progress
- : 0
- "
- style="width: 80%"
- ></el-progress>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- <div class="buttonCss">
- <div class="info_btn noBg">预览</div>
- <div class="info_btn noBg">保存</div>
- <div class="info_btn" style="margin-right: 25px">下一步</div>
- </div> -->
- </div>
- </div>
- <el-dialog
- :title="isAddOrUp == true ? '修改项目成员' : '添加项目成员'"
- :visible.sync="dialogVisibleMember"
- :append-to-body="true"
- width="700px"
- height="80%"
- :before-close="handleClose"
- class="add_student"
- >
- <el-form>
- <el-form-item label="姓名" :label-width="formLabelWidth">
- <span>
- <el-input
- placeholder="请输入姓名"
- clearable
- v-model="sName"
- class="add_input"
- ></el-input>
- </span>
- </el-form-item>
- <el-form-item label="学科" :label-width="formLabelWidth">
- <span>
- <el-input
- placeholder="请输入学科"
- clearable
- v-model="sSubject"
- class="add_input"
- ></el-input>
- </span>
- </el-form-item>
- <el-form-item label="学校" :label-width="formLabelWidth">
- <span>
- <el-input
- placeholder="请输入学校"
- clearable
- v-model="sSchool"
- class="add_input"
- ></el-input>
- </span>
- </el-form-item>
- <el-form-item label="邮箱" :label-width="formLabelWidth">
- <span>
- <el-input
- placeholder="请输入邮箱"
- clearable
- v-model="sEmail"
- class="add_input"
- ></el-input>
- </span>
- </el-form-item>
- <el-form-item label="电话" :label-width="formLabelWidth">
- <span>
- <el-input
- placeholder="请输入电话"
- clearable
- v-model="sPhone"
- class="add_input"
- ></el-input>
- </span>
- </el-form-item>
- </el-form>
- <span slot="footer" class="dialog-footer">
- <el-button @click="dialogVisibleMember = false">取 消</el-button>
- <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
- </span>
- </el-dialog>
- <el-dialog
- title="上传图片"
- :visible.sync="choosePicVisible"
- :append-to-body="true"
- width="500px"
- :before-close="handleClose"
- class="dialog_diy"
- >
- <div>
- <div class="fileCss" style="padding-top: 20px">
- <div>
- <button class="info_btn" @click="addImg($event)">
- 选择本地文件
- <input
- type="file"
- accept="image/*"
- style="display: none"
- @change="beforeUpload1"
- />
- </button>
- </div>
- <div>
- <el-button
- @click="getAllBanner"
- v-if="isSysPic == false && raceDetail.cover.length == 0"
- >选择系统文件</el-button
- >
- <div
- class="isSysPic"
- v-if="isSysPic == true && raceDetail.cover.length > 0"
- >
- <img :src="raceDetail.cover[0].url" alt="" />
- <div class="deletePic" @click="deleteSysPic">
- <img src="../../../../assets/icon/delete.png" alt="" />
- </div>
- </div>
- </div>
- </div>
- <div class="fileCss" v-if="raceDetail.cover.length > 0">
- <div>选择本地文件</div>
- <div>选择系统文件</div>
- </div>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="choosePicVisible = false">取 消</el-button>
- <el-button type="primary" @click="choosePicVisible = false"
- >确 定</el-button
- >
- </span>
- </el-dialog>
- <el-dialog
- title="选择系统文件"
- :visible.sync="sysPicVisible"
- :append-to-body="true"
- width="700px"
- :before-close="handleClose"
- class="dialog_diy"
- >
- <div class="cru_selectBox" style="margin: 0">
- <div
- @click="getChoosePic(1)"
- class="cru_select"
- :class="chooseType == 1 ? 'cru_selected' : ''"
- >
- 绘画
- </div>
- <div
- @click="getChoosePic(2)"
- class="cru_select"
- :class="chooseType == 2 ? 'cru_selected' : ''"
- >
- 科技
- </div>
- <div
- @click="getChoosePic(3)"
- class="cru_select"
- :class="chooseType == 3 ? 'cru_selected' : ''"
- >
- 人文
- </div>
- <div
- @click="getChoosePic(4)"
- class="cru_select"
- :class="chooseType == 4 ? 'cru_selected' : ''"
- >
- 艺术
- </div>
- </div>
- <div class="sysPicBox">
- <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
- <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
- </div>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="sysPicVisible = false">取 消</el-button>
- <el-button type="primary">确 定</el-button>
- </span>
- </el-dialog>
- </div>
- </template>
- <script>
- export default {
- props: ["raceInfo"],
- data() {
- return {
- tableHeight: "500px",
- formLabelWidth: "100px",
- chooseType: 1,
- CourseType: [],
- CourseTypeJson: [],
- noneBtnImg: false,
- uploadLoading1: false,
- dialogVisibleMember: false,
- isAddOrUp: false,
- choosePicVisible: false,
- sysPicVisible: false,
- isSysPic: false,
- isAutor: false,
- isOther: false,
- sysPic: [],
- upIndex: -1,
- sName: "",
- sSubject: "",
- sSchool: "",
- sEmail: "",
- sPhone: "",
- raceDetail: {
- title: "",
- type: [],
- typeOtherName: "",
- cover: [],
- autor: [],
- tableData: [],
- courseText: "",
- data: [],
- },
- tx: require("../../../../assets/avatar.png"),
- ending: null,
- dragging: null,
- };
- },
- mounted() {
- this.$nextTick(function () {
- this.tableHeight =
- window.innerHeight - this.$refs.table.$el.offsetTop - 200;
- if (this.tableHeight <= 530) {
- this.tableHeight = 530;
- }
- // 监听窗口大小变化
- let self = this;
- window.onresize = function () {
- self.tableHeight =
- window.innerHeight - self.$refs.table.$el.offsetTop - 200;
- if (self.tableHeight <= 530) {
- self.tableHeight = 530;
- }
- };
- });
- },
- beforeRouteLeave(to, from, next) {
- window.onresize = null;
- next();
- },
- computed: {
- arrayPan() {
- return function(res, pid){
- var a = [
- "课时项目",
- "单元项目",
- "作业项目",
- ]
- var b = [
- "社会类项目式学习",
- "科技类项目式学习",
- "综合",
- ]
- if(pid == '428574f9-593f-4d77-929c-506ea98db35b'){
- if(this.raceDetail.type.indexOf('247f4e75-bfca-4876-a7cf-4f16e33c09af') != -1){
- return res.filter(el => a.indexOf(el.name) !== -1)
- }else if(this.raceDetail.type.indexOf('e4035a71-877b-4d93-ab21-f323a80838c4') != -1){
- return res.filter(el => b.indexOf(el.name) !== -1)
- }else {
- return res
- }
- }else {
- return res
- }
- }
- }
- },
- watch: {
- raceInfo: {
- immediate: true,
- deep: true,
- handler(newValue, oldValue) {
- this.getValue();
- },
- },
- },
- methods: {
- tableRowClassName({ row, rowIndex }) {
- // if ((rowIndex + 1) % 2 === 0) {
- // return "even_row";
- // } else {
- // return "";
- // }
- if (rowIndex === 0) {
- return "tr-blue";
- } else {
- return "";
- }
- },
- handlePictureCardPreview(file) {
- this.dialogImageUrl = file.url;
- },
- handleDragStart(e, item) {
- this.dragging = item;
- },
- handleDragEnd(e, item) {
- if (this.ending === this.dragging) {
- return;
- }
- let newItems = [...this.raceDetail.data];
- const src = newItems[this.dragging];
- const dst = newItems[this.ending];
- this.raceDetail.data[this.dragging] = dst;
- this.raceDetail.data[this.ending] = src;
- this.$forceUpdate();
- this.$nextTick(() => {
- this.dragging = null;
- this.ending = null;
- });
- },
- handleDragOver(e) {
- // 首先把div变成可以放置的元素,即重写dragenter/dragover
- // 在dragenter中针对放置目标来设置
- e.dataTransfer.dropEffect = "move";
- },
- handleDragEnter(e, item) {
- // 为需要移动的元素设置dragstart事件
- e.dataTransfer.effectAllowed = "move";
- this.ending = item;
- },
- onExceed() {
- this.$message.error("项目封面仅支持上传一张,请删除后再进行上传");
- },
- handleClose(done) {
- this.isAddOrUp = false;
- this.isAutor = false;
- done();
- },
- jump(t) {
- var a = document.getElementById(t);
- var b = document.getElementsByClassName("right")[0];
- b.scrollTop = a.offsetTop;
- },
- handle_remove1(file, fileList, type) {
- var _tmp = this.raceDetail.cover;
- for (var i = 0, len = _tmp.length; i < len; i++) {
- if (_tmp[i].uid == file.uid) {
- _tmp.splice(i, 1);
- break;
- }
- this.raceDetail.cover = _tmp;
- }
- this.noneBtnImg = _tmp.length >= 1;
- this.isSysPic = false;
- },
- addImg(e) {
- var el = e.currentTarget;
- el.getElementsByTagName("input")[0].click();
- e.target.value = "";
- },
- imgChange1(file, fileList, type, itemTaskIndex) {
- if (type == 1) {
- var _tmp = this.raceDetail.cover;
- }
- this.noneBtnImg = _tmp.length >= 1;
- },
- imgChange(file, fileList, type, jT) {
- var _tmp = this.raceDetail.data;
- this.noneBtnImg = _tmp.length >= 1;
- },
- deleteChapterData(e, i, t) {
- e.stopPropagation();
- this.raceDetail.data.splice(i, 1);
- },
- chooseSysPic(p) {
- if (this.raceDetail.cover.length == 0) {
- this.raceDetail.cover.push({
- name: "系统图片.png",
- url: p,
- });
- } else {
- console.log(this.raceDetail.cover);
- }
- this.imgChange1(null, null, 1, null);
- this.isSysPic = true;
- this.sysPicVisible = false;
- },
- deleteSysPic() {
- this.raceDetail.cover = [];
- this.isSysPic = false;
- },
- getChoosePic(t) {
- this.chooseType = t;
- this.getAllBanner();
- },
- beforeUpload1(event, type) {
- const loading = this.openLoading();
- var file = event.target.files[0];
- var credentials = {
- accessKeyId: "AKIATLPEDU37QV5CHLMH",
- secretAccessKey: "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",
- }; //秘钥形式的登录上传
- window.AWS.config.update(credentials);
- window.AWS.config.region = "cn-northwest-1"; //设置区域
- var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
- var _this = this;
- if (file) {
- var params = {
- Key:
- file.name.split(".")[0] +
- new Date().getTime() +
- "." +
- file.name.split(".")[file.name.split(".").length - 1],
- ContentType: file.type,
- Body: file,
- "Access-Control-Allow-Credentials": "*",
- ACL: "public-read",
- }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
- var options = {
- partSize: 2048 * 1024 * 1024,
- queueSize: 2,
- leavePartsOnError: true,
- };
- bucket
- .upload(params, options)
- .on("httpUploadProgress", function (evt) {
- //这里可以写进度条
- // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
- })
- .send(function (err, data) {
- loading.close();
- if (err) {
- var a = _this.$refs.upload1.uploadFiles;
- a.splice(a.length - 1, a.length);
- _this.$message.error("上传失败");
- } else {
- if (file.name.indexOf("微信图片") != -1) {
- _this.raceDetail.cover.push({
- name: "图片.png",
- url: data.Location,
- });
- } else {
- _this.raceDetail.cover.push({
- name: file.name,
- url: data.Location,
- });
- }
- _this.imgChange1(null, null, 1, null);
- _this.choosePicVisible = false;
- console.log(data.Location);
- }
- });
- }
- },
- beforeUpload(event, type, jsonType) {
- var file = event.target.files[0];
- var credentials = {
- accessKeyId: "AKIATLPEDU37QV5CHLMH",
- secretAccessKey: "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",
- }; //秘钥形式的登录上传
- window.AWS.config.update(credentials);
- window.AWS.config.region = "cn-northwest-1"; //设置区域
- var type1 = type;
- let bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
- var _this = this;
- var b = [
- "DOC",
- "DOCX",
- "DOCM",
- "DOTM",
- "DOTX",
- "PPTX",
- "PPSX",
- "PPT",
- "PPS",
- "PPTM",
- "POTM",
- "PPAM",
- "POTX",
- "PPSM",
- ];
- var c = ["PDF", "DOT", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
- var d = [
- "BMP",
- "PJP",
- "APNG",
- "PNG",
- "JPG",
- "GIF",
- "SVG",
- "JPEG",
- "JPG",
- "ICO",
- "PGPEG",
- "AVIF",
- ];
- // if (
- // b.indexOf(
- // file.name
- // .split(".")
- // [file.name.split(".").length - 1].toLocaleUpperCase()
- // ) != -1
- // ) {
- // if (file.size / 1024 / 1024 > 10) {
- // this.$message.error("上传文件大于10M,请重新选择文件!");
- // return;
- // }
- // } else if (
- // c.indexOf(
- // file.name
- // .split(".")
- // [file.name.split(".").length - 1].toLocaleUpperCase()
- // ) != -1
- // ) {
- // if (file.size / 1024 / 1024 > 5) {
- // this.$message.error("添加的上传文件大于5M,请重新选择文件!");
- // return;
- // }
- // }
- if (
- file.name
- .split(".")
- [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF" &&
- file.name
- .split(".")
- [file.name.split(".").length - 1].toLocaleUpperCase() != "ZIP"
- ) {
- this.$message.error("请上传PDF或者ZIP文件!");
- return;
- }
- if (
- c.indexOf(
- file.name
- .split(".")
- [file.name.split(".").length - 1].toLocaleUpperCase()
- ) != -1
- ) {
- type1 = 1;
- } else if (
- d.indexOf(
- file.name
- .split(".")
- [file.name.split(".").length - 1].toLocaleUpperCase()
- ) != -1
- ) {
- type1 = 3;
- } else {
- type1 = 2;
- }
- _this.raceDetail.data.progress = 0;
- _this.raceDetail.data.proVisible = true;
- _this.raceDetail.data.isFinishSize = 0;
- _this.raceDetail.data.isAllSize = 0;
- _this.$nextTick(() => {
- setTimeout(() => {
- document.getElementById("closePro").onclick = () => {
- bucket.abort.bind(bucket);
- };
- }, 500);
- });
- var a = (file.size / 1024 / 1024).toFixed(2);
- _this.raceDetail.data.isAllSize = a - 0;
- _this.$forceUpdate();
- if (file) {
- var params = {
- Key:
- file.name.split(".")[0] +
- new Date().getTime() +
- "." +
- file.name.split(".")[file.name.split(".").length - 1],
- ContentType: file.type,
- Body: file,
- "Access-Control-Allow-Credentials": "*",
- ACL: "public-read",
- }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
- var options = {
- partSize: 2048 * 1024 * 1024,
- queueSize: 2,
- leavePartsOnError: true,
- };
- bucket
- .upload(params, options)
- .on("httpUploadProgress", function (evt) {
- //这里可以写进度条
- // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
- _this.raceDetail.data.isFinishSize = (
- evt.loaded /
- 1024 /
- 1024
- ).toFixed(2);
- _this.raceDetail.data.progress = parseInt(
- (evt.loaded / evt.total) * 100
- );
- _this.$forceUpdate();
- // _this.raceDetail.data.progress =
- // Math.floor(
- // (evt.loaded / 1024 / 1024 / (evt.total / 1024 / 1024)) * 100
- // ) + "%";
- })
- .send(function (err, data) {
- // loading.close();
- _this.raceDetail.data.progress = 100;
- _this.raceDetail.data.isFinishSize =
- _this.raceDetail.data.isAllSize;
- _this.$forceUpdate();
- setTimeout(() => {
- _this.raceDetail.data.proVisible = false;
- _this.$forceUpdate();
- }, 1000);
- if (err) {
- _this.$message.error("上传失败");
- } else {
- _this.raceDetail.data.push({
- name: file.name,
- url: data.Location,
- type: type1,
- id: "data" + _this.raceDetail.data.length,
- });
- _this.imgChange(null, null, type1, jsonType);
- console.log(data.Location);
- }
- });
- }
- },
- updateTitle() {
- this.$emit("updateTitle", this.raceDetail);
- },
- updateType(sid) {
- var a = this.raceDetail.type;
- var c = [];
- var b = sid.pid;
- var d = [];
- // for (var i = 0; i < this.CourseType[1].length; i++) {
- // if (this.CourseType[1][i].id == sid) {
- // b = this.CourseType[1][i].pid;
- // }
- // }
- if (
- b == "34629bcc-d02f-11ec-8c78-005056b86db5" &&
- a.indexOf(sid.id) != -1
- ) {
- for (var j = 0; j < this.CourseTypeJson[b].length; j++) {
- d.push(this.CourseTypeJson[b][j].id);
- }
- for (var j = 0; j < this.CourseTypeJson['428574f9-593f-4d77-929c-506ea98db35b'].length; j++) {
- d.push(this.CourseTypeJson['428574f9-593f-4d77-929c-506ea98db35b'][j].id);
- }
- for (var i = 0; i < a.length; i++) {
- if (d.indexOf(a[i]) == -1) {
- c.push(a[i]);
- }
- }
- c.push(sid.id);
- this.raceDetail.type = c;
- }
- if (a.indexOf("6b6ac83d-c923-11ed-9546-005056b86db5") != -1) {
- this.isOther = true;
- } else {
- this.isOther = false;
- this.raceDetail.typeOtherName = "";
- }
- },
- isAddPPTeacher() {
- if (this.isAutor == true) {
- if (this.sName === "") {
- this.$message.error("姓名不能为空");
- return;
- } else if (this.sSubject === "") {
- this.$message.error("学科不能为空");
- return;
- } else if (this.sSchool === "") {
- this.$message.error("学校不能为空");
- return;
- } else if (this.sPhone == "") {
- this.$message.error("手机号不能为空");
- return;
- } else if (!/^1[3456789]\d{9}$/.test(this.sPhone)) {
- this.$message.error("手机号格式不正确");
- return;
- } else if (this.sEmail == "") {
- this.$message.error("邮箱不能为空");
- return;
- } else if (this.sEmail != "") {
- if (
- !/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(
- this.sEmail
- )
- ) {
- this.$message.error("邮箱格式不正确");
- return;
- }
- }
- } else {
- if (this.sName === "") {
- this.$message.error("姓名不能为空");
- return;
- } else if (this.sPhone != "") {
- if (!/^1[3456789]\d{9}$/.test(this.sPhone)) {
- this.$message.error("手机号格式不正确");
- return;
- }
- } else if (this.sEmail != "") {
- if (
- !/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(
- this.sEmail
- )
- ) {
- this.$message.error("邮箱格式不正确");
- return;
- }
- }
- }
- if (this.isAutor == true) {
- if (this.isAddOrUp == true) {
- this.raceDetail.autor[0].sn = this.sName;
- this.raceDetail.autor[0].su = this.sSubject;
- this.raceDetail.autor[0].sc = this.sSchool;
- this.raceDetail.autor[0].em = this.sEmail;
- this.raceDetail.autor[0].ph = this.sPhone;
- } else {
- this.raceDetail.autor.push({
- sn: this.sName,
- su: this.sSubject,
- sc: this.sSchool,
- em: this.sEmail,
- ph: this.sPhone,
- });
- }
- } else {
- if (this.isAddOrUp == true) {
- this.raceDetail.tableData[this.upIndex].sn = this.sName;
- this.raceDetail.tableData[this.upIndex].su = this.sSubject;
- this.raceDetail.tableData[this.upIndex].sc = this.sSchool;
- this.raceDetail.tableData[this.upIndex].em = this.sEmail;
- this.raceDetail.tableData[this.upIndex].ph = this.sPhone;
- } else {
- this.raceDetail.tableData.push({
- sn: this.sName,
- su: this.sSubject,
- sc: this.sSchool,
- em: this.sEmail,
- ph: this.sPhone,
- });
- }
- }
- this.sName = "";
- this.sSubject = "";
- this.sSchool = "";
- this.sEmail = "";
- this.sPhone = "";
- this.isAddOrUp = false;
- this.isAutor = false;
- this.upIndex = -1;
- this.dialogVisibleMember = false;
- this.$emit("updateTitle", this.raceDetail);
- },
- updateStudent(r, i, t) {
- this.sName = r.sn;
- this.sSubject = r.su;
- this.sSchool = r.sc;
- this.sEmail = r.em;
- this.sPhone = r.ph;
- this.isAddOrUp = true;
- if (t == 0) {
- this.isAutor = true;
- }
- this.upIndex = i;
- this.dialogVisibleMember = true;
- },
- deleteStudent(i, t) {
- this.$confirm("确定删除此作者吗?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$message({
- message: "删除成功",
- type: "success",
- });
- if (t == 0) {
- this.raceDetail.autor = [];
- } else {
- this.raceDetail.tableData.splice(i, 1);
- }
- this.$emit("updateTitle", this.raceDetail);
- })
- .catch(() => {});
- },
- selectType() {
- this.ajax
- .get(this.$store.state.api + "selectMatType")
- .then((res) => {
- this.CourseType = res.data;
- for (var i = 0; i < res.data[0].length; i++) {
- if (!this.cid) {
- this.raceDetail.type[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]);
- }
- }
- }
- })
- .catch((err) => {
- console.error(err);
- });
- },
- getAllBanner() {
- this.sysPicVisible = true;
- let params = {
- t: this.chooseType,
- };
- this.ajax
- .get(this.$store.state.api + "selectAllBanner", params)
- .then((res) => {
- this.sysPic = res.data[0];
- })
- .catch((err) => {
- console.error(err);
- });
- },
- getValue() {
- this.raceDetail.title = this.raceInfo.title;
- this.raceDetail.type = this.raceInfo.type;
- this.raceDetail.typeOtherName = this.raceInfo.typeOtherName;
- if (this.raceDetail.typeOtherName != "") {
- this.isOther = true;
- }
- this.raceDetail.cover = this.raceInfo.cover;
- this.raceDetail.autor = this.raceInfo.autor;
- this.raceDetail.tableData = this.raceInfo.tableData;
- this.raceDetail.courseText = this.raceInfo.courseText;
- this.raceDetail.data = this.raceInfo.data;
- this.imgChange1(null, null, 1, null);
- this.$forceUpdate();
- },
- addAutor(t) {
- if (t == 0) {
- this.isAutor = true;
- }
- this.dialogVisibleMember = true;
- },
- upCd(e, i) {
- e.stopPropagation();
- if (i == 0) {
- return;
- }
- var a = this.raceDetail.data[i - 1];
- this.raceDetail.data[i - 1] = this.raceDetail.data[i];
- this.raceDetail.data[i] = a;
- this.$forceUpdate();
- },
- downCd(e, i) {
- e.stopPropagation();
- if (i == this.raceDetail.data.length - 1) {
- return;
- }
- var a = this.raceDetail.data[i + 1];
- this.raceDetail.data[i + 1] = this.raceDetail.data[i];
- this.raceDetail.data[i] = a;
- this.$forceUpdate();
- },
- },
- created() {
- this.getValue();
- this.selectType();
- },
- };
- </script>
- <style scoped>
- @media screen and (max-width: 1280px) {
- .upTips {
- align-items: flex-start !important;
- }
- }
- .dialog_diy >>> .el-dialog__header {
- background: #3c3c3c !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;
- }
- .dialog_diy >>> .el-dialog__body,
- .dialog_diy >>> .el-dialog__footer {
- background: #fafafa;
- }
- .pb_content {
- width: 100%;
- height: 100%;
- }
- .race_content_body {
- width: 100%;
- position: relative;
- margin: 0;
- height: 100%;
- }
- .raceBox {
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: flex-start;
- }
- .stepBg {
- font-size: 16px;
- padding: 80px 0 0 0;
- margin: 0 25px 0 0;
- width: 15%;
- display: flex;
- justify-content: flex-start;
- align-items: center;
- flex-wrap: nowrap;
- background: #fff;
- /* min-height: 800px; */
- height: calc(100% - 80px);
- border-radius: 15px;
- overflow: auto;
- min-width: 260px;
- flex-direction: column;
- }
- .steps {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- position: relative;
- width: 145px;
- height: 130px;
- }
- .steps > div:nth-child(1) > img {
- z-index: 9;
- position: relative;
- }
- .stepLeft,
- .isSteps {
- width: 30px;
- height: 30px;
- border-radius: 50%;
- text-align: center;
- line-height: 30px;
- border: 2px solid #eee;
- color: #c0c0c0;
- }
- .isSteps {
- background: #1990ff;
- color: #fff;
- border: none;
- }
- .stepRightNav {
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- justify-content: space-between;
- align-items: flex-start;
- margin: 10px 0 0 10px;
- height: 40px;
- cursor: pointer;
- }
- .stepRightNav > div {
- margin-bottom: 5px;
- }
- .stepRightNav:hover {
- color: #999;
- }
- .line,
- .isLine {
- position: absolute;
- width: 5px;
- height: 50px;
- border-left: 1px solid #dadada;
- top: 38px;
- left: 15px;
- }
- .isLine {
- border-left: 1px solid #1d92ff !important;
- }
- .right {
- width: 100%;
- background: rgb(255, 255, 255);
- border-radius: 10px;
- overflow: auto;
- height: 100%;
- border-radius: 15px;
- /* max-height: 800px; */
- }
- .allBox {
- padding: 25px;
- }
- .allBox > div:nth-child(1) {
- color: #0f40f5;
- font-size: 18px;
- font-weight: bold;
- }
- .raceTop > div:nth-child(2) {
- width: 80%;
- margin-top: 10px;
- }
- .choose {
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- height: 100%;
- justify-content: space-evenly;
- align-items: flex-start;
- }
- .both {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- width: 100%;
- align-items: center;
- justify-content: flex-start;
- margin: 30px 0;
- }
- .all_choose {
- display: flex;
- flex-direction: row;
- align-items: flex-start;
- width: 100%;
- }
- .choose > .all_choose:nth-child(2) > span,
- .choose > .all_choose:nth-child(4) > span,
- .choose > .all_choose:nth-child(3) > span {
- letter-spacing: 31px;
- margin-left: 10px;
- }
- .all_choose > span {
- width: 120px;
- /* display: block;
- letter-spacing: 33px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis; */
- }
- .all_choose >>> .el-checkbox-group {
- display: flex;
- flex-direction: row;
- width: 95%;
- 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 {
- width: 85px;
- min-width: 85px;
- /* 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;
- }
- .disUoloadSty >>> .el-icon-plus {
- display: none !important;
- /* 上传按钮隐藏 */
- }
- .upCss {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- }
- .upCss >>> .el-icon-plus {
- position: none !important;
- width: 200px;
- height: 100px;
- display: flex;
- flex-wrap: nowrap;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- border: 1px dashed #ccc;
- min-width: 78px;
- min-height: 100px;
- z-index: 999;
- }
- .upCss >>> .el-upload-list__item-name {
- width: 100px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
- object-fit: cover;
- }
- .uploadFm {
- border: 1px dashed #ccc;
- width: 202px;
- height: 102px;
- position: relative;
- cursor: pointer;
- }
- .uploadFm > img {
- position: absolute;
- top: 25px;
- left: 35%;
- width: 50px;
- }
- .picBox {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: flex-start;
- margin-top: 10px;
- }
- .picNav {
- margin-left: 10px;
- color: #aaabaa;
- }
- .addPeople {
- color: #75a1f4;
- padding: 10px 20px 10px 0;
- float: right;
- cursor: pointer;
- }
- .binfo_input {
- font: inherit;
- color: currentColor;
- width: 100%;
- margin: 0;
- /* padding: 15px 14px; */
- padding: 8px 14px;
- display: block;
- min-width: 0;
- outline: none;
- box-sizing: content-box;
- background: none;
- border: 1px solid rgba(0, 0, 0, 0.23);
- border-radius: 4px;
- box-sizing: border-box;
- background: #fff;
- font-size: 18px;
- }
- .binfo_input:focus-visible {
- border: 1px solid rgba(61, 103, 188);
- }
- .secondTop {
- width: 97%;
- margin: 10px auto;
- }
- .tAreaCss >>> .el-textarea__inner {
- resize: none;
- font-size: 16px;
- }
- .tAreaCss >>> .el-textarea__inner {
- font-family: "微软雅黑";
- }
- .addNewPP >>> .el-dialog__body {
- padding: 5px 20px;
- }
- .customWidth >>> .el-dialog {
- min-width: 500px !important;
- }
- .whiteBg {
- background: #fff;
- border-radius: 10px;
- }
- .right_title {
- height: 30px;
- padding: 15px 0 15px 20px;
- border-bottom: 1px solid #f2f2f2;
- font-size: 1.5em;
- font-weight: bold;
- color: #0f7eff;
- margin: 0 auto;
- }
- .basic_box {
- margin: 0 auto;
- position: relative;
- padding: 0 20px 0 20px;
- }
- .basic_box1 {
- position: relative;
- margin: 0;
- min-height: 0;
- width: 90%;
- }
- .left_first {
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- }
- .bInfo_title {
- text-align: left;
- margin: 10px 0;
- }
- .fmBox {
- padding: 10px 0 0 20px;
- display: flex;
- align-items: baseline;
- justify-content: flex-start;
- margin: 0 auto;
- }
- .logoImg {
- width: 30px;
- }
- .logoImg > img {
- width: 100%;
- height: 100%;
- }
- .title_add_student {
- margin: 0 auto;
- color: #fff;
- }
- .add_input {
- width: 365px;
- }
- .userImg {
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- }
- .tx {
- width: 40px;
- margin-right: 10px;
- }
- .pb_buttonBox {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: flex-start;
- }
- .delete {
- width: 25px;
- cursor: pointer;
- margin-left: 10px;
- }
- .tx > img,
- .delete > img {
- width: 100%;
- height: 100%;
- }
- .add_student >>> .el-dialog__header {
- padding: 20px 20px 10px;
- text-align: center;
- background: #32455b;
- }
- .add_student >>> .el-dialog__title {
- font-size: 14px !important;
- color: #fff !important;
- }
- .add_student >>> .el-dialog__headerbtn {
- font-size: 20px !important;
- }
- .add_student >>> .el-form-item__label {
- margin-left: 65px;
- }
- .add_student >>> .el-form-item {
- display: flex;
- }
- .add_student >>> .el-form-item__content {
- margin: 0 !important;
- }
- .add_student >>> .el-dialog__footer {
- text-align: center !important;
- }
- .header-title {
- display: flex;
- }
- .stepBg .steps:nth-child(1) ::after,
- .stepBg .steps:nth-child(2) ::after,
- .stepBg .steps:nth-child(3) ::after,
- .stepBg .steps:nth-child(4) ::after,
- .stepBg .steps:nth-child(5) ::after {
- content: "";
- height: 100%;
- background: #eee;
- width: 4px;
- position: absolute;
- left: 15px;
- top: calc(50% + (35px / 2));
- transform: translateY(-50%);
- z-index: 1;
- }
- .fileCss {
- width: 100%;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- justify-content: space-around;
- align-items: center;
- padding-top: 15px;
- }
- .sysPicBox {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- align-content: flex-start;
- height: 435px;
- overflow: auto;
- }
- .sysPic {
- width: 200px;
- height: 115px;
- margin: 0 10px 20px 0;
- cursor: pointer;
- }
- .sysPic > img,
- .isSysPic > img,
- .deletePic > img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- .isSysPic {
- width: 200px;
- height: 115px;
- position: relative;
- }
- .deletePic {
- width: 20px;
- height: 20px;
- position: absolute;
- top: 0;
- right: 0;
- cursor: pointer;
- }
- .cru_selectBox {
- display: flex;
- margin: 24px 0 10px;
- flex-wrap: nowrap;
- white-space: nowrap;
- overflow: auto;
- position: relative;
- height: 47px;
- }
- .cru_selectBox::-webkit-scrollbar {
- /*滚动条整体样式*/
- width: 6px;
- /*高宽分别对应横竖滚动条的尺寸*/
- height: 6px;
- }
- /*定义滚动条轨道 内阴影+圆角*/
- .cru_selectBox::-webkit-scrollbar-track {
- border-radius: 10px;
- background-color: #eee;
- }
- /*定义滑块 内阴影+圆角*/
- .cru_selectBox::-webkit-scrollbar-thumb {
- border-radius: 10px;
- -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
- background-color: rgba(0, 0, 0, 0.1);
- }
- .cru_select {
- font-size: 21px;
- margin-right: 37px;
- margin-left: 5px;
- cursor: pointer;
- color: #a6a6a6;
- }
- .cru_selected {
- color: #0b7fc2 !important;
- }
- .info_btn {
- color: #fff;
- background-color: #0f7eff;
- padding: 8px 24px;
- font-size: 0.9375rem;
- box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
- 0px 3px 1px -2px rgb(0 0 0 / 12%);
- min-width: 64px;
- font-weight: 500;
- border-radius: 4px;
- box-sizing: border-box;
- border: none;
- cursor: pointer;
- }
- .raTable {
- width: 97%;
- margin: 0 auto;
- height: auto;
- }
- .raTable >>> .el-table,
- .raTable >>> .el-table__body-wrapper {
- height: auto !important;
- font-size: 16px !important;
- }
- .add_chapters_box {
- text-align: left;
- background-color: rgb(232 234 237);
- width: 100%;
- padding: 0px 15px;
- border-radius: 15px;
- font-size: 16px;
- box-sizing: border-box;
- position: relative;
- padding: 0 10px 5px 10px;
- height: 125px;
- overflow-y: auto;
- overflow-x: hidden;
- }
- .chapter_upload {
- height: 50px;
- margin-top: 8px;
- position: relative;
- display: flex;
- align-items: center;
- width: 100%;
- min-height: 50px;
- transition: all linear 0.3s;
- }
- .chapter_upload_t {
- background-color: #fff;
- position: absolute;
- height: 100%;
- top: 0px;
- left: 0px;
- border-radius: 40px;
- box-sizing: border-box;
- box-shadow: 0 0 3px 3px #dfdfdf;
- width: 100%;
- }
- .chapter_upload_o {
- width: 100%;
- height: 100%;
- position: relative;
- z-index: 1;
- display: flex;
- align-items: center;
- }
- .chapter_upload_ic {
- height: 30px;
- float: right;
- cursor: pointer;
- position: absolute;
- width: 45px;
- right: 0;
- top: 0;
- }
- .chapter_upload_ic_l {
- width: 50px;
- height: 50px;
- float: left;
- }
- .chapter_upload_ic_l div {
- width: 30px;
- height: 35px;
- background: url("../../../../assets/icon/icon.png");
- }
- .chapter_upload_ic_r {
- width: 50px;
- height: 50px;
- float: left;
- margin-left: 0px;
- display: flex;
- align-items: center;
- position: absolute;
- }
- .chapter_upload_ic_r div {
- width: 25px;
- height: 25px;
- background-image: url("../../../../assets/delete.png");
- background-size: 100% 100%;
- }
- .chapter_upload_n {
- display: flex;
- text-indent: 10px;
- text-decoration: none;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- width: 55%;
- margin-left: 10px;
- cursor: pointer;
- margin-top: 2px;
- }
- .chapter_upload_l_i1 {
- background-image: url("../../../../assets/icon/video.png");
- width: 28px;
- height: 28px;
- background-size: 100% 100%;
- }
- .chapter_upload_l_i5 {
- background-image: url("../../../../assets/icon/word.png");
- width: 24px;
- height: 24px;
- background-size: 100% 100%;
- margin-left: 1px;
- }
- .chapter_upload_l_i8 {
- background-image: url("../../../../assets/icon/line.png");
- width: 24px;
- height: 24px;
- background-size: 100% 100%;
- margin-left: 1px;
- }
- .chapter_upload_ud {
- display: flex;
- flex-direction: column;
- margin-left: 5px;
- justify-content: center;
- z-index: 99;
- }
- .chapter_upload_up {
- background-image: url("../../../../assets/icon/up.png");
- width: 17px;
- height: 15px;
- background-size: 100% 100%;
- cursor: pointer;
- }
- .chapter_upload_down {
- background-image: url("../../../../assets/icon/down.png");
- width: 17px;
- height: 15px;
- margin: 2px auto 0 auto;
- background-size: 100% 100%;
- cursor: pointer;
- }
- .chapter_upload_l {
- padding: 1px 0 0 10px;
- }
- .first {
- border: none;
- outline: none;
- width: 80%;
- min-width: 215px;
- z-index: 99;
- font-size: 14px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .add_info_box {
- margin: 20px 0;
- }
- .add_info_box button {
- margin: 0 10px 10px 0;
- }
- .mask {
- background-color: rgb(0 0 0 / 30%);
- /* position: fixed; */
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: 20000;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .progressBox {
- width: 300px;
- height: 150px;
- background: #fff;
- border-radius: 10px;
- box-shadow: 0 0 6px 1px #bfbfbf;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- position: relative;
- }
- .progressBox >>> .el-progress-bar__outer {
- background-color: #d1dfff !important;
- }
- .progressBox .lbox {
- height: 50px;
- font-size: 19px;
- display: flex;
- align-items: center;
- color: #747474;
- }
- .progressBox .lbox img {
- width: 40px;
- margin-right: 20px;
- }
- .closeCss {
- position: absolute;
- top: 8px;
- right: 8px;
- cursor: pointer;
- width: 20px;
- height: 20px;
- }
- .closeCss > img {
- width: 100%;
- height: 100%;
- }
- .upTips {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: baseline;
- }
- .upTips > div {
- margin-left: 10px;
- color: #999;
- font-size: 14px;
- }
- .tableColor >>> .tr-blue {
- color: #628ff3 !important;
- }
- .lxr {
- color: #fff;
- background: center center #4a54ff;
- background-image: linear-gradient(315deg, #6772ff 0, #00f9e5 100%);
- background-size: 104% 104%;
- min-width: 50px;
- margin-left: 3px;
- border-radius: 3px;
- }
- .isFinishCss {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: flex-end;
- }
- .isFinishCss > div:nth-child(2) {
- margin-left: 5px;
- color: #939393;
- }
- .isFinish {
- width: 16px;
- height: 16px;
- margin-top: 5px;
- }
- .isFinish > img {
- width: 100%;
- height: 100%;
- }
- .fontWidth {
- text-align: center;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .radiusCss >>> .el-checkbox__inner {
- border-radius: 50% !important;
- }
- .radiusCss {
- /* margin-left: 10px !important; */
- }
- .isOtherCss >>> .el-checkbox__label {
- width: auto !important;
- min-width: auto !important;
- margin-right: 10px;
- position: relative;
- }
- .isOtherInput {
- position: absolute;
- top: 30px;
- left: -15px;
- display: flex;
- flex-direction: row;
- align-items: center;
- }
- .isOtherInput >>> .el-input__inner {
- width: 150px;
- }
- .otherIcon {
- width: 30px;
- cursor: context-menu;
- }
- .otherIcon > img {
- width: 100%;
- height: 100%;
- }
- </style>
|