CzRger 1 year ago
parent
commit
4c49ba1f67

+ 3 - 3
src/views/system/daily-manage/index.vue

@@ -36,9 +36,9 @@
           </CusForm>
         </template>
         <template #buttons>
-          <div class="__cus-button_submit __hover" @click="onAdd">
-            <SvgIcon name="add" size="16"/>新增
-          </div>
+<!--          <div class="__cus-button_submit __hover" @click="onAdd">-->
+<!--            <SvgIcon name="add" size="16"/>新增-->
+<!--          </div>-->
         </template>
         <template #table>
           <CusTable

+ 7 - 6
src/views/system/public-configuration/index.vue

@@ -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()

+ 3 - 3
src/views/system/weekly-manage/index.vue

@@ -39,9 +39,9 @@
           </CusForm>
         </template>
         <template #buttons>
-          <div class="__cus-button_submit __hover" @click="onAdd">
-            <SvgIcon name="add" size="16"/>新增
-          </div>
+<!--          <div class="__cus-button_submit __hover" @click="onAdd">-->
+<!--            <SvgIcon name="add" size="16"/>新增-->
+<!--          </div>-->
         </template>
         <template #table>
           <CusTable