瀏覽代碼

提交车间管家文件

Lijy 1 年之前
父節點
當前提交
bc47e99882

+ 4 - 1
fhKeeper/formulahousekeeper/timesheet-workshop/src/views/plan/planComponent.vue

@@ -8,7 +8,7 @@
         </div>
         <div class="OutSide_center">
           <div class="block">
-            <span class="demonstration">查询以往{{ titleText }}</span>
+            <span class="demonstration">查询{{ titleLeftText }}{{ titleText }}</span>
             <el-date-picker v-model="planDate" type="date" value-format="yyyy-MM-dd" :clearable="false" @change="getTableData(hasChooseDept)"
               placeholder="选择日期" size="small" :picker-options="planType == 1 ? toMPickerOptions : todayPickerOptions">
             </el-date-picker>
@@ -227,6 +227,9 @@ export default {
     todayDate: {
       type: String,
     },
+    titleLeftText: {
+      type: String,
+    },
   },
   data() {
     return {

+ 4 - 1
fhKeeper/formulahousekeeper/timesheet-workshop/src/views/plan/planComponentDetil.vue

@@ -1,7 +1,7 @@
 <template>
     <div class='planComponentDetil'>
         <div class="planComponentDetil-top">
-            <div>{{ leftText }}</div>
+            <div style="color: #02A7F0;cursor: pointer;" @click="toBack()"><i class="el-icon-arrow-left" style="padding-right: 10px;"></i>{{ leftText }}</div>
             <div>{{ topText }}</div>
             <div></div>
         </div>
@@ -127,6 +127,9 @@ export default {
         this.getPlanDetail()
      },
     methods: {
+        toBack() {
+            this.$router.go(-1)
+        },
         tabChange(item, index) {
             this.TabIndex = index
             this.getPlanDetail()

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet-workshop/src/views/plan/today.vue

@@ -1,6 +1,6 @@
 <template>
   <div class='layout-container'>
-    <PlanComponent :planType="'0'" :titleText="'今日计划'" :todayDate="todayDate"></PlanComponent>
+    <PlanComponent :planType="'0'" :titleText="'今日计划'" :titleLeftText="'以往'" :todayDate="todayDate"></PlanComponent>
   </div>
 </template>
 

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet-workshop/src/views/plan/tomorrow.vue

@@ -1,6 +1,6 @@
 <template>
   <div class='layout-container'>
-    <PlanComponent :planType="'1'" :titleText="'明日计划'" :todayDate="todayDate"></PlanComponent>
+    <PlanComponent :planType="'1'" :titleText="'明日计划'" :titleLeftText="'未来'" :todayDate="todayDate"></PlanComponent>
   </div>
 </template>