mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-10 00:11:22 +08:00
Merge pull request #6723 from aignatov-bio/ai-sci-add-reminder-to-date-fields
Add datetime reminder to item card
This commit is contained in:
commit
00f365cb03
7 changed files with 15 additions and 19 deletions
|
|
@ -1,13 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<div class="text-sm font-bold truncate" :title="colName">
|
|
||||||
{{ colName }}
|
|
||||||
</div>
|
|
||||||
<DateTimeComponent
|
<DateTimeComponent
|
||||||
mode="date"
|
mode="date"
|
||||||
:range="true"
|
:range="true"
|
||||||
:colVal="colVal"
|
:colVal="colVal"
|
||||||
:colId="colId"
|
:colId="colId"
|
||||||
|
:colName="colName"
|
||||||
:updatePath="updatePath"
|
:updatePath="updatePath"
|
||||||
:canEdit="canEdit"
|
:canEdit="canEdit"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<div class="text-sm font-bold truncate" :title="colName">
|
|
||||||
{{ colName }}
|
|
||||||
</div>
|
|
||||||
<DateTimeComponent
|
<DateTimeComponent
|
||||||
mode="datetime"
|
mode="datetime"
|
||||||
:range="true"
|
:range="true"
|
||||||
:colVal="colVal"
|
:colVal="colVal"
|
||||||
:colId="colId"
|
:colId="colId"
|
||||||
|
:colName="colName"
|
||||||
:updatePath="updatePath"
|
:updatePath="updatePath"
|
||||||
:canEdit="canEdit"
|
:canEdit="canEdit"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<div class="text-sm font-bold truncate" :title="colName">
|
|
||||||
{{ colName }}
|
|
||||||
</div>
|
|
||||||
<DateTimeComponent
|
<DateTimeComponent
|
||||||
mode="datetime"
|
mode="datetime"
|
||||||
:colVal="colVal"
|
:colVal="colVal"
|
||||||
:colId="colId"
|
:colId="colId"
|
||||||
|
:colName="colName"
|
||||||
:updatePath="updatePath"
|
:updatePath="updatePath"
|
||||||
:canEdit="canEdit"
|
:canEdit="canEdit"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col gap2">
|
<div class="flex flex-col gap2">
|
||||||
<div class="font-inter text-sm font-semibold leading-5 truncate" :title="colName">
|
|
||||||
{{ colName }}
|
|
||||||
</div>
|
|
||||||
<DateTimeComponent
|
<DateTimeComponent
|
||||||
mode="date"
|
mode="date"
|
||||||
:colVal="colVal"
|
:colVal="colVal"
|
||||||
:colId="colId"
|
:colId="colId"
|
||||||
|
:colName="colName"
|
||||||
:updatePath="updatePath"
|
:updatePath="updatePath"
|
||||||
:canEdit="canEdit"
|
:canEdit="canEdit"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<div class="text-sm font-bold truncate" :title="colName">
|
|
||||||
{{ colName }}
|
|
||||||
</div>
|
|
||||||
<DateTimeComponent
|
<DateTimeComponent
|
||||||
mode="time"
|
mode="time"
|
||||||
:range="true"
|
:range="true"
|
||||||
:colVal="colVal"
|
:colVal="colVal"
|
||||||
:colId="colId"
|
:colId="colId"
|
||||||
|
:colName="colName"
|
||||||
:updatePath="updatePath"
|
:updatePath="updatePath"
|
||||||
:canEdit="canEdit"
|
:canEdit="canEdit"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<div class="text-sm font-bold truncate" :title="colName">
|
|
||||||
{{ colName }}
|
|
||||||
</div>
|
|
||||||
<DateTimeComponent
|
<DateTimeComponent
|
||||||
mode="time"
|
mode="time"
|
||||||
:colVal="colVal"
|
:colVal="colVal"
|
||||||
:colId="colId"
|
:colId="colId"
|
||||||
|
:colName="colName"
|
||||||
:updatePath="updatePath"
|
:updatePath="updatePath"
|
||||||
:canEdit="canEdit"
|
:canEdit="canEdit"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
|
<div class="flex gap-1">
|
||||||
|
<div class="text-sm font-bold truncate" :title="colName">
|
||||||
|
{{ colName }}
|
||||||
|
</div>
|
||||||
|
<div v-if="colVal.reminder" class="bg-sn-alert-passion w-1.5 h-1.5 rounded" :title="colVal.reminder_text"></div>
|
||||||
|
</div>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<template v-if="!canEdit">
|
<template v-if="!canEdit">
|
||||||
<span v-if="range">
|
<span v-if="range">
|
||||||
|
|
@ -57,7 +63,8 @@
|
||||||
colVal: { type: Object, default: {} },
|
colVal: { type: Object, default: {} },
|
||||||
colId: Number,
|
colId: Number,
|
||||||
updatePath: String,
|
updatePath: String,
|
||||||
canEdit: { type: Boolean, default: false }
|
canEdit: { type: Boolean, default: false },
|
||||||
|
colName: String,
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (this.range) {
|
if (this.range) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue