Commit e8c0701d by chenyu

update: update

parent 92f9fa30
......@@ -848,7 +848,7 @@
<template slot-scope="{row}">{{row.agreementType|agreementTypeFilter}}</template>
</el-table-column>
<el-table-column width="200" property="createTime" label="上传时间">
<template slot-scope="{row}">{{row.createTime}}</template>
<template slot-scope="{row}">{{row.createTime|formatDate}}</template>
</el-table-column>
</el-table>
<el-button slot="reference" type="text" class="m-l-16" v-if="!parent.channel">查看上传记录</el-button>
......@@ -1515,9 +1515,7 @@ export default {
.post(`${this.baseUrl}/api-admin/list-service-privacy-agreement`, qs.stringify(para))
.then(res => {
if (res.data.errorCode === 0) {
let list=res.data.result||[];
list.map(el=>(el.createTime=moment(el.createTime).format('YYYY-MM-DD HH:mm:ss')))
this[templateCode].options =[].concat(list)
this[templateCode].options =[].concat(res.data.result||[])
}
})
.catch(err => {
......@@ -2153,7 +2151,7 @@ export default {
return '';
},
formatDate(date) {
return moment(date).format('YYYY-MM-DD hh:mm:ss');
return moment(date).format('YYYY-MM-DD HH:mm:ss');
},
agreementTypeFilter(v) {
switch (v) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment