Blame view

src/pages/custom-service/components/common-form.js 547 Bytes
simon committed
1 2 3 4 5
/**
 * 页面描述:常用表格
 */


simon committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
import api from '@/api/api'
import {
	httpGet,
	httpPost
} from '@/api/fetch-api.js'

export default {
	data() {
		return {
			key: 'value'
		}
	},
	components: {},
	computed: {
		locale() {
			return this.$i18n.locale || 'tc';
		},
		i18n() {
			return this.$i18n.messages && this.$i18n.locale ? this.$i18n.messages[this.$i18n.locale] : {};
		},
	},
	methods: {
1  
joe committed
28 29
		downloadHandle(item) {
			if (item.download) {
simon committed
30
				window.open(item.download);
1  
joe committed
31 32 33
			}
		},
		initData() { }
simon committed
34
	},
1  
joe committed
35 36
	mounted() { },
	created() { }
simon committed
37
}