1
0
mirror of https://github.com/chowa/ejyy.git synced 2026-01-21 05:07:48 +08:00
Files
ejyy/web/src/views/setting/tpl.vue
xuecong 04256ba341 v1.0.0
2021-11-08 14:45:41 +08:00

83 lines
2.2 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<section>
<Header>
<span slot="description">
微信公众号模板消息内设置此处仅供展示
</span>
</Header>
<Card dis-hover :bordered="false">
<Table stripe :columns="columns" :data="list" />
</Card>
<Spin size="large" fix v-if="fetching" />
</section>
</template>
<script>
/**
* +----------------------------------------------------------------------
* | 「e家宜业」 —— 助力物业服务升级,用心服务万千业主
* +----------------------------------------------------------------------
* | Copyright (c) 2020~2021 https://www.chowa.com All rights reserved.
* +----------------------------------------------------------------------
* | Licensed 未经许可不能去掉「e家宜业」和「卓瓦科技」相关版权
* +----------------------------------------------------------------------
* | Author: jixuecong@chowa.cn
* +----------------------------------------------------------------------
*/
import { Header } from '@/components';
import { Card, Spin, Table } from 'view-design';
import * as utils from '@/utils';
export default {
name: 'SettingTpl',
data() {
return {
fetching: true,
list: [],
columns: [
{
title: '模板标题',
minWidth: 140,
key: 'title'
},
{
title: '模板id',
key: 'template_id',
minWidth: 120
},
{
title: '模板示例',
minWidth: 320,
key: 'content'
}
]
};
},
mounted() {
this.getListData();
},
methods: {
getListData() {
this.fetching = true;
utils.request
.get('/oa/tpl')
.then(res => {
this.fetching = false;
this.list = res.data.list;
})
.catch(() => (this.fetching = false));
}
},
components: {
Header,
Card,
Spin,
Table
}
};
</script>