parent
0593ad11f0
commit
1b9f915de5
|
|
@ -62,7 +62,7 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import { userLstApi } from '@/api/system'
|
import { userLstApi } from '@/api/system'
|
||||||
import {getConfigApi} from "@/api/systemForm";
|
|
||||||
export default {
|
export default {
|
||||||
name: 'UserList',
|
name: 'UserList',
|
||||||
filters: {
|
filters: {
|
||||||
|
|
@ -105,10 +105,9 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getList(1)
|
this.getList(1)
|
||||||
getConfigApi().then(res => {
|
// 获取配置信息
|
||||||
this.config = res.data || {};
|
this.$root.getConfig().then((res) => {
|
||||||
}).catch(res => {
|
this.config = res
|
||||||
this.$message.error(res.message)
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
28
src/main.js
28
src/main.js
|
|
@ -9,7 +9,7 @@ import Element from 'element-ui'
|
||||||
import Moment from 'moment'
|
import Moment from 'moment'
|
||||||
import cascader from 'element-ui/lib/cascader'
|
import cascader from 'element-ui/lib/cascader'
|
||||||
import './styles/element-variables.scss'
|
import './styles/element-variables.scss'
|
||||||
import 'viewerjs/dist/viewer.css';
|
import 'viewerjs/dist/viewer.css'
|
||||||
|
|
||||||
import '@/styles/index.scss' // global css
|
import '@/styles/index.scss' // global css
|
||||||
import '@/styles/iconfont/iconfont.css'
|
import '@/styles/iconfont/iconfont.css'
|
||||||
|
|
@ -21,7 +21,7 @@ import VueLazyload from 'vue-lazyload'
|
||||||
import App from './App'
|
import App from './App'
|
||||||
import store from './store'
|
import store from './store'
|
||||||
import router from './router'
|
import router from './router'
|
||||||
import Viewer from 'v-viewer';
|
import Viewer from 'v-viewer'
|
||||||
import FormCreate from '@form-create/element-ui'
|
import FormCreate from '@form-create/element-ui'
|
||||||
import uploadPicture from './components/uploadPicture/uploadFrom'
|
import uploadPicture from './components/uploadPicture/uploadFrom'
|
||||||
import VueUeditorWrap from 'vue-ueditor-wrap'
|
import VueUeditorWrap from 'vue-ueditor-wrap'
|
||||||
|
|
@ -45,15 +45,16 @@ import { modalSureDelete } from '@/libs/public'
|
||||||
import * as filters from './filters' // global filters modalTemplates
|
import * as filters from './filters' // global filters modalTemplates
|
||||||
import notice from '@/libs/notice' // global filters
|
import notice from '@/libs/notice' // global filters
|
||||||
import { getToken } from './utils/auth'
|
import { getToken } from './utils/auth'
|
||||||
|
import { getConfigApi } from '@/api/systemForm'
|
||||||
|
|
||||||
Vue.use(uploadPicture)
|
Vue.use(uploadPicture)
|
||||||
Vue.use(FormCreate)
|
Vue.use(FormCreate)
|
||||||
Vue.use(VueAwesomeSwiper)
|
Vue.use(VueAwesomeSwiper)
|
||||||
Vue.use(Viewer, {
|
Vue.use(Viewer, {
|
||||||
defaultOptions: {
|
defaultOptions: {
|
||||||
zIndex: 9999,
|
zIndex: 9999
|
||||||
},
|
}
|
||||||
});
|
})
|
||||||
Vue.use(VueLazyload, {
|
Vue.use(VueLazyload, {
|
||||||
preLoad: 1.3,
|
preLoad: 1.3,
|
||||||
error: require('./assets/images/no.png'),
|
error: require('./assets/images/no.png'),
|
||||||
|
|
@ -115,11 +116,26 @@ Vue.config.productionTip = false
|
||||||
export default new Vue({
|
export default new Vue({
|
||||||
el: '#app',
|
el: '#app',
|
||||||
data: {
|
data: {
|
||||||
notice: _notice
|
notice: _notice,
|
||||||
|
config: {}
|
||||||
},
|
},
|
||||||
|
created() {},
|
||||||
|
mounted() {},
|
||||||
methods: {
|
methods: {
|
||||||
closeNotice() {
|
closeNotice() {
|
||||||
this.notice && this.notice()
|
this.notice && this.notice()
|
||||||
|
},
|
||||||
|
async getConfig() {
|
||||||
|
let _this = this
|
||||||
|
if (Object.values(_this.config).length <= 0) {
|
||||||
|
await getConfigApi().then(res => {
|
||||||
|
_this.config = res.data || {}
|
||||||
|
}).catch(err => {
|
||||||
|
console.log('配置信息获取失败' + err)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
return _this.config
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
router,
|
router,
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue