mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
feat:添加讨论和添加活动接口对接
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
<div class="co1">{{ value2.length }}/100</div>
|
||||
</div>
|
||||
<div class="btn">
|
||||
<button class="btn1">取消</button>
|
||||
<button class="btn1" @click="closeModal">取消</button>
|
||||
<button class="btn2" @click="editChapter">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -504,7 +504,7 @@
|
||||
import { reactive, toRefs, onMounted, onUnmounted } from "vue";
|
||||
import AddStu from "../../components/drawers/AddLevelAddStu";
|
||||
import ImpStu from "../../components/drawers/AddLevelImportStu";
|
||||
import * as api from "../../api/level";
|
||||
import * as api from "../../api/indexLevel";
|
||||
import { message } from "ant-design-vue";
|
||||
export default {
|
||||
name: "LevelAddDetail",
|
||||
@@ -813,6 +813,7 @@ export default {
|
||||
|
||||
//新建或编辑关卡
|
||||
const editChapter = () => {
|
||||
if(!state.value1) return message.warning("请输入关卡名称");
|
||||
let obj = {
|
||||
name: state.value1,
|
||||
remark: state.value2,
|
||||
@@ -824,6 +825,9 @@ export default {
|
||||
setTimeout(() => {
|
||||
console.log("创建成功", res);
|
||||
message.success("创建成功");
|
||||
state.value1 = "";
|
||||
state.value2 = "";
|
||||
state.modal = false;
|
||||
// state.createLoading = false;
|
||||
//state.currentPage = 1;
|
||||
// getLearnPath();
|
||||
@@ -838,14 +842,14 @@ export default {
|
||||
};
|
||||
const closeDrawer = () => {
|
||||
state.visible = false;
|
||||
state.value1 = "";
|
||||
state.value2 = "";
|
||||
};
|
||||
const showModal = () => {
|
||||
state.modal = true;
|
||||
};
|
||||
const closeModal = () => {
|
||||
state.modal = false;
|
||||
state.value1 = "";
|
||||
state.value2 = "";
|
||||
};
|
||||
const afterVisibleChange = (bool) => {
|
||||
console.log("visible", bool);
|
||||
@@ -1317,9 +1321,9 @@ export default {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #387df7;
|
||||
border: 1px solid #409EFF;
|
||||
font-size: 14px;
|
||||
color: #387df7;
|
||||
color: #409EFF;
|
||||
cursor: pointer;
|
||||
background: #ffffff;
|
||||
margin-right: 20px;
|
||||
@@ -1332,7 +1336,7 @@ export default {
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
background: #388be1;
|
||||
background: #409EFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user