|
@@ -16,7 +16,7 @@
|
|
|
v-model:param="form['sign.begin.time']"
|
|
|
:clearable="false"
|
|
|
:disabled="isDisabled"
|
|
|
- :title="isDisabled ? '每日20:00:00后可修改' : ''"
|
|
|
+ :title="isDisabled ? `每日${updateHour}:00:00后可修改` : ''"
|
|
|
@change="editKey('sign.begin.time')"/>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -41,7 +41,7 @@
|
|
|
v-model:param="form['sign.end.time']"
|
|
|
:clearable="false"
|
|
|
:disabled="isDisabled"
|
|
|
- :title="isDisabled ? '每日20:00:00后可修改' : ''"
|
|
|
+ :title="isDisabled ? `每日${updateHour}:00:00后可修改` : ''"
|
|
|
@change="editKey('sign.end.time')"/>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -62,7 +62,7 @@
|
|
|
v-model:param="form['log.submit.time']"
|
|
|
:clearable="false"
|
|
|
:disabled="isDisabled"
|
|
|
- :title="isDisabled ? '每日20:00:00后可修改' : ''"
|
|
|
+ :title="isDisabled ? `每日${updateHour}:00:00后可修改` : ''"
|
|
|
@change="editKey('log.submit.time')"/>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -106,7 +106,7 @@
|
|
|
v-model:param="form['week.submit.time']"
|
|
|
:clearable="false"
|
|
|
:disabled="isDisabled"
|
|
|
- :title="isDisabled ? '每日20:00:00后可修改' : ''"
|
|
|
+ :title="isDisabled ? `每日${updateHour}:00:00后可修改` : ''"
|
|
|
@change="editKey('week.submit.time')"/>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -174,7 +174,8 @@ export default defineComponent({
|
|
|
'week.submit.date': false,
|
|
|
'week.submit.time': false,
|
|
|
'week.remind.time': false,
|
|
|
- }
|
|
|
+ },
|
|
|
+ updateHour: '01'
|
|
|
})
|
|
|
const initDictionary = () => {
|
|
|
store.dispatch('dictionary/LOAD_DICT_LIST', 'config_sign_remind_time')
|
|
@@ -202,7 +203,7 @@ export default defineComponent({
|
|
|
}, 100)
|
|
|
}
|
|
|
const isDisabled = computed(() => {
|
|
|
- return new Date(store.state.app.timestamp).getHours() < 20
|
|
|
+ return new Date(store.state.app.timestamp).getHours() < Number(state.updateHour)
|
|
|
})
|
|
|
onMounted(() => {
|
|
|
initDictionary()
|