Prechádzať zdrojové kódy

refactor: adjust some styles

Casper Dai 3 rokov pred
rodič
commit
d04dd29990

+ 10 - 12
src/views/review/workflow/detail/index.vue

@@ -6,20 +6,20 @@
     padding
     background
   >
+    <div class="l-flex__none l-flex--row has-bottom-padding u-color--black">
+      <i
+        class="l-flex__none o-icon medium o-icon--back el-icon-arrow-left u-pointer u-bold"
+        @click="onBack"
+      />
+      <span class="c-sibling-item o-title u-bold">{{ title }}</span>
+      <span class="c-sibling-item far o-user">{{ createBy }}</span>
+    </div>
     <status-wrapper
       v-if="loading || error"
       :error="error"
       @click="getPublishWorkflowDetail"
     />
     <template v-else>
-      <div class="l-flex__none l-flex--row o-title has-bottom-padding u-color--black">
-        <i
-          class="l-flex__none o-icon medium o-icon--back el-icon-arrow-left u-pointer u-bold"
-          @click="onBack"
-        />
-        <span class="u-bold">{{ title }}</span>
-        <span class="o-user-name">{{ createBy }}</span>
-      </div>
       <div class="l-flex__none l-flex--row has-padding">
         <el-steps
           :active="active"
@@ -154,7 +154,7 @@ export default {
       return this.workflow?.calendarReleaseScheduling.programCalendarName
     },
     createBy () {
-      const user = this.$route.params.createBy || this.workflow?.calendarReleaseScheduling.createByUsername
+      const user = this.workflow?.calendarReleaseScheduling.createByUsername
       return user ? `申请人:${user}` : ''
     },
     hasMinios () {
@@ -291,9 +291,7 @@ export default {
   font-size: 18px;
 }
 
-.o-user-name {
+.o-user {
   font-size: 14px;
-  margin-left: 30px;
-  font-weight: 400;
 }
 </style>

+ 2 - 5
src/views/review/workflow/index.vue

@@ -51,7 +51,7 @@ export default {
     }
   },
   activated () {
-    this.$refs.table.pageTo(1)
+    this.$refs.table.pageTo()
   },
   methods: {
     transform (item) {
@@ -109,10 +109,7 @@ export default {
     onReview (item) {
       this.$router.push({
         name: 'workflow-detail',
-        params: {
-          id: item.workflowId,
-          createBy: item.createBy
-        }
+        params: { id: item.workflowId }
       })
     }
   }