mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-07 01:46:43 +08:00
任务时间选择
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
<div class="centermain">
|
||||
<div class="titl">
|
||||
<div class="endtime">
|
||||
<div class="endtime">{{datasource}}
|
||||
起止时间:{{
|
||||
datasource && datasource.startTime ? datasource.startTime : "-"
|
||||
}}
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
<div class="btnbox">
|
||||
<a-range-picker
|
||||
:disabled-date="disabledDate"
|
||||
:disabled-time="disabledRangeTime"
|
||||
|
||||
:show-time="{ format: 'HH:mm' }"
|
||||
format="YYYY-MM-DD HH:mm"
|
||||
style="width: 400px; height: 40px; border-radius: 8px"
|
||||
@@ -274,14 +274,14 @@ const closeDrawer = () => {
|
||||
dateTime.value = []
|
||||
resetFields()
|
||||
};
|
||||
|
||||
/**
|
||||
const range = (start, end) => {
|
||||
const result = [];
|
||||
for (let i = start; i < end; i++) {
|
||||
result.push(i);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
};*/
|
||||
|
||||
function timeChange(time, timeStr) {
|
||||
formData.value.activityStartTime = timeStr[0]
|
||||
@@ -291,14 +291,14 @@ function timeChange(time, timeStr) {
|
||||
const disabledDate = (current) => {
|
||||
return current && current < dayjs().startOf('day');
|
||||
};
|
||||
|
||||
/**
|
||||
const disabledRangeTime = () => ({
|
||||
// disabledHours: () => range(0, 24).splice(4, 20),
|
||||
disabledMinutes: () => range(30, 60),
|
||||
disabledSeconds: () => [55, 56],
|
||||
});
|
||||
|
||||
|
||||
*/
|
||||
async function confirm() {
|
||||
// debugger
|
||||
await validate().catch(({errorFields}) => {
|
||||
|
||||
@@ -175,6 +175,7 @@ function reset() {
|
||||
selectsData.value = [];
|
||||
params.value.pageIndex = 1
|
||||
params.value.keyWord = ''
|
||||
params.value.authorName = ''
|
||||
fetch()
|
||||
}
|
||||
|
||||
|
||||
@@ -105,7 +105,8 @@
|
||||
<div class="select">
|
||||
<a-range-picker style="width: 400px;"
|
||||
:show-time="{ format: 'HH:mm' }"
|
||||
:disabled-date="disabledDate" :disabled-time="disabledRangeTime"
|
||||
:disabled-date="disabledDate"
|
||||
|
||||
format="YYYY/MM/DD HH:mm"
|
||||
v-model:value="chooseTime"
|
||||
:placeholder="[' 开始时间', ' 结束时间']"
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
style="width: 400px; height: 40px; border-radius: 8px"
|
||||
:show-time="{ format: 'hh:mm' }"
|
||||
:disabled-date="disabledDate"
|
||||
:disabled-time="disabledRangeTime"
|
||||
|
||||
v-model:value="dateTime"
|
||||
format="YYYY-MM-DD HH:mm"
|
||||
@change="timeChange"
|
||||
@@ -107,7 +107,7 @@ const closeDrawer = () => {
|
||||
formData.value = {}
|
||||
dateTime.value = []
|
||||
};
|
||||
|
||||
/**
|
||||
const range = (start, end) => {
|
||||
const result = [];
|
||||
for (let i = start; i < end; i++) {
|
||||
@@ -115,7 +115,7 @@ const range = (start, end) => {
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
*/
|
||||
function timeChange(time, timeStr) {
|
||||
formData.value.submitStartTime = timeStr[0]
|
||||
formData.value.submitEndTime = timeStr[1]
|
||||
@@ -124,13 +124,13 @@ function timeChange(time, timeStr) {
|
||||
const disabledDate = (current) => {
|
||||
return current && current < dayjs().startOf('day');
|
||||
};
|
||||
|
||||
/**
|
||||
const disabledRangeTime = () => ({
|
||||
disabledHours: () => range(0, 24).splice(4, 20),
|
||||
disabledMinutes: () => range(30, 60),
|
||||
disabledSeconds: () => [55, 56],
|
||||
});
|
||||
|
||||
*/
|
||||
function confirm() {
|
||||
if (taskIndex.value === -1) {
|
||||
const list = props.taskList
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
<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"
|
||||
@@ -433,7 +433,7 @@ const closeDrawer = () => {
|
||||
dateTime.value = [];
|
||||
resetFields();
|
||||
};
|
||||
|
||||
/**
|
||||
const range = (start, end) => {
|
||||
const result = [];
|
||||
for (let i = start; i < end; i++) {
|
||||
@@ -441,7 +441,7 @@ const range = (start, end) => {
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
*/
|
||||
function timeChange(time, timeStr) {
|
||||
formData.value.liveStartTime = timeStr[0];
|
||||
formData.value.liveEndTime = timeStr[1];
|
||||
@@ -450,13 +450,13 @@ function timeChange(time, timeStr) {
|
||||
const disabledDate = (current) => {
|
||||
return current && current < dayjs().startOf("day");
|
||||
};
|
||||
|
||||
/**
|
||||
const disabledRangeTime = () => ({
|
||||
// disabledHours: () => range(0, 24).splice(4, 20),
|
||||
disabledMinutes: () => range(30, 60),
|
||||
disabledSeconds: () => [55, 56],
|
||||
});
|
||||
|
||||
*/
|
||||
async function confirm() {
|
||||
// debugger;
|
||||
console.log("确定按钮:");
|
||||
|
||||
@@ -291,6 +291,9 @@ function reset() {
|
||||
selectsData.value = [];
|
||||
params.value.pageNo = 1
|
||||
params.value.keyWord = ''
|
||||
params.value.createName = ''
|
||||
params.value.manager = ''
|
||||
params.value.name = ''
|
||||
fetch()
|
||||
}
|
||||
|
||||
|
||||
@@ -180,6 +180,7 @@ function reset() {
|
||||
selectsData.value = [];
|
||||
params.value.pageIndex = 1;
|
||||
params.value.keyWord = "";
|
||||
params.value.assessmentName ="";
|
||||
fetch();
|
||||
}
|
||||
|
||||
@@ -231,6 +232,8 @@ const goResearchmanage = () => {
|
||||
.main_item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
|
||||
.fi_input {
|
||||
margin-right: 20px;
|
||||
|
||||
@@ -360,7 +360,7 @@ export default {
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "证书",
|
||||
title: "已获得积分",
|
||||
dataIndex: "diploma",
|
||||
key: "diploma",
|
||||
width: 40,
|
||||
|
||||
Reference in New Issue
Block a user