mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 06:46:46 +08:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -460,11 +460,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="time">
|
<div class="time">
|
||||||
<div class="timetext">开始时间</div>
|
<div class="timetext">开始时间</div>
|
||||||
<div class="timetext">{{ item.startTime!==null?item.startTime:''}}</div>
|
<div class="timetext">
|
||||||
|
{{ item.startTime !== null ? item.startTime : "" }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div class="progresstext">
|
<div class="progresstext">
|
||||||
{{ item.complete?item.complete:0 }}/{{ item.total?item.total:0 }}人
|
{{ item.complete ? item.complete : 0 }}/{{
|
||||||
|
item.total ? item.total : 0
|
||||||
|
}}人
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex">
|
<div style="display: flex">
|
||||||
<a-progress
|
<a-progress
|
||||||
@@ -768,7 +772,10 @@
|
|||||||
<div class="box"></div>
|
<div class="box"></div>
|
||||||
<div class="onetitle">上传共享文档</div>
|
<div class="onetitle">上传共享文档</div>
|
||||||
<div class="oneedi">
|
<div class="oneedi">
|
||||||
<a-switch v-model:checked="docChecked" @change="checkedClose"></a-switch>
|
<a-switch
|
||||||
|
v-model:checked="docChecked"
|
||||||
|
@change="checkedClose"
|
||||||
|
></a-switch>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnbox" style="margin: 20px">
|
<div class="btnbox" style="margin: 20px">
|
||||||
@@ -1217,6 +1224,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
|
|
||||||
|
<!-- 二维码弹窗 -->
|
||||||
|
<two-dimensional-code
|
||||||
|
v-model:codevisible="codevisible"
|
||||||
|
:codeInfo="codeInfo"
|
||||||
|
index="0"
|
||||||
|
type="课程二维码"
|
||||||
|
/>
|
||||||
|
<!-- 二维码弹窗 -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -1243,6 +1259,7 @@ import { GetRouterDetail } from "@/api/indexTask";
|
|||||||
import * as api from "../../api/index1";
|
import * as api from "../../api/index1";
|
||||||
import { toDate } from "../../api/method";
|
import { toDate } from "../../api/method";
|
||||||
import { editRoutered } from "../../api/indexLearningPath";
|
import { editRoutered } from "../../api/indexLearningPath";
|
||||||
|
import TwoDimensionalCode from "../../components/TwoDimensionalCode.vue";
|
||||||
export default {
|
export default {
|
||||||
name: "LevelAdd",
|
name: "LevelAdd",
|
||||||
components: {
|
components: {
|
||||||
@@ -1257,6 +1274,7 @@ export default {
|
|||||||
FaceManage,
|
FaceManage,
|
||||||
WorkManage,
|
WorkManage,
|
||||||
SeeStu,
|
SeeStu,
|
||||||
|
TwoDimensionalCode,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
// const routers = useRoute();
|
// const routers = useRoute();
|
||||||
@@ -1888,7 +1906,7 @@ export default {
|
|||||||
const getOverview = () => {
|
const getOverview = () => {
|
||||||
getRouterOverview(state.routerId)
|
getRouterOverview(state.routerId)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log(res)
|
console.log(res);
|
||||||
Object.keys(res.data.data.routerInfoOverview).forEach((item) => {
|
Object.keys(res.data.data.routerInfoOverview).forEach((item) => {
|
||||||
levelList.routerInfoOverview[item] =
|
levelList.routerInfoOverview[item] =
|
||||||
res.data.data.routerInfoOverview[item] || 0;
|
res.data.data.routerInfoOverview[item] || 0;
|
||||||
@@ -1912,13 +1930,13 @@ export default {
|
|||||||
|
|
||||||
// 设置上传图片开关
|
// 设置上传图片开关
|
||||||
const checkedClose = (data, a) => {
|
const checkedClose = (data, a) => {
|
||||||
console.log(data,a)
|
console.log(data, a);
|
||||||
state.docChecked = data
|
state.docChecked = data;
|
||||||
console.log({
|
console.log({
|
||||||
routerId: state.routerId,
|
routerId: state.routerId,
|
||||||
status: state.action,
|
status: state.action,
|
||||||
attachSwitch: data ? 1: -1
|
attachSwitch: data ? 1 : -1,
|
||||||
})
|
});
|
||||||
// 更新开关状态
|
// 更新开关状态
|
||||||
editRoutered({
|
editRoutered({
|
||||||
attach: JSON.stringify(state.fileList),
|
attach: JSON.stringify(state.fileList),
|
||||||
@@ -1927,7 +1945,7 @@ export default {
|
|||||||
remark: state.remark,
|
remark: state.remark,
|
||||||
routerId: state.routerId,
|
routerId: state.routerId,
|
||||||
status: state.action,
|
status: state.action,
|
||||||
attachSwitch: data ? 1: -1
|
attachSwitch: data ? 1 : -1,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@@ -1935,16 +1953,16 @@ export default {
|
|||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
|
};
|
||||||
}
|
|
||||||
|
|
||||||
// 获取路径列表
|
// 获取路径列表
|
||||||
const myGetRouterDetail = () => {
|
const myGetRouterDetail = () => {
|
||||||
GetRouterDetail(state.routerId)
|
GetRouterDetail(state.routerId)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log('router-list',res)
|
console.log("router-list", res);
|
||||||
state.fileList = JSON.parse(res.data.data.routerInfo.attach)
|
state.fileList = JSON.parse(res.data.data.routerInfo.attach);
|
||||||
state.docChecked = res.data.data.routerInfo.attachSwitch == 1?true:false
|
state.docChecked =
|
||||||
|
res.data.data.routerInfo.attachSwitch == 1 ? true : false;
|
||||||
if (res.data.data.routerInfo.status == 1) {
|
if (res.data.data.routerInfo.status == 1) {
|
||||||
state.nodata = false;
|
state.nodata = false;
|
||||||
}
|
}
|
||||||
@@ -1990,7 +2008,7 @@ export default {
|
|||||||
remark: state.remark,
|
remark: state.remark,
|
||||||
routerId: state.routerId,
|
routerId: state.routerId,
|
||||||
status: state.action,
|
status: state.action,
|
||||||
attachSwitch: state.docChecked?1:-1
|
attachSwitch: state.docChecked ? 1 : -1,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@@ -2213,7 +2231,7 @@ export default {
|
|||||||
deleteStu,
|
deleteStu,
|
||||||
totask,
|
totask,
|
||||||
tostudent,
|
tostudent,
|
||||||
checkedClose
|
checkedClose,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -323,7 +323,9 @@
|
|||||||
<!-- <button class="btn" @click="showFaceIn" v-if="morFaceT">
|
<!-- <button class="btn" @click="showFaceIn" v-if="morFaceT">
|
||||||
批量面授报名
|
批量面授报名
|
||||||
</button> -->
|
</button> -->
|
||||||
<router-link :to="{path:`/taskadd`,query:{projectId:projectId}}">
|
<router-link
|
||||||
|
:to="{ path: `/taskadd`, query: { projectId: projectId } }"
|
||||||
|
>
|
||||||
<button class="edit">
|
<button class="edit">
|
||||||
<img
|
<img
|
||||||
class="editimg"
|
class="editimg"
|
||||||
@@ -438,9 +440,7 @@
|
|||||||
<div class="time">
|
<div class="time">
|
||||||
<div class="timetext">开始时间</div>
|
<div class="timetext">开始时间</div>
|
||||||
<div class="timetext">
|
<div class="timetext">
|
||||||
{{
|
{{ item.startTime !== null ? item.startTime : "" }}
|
||||||
item.startTime !== null ? item.startTime : ''
|
|
||||||
}}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
@@ -566,7 +566,10 @@
|
|||||||
class="taskbox"
|
class="taskbox"
|
||||||
@click="
|
@click="
|
||||||
() => {
|
() => {
|
||||||
routered.push({ path: `/taskadd`,query:{projectId:projectId} });
|
routered.push({
|
||||||
|
path: `/taskadd`,
|
||||||
|
query: { projectId: projectId },
|
||||||
|
});
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
style="background: linear-gradient(180deg, #fef3dd, #fffaf0)"
|
style="background: linear-gradient(180deg, #fef3dd, #fffaf0)"
|
||||||
@@ -778,10 +781,11 @@
|
|||||||
<img src="../../assets/images/courseManage/add0.png" />
|
<img src="../../assets/images/courseManage/add0.png" />
|
||||||
<span class="btn1text">创建小组</span>
|
<span class="btn1text">创建小组</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn2" @click="showSubset">
|
<!-- 2022-12-2注释 后面放开 -->
|
||||||
|
<!-- <div class="btn2" @click="showSubset">
|
||||||
<img src="../../assets/images/courseManage/reset2.png" />
|
<img src="../../assets/images/courseManage/reset2.png" />
|
||||||
<span class="btn2text">随机分组</span>
|
<span class="btn2text">随机分组</span>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<!-- 小组列表 -->
|
<!-- 小组列表 -->
|
||||||
<div class="groupmain">
|
<div class="groupmain">
|
||||||
@@ -3211,6 +3215,7 @@ export default {
|
|||||||
};
|
};
|
||||||
//把小组列表信息放到state里
|
//把小组列表信息放到state里
|
||||||
const setGroupList = (tableData) => {
|
const setGroupList = (tableData) => {
|
||||||
|
console.log("tableDatatableDatatableData", tableData);
|
||||||
let data = tableData;
|
let data = tableData;
|
||||||
let array = [];
|
let array = [];
|
||||||
data.map((value) => {
|
data.map((value) => {
|
||||||
@@ -3223,7 +3228,7 @@ export default {
|
|||||||
source: value.source == 1 ? "指定添加" : "随机分组",
|
source: value.source == 1 ? "指定添加" : "随机分组",
|
||||||
completeTaskCnt: value.completeTaskCnt, //完成任务数
|
completeTaskCnt: value.completeTaskCnt, //完成任务数
|
||||||
totalTaskCnt: value.totalTaskCnt, //累计任务数
|
totalTaskCnt: value.totalTaskCnt, //累计任务数
|
||||||
completeRatio: value.completeRatio, //完成比例
|
completeRatio: value.completeRatio ? value.completeRatio : 0, //完成比例
|
||||||
};
|
};
|
||||||
array.push(obj);
|
array.push(obj);
|
||||||
});
|
});
|
||||||
@@ -3322,6 +3327,7 @@ export default {
|
|||||||
projectId: state.projectId,
|
projectId: state.projectId,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log("get task", res.data.data);
|
console.log("get task", res.data.data);
|
||||||
|
if (res.data.code === 200) {
|
||||||
let info = res.data.data.projectInfo;
|
let info = res.data.data.projectInfo;
|
||||||
// let start = toDate(info.beginTime / 1000, "Y-M-D h:m");
|
// let start = toDate(info.beginTime / 1000, "Y-M-D h:m");
|
||||||
let start = info.beginTime;
|
let start = info.beginTime;
|
||||||
@@ -3372,6 +3378,7 @@ export default {
|
|||||||
state.fileList = JSON.parse(luj);
|
state.fileList = JSON.parse(luj);
|
||||||
// state.fileList = luj
|
// state.fileList = luj
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
//获取小组列表
|
//获取小组列表
|
||||||
@@ -3560,6 +3567,7 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
const reget = () => {
|
const reget = () => {
|
||||||
|
console.log("state.projectId", state.projectId);
|
||||||
getTask({
|
getTask({
|
||||||
projectId: state.projectId,
|
projectId: state.projectId,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user