fix:编辑面授课上传组件传值,修改组件重叠样式

This commit is contained in:
wyx
2022-12-09 00:33:16 +08:00
parent 4da75211e7
commit 3a6b6976c9
3 changed files with 13 additions and 7 deletions

View File

@@ -24,7 +24,7 @@
<div class="file_img"></div> <div class="file_img"></div>
<div class="file_detail"> <div class="file_detail">
<div class="file_name"> <div class="file_name">
<span style="color: #6f6f6f">{{ item.name }}</span> <span style="color: #6f6f6fwidth:200px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{ item.name }}</span>
</div> </div>
<!-- <div class="file_size">--> <!-- <div class="file_size">-->
<!-- <span style="color: #999ba3">{{ item.size }}</span>--> <!-- <span style="color: #999ba3">{{ item.size }}</span>-->
@@ -167,21 +167,21 @@ function del(i) {
.updataxq { .updataxq {
position: absolute; position: absolute;
right: 2px; right: -62px;
top: -30px; top: -30px;
color: #57c887; color: #57c887;
} }
.updataxq1 { .updataxq1 {
position: absolute; position: absolute;
right: 2px; right: -62px;
top: -30px; top: -30px;
color: #388be1; color: #388be1;
} }
.updataxq2 { .updataxq2 {
position: absolute; position: absolute;
right: 2px; right: -62px;
top: -30px; top: -30px;
color: #ff7474; color: #ff7474;
} }

View File

@@ -667,7 +667,7 @@ export default defineComponent({
console.log("state.auditDescription", state.auditDescription); console.log("state.auditDescription", state.auditDescription);
} }
} }
console.log(item)
state.qdms_inputV1 = item.name; state.qdms_inputV1 = item.name;
state.feng_mian_1 = item.picUrl; state.feng_mian_1 = item.picUrl;
state.qdms_inputV2 = item.targetUser; state.qdms_inputV2 = item.targetUser;
@@ -678,7 +678,13 @@ export default defineComponent({
state.qdms_inputV6 = item.intro; state.qdms_inputV6 = item.intro;
state.member = { value: item.teacherId, name: item.teacher }; state.member = { value: item.teacherId, name: item.teacher };
valueHtml.value = item.outline; valueHtml.value = item.outline;
state.attach = item.attach; let arrss = item.attach.split(',')
let str =''
for(let i=0;i<arrss.length;i++){
i == arrss.length -1 ? str += arrss[i].slice(arrss[i].lastIndexOf('/')+1) : str += arrss[i].slice(arrss[i].lastIndexOf('/')+1) + ','
}
console.log(str)
state.attach = str;
}; };
const handleTagChange = () => { const handleTagChange = () => {

View File

@@ -1289,7 +1289,7 @@ import * as api from "../../api/index1";
import { editRoutered } from "../../api/indexLearningPath"; import { editRoutered } from "../../api/indexLearningPath";
import { codeUrl } from "../../api/method"; import { codeUrl } from "../../api/method";
import TwoDimensionalCode from "../../components/TwoDimensionalCode.vue"; import TwoDimensionalCode from "../../components/TwoDimensionalCode.vue";
import * as student from "@/api/student"; // import * as student from "@/api/student";
export default { export default {
name: "LevelAdd", name: "LevelAdd",
components: { components: {