刘洋 7 months ago
parent
commit
f066021ccd

+ 2 - 2
src/views/work-hours/work-hours-manage/work-statistics/append-hours-dialog.vue

@@ -70,10 +70,10 @@ const rules = {
     },
     {
       validator: (val) => {
-        if (Number(val) <= 0) {
+        if (Number(val) < 0) {
           return {
             result: false,
-            message: '时长必须大于0',
+            message: '时长不能小于0',
           };
         }
         return {

+ 1 - 0
src/views/work-hours/work-hours-manage/work-statistics/index.vue

@@ -50,6 +50,7 @@
         <template #operate="{ row }">
           <div class="table-operations" @click.stop>
             <t-link
+              v-if="perm.LINK_AddDing"
               theme="primary"
               hover="color"
               @click="