mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
-- 选择面授课回显名称
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
placement="right" @after-visible-change="afterVisibleChange">
|
||||
<div class="drawerMain">
|
||||
<div class="header">
|
||||
|
||||
|
||||
<div v-if="edit" class="headerTitle">编辑面授</div>
|
||||
<div v-else class="headerTitle">添加面授</div>
|
||||
<img style="width: 29px; height: 29px; cursor: pointer" src="../../assets/images/basicinfo/close.png"
|
||||
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-input v-model:value="courseName" style="width: 384px; height: 32px" placeholder="请输入名称"
|
||||
:maxlength="50"/>
|
||||
:maxlength="50"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item">
|
||||
@@ -32,7 +32,7 @@
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<button class="xkbtn" @click="showDrawerSelFacet">
|
||||
{{ chooseCourse == null ? "选择" : "重选" }}面授课
|
||||
{{ chooseCourseName ? chooseCourseName : "选择面授课" }}
|
||||
</button>
|
||||
<div v-if="chooseCourse">
|
||||
<a-tag closable color="processing" @close="logC">
|
||||
@@ -43,7 +43,8 @@
|
||||
</div>
|
||||
<!-- 选择面授侧弹窗 -->
|
||||
<div>
|
||||
<sel-facet v-model:selfacetVisible="selfacetvisible" v-model:chooseCourse="chooseCourse" v-model:chooseCourseName="chooseCourseName"/>
|
||||
<sel-facet v-model:selfacetVisible="selfacetvisible" v-model:chooseCourse="chooseCourse"
|
||||
v-model:chooseCourseName="chooseCourseName"/>
|
||||
</div>
|
||||
<!-- 选择面授侧弹窗 -->
|
||||
</div>
|
||||
@@ -52,7 +53,8 @@
|
||||
<span style="margin-right: 3px">面授说明:</span>
|
||||
</div>
|
||||
<div class="textarea">
|
||||
<a-textarea v-model:value="description" placeholder="请输入说明" allow-clear show-count :maxlength="200" :rows="6"/>
|
||||
<a-textarea v-model:value="description" placeholder="请输入说明" allow-clear show-count :maxlength="200"
|
||||
:rows="6"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item">
|
||||
@@ -63,8 +65,8 @@
|
||||
<span style="margin-right: 3px">授课教师:</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<!-- <a-auto-complete placeholder="选择老师" :value="memberValue.label" style="width: 364px"-->
|
||||
<!-- :options="options" @change="handleChange2" @search="handleSearch"></a-auto-complete>-->
|
||||
<!-- <a-auto-complete placeholder="选择老师" :value="memberValue.label" style="width: 364px"-->
|
||||
<!-- :options="options" @change="handleChange2" @search="handleSearch"></a-auto-complete>-->
|
||||
<ProjectManager v-model:value="memberValue.value" v-model:name="memberValue.label"></ProjectManager>
|
||||
</div>
|
||||
</div>
|
||||
@@ -105,7 +107,7 @@
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-input v-model:value="address" style="width: 384px; height: 32px" placeholder="请输入上课地址"
|
||||
:maxlength="100"/>
|
||||
:maxlength="100"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item2">
|
||||
@@ -350,7 +352,7 @@ export default {
|
||||
setup(props, ctx) {
|
||||
const options = ref([]);
|
||||
const state = reactive({
|
||||
loading:false,
|
||||
loading: false,
|
||||
selfacetvisible: false,
|
||||
addhomeworkvisible: false,
|
||||
addtestvisible: false,
|
||||
@@ -533,22 +535,22 @@ export default {
|
||||
offcourseId: state.chooseCourse,
|
||||
offcoursePlanId: props.EditFaceId > 0 ? props.EditFaceId : 0,
|
||||
testId: state.EditTestId,
|
||||
duration:state.duration,
|
||||
duration: state.duration,
|
||||
};
|
||||
console.log("obj============", obj, "6" + "9");
|
||||
console.log("222222222");
|
||||
|
||||
editPlan(obj).then(async (res) => {
|
||||
message.destroy();
|
||||
message.success(`添加成功`);
|
||||
await updateTask(res);
|
||||
ctx.emit("changeData", false);
|
||||
closeDrawer();
|
||||
}).catch((e) => {
|
||||
console.log(e)
|
||||
message.destroy();
|
||||
message.error(`添加失败`);
|
||||
});
|
||||
message.destroy();
|
||||
message.success(`添加成功`);
|
||||
await updateTask(res);
|
||||
ctx.emit("changeData", false);
|
||||
closeDrawer();
|
||||
}).catch((e) => {
|
||||
console.log(e)
|
||||
message.destroy();
|
||||
message.error(`添加失败`);
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
@@ -796,6 +798,7 @@ export default {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 32px;
|
||||
|
||||
.textarea {
|
||||
width: 423px;
|
||||
|
||||
@@ -817,6 +820,7 @@ export default {
|
||||
border-radius: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.signbox {
|
||||
width: 120px;
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user