Blame view

ant-design-vue-jeecg/src/mixins/OnlineCommonUtil.js 551 Bytes
肖超群 authored
1
import {formatDate} from '@/utils/util'
肖超群 authored
2
import Area from '@/components/_util/Area'
肖超群 authored
3
import {postAction} from '@/api/manage'
肖超群 authored
4
5

const onlUtil = {
肖超群 authored
6
  data() {
肖超群 authored
7
    return {
肖超群 authored
8
      mixin_pca: '',
肖超群 authored
9
10
11
      flowCodePre: 'onl_'
    }
  },
肖超群 authored
12
  created() {
肖超群 authored
13
14
    this.mixin_pca = new Area()
  },
肖超群 authored
15
16
  methods: {
    simpleDateFormat(millisecond, format) {
肖超群 authored
17
18
      return formatDate(millisecond, format)
    },
肖超群 authored
19
    getPcaText(code) {
肖超群 authored
20
21
      return this.mixin_pca.getText(code);
    },
肖超群 authored
22
    getPcaCode(text) {
肖超群 authored
23
24
25
26
27
      return this.mixin_pca.getCode(text)
    }
  }
}
肖超群 authored
28
export {onlUtil}