12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328 |
- <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">
- <div>项目简介</div>
- <div>说明</div>
- </div>
- </div> -->
- <div class="steps">
- <div>
- <img src="../../../../assets/icon/race/progress.png" alt="" />
- </div>
- <div class="stepRightNav" @click="jump('first')">
- <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>说明</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>说明</div>
- </div>
- </div>
- <!-- <div class="steps">
- <div>
- <img src="../../../../assets/icon/race/progress.png" alt="" />
- </div>
- <div class="stepRightNav">
- <div>平台案例实施(选填)</div>
- <div>协同人员</div>
- </div>
- </div>
- <div class="steps">
- <div>
- <img src="../../../../assets/icon/race/progress.png" alt="" />
- </div>
- <div class="stepRightNav">
- <div>案例评审</div>
- <div>评审状态、反馈</div>
- </div>
- </div> -->
- </div>
- <div class="right">
- <div class="whiteBg">
- <div class="firstTop">
- <div class="right_title" id="first">驱动问题</div>
- <!-- <div class="rightNav">
- 可包括阶段性问题和学科问题:阶段性问题是指在核心问题解决的不同阶段,通过提出驱动性问题,明确阶段子任务。学科问题是指从不同学科的角度以及分解和提出要研究解决的主要问题。
- </div> -->
- </div>
- <div class="basic_box1">
- <div class="editorCss">
- <editor-bar
- v-model="raceOver.driQuestion.brief"
- @change="upRaceOver"
- :placeholder="'可包括阶段性问题和学科问题:阶段性问题是指在核心问题解决的不同阶段,通过提出驱动性问题,明确阶段子任务。学科问题是指从不同学科的角度以及分解和提出要研究解决的主要问题。'"
- ></editor-bar>
- </div>
- <div>
- <div class="basic_box">
- <div class="lineBox">
- <div class="lineTitle">附件内容</div>
- <div class="strLine"></div>
- </div>
- <div>
- <div
- class="add_chapters_box"
- v-if="
- raceOver.driQuestion.data &&
- raceOver.driQuestion.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 raceOver.driQuestion.data"
- :key="item.id"
- >
- <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"></div>
- <div class="chapter_upload_down"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="add_info_box">
- <button class="info_btn" @click="addImg($event)">
- 上传附件
- <input
- type="file"
- accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,video/mp4, video/quicktime, video/x-msvideo,image/*"
- style="display: none"
- @change="beforeUpload($event, null, 0)"
- />
- </button>
- </div>
- <div v-if="raceOver.driQuestion.data.proVisible" class="mask">
- <div class="progressBox">
- <div class="lbox">
- <img
- src="../../../../assets/loading.gif"
- />上传中,请稍后
- </div>
- <el-progress
- :text-inside="true"
- :stroke-width="20"
- :percentage="
- raceOver.driQuestion.data.progress
- ? raceOver.driQuestion.data.progress
- : 0
- "
- style="width: 80%"
- ></el-progress>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="whiteBg">
- <div class="firstTop">
- <div class="right_title" id="second">学习目标</div>
- <!-- <div class="rightNav">
- 学习目标提倡用核心素养来分类概括再描述,具体表述时应行为化、具体化、操作化,可以用“通过什么,达到什么,培养什么”的句式来进行表述
- </div> -->
- </div>
- <div class="basic_box1">
- <div class="editorCss">
- <editor-bar
- v-model="raceOver.tarDesign.brief"
- @change="upRaceOver"
- :placeholder="'学习目标提倡用核心素养来分类概括再描述,具体表述时应行为化、具体化、操作化,可以用“通过什么,达到什么,培养什么”的句式来进行表述'"
- ></editor-bar>
- </div>
- <div>
- <div class="basic_box">
- <div class="lineBox">
- <div class="lineTitle">附件内容</div>
- <div class="strLine"></div>
- </div>
- <div>
- <div
- class="add_chapters_box"
- v-if="
- raceOver.tarDesign.data &&
- raceOver.tarDesign.data.length == 0
- "
- ></div>
- <div
- v-else
- class="add_chapters_box"
- style="display: flex; flex-direction: column"
- >
- <div
- class="chapter_upload"
- v-for="(item1, index1) in raceOver.tarDesign.data"
- :key="item1.id"
- >
- <div class="chapter_upload_t"></div>
- <div class="chapter_upload_o">
- <div class="chapter_upload_l">
- <div
- v-if="item1.type == 2"
- class="chapter_upload_l_i1"
- ></div>
- <div
- v-if="item1.type == 1 || item1.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, index1, 1)"
- >
- <div></div>
- </div>
- </div>
- <div class="chapter_upload_n">
- <input
- class="first"
- v-if="item1.type == 1 || item1.type == 3"
- :placeholder="item1.name"
- />
- <input
- class="first"
- v-if="item1.type == 2"
- :placeholder="item1.name"
- />
- <div class="chapter_upload_ud">
- <div class="chapter_upload_up"></div>
- <div class="chapter_upload_down"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="add_info_box">
- <button class="info_btn" @click="addImg($event)">
- 上传附件
- <input
- type="file"
- accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,video/mp4, video/quicktime, video/x-msvideo,image/*"
- style="display: none"
- @change="beforeUpload($event, null, 1)"
- />
- </button>
- </div>
- <div v-if="raceOver.tarDesign.data.proVisible" class="mask">
- <div class="progressBox">
- <div class="lbox">
- <img
- src="../../../../assets/loading.gif"
- />上传中,请稍后
- </div>
- <el-progress
- :text-inside="true"
- :stroke-width="20"
- :percentage="
- raceOver.tarDesign.data.progress
- ? raceOver.tarDesign.data.progress
- : 0
- "
- style="width: 80%"
- ></el-progress>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="whiteBg">
- <div class="firstTop">
- <div class="right_title" id="third">评价设计</div>
- <!-- <div class="rightNav">
- 项目学习评价方式需要体现过程性评价与总结性评价相结合,积极使用表现性评价。本次征集案例中,需要将学生的作品和报告作为附件呈现作品评价。
- </div> -->
- </div>
- <div class="basic_box1">
- <div class="editorCss">
- <editor-bar
- v-model="raceOver.actiDesign.brief"
- @change="upRaceOver"
- :placeholder="'项目学习评价方式需要体现过程性评价与总结性评价相结合,积极使用表现性评价。本次征集案例中,需要将学生的作品和报告作为附件呈现作品评价。'"
- ></editor-bar>
- </div>
- <div>
- <div class="basic_box">
- <div class="lineBox">
- <div class="lineTitle">附件内容</div>
- <div class="strLine"></div>
- </div>
- <div>
- <div
- class="add_chapters_box"
- v-if="
- raceOver.actiDesign.data &&
- raceOver.actiDesign.data.length == 0
- "
- ></div>
- <div
- v-else
- class="add_chapters_box"
- style="display: flex; flex-direction: column"
- >
- <div
- class="chapter_upload"
- v-for="(item2, index2) in raceOver.actiDesign.data"
- :key="item2.id"
- >
- <div class="chapter_upload_t"></div>
- <div class="chapter_upload_o">
- <div class="chapter_upload_l">
- <div
- v-if="item2.type == 2"
- class="chapter_upload_l_i1"
- ></div>
- <div
- v-if="item2.type == 1 || item2.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, index2, 2)"
- >
- <div></div>
- </div>
- </div>
- <div class="chapter_upload_n">
- <input
- class="first"
- v-if="item2.type == 1 || item2.type == 3"
- :placeholder="item2.name"
- />
- <input
- class="first"
- v-if="item2.type == 2"
- :placeholder="item2.name"
- />
- <div class="chapter_upload_ud">
- <div class="chapter_upload_up"></div>
- <div class="chapter_upload_down"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="add_info_box">
- <button class="info_btn" @click="addImg($event)">
- 上传附件
- <input
- type="file"
- accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,video/mp4, video/quicktime, video/x-msvideo,image/*"
- style="display: none"
- @change="beforeUpload($event, null, 2)"
- />
- </button>
- </div>
- <div v-if="raceOver.actiDesign.data.proVisible" class="mask">
- <div class="progressBox">
- <div class="lbox">
- <img
- src="../../../../assets/loading.gif"
- />上传中,请稍后
- </div>
- <el-progress
- :text-inside="true"
- :stroke-width="20"
- :percentage="
- raceOver.actiDesign.data.progress
- ? raceOver.actiDesign.data.progress
- : 0
- "
- style="width: 80%"
- ></el-progress>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <el-dialog
- title="添加富文本"
- :visible.sync="dialogVisible"
- :append-to-body="true"
- width="500px"
- :before-close="handleClose"
- class="dialog_diy"
- >
- <el-form>
- <el-form-item label="文本标题">
- <el-input
- v-model="AttText.title"
- auto-complete="off"
- @input="change1"
- placeholder="请输入文本标题..."
- ></el-input>
- </el-form-item>
- <div>富文本内容</div>
- <editor-bar v-model="AttText.text" @change="change"></editor-bar>
- </el-form>
- <span slot="footer" class="dialog-footer">
- <el-button @click="clearAttText">取 消</el-button>
- <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
- </span>
- </el-dialog>
- <el-dialog
- title="添加链接"
- :visible.sync="dialogVisible1"
- :append-to-body="true"
- width="500px"
- :before-close="handleClose"
- class="dialog_diy lineCss"
- >
- <el-form>
- <el-form-item label="链接" :label-width="formLabelWidth">
- <span>
- <el-input
- placeholder="请输入链接"
- clearable
- v-model="line"
- class="add_input"
- ></el-input>
- </span>
- </el-form-item>
- </el-form>
- <span slot="footer" class="dialog-footer">
- <el-button @click="clearLine">取 消</el-button>
- <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
- </span>
- </el-dialog>
- </div>
- </template>
- <script>
- import EditorBar from "../../../tools/wangEnduit";
- export default {
- components: { EditorBar },
- props: ["raceOverView"],
- data() {
- return {
- chapterData: [],
- formLabelWidth: "100px",
- noneBtnImg: false,
- raceOver: {
- driQuestion: { brief: "", data: [] },
- tarDesign: { brief: "", data: [] },
- actiDesign: { brief: "", data: [] },
- },
- AttText: {},
- task: 0,
- AttTextType: 0,
- AttTextIndex: 0,
- dialogVisible: false,
- dialogVisible1: false,
- line: "",
- lineCount: 0,
- };
- },
- methods: {
- handleClose(done) {
- done();
- },
- change(val) {
- console.log(val);
- },
- jump(t) {
- var a = document.getElementById(t);
- var b = document.getElementsByClassName("right")[0];
- b.scrollTop = a.offsetTop - 30;
- },
- change1(val) {
- console.log(val);
- this.$forceUpdate();
- },
- addImg(e) {
- var el = e.currentTarget;
- el.getElementsByTagName("input")[0].click();
- },
- imgChange(file, fileList, type, jT) {
- if (jT == 0) {
- var _tmp = this.raceOver.driQuestion.data;
- } else if (jT == 1) {
- var _tmp = this.raceOver.tarDesign.data;
- } else {
- var _tmp = this.raceOver.actiDesign.data;
- }
- this.noneBtnImg = _tmp.length >= 1;
- },
- deleteChapterData(e, i, t) {
- e.stopPropagation();
- if (t == 0) {
- this.raceOver.driQuestion.data.splice(i, 1);
- } else if (t == 1) {
- this.raceOver.tarDesign.data.splice(i, 1);
- } else {
- this.raceOver.actiDesign.data.splice(i, 1);
- }
- },
- 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;
- var 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 (
- 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;
- }
- if (jsonType == 0) {
- _this.raceOver.driQuestion.data.progress = 0;
- _this.raceOver.driQuestion.data.proVisible = true;
- } else if (jsonType == 1) {
- _this.raceOver.tarDesign.data.progress = 0;
- _this.raceOver.tarDesign.data.proVisible = true;
- } else {
- _this.raceOver.actiDesign.data.progress = 0;
- _this.raceOver.actiDesign.data.proVisible = true;
- }
- _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) + '%');
- if (jsonType == 0) {
- _this.raceOver.driQuestion.data.progress = parseInt(
- (evt.loaded * 80) / evt.total
- );
- } else if (jsonType == 1) {
- _this.raceOver.tarDesign.data.progress = parseInt(
- (evt.loaded * 80) / evt.total
- );
- } else {
- _this.raceOver.actiDesign.data.progress = parseInt(
- (evt.loaded * 80) / evt.total
- );
- }
- })
- .send(function (err, data) {
- if (jsonType == 0) {
- _this.raceOver.driQuestion.data.progress = 100;
- } else if (jsonType == 1) {
- _this.raceOver.tarDesign.data.progress = 100;
- } else {
- _this.raceOver.actiDesign.data.progress = 100;
- }
- setTimeout(() => {
- if (jsonType == 0) {
- _this.raceOver.driQuestion.data.proVisible = false;
- } else if (jsonType == 1) {
- _this.raceOver.tarDesign.data.proVisible = false;
- } else {
- _this.raceOver.actiDesign.data.proVisible = false;
- }
- _this.$forceUpdate();
- }, 1000);
- if (err) {
- _this.$message.error("上传失败");
- } else {
- if (jsonType == 0) {
- _this.raceOver.driQuestion.data.push({
- name: file.name,
- url: data.Location,
- type: type1,
- });
- _this.imgChange(null, null, type1, jsonType);
- } else if (jsonType == 1) {
- _this.raceOver.tarDesign.data.push({
- name: file.name,
- url: data.Location,
- type: type1,
- });
- _this.imgChange(null, null, type1, jsonType);
- } else {
- _this.raceOver.actiDesign.data.push({
- name: file.name,
- url: data.Location,
- type: type1,
- });
- _this.imgChange(null, null, type1, jsonType);
- }
- console.log(data.Location);
- }
- });
- }
- },
- upRaceOver() {
- this.$emit("upRaceOver", this.raceOver);
- },
- addAttText(i) {
- this.AttText = {
- title: "",
- text: "",
- };
- this.task = i;
- this.AttTextType = 0;
- this.$forceUpdate();
- this.dialogVisible = true;
- },
- clearAttText() {
- this.AttText = {
- title: "",
- text: "",
- };
- this.dialogVisible = false;
- },
- isAddOrUpdateAttText() {
- if (this.AttTextType == 0) {
- this.addAttTextMessage();
- } else {
- this.updateAttText();
- }
- },
- addAttTextMessage() {
- if (this.task == 0) {
- this.raceOver.driQuestion.data.push({
- name: this.AttText.title,
- url: this.AttText.text,
- type: 3,
- });
- this.imgChange(null, null, 3, this.task);
- } else if (this.task == 1) {
- this.raceOver.tarDesign.data.push({
- name: this.AttText.title,
- url: this.AttText.text,
- type: 3,
- });
- this.imgChange(null, null, 3, this.task);
- } else {
- this.raceOver.actiDesign.data.push({
- name: this.AttText.title,
- url: this.AttText.text,
- type: 3,
- });
- this.imgChange(null, null, 3, this.task);
- }
- this.dialogVisible = false;
- this.upRaceOver();
- },
- updateAttText() {
- if (this.task == 0) {
- this.raceOver.driQuestion.data[this.AttTextIndex].name =
- this.AttText.title;
- this.raceOver.driQuestion.data[this.AttTextIndex].url =
- this.AttText.text;
- } else if (this.task == 1) {
- this.raceOver.tarDesign.data[this.AttTextIndex].name =
- this.AttText.title;
- this.raceOver.tarDesign.data[this.AttTextIndex].url = this.AttText.text;
- } else {
- this.raceOver.actiDesign.data[this.AttTextIndex].name =
- this.AttText.title;
- this.raceOver.actiDesign.data[this.AttTextIndex].url =
- this.AttText.text;
- }
- this.dialogVisible = false;
- this.upRaceOver();
- },
- selectAttText(t, i) {
- if (t == 0) {
- this.AttText.title = this.raceOver.driQuestion.data[i].name;
- this.AttText.text = this.raceOver.driQuestion.data[i].url;
- } else if (t == 1) {
- this.AttText.title = this.raceOver.tarDesign.data[i].name;
- this.AttText.text = this.raceOver.tarDesign.data[i].url;
- } else {
- this.AttText.title = this.raceOver.actiDesign.data[i].name;
- this.AttText.text = this.raceOver.actiDesign.data[i].url;
- }
- this.task = t;
- this.AttTextIndex = i;
- this.AttTextType = 1;
- this.dialogVisible = true;
- },
- openLine(i) {
- this.line = "";
- this.task = i;
- this.lineCount = i;
- this.lineType = 0;
- this.$forceUpdate();
- this.dialogVisible1 = true;
- },
- clearLine() {
- this.line = "";
- this.dialogVisible1 = false;
- },
- isAddOrUpdateLine() {
- if (this.lineType == 0) {
- this.addLine();
- } else {
- this.updateLine();
- }
- },
- addLine() {
- if (this.task == 0) {
- this.raceOver.driQuestion.data.push({
- name: "链接",
- url: this.line,
- type: 4,
- });
- this.imgChange(null, null, 4, this.task);
- } else if (this.task == 1) {
- this.raceOver.tarDesign.data.push({
- name: "链接",
- url: this.line,
- type: 4,
- });
- this.imgChange(null, null, 4, this.task);
- } else {
- this.raceOver.actiDesign.data.push({
- name: "链接",
- url: this.line,
- type: 4,
- });
- this.imgChange(null, null, 4, this.task);
- }
- this.dialogVisible1 = false;
- this.upRaceOver();
- },
- updateLine() {
- if (this.task == 0) {
- this.raceOver.driQuestion.data[this.lineCount].url = this.line;
- } else if (this.task == 1) {
- this.raceOver.tarDesign.data[this.lineCount].url = this.line;
- } else {
- this.raceOver.actiDesign.data[this.lineCount].url = this.line;
- }
- this.dialogVisible1 = false;
- this.upRaceOver();
- },
- selectLine(t, i) {
- if (t == 0) {
- this.line = this.raceOver.driQuestion.data[i].url;
- } else if (t == 1) {
- this.line = this.raceOver.tarDesign.data[i].url;
- } else {
- this.line = this.raceOver.actiDesign.data[i].url;
- }
- this.task = t;
- this.lineCount = i;
- this.lineType = 1;
- this.dialogVisible1 = true;
- },
- },
- created() {
- this.raceOver.driQuestion = this.raceOverView.driQuestion;
- this.raceOver.tarDesign = this.raceOverView.tarDesign;
- this.raceOver.actiDesign = this.raceOverView.actiDesign;
- },
- };
- </script>
- <style scoped>
- @media screen and (max-width: 1280px) {
- }
- .dialog_diy >>> .el-dialog__header {
- background: #3c3c3c !important;
- padding: 15px 20px;
- }
- .dialog_diy >>> .el-dialog__title {
- color: #fff;
- }
- .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 {
- padding: 80px 0 0 0;
- margin: 0 25px 0 0;
- width: 20%;
- 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;
- font-size: 14px;
- }
- .steps {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- position: relative;
- width: 210px;
- 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-left: 10px;
- height: 50px;
- cursor: pointer;
- }
- .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: calc(100% - 20%);
- 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;
- }
- .titleTop {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- width: 100%;
- }
- .titleTop > div:nth-child(2) {
- width: 82%;
- margin-left: 20px;
- }
- .editorCss {
- width: 90% !important;
- }
- .basic_box {
- position: relative;
- margin: 0;
- min-height: 0;
- width: 90%;
- }
- .basic_box1 {
- margin: 10px auto;
- position: relative;
- padding: 0 20px 0 20px;
- }
- .add_info_box {
- margin: 20px 0;
- }
- .add_info_box button {
- margin: 0 10px 10px 0;
- }
- .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: 140px;
- overflow-y: auto;
- overflow-x: hidden;
- }
- .chapter_upload {
- height: 50px;
- margin-top: 12px;
- position: relative;
- display: flex;
- align-items: center;
- width: 100%;
- min-height: 50px;
- }
- .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;
- }
- .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;
- }
- .info_btn:hover {
- background-color: #4f7cd5 !important;
- }
- .right_title {
- height: 30px;
- font-size: 1.5em;
- font-weight: bold;
- color: #0f7eff;
- width: 10%;
- min-width: 100px;
- }
- .whiteBg {
- background: #fff;
- border-radius: 10px;
- }
- .lineBox {
- display: flex;
- margin: 0 0 20px 0;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- }
- .lineTitle {
- margin-top: 15px;
- width: 110px;
- }
- .strLine {
- width: 85%;
- margin: 0 auto;
- border-top: 1px solid #e5e5e5;
- margin-top: 20px;
- }
- .stepBg .steps:nth-child(1) ::after,
- .stepBg .steps:nth-child(2) ::after{
- content: "";
- height: 100%;
- background: #eee;
- width: 4px;
- position: absolute;
- left: 15px;
- top: calc(50% + (35px / 2));
- transform: translateY(-50%);
- z-index: 1;
- }
- .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;
- }
- .progressBox .lbox {
- height: 100px;
- font-size: 16px;
- display: flex;
- align-items: center;
- }
- .progressBox .lbox img {
- width: 40px;
- margin-right: 20px;
- }
- .progressBox >>> .el-progress-bar__outer {
- background-color: #d1dfff !important;
- }
- .progressBox .lbox {
- height: 100px;
- font-size: 19px;
- display: flex;
- align-items: center;
- }
- .progressBox .lbox img {
- width: 40px;
- margin-right: 20px;
- }
- .firstTop {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- width: 90%;
- padding: 20px 0 20px 20px;
- }
- .rightNav {
- width: 87%;
- color: #a19f9f;
- }
- </style>
|