mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
项目签到
This commit is contained in:
@@ -11,14 +11,14 @@
|
|||||||
<div class="titl">
|
<div class="titl">
|
||||||
<div class="endtime">
|
<div class="endtime">
|
||||||
起止时间:{{
|
起止时间:{{
|
||||||
datasource.info && datasource.info.liveStartTime ? datasource.info.liveStartTime : "-"
|
datasource.startTime ? datasource.startTime : "-"
|
||||||
}}
|
}}
|
||||||
~
|
~
|
||||||
{{ datasource.info && datasource.info.liveEndTime ? datasource.info.liveEndTime : "-" }}
|
{{ datasource.endTime ? datasource.endTime : "-" }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="endtime" style="margin-left: 64px">签到时间:{{ beginTime }}</div>
|
<div class="endtime" style="margin-left: 64px">签到时间:{{ beginTime }} ~ {{ endTime }}</div>
|
||||||
<div class="endtime" style="margin-left: 40px">签退时间:{{ endTime }}</div>
|
<!--<div class="endtime" style="margin-left: 40px">签退时间:{{ endTime }}</div>-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="search">
|
<div class="search">
|
||||||
@@ -354,25 +354,24 @@ export default {
|
|||||||
|
|
||||||
// 计算签到时间
|
// 计算签到时间
|
||||||
const isSignClick = () => {
|
const isSignClick = () => {
|
||||||
// debugger
|
console.log("计算签到时间", props.datasource);
|
||||||
console.log("计算签到时间", props.datasource.info);
|
let beginTime = new Date(props.datasource.startTime).getTime();
|
||||||
let beginTime = new Date(props.datasource.info.liveStartTime).getTime();
|
let endTime = !props.datasource.afterStart
|
||||||
let endTime = !props.datasource.info.afterSignIn
|
? new Date(props.datasource.endTime).getTime()
|
||||||
? new Date(props.datasource.info.liveEndTime).getTime()
|
: new Date(props.datasource.startTime).getTime();
|
||||||
: new Date(props.datasource.info.liveStartTime).getTime();
|
|
||||||
|
|
||||||
if (props.datasource.info.beforeSignIn && props.datasource.info.afterSignIn) {
|
if (props.datasource.beforeStart && props.datasource.afterStart) {
|
||||||
//有开始前有开始后
|
//有开始前有开始后
|
||||||
beginTime = beginTime - props.datasource.info.beforeSignIn * 60 * 1000;
|
beginTime = beginTime - props.datasource.beforeStart * 60 * 1000;
|
||||||
endTime = endTime + props.datasource.info.afterSignIn * 60 * 1000;
|
endTime = endTime + props.datasource.afterStart * 60 * 1000;
|
||||||
console.log("1111", beginTime, endTime);
|
console.log("1111", beginTime, endTime);
|
||||||
} else if (props.datasource.info.beforeSignIn && !props.datasource.info.afterSignIn) {
|
} else if (props.datasource.beforeStart && !props.datasource.afterStart) {
|
||||||
//只有开始前无开始后
|
//只有开始前无开始后
|
||||||
beginTime = beginTime - props.datasource.info.beforeSignIn * 60 * 1000;
|
beginTime = beginTime - props.datasource.beforeStart * 60 * 1000;
|
||||||
console.log("11112222", beginTime);
|
console.log("11112222", beginTime);
|
||||||
} else if (!props.datasource.info.beforeSignIn && props.datasource.info.afterSignIn) {
|
} else if (!props.datasource.beforeStart && props.datasource.afterStart) {
|
||||||
//无开始前有开始后
|
//无开始前有开始后
|
||||||
endTime = endTime + props.datasource.info.afterSignIn * 60 * 1000;
|
endTime = endTime + props.datasource.afterStart * 60 * 1000;
|
||||||
console.log("1111333", endTime);
|
console.log("1111333", endTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -393,7 +392,6 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const getTableData = () => {
|
const getTableData = () => {
|
||||||
debugger
|
|
||||||
// debugger
|
// debugger
|
||||||
console.log('当前是项目还是路径图 1 项目 2 路径图', props)
|
console.log('当前是项目还是路径图 1 项目 2 路径图', props)
|
||||||
console.log('当前是项目还是路径图 1 项目 2 路径图', props.types)
|
console.log('当前是项目还是路径图 1 项目 2 路径图', props.types)
|
||||||
@@ -690,7 +688,6 @@ export default {
|
|||||||
<div class="opa" style='display:flex;justify-content:center;align-items:center;'>
|
<div class="opa" style='display:flex;justify-content:center;align-items:center;'>
|
||||||
<div
|
<div
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
debugger
|
|
||||||
{/* debugger */ }
|
{/* debugger */ }
|
||||||
console.log("点击签到", value);
|
console.log("点击签到", value);
|
||||||
// 获取当前时间
|
// 获取当前时间
|
||||||
@@ -858,7 +855,6 @@ export default {
|
|||||||
|
|
||||||
// 导出数据
|
// 导出数据
|
||||||
function exportTaskStu() {
|
function exportTaskStu() {
|
||||||
debugger
|
|
||||||
{/* debugger */ }
|
{/* debugger */ }
|
||||||
console.log("props.datasource此处的taskId 应该是router_task 表中主键", props.datasource);
|
console.log("props.datasource此处的taskId 应该是router_task 表中主键", props.datasource);
|
||||||
console.log("props.datasource", props.datasource);
|
console.log("props.datasource", props.datasource);
|
||||||
|
|||||||
@@ -85,7 +85,6 @@ const selectGroup = (e, v) => {
|
|||||||
};
|
};
|
||||||
//确认换组
|
//确认换组
|
||||||
const changeGroup = (item) => {
|
const changeGroup = (item) => {
|
||||||
debugger
|
|
||||||
console.log("换组", selectGroupId.value, item);
|
console.log("换组", selectGroupId.value, item);
|
||||||
props.checkgroupStuId.forEach(stu => {
|
props.checkgroupStuId.forEach(stu => {
|
||||||
let obj = {
|
let obj = {
|
||||||
|
|||||||
@@ -427,7 +427,6 @@ const stuRowSelection = computed(() => ({
|
|||||||
|
|
||||||
//显示学员换组弹窗
|
//显示学员换组弹窗
|
||||||
function showChangeGroupModal() {
|
function showChangeGroupModal() {
|
||||||
debugger
|
|
||||||
console.log("批量")
|
console.log("批量")
|
||||||
const d = props.groupList
|
const d = props.groupList
|
||||||
console.log("d" + d)
|
console.log("d" + d)
|
||||||
|
|||||||
@@ -3747,7 +3747,7 @@ export default defineComponent({
|
|||||||
state.cstm_hs = true;
|
state.cstm_hs = true;
|
||||||
state.kk_eidt = true;
|
state.kk_eidt = true;
|
||||||
};
|
};
|
||||||
const columnFun = (itm) => {
|
const columnFun = () => {
|
||||||
//新加
|
//新加
|
||||||
state.stuColumns = [
|
state.stuColumns = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ module.exports = defineConfig({
|
|||||||
port: 8070,
|
port: 8070,
|
||||||
proxy: {
|
proxy: {
|
||||||
"/manageApi": {
|
"/manageApi": {
|
||||||
target: 'http:' + process.env.VUE_APP_PROXY_URL,
|
// target: 'http:' + process.env.VUE_APP_PROXY_URL,
|
||||||
//target: 'http://localhost:30001',
|
target: 'http://localhost:30001',
|
||||||
changeOrigin: true, //表示是否改变原域名
|
changeOrigin: true, //表示是否改变原域名
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
"^/manageApi": "",
|
"^/manageApi": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user