mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2022-11-04 22:45:31
|
* @Date: 2022-11-04 22:45:31
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2022-11-30 10:39:27
|
* @LastEditTime: 2022-12-08 20:20:26
|
||||||
* @FilePath: /fe-manage/src/api/index1.js
|
* @FilePath: /fe-manage/src/api/index1.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
@@ -80,6 +80,9 @@ export const delStudent = (obj) =>
|
|||||||
// 获取学员路径图进度明细
|
// 获取学员路径图进度明细
|
||||||
export const stuProgress = (obj) =>
|
export const stuProgress = (obj) =>
|
||||||
http.post("/admin/router/studentProcess", obj);
|
http.post("/admin/router/studentProcess", obj);
|
||||||
|
//编辑学习路径基本信息
|
||||||
|
export const editLearnInfo = (obj) => http.post('/admin/router/editInfo', obj)
|
||||||
|
|
||||||
|
|
||||||
//项目基础信息-----------------------------------
|
//项目基础信息-----------------------------------
|
||||||
//项目积分榜单
|
//项目积分榜单
|
||||||
|
|||||||
@@ -4029,7 +4029,7 @@ export default defineComponent({
|
|||||||
number: "studentId",
|
number: "studentId",
|
||||||
department: "deptName",
|
department: "deptName",
|
||||||
postion: "jobName",
|
postion: "jobName",
|
||||||
band: "userAutograph",
|
band: "bandDesc",
|
||||||
status: "applyStatus",
|
status: "applyStatus",
|
||||||
join: "source",
|
join: "source",
|
||||||
signstatus: "signStatus",
|
signstatus: "signStatus",
|
||||||
|
|||||||
@@ -690,7 +690,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-show="twobtnn" class="twobtn">
|
<div v-show="twobtnn" class="twobtn">
|
||||||
<div class="btnone" @click="closebtn">取消</div>
|
<div class="btnone" @click="closebtn">取消</div>
|
||||||
<div class="btntwo" @click="closebtn">确定</div>
|
<div class="btntwo" @click="editLearnInfo">确定</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="onemain clearfix">
|
<div class="onemain clearfix">
|
||||||
@@ -720,6 +720,7 @@
|
|||||||
:controls="false"
|
:controls="false"
|
||||||
:autofocus="true"
|
:autofocus="true"
|
||||||
:min="0"
|
:min="0"
|
||||||
|
:precision="0"
|
||||||
/>
|
/>
|
||||||
<span>关-第</span
|
<span>关-第</span
|
||||||
><span style="color: #4ea6ff" v-show="number">{{
|
><span style="color: #4ea6ff" v-show="number">{{
|
||||||
@@ -731,11 +732,17 @@
|
|||||||
:controls="false"
|
:controls="false"
|
||||||
:autofocus="true"
|
:autofocus="true"
|
||||||
:min="0"
|
:min="0"
|
||||||
|
:precision="0"
|
||||||
/>
|
/>
|
||||||
<span>关内容</span>
|
<span>关内容</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="checkcon" style="margin-top: 20px">
|
<div class="checkcon" style="margin-top: 20px">
|
||||||
|
<a-checkbox
|
||||||
|
class="in"
|
||||||
|
:disabled="number"
|
||||||
|
v-model:checked="studySelect"
|
||||||
|
></a-checkbox>
|
||||||
<!-- <input
|
<!-- <input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
name="cb1"
|
name="cb1"
|
||||||
@@ -756,6 +763,7 @@
|
|||||||
:controls="false"
|
:controls="false"
|
||||||
:autofocus="true"
|
:autofocus="true"
|
||||||
:min="0"
|
:min="0"
|
||||||
|
:precision="0"
|
||||||
/>
|
/>
|
||||||
<span>关-第</span
|
<span>关-第</span
|
||||||
><span style="color: #4ea6ff" v-show="number">{{
|
><span style="color: #4ea6ff" v-show="number">{{
|
||||||
@@ -767,6 +775,7 @@
|
|||||||
:controls="false"
|
:controls="false"
|
||||||
:autofocus="true"
|
:autofocus="true"
|
||||||
:min="0"
|
:min="0"
|
||||||
|
:precision="0"
|
||||||
/>
|
/>
|
||||||
<span>关内容</span>
|
<span>关内容</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -1451,6 +1460,13 @@ export default {
|
|||||||
|
|
||||||
codevisible: false, //二维码是否显示
|
codevisible: false, //二维码是否显示
|
||||||
codeInfo: null, //二维码内容
|
codeInfo: null, //二维码内容
|
||||||
|
|
||||||
|
previewSelect: 0,
|
||||||
|
studySelect: 0,
|
||||||
|
previewStartNum: 0,
|
||||||
|
previewEndNum: 0,
|
||||||
|
studyStartNum: 0,
|
||||||
|
studyEndNum: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
const levelList = reactive({
|
const levelList = reactive({
|
||||||
@@ -1483,11 +1499,6 @@ export default {
|
|||||||
name: "关卡二xx",
|
name: "关卡二xx",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
previewStartNum: 0,
|
|
||||||
previewEndNum: 0,
|
|
||||||
studyStartNum: 0,
|
|
||||||
studyEndNum: 0,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const tableDataFunc = () => {
|
const tableDataFunc = () => {
|
||||||
@@ -1649,6 +1660,7 @@ export default {
|
|||||||
state.twobtn = true;
|
state.twobtn = true;
|
||||||
state.number = true;
|
state.number = true;
|
||||||
state.inputbox = false;
|
state.inputbox = false;
|
||||||
|
myGetRouterDetail();
|
||||||
};
|
};
|
||||||
const showCopyModal = () => {
|
const showCopyModal = () => {
|
||||||
state.copyModal = true;
|
state.copyModal = true;
|
||||||
@@ -2039,6 +2051,27 @@ export default {
|
|||||||
name: data[i].name,
|
name: data[i].name,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//获取设置信息
|
||||||
|
if (res.data.code === 200) {
|
||||||
|
//previewSetting studySetting
|
||||||
|
state.previewSelect = res.data.data.routerInfo.enablePreview;
|
||||||
|
state.studySelect = res.data.data.routerInfo.enableStudy;
|
||||||
|
if (res.data.data.routerInfo.previewSetting) {
|
||||||
|
let arr = res.data.data.routerInfo.previewSetting.split(",");
|
||||||
|
if (arr.length === 2) {
|
||||||
|
state.previewStartNum = arr[0];
|
||||||
|
state.previewEndNum = arr[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (res.data.data.routerInfo.studySetting) {
|
||||||
|
let arr = res.data.data.routerInfo.studySetting.split(",");
|
||||||
|
if (arr.length === 2) {
|
||||||
|
state.studyStartNum = arr[0];
|
||||||
|
state.studyEndNum = arr[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
@@ -2196,7 +2229,30 @@ export default {
|
|||||||
message.warning("删除失败");
|
message.warning("删除失败");
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
// 设置------------------------------------------------------
|
||||||
|
//编辑基本信息
|
||||||
|
const editLearnInfo = () => {
|
||||||
|
let obj = {
|
||||||
|
routerId: state.routerId,
|
||||||
|
enablePreview: state.previewSelect ? 1 : 0,
|
||||||
|
enableStudy: state.studySelect ? 1 : 0,
|
||||||
|
previewSetting: state.previewStartNum + "," + state.previewEndNum,
|
||||||
|
studySetting: state.studyStartNum + "," + state.studyEndNum,
|
||||||
|
};
|
||||||
|
console.log("编辑设置基本信息obj", obj);
|
||||||
|
api
|
||||||
|
.editLearnInfo(obj)
|
||||||
|
.then((res) => {
|
||||||
|
console.log("编辑设置基本信息成功", res);
|
||||||
|
if (res.data.code === 200) {
|
||||||
|
message.success("修改成功");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log("编辑设置基本信息失败", err);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
// 设置-----------------------------------------------------
|
||||||
//添加学员
|
//添加学员
|
||||||
watch(
|
watch(
|
||||||
() => state.addAuthList,
|
() => state.addAuthList,
|
||||||
@@ -2320,6 +2376,7 @@ export default {
|
|||||||
checkedClose,
|
checkedClose,
|
||||||
showCodeModel,
|
showCodeModel,
|
||||||
showCodeModel2,
|
showCodeModel2,
|
||||||
|
editLearnInfo,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -4224,7 +4281,7 @@ export default {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
// margin-top: 10px;
|
// margin-top: 10px;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 3px;
|
top: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yulan {
|
.yulan {
|
||||||
|
|||||||
Reference in New Issue
Block a user