This commit is contained in:
yuping
2023-06-12 12:25:05 +08:00
23 changed files with 20 additions and 46 deletions

View File

@@ -32,7 +32,7 @@
<span style="margin-right: 3px">活动时间</span> <span style="margin-right: 3px">活动时间</span>
</div> </div>
<div class="btnbox"> <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" style="width: 400px; height: 40px; border-radius: 8px" v-model:value="dateTime" @change="timeChange"
:placeholder="[' 开始时间', ' 结束时间']" /> :placeholder="[' 开始时间', ' 结束时间']" />
</div> </div>
@@ -208,6 +208,7 @@ const closeDrawer = () => {
function timeChange(time, timeStr) { function timeChange(time, timeStr) {
formData.value.activityStartTime = timeStr[0] formData.value.activityStartTime = timeStr[0]
formData.value.activityEndTime = timeStr[1] formData.value.activityEndTime = timeStr[1]
formData.value.activityDuration || (formData.value.activityDuration = dayjs(timeStr[1]).diff(dayjs(timeStr[0]),'minute'))
} }
const disabledDate = (current) => { const disabledDate = (current) => {

View File

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

View File

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

View File

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

View File

@@ -206,11 +206,7 @@ export default {
setup(props, ctx) { setup(props, ctx) {
const store = useStore(); const store = useStore();
const state = reactive({ const state = reactive({
locationHref: locationHref: process.env.VUE_APP_FILE_PATH,
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_TEMPLATE, template: process.env.VUE_APP_UP_LOAD_STUDENT_TEMPLATE,
importStudent: importStudent:
process.env.VUE_APP_BASE_API + "/admin/student/importStudent", process.env.VUE_APP_BASE_API + "/admin/student/importStudent",

View File

@@ -47,7 +47,7 @@
<span style="margin-right: 3px">直播时间</span> <span style="margin-right: 3px">直播时间</span>
</div> </div>
<div class="btnbox"> <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" 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="[' 开始时间', ' 结束时间']" /> valueFormat="YYYY-MM-DD HH:mm" @change="timeChange" :placeholder="[' 开始时间', ' 结束时间']" />
</div> </div>
@@ -336,6 +336,7 @@ const closeDrawer = () => {
function timeChange(time, timeStr) { function timeChange(time, timeStr) {
formData.value.liveStartTime = timeStr[0]; formData.value.liveStartTime = timeStr[0];
formData.value.liveEndTime = timeStr[1]; formData.value.liveEndTime = timeStr[1];
formData.value.liveDuration || (formData.value.liveDuration = dayjs(timeStr[1]).diff(dayjs(timeStr[0]),'minute'))
} }
const disabledDate = (current) => { const disabledDate = (current) => {
return current && current < dayjs().startOf("day"); return current && current < dayjs().startOf("day");

View File

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

View File

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

View File

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

View File

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

View File

@@ -252,9 +252,6 @@ export default {
downloadErrUrl: null, //下载失败数据 downloadErrUrl: null, //下载失败数据
fileName: "", fileName: "",
locationHref: 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, process.env.VUE_APP_FILE_PATH,
template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE, template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE,
}); });

View File

@@ -276,9 +276,6 @@ export default {
downloadErrUrl: null, //下载失败数据 downloadErrUrl: null, //下载失败数据
fileName: "", fileName: "",
locationHref: 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, process.env.VUE_APP_FILE_PATH,
template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE, template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE,
}); });

View File

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

View File

@@ -218,9 +218,6 @@ export default {
downloadErrUrl: null, //下载失败数据 downloadErrUrl: null, //下载失败数据
fileName: "", fileName: "",
locationHref: 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, process.env.VUE_APP_FILE_PATH,
template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE, template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE,
}); });

View File

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

View File

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

View File

@@ -383,9 +383,6 @@ export default defineComponent({
imgList: [], imgList: [],
categoryName: "", categoryName: "",
locationHref: 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, process.env.VUE_APP_FILE_PATH,
//目标任务 //目标任务

View File

@@ -1652,9 +1652,6 @@ export default {
facestudent: "", facestudent: "",
locationHref: 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, process.env.VUE_APP_FILE_PATH,
isreload: true, isreload: true,
TaskFaceImpStuvisible: false, TaskFaceImpStuvisible: false,

View File

@@ -91,7 +91,7 @@
<div class="in"> <div class="in">
<a-range-picker separator="至" :show-time="{ format: 'HH:mm' }" <a-range-picker separator="至" :show-time="{ format: 'HH:mm' }"
:placeholder="[' 开始时间', ' 结束时间']" :placeholder="[' 开始时间', ' 结束时间']"
:disabledDate="disabledDate" v-model:value="timeRange" @calendarChange="calendarChange" v-model:value="timeRange" @calendarChange="calendarChange"
style="width: 100%; height: 40px; border-radius: 5px" :allowClear="false" style="width: 100%; height: 40px; border-radius: 5px" :allowClear="false"
format="YYYY-MM-DD HH:mm" format="YYYY-MM-DD HH:mm"
valueFormat="YYYY-MM-DD HH:mm" @change="timeChange" :disabled="!!viewDetail"/> valueFormat="YYYY-MM-DD HH:mm" @change="timeChange" :disabled="!!viewDetail"/>

View File

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

View File

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

View File

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

View File

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