mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 14:56:46 +08:00
feat:增加面授课成绩录入结业批量结业
This commit is contained in:
@@ -202,7 +202,7 @@
|
||||
<!-- <img class="im" src="../../assets/px.jpg" />
|
||||
<img class="im" src="../../assets/px.jpg" />
|
||||
<img class="im" src="../../assets/px.jpg" /> -->
|
||||
|
||||
|
||||
<div
|
||||
@click="chooseImg(item)"
|
||||
v-for="(item, index) in imgData"
|
||||
@@ -243,7 +243,7 @@
|
||||
class="aeLoading"
|
||||
:style="{ display: lpLoading ? 'flex' : 'none' }"
|
||||
>
|
||||
<a-spin :spinning="lpLoading" tip=""/>
|
||||
<a-spin :spinning="lpLoading" tip="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -277,7 +277,7 @@
|
||||
/>
|
||||
</div>
|
||||
<div class="inname">路径图名称</div>
|
||||
<div class="in road" >
|
||||
<div class="in road">
|
||||
<!-- <a-input-->
|
||||
<!-- v-model:value="pathName"-->
|
||||
<!-- maxlength="20"-->
|
||||
@@ -331,7 +331,7 @@
|
||||
<!-- <img class="im" src="../../assets/px.jpg" />
|
||||
<img class="im" src="../../assets/px.jpg" />
|
||||
<img class="im" src="../../assets/px.jpg" /> -->
|
||||
|
||||
|
||||
<div
|
||||
@click="chooseImg2(item)"
|
||||
v-for="(item, index) in imgData"
|
||||
@@ -698,15 +698,12 @@ import ProjCheckShip from "../../components/drawers/ProjCheckPower";
|
||||
import * as api from "../../api/index1";
|
||||
import * as apiStu from "../../api/index";
|
||||
import { message } from "ant-design-vue";
|
||||
import {
|
||||
commonData,
|
||||
} from "@/api/method";
|
||||
import { commonData } from "@/api/method";
|
||||
import { storage } from "@/api/storage";
|
||||
import { useStore } from "vuex";
|
||||
import OrgClass from "@/components/project/OrgClass";
|
||||
import NameInput from "@/components/project/NameInput";
|
||||
import {validateName} from "@/api/index1";
|
||||
|
||||
import { validateName } from "@/api/index1";
|
||||
|
||||
export default {
|
||||
name: "learningPath",
|
||||
@@ -858,7 +855,7 @@ export default {
|
||||
state.pathIntro = "";
|
||||
state.out = !state.out;
|
||||
setTimeout(() => {
|
||||
if(store.state.userInfo.departId && store.state.userInfo.departName){
|
||||
if (store.state.userInfo.departId && store.state.userInfo.departName) {
|
||||
state.organizationSelectName = store.state.userInfo.departName;
|
||||
state.organizationSelectId = store.state.userInfo.departId;
|
||||
}
|
||||
@@ -867,7 +864,7 @@ export default {
|
||||
const handleOut1 = () => {
|
||||
state.pathName = "";
|
||||
state.pathBg = "";
|
||||
state.pathBgId =1;
|
||||
state.pathBgId = 1;
|
||||
state.organizationSelectName = null;
|
||||
state.organizationSelectId = null;
|
||||
state.pathIntro = "";
|
||||
@@ -905,13 +902,15 @@ export default {
|
||||
console.log("err", err);
|
||||
});
|
||||
//获取学员列表
|
||||
apiStu.projectStudentCount({
|
||||
apiStu
|
||||
.projectStudentCount({
|
||||
pid: router.id,
|
||||
type:2
|
||||
}).then((res) => {
|
||||
state.routeStudentsNum = res.data.data;
|
||||
state.pubLoading = false;
|
||||
type: 2,
|
||||
})
|
||||
.then((res) => {
|
||||
state.routeStudentsNum = res.data.data;
|
||||
state.pubLoading = false;
|
||||
});
|
||||
};
|
||||
//确定发布
|
||||
const releaseLearnPath = () => {
|
||||
@@ -1248,21 +1247,31 @@ export default {
|
||||
</div>
|
||||
{
|
||||
<a-select
|
||||
style="width: 50px;margin-top:2px;margin-left:25px"
|
||||
value="授权"
|
||||
dropdownClassName="tabledropdown"
|
||||
style="width: 50px;margin-top:2px;margin-left:25px"
|
||||
value="授权"
|
||||
dropdownClassName="tabledropdown"
|
||||
>
|
||||
<a-select-option value="权限名单" label="权限名单">
|
||||
<OwnerTableModelStudent types={[7,8,9]} id={text.record.id} type={9}>权限名单</OwnerTableModelStudent>
|
||||
<OwnerTableModelStudent
|
||||
types={[7, 8, 9]}
|
||||
id={text.record.id}
|
||||
type={9}
|
||||
>
|
||||
权限名单
|
||||
</OwnerTableModelStudent>
|
||||
</a-select-option>
|
||||
<a-select-option value="查看权" label="查看权">
|
||||
<CommonStudent type={7} id={text.record.id}>查看权</CommonStudent>
|
||||
<CommonStudent type={7} id={text.record.id}>
|
||||
查看权
|
||||
</CommonStudent>
|
||||
</a-select-option>
|
||||
<a-select-option value="管理权" label="管理权">
|
||||
<CommonStudent type={8} id={text.record.id}>管理权</CommonStudent>
|
||||
<CommonStudent type={8} id={text.record.id}>
|
||||
管理权
|
||||
</CommonStudent>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
<div class="tableSelect">
|
||||
{text.record.state === "草稿" ? (
|
||||
@@ -1429,7 +1438,7 @@ export default {
|
||||
state.organizationSelectId = e;
|
||||
};
|
||||
//创建学习路径图
|
||||
const createLearnPath = async() => {
|
||||
const createLearnPath = async () => {
|
||||
if (!state.pathName) {
|
||||
message.destroy();
|
||||
return message.warning("请输入路径图名称");
|
||||
@@ -1447,11 +1456,11 @@ export default {
|
||||
message.warning("路径图名称重复");
|
||||
return;
|
||||
}
|
||||
const offName = await validateName({
|
||||
const offName = await validateName({
|
||||
name: state.pathName,
|
||||
type: 3,
|
||||
id:state.editPathId,
|
||||
}).then(res => {
|
||||
id: state.editPathId,
|
||||
}).then((res) => {
|
||||
return res.data.data == 1;
|
||||
});
|
||||
if (offName) {
|
||||
@@ -1590,17 +1599,16 @@ export default {
|
||||
arr.forEach((item) => {
|
||||
if (item.dictValue === state.pathBg) {
|
||||
state.pathBgId = item.dictCode;
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
//for (let i = 0; i < arr.length; i++) {
|
||||
// console.log("arr[i].dictValue", arr[i].dictValue, state.pathBg);
|
||||
// console.log("arr[i].dictValue", arr[i].dictValue, state.pathBg);
|
||||
// if (arr[i].dictValue === state.pathBg) {
|
||||
// state.pathBgId = arr[i].dictCode;
|
||||
// state.pathBgId = arr[i].dictCode;
|
||||
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
@@ -1637,8 +1645,8 @@ export default {
|
||||
const offName = await validateName({
|
||||
name: state.pathName,
|
||||
type: 3,
|
||||
id:state.editPathId,
|
||||
}).then(res => {
|
||||
id: state.editPathId,
|
||||
}).then((res) => {
|
||||
return res.data.data == 1;
|
||||
});
|
||||
if (offName) {
|
||||
@@ -1720,7 +1728,7 @@ export default {
|
||||
state.searchdate = null;
|
||||
state.startTime = null;
|
||||
state.endTime = null;
|
||||
state.createUser=null;
|
||||
state.createUser = null;
|
||||
getLearnPath();
|
||||
};
|
||||
|
||||
@@ -1778,7 +1786,7 @@ export default {
|
||||
// state.imgData = ;
|
||||
// }
|
||||
});
|
||||
const imgData = computed(()=>store.state.pathmapPic)
|
||||
const imgData = computed(() => store.state.pathmapPic);
|
||||
//添加权限
|
||||
watch(
|
||||
() => state.addAuthList,
|
||||
|
||||
Reference in New Issue
Block a user