mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-19 03:56:45 +08:00
Jeecg-Boot 2.2.0 版本发布 | 重磅升级
This commit is contained in:
26
ant-design-vue-jeecg/src/mixins/OnlineCommonUtil.js
Normal file
26
ant-design-vue-jeecg/src/mixins/OnlineCommonUtil.js
Normal file
@ -0,0 +1,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 }
|
||||
Reference in New Issue
Block a user