|
@@ -2085,7 +2085,7 @@
|
|
</div>
|
|
</div>
|
|
</div> -->
|
|
</div> -->
|
|
</div>
|
|
</div>
|
|
- <!-- <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(70) != -1 }"
|
|
|
|
|
|
+ <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(70) != -1 }"
|
|
@click="addTools(70, itemTaskIndex, toolIndex)">
|
|
@click="addTools(70, itemTaskIndex, toolIndex)">
|
|
<div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 70, toolIndex)">
|
|
<div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 70, toolIndex)">
|
|
<img src="../../assets/icon/thirdToolList/englishVoice.png" alt />
|
|
<img src="../../assets/icon/thirdToolList/englishVoice.png" alt />
|
|
@@ -2094,7 +2094,7 @@
|
|
<div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
|
|
<div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
|
|
<div class="isCTool" v-if="itemTool.tool.indexOf(70) != -1"><img
|
|
<div class="isCTool" v-if="itemTool.tool.indexOf(70) != -1"><img
|
|
src="../../assets/icon/new/isToolC.png" alt="" /></div>
|
|
src="../../assets/icon/new/isToolC.png" alt="" /></div>
|
|
- </div> -->
|
|
|
|
|
|
+ </div>
|
|
<!-- <div class="tool">
|
|
<!-- <div class="tool">
|
|
<div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
|
|
<div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
|
|
<img src="../../assets/icon/secondToolList/translation.png" alt />
|
|
<img src="../../assets/icon/secondToolList/translation.png" alt />
|
|
@@ -2490,9 +2490,9 @@
|
|
<div class="pjCss" :style="{width:itemTask.isEvaFold?'calc(100% - 55%)':'calc(100% - 120px)'}">
|
|
<div class="pjCss" :style="{width:itemTask.isEvaFold?'calc(100% - 55%)':'calc(100% - 120px)'}">
|
|
<div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
|
|
<div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
|
|
<div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
|
|
<div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
|
|
- <span>评价名称:</span>
|
|
|
|
- <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价名称'" placement="top" popper-class="text_tooltip2"> -->
|
|
|
|
- <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
|
|
|
|
|
|
+ <span>评价维度:</span>
|
|
|
|
+ <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
|
|
|
|
+ <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价维度" />
|
|
<!-- </el-tooltip> -->
|
|
<!-- </el-tooltip> -->
|
|
<!-- <span>评星等级:</span>
|
|
<!-- <span>评星等级:</span>
|
|
<el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
|
|
<el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
|
|
@@ -2501,14 +2501,14 @@
|
|
deletEList(unitIndex, itemTaskIndex, eIndex)
|
|
deletEList(unitIndex, itemTaskIndex, eIndex)
|
|
"></div>
|
|
"></div>
|
|
<div class="elist_inptu_text">
|
|
<div class="elist_inptu_text">
|
|
- <span>评价描述:</span>
|
|
|
|
- <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写评价描述'" placement="top" popper-class="text_tooltip2"> -->
|
|
|
|
- <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
|
|
|
|
|
|
+ <span>维度描述:</span>
|
|
|
|
+ <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
|
|
|
|
+ <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写维度描述" />
|
|
<!-- </el-tooltip> -->
|
|
<!-- </el-tooltip> -->
|
|
</div>
|
|
</div>
|
|
<div class="elist_inptu_text" v-if="evalua">
|
|
<div class="elist_inptu_text" v-if="evalua">
|
|
<span>目标:</span>
|
|
<span>目标:</span>
|
|
- <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
|
|
|
|
|
|
+ <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写维度描述" /> -->
|
|
<!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
|
|
<!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
|
|
@change="forceUpdate()">
|
|
@change="forceUpdate()">
|
|
<el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
|
|
<el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
|
|
@@ -2528,11 +2528,16 @@
|
|
<div>添加</div>
|
|
<div>添加</div>
|
|
</div> -->
|
|
</div> -->
|
|
<div class="eva_btn_box">
|
|
<div class="eva_btn_box">
|
|
- <button class="c_pub_button_add pub_btn_eval_img" @click="addEList(unitIndex, itemTaskIndex)">
|
|
|
|
|
|
+ <div class="eva_btn_left_box">
|
|
|
|
+ <button class="c_pub_button_add pub_btn_eval_img" @click="addEList(unitIndex, itemTaskIndex)">
|
|
添加
|
|
添加
|
|
- </button>
|
|
|
|
- <button class="c_pub_button_add pub_btn_eval_source_img" @click="openEList(unitIndex, itemTaskIndex)">
|
|
|
|
|
|
+ </button>
|
|
|
|
+ <button class="c_pub_button_add pub_btn_eval_source_img" @click="openEList(unitIndex, itemTaskIndex)">
|
|
资源
|
|
资源
|
|
|
|
+ </button>
|
|
|
|
+ </div>
|
|
|
|
+ <button class="c_pub_button_add" @click="addCET(unitIndex, itemTaskIndex)" v-if="itemTask.eList && itemTask.eList.length">
|
|
|
|
+ 添加资源模板
|
|
</button>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -3516,7 +3521,7 @@
|
|
<div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
|
|
<div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
|
|
<div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
|
|
<div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
|
|
<span style="min-width: 100px; text-align: right">个人评价指标:</span>
|
|
<span style="min-width: 100px; text-align: right">个人评价指标:</span>
|
|
- <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
|
|
|
|
|
|
+ <input type="input" v-model="eItem.value" placeholder="填写评价维度" />
|
|
<div class="remove" @click="deletRateList(eIndex)"></div>
|
|
<div class="remove" @click="deletRateList(eIndex)"></div>
|
|
<div style="width: 100%; display: flex">
|
|
<div style="width: 100%; display: flex">
|
|
<span style="min-width: 100px; text-align: right">评星等级:</span>
|
|
<span style="min-width: 100px; text-align: right">评星等级:</span>
|
|
@@ -3524,7 +3529,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="elist_inptu_text" style="align-items: flex-start">
|
|
<div class="elist_inptu_text" style="align-items: flex-start">
|
|
<span style="min-width: 100px; text-align: right">描述:</span>
|
|
<span style="min-width: 100px; text-align: right">描述:</span>
|
|
- <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
|
|
|
|
|
|
+ <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写维度描述"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -3907,8 +3912,56 @@
|
|
<el-button type="primary" @click="updateChange">确定</el-button>
|
|
<el-button type="primary" @click="updateChange">确定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
- <evaBox :oid='oid' :org="org" :dialogVisibleEva.sync="evaBoxDialog" @updateEvaJson="updateEvaJson"></evaBox>
|
|
|
|
- <EnglishVoice :oid='oid' :org="org" :EnglishVoiceDialog.sync="EnglishVoiceDialog"></EnglishVoice>
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="添加资源模板"
|
|
|
|
+ :visible.sync="cetBoxDialog"
|
|
|
|
+ :append-to-body="true"
|
|
|
|
+ width="400px"
|
|
|
|
+ :before-close="handleClose"
|
|
|
|
+ class="dialog_diy"
|
|
|
|
+ >
|
|
|
|
+ <div class="addTypeChoose" style="justify-content: center">
|
|
|
|
+ <div style="min-width: 100px">模板名称:</div>
|
|
|
|
+ <el-input v-model="templateName" style="width: 200px"></el-input>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="addTypeBox">
|
|
|
|
+ <div class="addTypeChoose">
|
|
|
|
+ <div style="min-width: 100px">选择一级分类:</div>
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="setTypeJson.one"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ @change="getTwoType(setTypeJson.one)"
|
|
|
|
+ style="width: 200px;"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="(item, index) in oneJson"
|
|
|
|
+ :key="index"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="addTypeChoose" v-if="setTypeJson.one != ''">
|
|
|
|
+ <div style="min-width: 100px">选择二级分类:</div>
|
|
|
|
+ <el-select v-model="setTypeJson.two" placeholder="请选择" style="width: 200px;">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="(item1, index1) in twoJson"
|
|
|
|
+ :key="index1"
|
|
|
|
+ :label="item1.name"
|
|
|
|
+ :value="item1.id"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button type="primary" @click="addCETemplate()">确 认</el-button>
|
|
|
|
+ <el-button @click="close()">关 闭</el-button>
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
|
|
+ <evaBox :userid="userid" :oid='oid' :org="org" :dialogVisibleEva.sync="evaBoxDialog" @updateEvaJson="updateEvaJson"></evaBox>
|
|
|
|
+ <EnglishVoice :oid='oid' :org="org" :EnglishVoiceDialog.sync="EnglishVoiceDialog" :englishVoiceJson="englishVoiceJson" @setEnglishVoiceJson="setEnglishVoiceJson"></EnglishVoice>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -4126,9 +4179,12 @@ export default {
|
|
AttTextIndex: 0,
|
|
AttTextIndex: 0,
|
|
cTemplate: "",
|
|
cTemplate: "",
|
|
CourseType: [],
|
|
CourseType: [],
|
|
|
|
+ CourseType1: [],
|
|
CourseType2: [],
|
|
CourseType2: [],
|
|
CourseTypeJson: {},
|
|
CourseTypeJson: {},
|
|
|
|
+ CourseTypeJson1: {},
|
|
courseTypeId: [],
|
|
courseTypeId: [],
|
|
|
|
+ courseTypeId1: [],
|
|
courseTypeSon: [],
|
|
courseTypeSon: [],
|
|
clearArray: [],
|
|
clearArray: [],
|
|
pTypeCheck: [],
|
|
pTypeCheck: [],
|
|
@@ -4214,6 +4270,17 @@ export default {
|
|
evatIndex: '',
|
|
evatIndex: '',
|
|
evaBoxDialog: false,
|
|
evaBoxDialog: false,
|
|
EnglishVoiceDialog: false,
|
|
EnglishVoiceDialog: false,
|
|
|
|
+ englishVoiceJson:{},
|
|
|
|
+ cetIndex: '',
|
|
|
|
+ cettIndex: '',
|
|
|
|
+ cetBoxDialog: false,
|
|
|
|
+ templateName: '',
|
|
|
|
+ setTypeJson: {
|
|
|
|
+ one: "",
|
|
|
|
+ two: "",
|
|
|
|
+ },
|
|
|
|
+ twoJson: [],
|
|
|
|
+ oneJson: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
directives: {
|
|
directives: {
|
|
@@ -4484,6 +4551,12 @@ export default {
|
|
return "";
|
|
return "";
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ close(){
|
|
|
|
+ this.cetIndex = '';
|
|
|
|
+ this.cettIndex = '';
|
|
|
|
+ this.templateName = '';
|
|
|
|
+ this.cetBoxDialog = false;
|
|
|
|
+ },
|
|
openAI() {
|
|
openAI() {
|
|
top.postMessage({ tools: "64" }, "*");
|
|
top.postMessage({ tools: "64" }, "*");
|
|
},
|
|
},
|
|
@@ -7700,10 +7773,36 @@ export default {
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
this.englishDialogVisible = true;
|
|
this.englishDialogVisible = true;
|
|
}else if(i == 70){
|
|
}else if(i == 70){
|
|
|
|
+ this.englishVoiceJson = {};
|
|
|
|
+ this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
|
+ itemTaskIndex
|
|
|
|
+ ].toolChoose[toolIndex].englishVoiceJson
|
|
|
|
+ ? JSON.parse(
|
|
|
|
+ JSON.stringify(
|
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
|
+ itemTaskIndex
|
|
|
|
+ ].toolChoose[toolIndex].englishVoiceJson
|
|
|
|
+ )
|
|
|
|
+ )
|
|
|
|
+ : {
|
|
|
|
+ title:'',
|
|
|
|
+ detail:'',
|
|
|
|
+ array:[]
|
|
|
|
+ };
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
this.EnglishVoiceDialog = true;
|
|
this.EnglishVoiceDialog = true;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ setEnglishVoiceJson(val){
|
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(JSON.stringify(val))
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
+ if (
|
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
|
|
|
|
+ .toolChoose[this.toolIndex].tool != 70
|
|
|
|
+ ) {
|
|
|
|
+ this.addTools(70, this.taskCount, this.toolIndex);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
chapAddTools(i) {
|
|
chapAddTools(i) {
|
|
if (this.chapTools[0].tools.length == 0) {
|
|
if (this.chapTools[0].tools.length == 0) {
|
|
this.chapTools[0].tools.push(i);
|
|
this.chapTools[0].tools.push(i);
|
|
@@ -7826,13 +7925,13 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(i == 70){
|
|
if(i == 70){
|
|
- // if (
|
|
|
|
- // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
|
|
|
|
- // .toolChoose[toolIndex].englishList
|
|
|
|
- // ) {
|
|
|
|
|
|
+ if (
|
|
|
|
+ !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
|
|
|
|
+ .toolChoose[toolIndex].englishVoiceJson
|
|
|
|
+ ) {
|
|
this.openTools(itemTaskIndex, 70, toolIndex);
|
|
this.openTools(itemTaskIndex, 70, toolIndex);
|
|
return;
|
|
return;
|
|
- // }
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
// if (i == 48) {
|
|
// if (i == 48) {
|
|
// if (
|
|
// if (
|
|
@@ -9361,6 +9460,77 @@ export default {
|
|
this.evatIndex = tIndex
|
|
this.evatIndex = tIndex
|
|
this.evaBoxDialog = true
|
|
this.evaBoxDialog = true
|
|
},
|
|
},
|
|
|
|
+ addCET(index,tIndex){
|
|
|
|
+ this.cetIndex = index;
|
|
|
|
+ this.cettIndex = tIndex;
|
|
|
|
+ this.selectAllType1();
|
|
|
|
+ },
|
|
|
|
+ addCETemplate(){
|
|
|
|
+ var array = this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex].eList;
|
|
|
|
+ let params = [
|
|
|
|
+ {
|
|
|
|
+ uid: this.userid,
|
|
|
|
+ n: this.templateName,
|
|
|
|
+ json: JSON.stringify(array),
|
|
|
|
+ t: 1,
|
|
|
|
+ oid: this.oid,
|
|
|
|
+ },
|
|
|
|
+ ];
|
|
|
|
+ this.ajax
|
|
|
|
+ .post(this.$store.state.api + "addCETShare", params)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.addTypeByCET(res.data[0][0].id);
|
|
|
|
+ })
|
|
|
|
+ .catch((err) => {
|
|
|
|
+ this.$message.error("网络不佳");
|
|
|
|
+ console.error(err);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ addTypeByCET(id) {
|
|
|
|
+ if (this.setTypeJson.two == "") {
|
|
|
|
+ this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ let params = {
|
|
|
|
+ cid: id,
|
|
|
|
+ };
|
|
|
|
+ this.ajax
|
|
|
|
+ .get(this.$store.state.api + "deleteCETLabel", params)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ for (var i = 0; i < 2; i++) {
|
|
|
|
+ let tid = "";
|
|
|
|
+ if (i == 0) {
|
|
|
|
+ tid = this.setTypeJson.one;
|
|
|
|
+ } else {
|
|
|
|
+ tid = this.setTypeJson.two;
|
|
|
|
+ }
|
|
|
|
+ let params = [
|
|
|
|
+ {
|
|
|
|
+ cid: id,
|
|
|
|
+ tid: tid,
|
|
|
|
+ uid: this.userid,
|
|
|
|
+ },
|
|
|
|
+ ];
|
|
|
|
+ this.ajax
|
|
|
|
+ .post(this.$store.state.api + "addCETLabel", params)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: "添加成功",
|
|
|
|
+ type: "success",
|
|
|
|
+ });
|
|
|
|
+ this.close();
|
|
|
|
+ })
|
|
|
|
+ .catch((err) => {
|
|
|
|
+ this.$message.error("网络不佳");
|
|
|
|
+ console.error(err);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch((err) => {
|
|
|
|
+ this.$message.error("网络不佳");
|
|
|
|
+ console.error(err);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
updateEvaJson(array){
|
|
updateEvaJson(array){
|
|
this.unitJson[this.evaIndex].chapterInfo[0].taskJson[this.evatIndex].eList = array
|
|
this.unitJson[this.evaIndex].chapterInfo[0].taskJson[this.evatIndex].eList = array
|
|
},
|
|
},
|
|
@@ -10338,7 +10508,78 @@ export default {
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ getTwoType(id) {
|
|
|
|
+ this.twoJson = [];
|
|
|
|
+ var array = this.CourseTypeJson1[
|
|
|
|
+ "3f8eed32-aba9-11ee-b534-005056b86db5"
|
|
|
|
+ ].filter((e) => {
|
|
|
|
+ return e.ppid == id;
|
|
|
|
+ });
|
|
|
|
+ this.twoJson = array;
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
+ },
|
|
|
|
+ ctype(){
|
|
|
|
+ this.oneJson = this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
|
|
|
|
+ },
|
|
|
|
+ selectAllType1() {
|
|
|
|
+ this.CourseType1 = [];
|
|
|
|
+ this.CourseTypeJson1 = {};
|
|
|
|
+ this.courseTypeId1 = {};
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
+ let params = {
|
|
|
|
+ org: this.org && this.org != "" ? this.org : "",
|
|
|
|
+ oid: this.oid && this.oid != "" ? this.oid : "",
|
|
|
|
+ };
|
|
|
|
+ this.ajax
|
|
|
|
+ .get(this.$store.state.api + "selectAllEvaType", params)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.CourseType1 = res.data;
|
|
|
|
+ for (var i = 0; i < res.data[0].length; i++) {
|
|
|
|
+ if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
|
|
|
|
+ res.data[0][i].name = "一级分类";
|
|
|
|
+ } else if (
|
|
|
|
+ res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
|
|
|
|
+ ) {
|
|
|
|
+ res.data[0][i].name = "二级分类";
|
|
|
|
+ }
|
|
|
|
+ if (!this.cid) {
|
|
|
|
+ this.courseTypeId1[res.data[0][i].id] = [];
|
|
|
|
+ }
|
|
|
|
+ if (!this.CourseTypeJson1[res.data[0][i].id]) {
|
|
|
|
+ this.CourseTypeJson1[res.data[0][i].id] = [];
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 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.CourseTypeJson1[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.CourseTypeJson1[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.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // }
|
|
|
|
+ }
|
|
|
|
+ this.ctype();
|
|
|
|
+ this.cetBoxDialog = true;
|
|
|
|
+ })
|
|
|
|
+ .catch((err) => {
|
|
|
|
+ console.error(err);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
clearTimeout(this.timer);
|
|
clearTimeout(this.timer);
|
|
@@ -14443,5 +14684,40 @@ ol {
|
|
.eva_btn_box{
|
|
.eva_btn_box{
|
|
margin: 20px 0px 0 0;
|
|
margin: 20px 0px 0 0;
|
|
display: flex;
|
|
display: flex;
|
|
|
|
+ flex-direction: row;
|
|
|
|
+ flex-wrap: nowrap;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ width: 100%;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.eva_btn_left_box{
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: row;
|
|
|
|
+ flex-wrap: nowrap;
|
|
|
|
+ align-items: center;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.addTypeChoose {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: row;
|
|
|
|
+ flex-wrap: nowrap;
|
|
|
|
+ align-items: center;
|
|
|
|
+ margin: 15px 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.addTypeBox {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ flex-wrap: nowrap;
|
|
|
|
+ align-items: center;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.addTypeChoose {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: row;
|
|
|
|
+ flex-wrap: nowrap;
|
|
|
|
+ align-items: center;
|
|
|
|
+ margin: 15px 0;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|