功能变化: npm run lint
parent
51a6c569a2
commit
de1071c7b8
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "django-vue-admin",
|
"name": "django-vue-admin",
|
||||||
"version": "2.0.7",
|
"version": "2.0.8",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve --open",
|
"serve": "vue-cli-service serve --open",
|
||||||
"start": "npm run serve",
|
"start": "npm run serve",
|
||||||
|
|
|
@ -216,7 +216,7 @@ const refreshTken = function () {
|
||||||
* @param method
|
* @param method
|
||||||
* @param filename
|
* @param filename
|
||||||
*/
|
*/
|
||||||
export const downloadFile = function ({ url, params, method, filename= '文件导出' }) {
|
export const downloadFile = function ({ url, params, method, filename = '文件导出' }) {
|
||||||
request({
|
request({
|
||||||
url: url,
|
url: url,
|
||||||
method: method,
|
method: method,
|
||||||
|
|
|
@ -29,7 +29,7 @@ function webSocketOnError (e) {
|
||||||
*/
|
*/
|
||||||
function webSocketOnMessage (e) {
|
function webSocketOnMessage (e) {
|
||||||
const data = JSON.parse(e.data)
|
const data = JSON.parse(e.data)
|
||||||
const {unread} = data
|
const { unread } = data
|
||||||
store.dispatch('d2admin/messagecenter/setUnread', unread || 0)
|
store.dispatch('d2admin/messagecenter/setUnread', unread || 0)
|
||||||
if (data.contentType === 'SYSTEM') {
|
if (data.contentType === 'SYSTEM') {
|
||||||
ElementUI.Notification({
|
ElementUI.Notification({
|
||||||
|
|
|
@ -84,7 +84,7 @@ export default {
|
||||||
this.tabActivted = name
|
this.tabActivted = name
|
||||||
this.doRefresh()
|
this.doRefresh()
|
||||||
},
|
},
|
||||||
//关闭事件
|
// 关闭事件
|
||||||
doDialogClosed (context) {
|
doDialogClosed (context) {
|
||||||
this.doRefresh()
|
this.doRefresh()
|
||||||
}
|
}
|
||||||
|
|
|
@ -119,7 +119,6 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as api from './api'
|
import * as api from './api'
|
||||||
import * as deptApi from '../dept/api'
|
|
||||||
import XEUtils from 'xe-utils'
|
import XEUtils from 'xe-utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -239,9 +238,9 @@ export default {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//获取权限范围
|
// 获取权限范围
|
||||||
GetDataScope(){
|
GetDataScope () {
|
||||||
api.GetDataScope().then(res=>{
|
api.GetDataScope().then(res => {
|
||||||
this.dataScopeOptions = res.data
|
this.dataScopeOptions = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -199,8 +199,8 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//部门懒加载
|
// 部门懒加载
|
||||||
loadChildrenMethod({ row} ){
|
loadChildrenMethod ({ row }) {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const childs = [
|
const childs = [
|
||||||
|
|
Loading…
Reference in New Issue