Browse Source

平台修改融资产品头部换成header-bar组件

zhanglb 3 years ago
parent
commit
2795274969
1 changed files with 21 additions and 26 deletions
  1. 21 26
      front-vue/src/views/service/financeProduct/editFinanceProduct.vue

+ 21 - 26
front-vue/src/views/service/financeProduct/editFinanceProduct.vue

@@ -1,31 +1,6 @@
 <template>
 <div class="app-container zap-main">
-    <div class="zap-No">
-        <el-row type="flex" align="middle" :gutter="10">
-            <el-col :span="8">
-                <el-row type="flex" align="middle">
-                    <img class="icon" src="../../../assets/images/icon_contract_no.png" alt="">
-                    <span class="label">融资产品编号</span>
-                    <span class="value">{{form.zfpNumber}}</span>
-                </el-row>
-            </el-col>
-            <el-col :span="8">
-                <el-row type="flex" align="middle">
-                    <img class="icon" src="../../../assets/images/icon_calendar.png" alt="">
-                    <span class="label">创建时间</span>
-                    <el-date-picker disabled v-model="form.createTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss">
-                    </el-date-picker>
-                </el-row>
-            </el-col>
-            <el-col :span="8">
-                <el-row type="flex" align="middle">
-                    <img class="icon" src="../../../assets/images/icon_person.png" alt="">
-                    <span class="label">创建人</span>
-                    <span class="value">{{userName}}</span>
-                </el-row>
-            </el-col>
-        </el-row>
-    </div>
+    <header-bar :list="headerList"></header-bar>
     <el-form :inline="true" ref="form" :model="form" :rules="rules" label-width="auto">
         <div class="zap-title zap-margin-top">基本信息</div>
         <el-row class="zap-form">
@@ -308,6 +283,26 @@ export default {
             },
         };
     },
+    computed: {
+        headerList() {
+            return [{
+                    icon: require('../../../assets/images/components/headerBar/icon_creater.png'),
+                    label: '创建人:',
+                    value: this.userName
+                },
+                {
+                    icon: require('../../../assets/images/components/headerBar/icon_calendar.png'),
+                    label: '创建日期:',
+                    value: this.parseTime(new Date(this.form.createTime))
+                },
+                {
+                    icon: require('../../../assets/images/components/headerBar/icon_list.png'),
+                    label: '编号:',
+                    value: this.form.zfpNumber
+                },
+            ]
+        }
+    },
     created() {
         const zfpId = this.$route.params && this.$route.params.zfpId;
         this.reset();