OnlineCommonUtil.js 482 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
import { formatDate } from '@/utils/util'
import Area from '@/components/_util/Area'

const onlUtil = {
  data(){
    return {
      mixin_pca:''
    }
  },
  created(){
    this.mixin_pca = new Area()
  },
  methods:{
    simpleDateFormat(millisecond, format){
      return formatDate(millisecond, format)
    },
    getPcaText(code){
      return this.mixin_pca.getText(code);
    },
    getPcaCode(text){
      return this.mixin_pca.getCode(text)
    }
  }
}

export  { onlUtil }