feat:修改面授课

This commit is contained in:
lixg
2023-03-02 20:50:35 +08:00
parent af93a4b9c9
commit 893cda5921
3 changed files with 13 additions and 4 deletions

View File

@@ -4456,6 +4456,7 @@ export default defineComponent({
state.lookCourseModal = true; state.lookCourseModal = true;
item.attach = item.attach == "" ? [] : item.attach.split(","); item.attach = item.attach == "" ? [] : item.attach.split(",");
state.faceDetailObj = item; state.faceDetailObj = item;
console.log("获取查看信息", item);
}; };
// const handleTea = async () => { // const handleTea = async () => {
// console.log("item22224444"); // console.log("item22224444");

View File

@@ -405,6 +405,7 @@ export default defineComponent({
detail({ detail({
offcourseId: Number(props.detail.id), offcourseId: Number(props.detail.id),
}).then((res) => { }).then((res) => {
console.log("res", res);
if (res.data.code === 200) { if (res.data.code === 200) {
let item = res.data.data; let item = res.data.data;
if (item.jobTypeIds) { if (item.jobTypeIds) {
@@ -428,13 +429,16 @@ export default defineComponent({
); );
let arrObj = []; let arrObj = [];
arrObj = orgSelectIds.map((item, index) => { arrObj = orgSelectIds.map((item, index) => {
return { value: item, lebel: orgSelectNames[index] }; return { value: item, label: orgSelectNames[index] };
}); });
console.log("arrObj-------------", arrObj); console.log("arrObj-------------", arrObj);
state.orgSelect = arrObj; state.orgSelect = arrObj;
} }
} }
}); });
},
{
deep: true,
} }
); );

View File

@@ -457,7 +457,11 @@
<div class="btn btn5" @click="noEditClose"> <div class="btn btn5" @click="noEditClose">
<div class="btnText">取消</div> <div class="btnText">取消</div>
</div> </div>
<a-button class="btn btn6" @click="handlePush" :loading="validated===1"> <a-button
class="btn btn6"
@click="handlePush"
:loading="validated === 1"
>
<div class="btnText">保存</div> <div class="btnText">保存</div>
</a-button> </a-button>
</div> </div>
@@ -847,9 +851,9 @@ export default defineComponent({
orgSelectNames += item.label + ","; orgSelectNames += item.label + ",";
}); });
} }
console.log("orgSelectIds&orgSelectNames2", orgSelectIds, orgSelectNames);
orgSelectIds = orgSelectIds.slice(0, orgSelectIds.length - 1); orgSelectIds = orgSelectIds.slice(0, orgSelectIds.length - 1);
orgSelectNames = orgSelectNames.slice(0, orgSelectNames.length - 1); orgSelectNames = orgSelectNames.slice(0, orgSelectNames.length - 1);
console.log("orgSelectIds&orgSelectNames2", orgSelectIds, orgSelectNames);
let selectJobId = ""; let selectJobId = "";
if (state.selectJobId.length) { if (state.selectJobId.length) {
@@ -1027,7 +1031,7 @@ export default defineComponent({
); );
let arrObj = []; let arrObj = [];
arrObj = orgSelectIds.map((item, index) => { arrObj = orgSelectIds.map((item, index) => {
return { value: item, lebel: orgSelectNames[index] }; return { value: item, label: orgSelectNames[index] };
}); });
console.log("arrObj-------------", arrObj); console.log("arrObj-------------", arrObj);
state.orgSelect = arrObj; state.orgSelect = arrObj;