---项目详情

This commit is contained in:
yuping
2023-06-08 17:16:19 +08:00
parent fe0e9f2651
commit 914d9a09d1
22 changed files with 20 additions and 46 deletions

View File

@@ -32,7 +32,7 @@
<span style="margin-right: 3px">活动时间</span>
</div>
<div class="btnbox">
<a-range-picker :disabled-date="disabledDate" :show-time="{ format: 'HH:mm' }" format="YYYY-MM-DD HH:mm"
<a-range-picker :show-time="{ format: 'HH:mm' }" format="YYYY-MM-DD HH:mm"
style="width: 400px; height: 40px; border-radius: 8px" v-model:value="dateTime" @change="timeChange"
:placeholder="[' 开始时间', ' 结束时间']" />
</div>
@@ -208,9 +208,10 @@ const closeDrawer = () => {
function timeChange(time, timeStr) {
formData.value.activityStartTime = timeStr[0]
formData.value.activityEndTime = timeStr[1]
formData.activityDuration || (formData.activityDuration = dayjs(timeStr[1]).diff(dayjs(timeStr(0)),'minute'))
}
const disabledDate = (current) => {
const disabledDate = (current) => {¡¡
return current && current < dayjs().startOf('day');
};

View File

@@ -75,8 +75,6 @@
<div class="btnbox">
<a-range-picker
:show-time="{ format: 'HH:mm' }"
:disabled-date="disabledDate"
:disabled-time="disabledRangeTime"
style="width: 400px; height: 40px; border-radius: 8px"
v-model:value="dateTime"
format="YYYY-MM-DD HH:mm"

View File

@@ -105,8 +105,6 @@
<div class="select">
<a-range-picker style="width: 400px;"
:show-time="{ format: 'HH:mm' }"
:disabled-date="disabledDate"
format="YYYY/MM/DD HH:mm"
v-model:value="chooseTime"
:placeholder="[' 开始时间', ' 结束时间']"

View File

@@ -43,8 +43,6 @@
<a-range-picker
style="width: 400px; height: 40px; border-radius: 8px"
:show-time="{ format: 'hh:mm' }"
:disabled-date="disabledDate"
v-model:value="dateTime"
format="YYYY-MM-DD HH:mm"
@change="timeChange"

View File

@@ -206,11 +206,7 @@ export default {
setup(props, ctx) {
const store = useStore();
const state = reactive({
locationHref:
location.href.indexOf("http://") !== -1
? "http://43.143.139.204:12016/"
: location.href.slice(0, location.href.indexOf("/m")) +
process.env.VUE_APP_FILE_PATH,
locationHref: process.env.VUE_APP_FILE_PATH,
template: process.env.VUE_APP_UP_LOAD_STUDENT_TEMPLATE,
importStudent:
process.env.VUE_APP_BASE_API + "/admin/student/importStudent",

View File

@@ -47,7 +47,7 @@
<span style="margin-right: 3px">直播时间</span>
</div>
<div class="btnbox">
<a-range-picker :show-time="{ format: 'HH:mm' }" :disabled-date="disabledDate"
<a-range-picker :show-time="{ format: 'HH:mm' }"
style="width: 400px; height: 40px; border-radius: 8px" v-model:value="dateTime" format="YYYY-MM-DD HH:mm"
valueFormat="YYYY-MM-DD HH:mm" @change="timeChange" :placeholder="[' 开始时间', ' 结束时间']" />
</div>
@@ -336,6 +336,7 @@ const closeDrawer = () => {
function timeChange(time, timeStr) {
formData.value.liveStartTime = timeStr[0];
formData.value.liveEndTime = timeStr[1];
formData.liveDuration || (formData.liveDuration = dayjs(timeStr[1]).diff(dayjs(timeStr(0)),'minute'))
}
const disabledDate = (current) => {
return current && current < dayjs().startOf("day");

View File

@@ -127,7 +127,6 @@
<a-range-picker
style="width: 88%; height: 40px; border-radius: 8px"
:show-time="{ format: 'HH:mm' }"
:disabled-date="disabledDate"
format="YYYY-MM-DD HH:mm"
valueFormat="YYYY-MM-DD HH:mm"
v-model:value="dateTime"
@@ -528,6 +527,7 @@ const { validate } = Form.useForm(formData, formDataRule);
function timeChange(time, timeStr) {
formData.value.beginTime = timeStr[0];
formData.value.endTime = timeStr[1];
formData.duration || (formData.duration = dayjs(timeStr[1]).diff(dayjs(timeStr(0)),'minute'))
}
function search() {

View File

@@ -83,8 +83,7 @@
<span style="margin-right: 3px">考试时间</span>
</div>
<div class="btnbox">
<a-range-picker style="width: 400px; height: 40px; border-radius: 8px" :show-time="{ format: 'hh:mm' }"
:disabled-date="disabledDate" format="YYYY-MM-DD HH:mm" valueFormat="YYYY-MM-DD HH:mm"
<a-range-picker style="width: 400px; height: 40px; border-radius: 8px" :show-time="{ format: 'hh:mm' }" format="YYYY-MM-DD HH:mm" valueFormat="YYYY-MM-DD HH:mm"
v-model:value="dateTime" @change="timeChange" :placeholder="[' 开始时间', ' 结束时间']" />
</div>
</div>

View File

@@ -42,7 +42,6 @@
<a-range-picker
style="width: 400px; height: 40px; border-radius: 8px"
:show-time="{ format: 'hh:mm' }"
:disabled-date="disabledDate"
v-model:value="dateTime"
format="YYYY-MM-DD HH:mm"
valueFormat="YYYY/MM/DD HH:mm"

View File

@@ -117,7 +117,6 @@
<a-range-picker
style="width: 400px; height: 40px; border-radius: 8px"
:show-time="{format:'hh:mm'}"
:disabled-date="disabledDate"
format="YYYY-MM-DD HH:mm"
valueFormat="YYYY-MM-DD HH:mm"
v-model:value="dateTime"

View File

@@ -252,9 +252,6 @@ export default {
downloadErrUrl: null, //下载失败数据
fileName: "",
locationHref:
location.href.indexOf("http://") !== -1
? "http://43.143.139.204:12016/"
: location.href.slice(0, location.href.indexOf("/m")) +
process.env.VUE_APP_FILE_PATH,
template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE,
});

View File

@@ -276,9 +276,6 @@ export default {
downloadErrUrl: null, //下载失败数据
fileName: "",
locationHref:
location.href.indexOf("http://") !== -1
? "http://43.143.139.204:12016/"
: location.href.slice(0, location.href.indexOf("/m")) +
process.env.VUE_APP_FILE_PATH,
template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE,
});

View File

@@ -117,10 +117,12 @@ export default {
// state.Avisible = true;
// };
function uuid() {
const temp_url = URL.createObjectURL(new Blob());
const uuid = temp_url.toString();
URL.revokeObjectURL(temp_url);
return uuid.substr(uuid.lastIndexOf("/") + 1);
//获取当前时候
return new Date().getTime()+''+Math.round(Math.random()*100);
// const temp_url = URL.createObjectURL(new Blob());
// const uuid = temp_url.toString();
// URL.revokeObjectURL(temp_url);
// return uuid.substr(uuid.lastIndexOf("/") + 1);
}
//展示要增加的小组
const showAddGroup = () => {

View File

@@ -218,9 +218,6 @@ export default {
downloadErrUrl: null, //下载失败数据
fileName: "",
locationHref:
location.href.indexOf("http://") !== -1
? "http://43.143.139.204:12016/"
: location.href.slice(0, location.href.indexOf("/m")) +
process.env.VUE_APP_FILE_PATH,
template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE,
});

View File

@@ -53,7 +53,6 @@
<div class="select">
<a-range-picker
:show-time="{ format: 'HH:mm' }"
:disabled-date="disabledDate"
format="YYYY-MM-DD HH:mm"
style="width: 424px"
v-model:value="dateTime"

View File

@@ -947,9 +947,9 @@
<a-range-picker
style="width: 440px; height: 40px; border-radius: 8px"
:show-time="{ format: 'HH:mm' }"
:disabled-date="disabledDate"
format="YYYY-MM-DD HH:mm"
v-model:value="xjkkinputV3"
@change="timeChange"
separator="至"
:placeholder="[' 开始时间', ' 结束时间']"
/>
@@ -2816,6 +2816,10 @@ export default defineComponent({
codeType: null, //二维码类型
});
function timeChange(time, timeStr) {
state.duration || (state.duration = dayjs(timeStr[1]).diff(dayjs(timeStr(0)),'minute'))
}
function findClassFullName(list, classify, name = "") {
return (
(list &&
@@ -5016,6 +5020,7 @@ export default defineComponent({
logW,
logT,
qrcodeVisible,
timeChange
};
},
});

View File

@@ -383,9 +383,6 @@ export default defineComponent({
imgList: [],
categoryName: "",
locationHref:
location.href.indexOf("http://") !== -1
? "http://43.143.139.204:12016/"
: location.href.slice(0, location.href.indexOf("/m")) +
process.env.VUE_APP_FILE_PATH,
//目标任务

View File

@@ -1652,9 +1652,6 @@ export default {
facestudent: "",
locationHref:
location.href.indexOf("http://") !== -1
? "http://43.143.139.204:12016/"
: location.href.slice(0, location.href.indexOf("/m")) +
process.env.VUE_APP_FILE_PATH,
isreload: true,
TaskFaceImpStuvisible: false,

View File

@@ -48,7 +48,6 @@
<!--
<a-range-picker
:show-time="{ format: 'HH:mm' }"
:disabled-date="disabledDate" :disabled-time="disabledRangeTime"
v-model:value="searchParam.valueDate"
format="YYYY-MM-DD"
style="border-radius: 8px; height: 40px; margin-left: 5px"

View File

@@ -122,8 +122,6 @@
<div class="in">
<a-range-picker
:show-time="{ format: 'HH:mm' }"
:disabled-date="disabledDate"
:disabled-time="disabledRangeTime"
separator="至"
:placeholder="[' 开始时间', ' 结束时间']"
v-model:value="projectInfo.rangeTime"

View File

@@ -107,8 +107,6 @@
<div class="in">
<a-range-picker
:show-time="{ format: 'HH:mm' }"
:disabled-date="disabledDate"
:disabled-time="disabledRangeTime"
separator="至"
:placeholder="[' 开始时间', ' 结束时间']"
v-model:value="projectInfo.rangeTime"

View File

@@ -207,7 +207,6 @@
:placeholder="[' 开始时间', ' 结束时间']"
@openChange="onOpenChange"
@calendarChange="onCalendarChange"
:disabled-date="disabledDate"
/>
<a-range-picker
v-if="threeLeftType == 1"