Pārlūkot izejas kodu

修改历史组件样式

Alfyn 5 dienas atpakaļ
vecāks
revīzija
b486ec9a51

+ 11 - 7
src/components/HistoryList/index.vue

@@ -16,9 +16,12 @@
             :disabled="item.histories.length == 0"
           >
             <p v-if="item.histories.length > 0">
-              {{ $t('global.Update') }} {{ item.histories[0].field_label }},{{ $t('global.Old-Value') }} "{{
+              {{ $t('global.Update') }} {{ item.histories[0].field_label }},
+              "{{
                 item.histories[0].old
-              }}",{{ $t('global.New-Value') }} "{{ item.histories[0].new }}"
+              }}"
+              <a-icon type="arrow-right" /> 
+              "{{ item.histories[0].new }}"
             </p>
             <div slot="header">
               {{ i + 1 + '. ' + item.created_at }}, {{ item.created_by.name }}
@@ -43,20 +46,21 @@
           >
             <div v-if="item.histories.length > 0 && item.histories[0].field_label != 'description'">
               <div v-for="(modifyItem, modifyItemIndex) in item.histories" :key="modifyItemIndex">
-                {{ $t('global.Update') }} {{ item.histories[modifyItemIndex].field_label }},{{ $t('global.Old-Value') }} "{{
-                  item.histories[modifyItemIndex].old
-                }}",{{ $t('global.New-Value') }} "{{ item.histories[modifyItemIndex].new }}"
+                {{ $t('global.Update') }} {{ item.histories[modifyItemIndex].field_label }},
+                "{{item.histories[modifyItemIndex].old}}"
+                <a-icon type="arrow-right" /> 
+                "{{ item.histories[modifyItemIndex].new }}"
               </div>
             </div>
             <div v-if="item.histories.length > 0 && item.histories[0].field_label == 'description'">
               <div v-for="(modifyItem, modifyItemIndex) in item.histories" :key="modifyItemIndex">
-                {{ $t('global.Update') }} {{ item.histories[modifyItemIndex].field_label }},{{ $t('global.Old-Value') }}
+                {{ $t('global.Update') }} {{ item.histories[modifyItemIndex].field_label }},
                 <div class="ql-container ql-snow">
                   <div class="ql-editor">
                     <div v-html="$xss(item.histories[modifyItemIndex].old)"></div>
                   </div>
                 </div>
-                ,{{ $t('global.New-Value') }}
+                <a-icon type="arrow-right" /> 
                 <div class="ql-container ql-snow">
                   <div class="ql-editor">
                     <div v-html="$xss(item.histories[modifyItemIndex].new)"></div>

+ 4 - 1
src/views/document/comp/searchFileOrFolder.vue

@@ -1,5 +1,5 @@
 <template>
-  <a-form layout="inline">
+  <a-form layout="inline" class="search-form">
     <a-row>
       <a-form-item :label="$t('global.Name')">
         <a-input placeholder="Search File or Folder" v-model="formInline.name"></a-input>
@@ -84,6 +84,9 @@ export default {
 </script>
 
 <style lang="less" scoped>
+.search-form{
+  margin-bottom: 10px;
+}
 /deep/.ant-select-selection--multiple .ant-select-selection__choice{
   max-width: 31%;
 }