Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
gassafety-progress
Commits
328da0d0
Commit
328da0d0
authored
Feb 18, 2022
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改dilog默认值
parent
e523b86a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
42 deletions
+52
-42
main.js
gassafetyprogress-web/src/main.js
+52
-42
No files found.
gassafetyprogress-web/src/main.js
View file @
328da0d0
/*
* @Author: your name
* @Date: 2022-01-07 11:29:13
* @LastEditTime: 2022-02-1
7 11:35:38
* @LastEditTime: 2022-02-1
8 17:29:27
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/main.js
*/
import
Vue
from
'vue'
import
Vue
from
"vue"
;
import
Cookies
from
'js-cookie'
import
Cookies
from
"js-cookie"
;
import
Element
from
'element-ui'
import
'./assets/styles/element-variables.scss'
import
Element
from
"element-ui"
;
import
"./assets/styles/element-variables.scss"
;
import
'@/assets/styles/index.scss'
// global css
import
'@/assets/styles/zehong.scss'
// zehong css
import
'./assets/css/font.css'
import
'./assets/styles/all.scss'
import
"@/assets/styles/index.scss"
;
// global css
import
"@/assets/styles/zehong.scss"
;
// zehong css
import
"./assets/css/font.css"
;
import
"./assets/styles/all.scss"
;
import
App
from
'./App'
import
store
from
'./store'
import
router
from
'./router'
import
permission
from
'./directive/permission'
import
*
as
echarts
from
'echarts'
import
'./assets/icons'
// icon
import
'./permission'
// permission control
import
App
from
"./App"
;
import
store
from
"./store"
;
import
router
from
"./router"
;
import
permission
from
"./directive/permission"
;
import
*
as
echarts
from
"echarts"
;
import
"./assets/icons"
;
// icon
import
"./permission"
;
// permission control
import
{
getDicts
}
from
"@/api/system/dict/data"
;
import
{
getConfigKey
}
from
"@/api/system/config"
;
import
{
parseTime
,
resetForm
,
addDateRange
,
selectDictLabel
,
selectDictLabels
,
download
,
handleTree
}
from
"@/utils/zehong"
;
import
{
parseTime
,
resetForm
,
addDateRange
,
selectDictLabel
,
selectDictLabels
,
download
,
handleTree
,
}
from
"@/utils/zehong"
;
import
Pagination
from
"@/components/Pagination"
;
// 自定义表格工具扩展
import
RightToolbar
from
"@/components/RightToolbar"
import
RightToolbar
from
"@/components/RightToolbar"
;
// 全局方法挂载
Vue
.
prototype
.
$echarts
=
echarts
Vue
.
prototype
.
$echarts
=
echarts
;
Vue
.
prototype
.
$Vue
=
Vue
;
Vue
.
prototype
.
getDicts
=
getDicts
Vue
.
prototype
.
getConfigKey
=
getConfigKey
Vue
.
prototype
.
parseTime
=
parseTime
Vue
.
prototype
.
resetForm
=
resetForm
Vue
.
prototype
.
addDateRange
=
addDateRange
Vue
.
prototype
.
selectDictLabel
=
selectDictLabel
Vue
.
prototype
.
selectDictLabels
=
selectDictLabels
Vue
.
prototype
.
download
=
download
Vue
.
prototype
.
handleTree
=
handleTree
Vue
.
prototype
.
getDicts
=
getDicts
;
Vue
.
prototype
.
getConfigKey
=
getConfigKey
;
Vue
.
prototype
.
parseTime
=
parseTime
;
Vue
.
prototype
.
resetForm
=
resetForm
;
Vue
.
prototype
.
addDateRange
=
addDateRange
;
Vue
.
prototype
.
selectDictLabel
=
selectDictLabel
;
Vue
.
prototype
.
selectDictLabels
=
selectDictLabels
;
Vue
.
prototype
.
download
=
download
;
Vue
.
prototype
.
handleTree
=
handleTree
;
Vue
.
prototype
.
msgSuccess
=
function
(
msg
)
{
this
.
$message
({
showClose
:
true
,
message
:
msg
,
type
:
"success"
});
}
}
;
Vue
.
prototype
.
msgError
=
function
(
msg
)
{
this
.
$message
({
showClose
:
true
,
message
:
msg
,
type
:
"error"
});
}
}
;
Vue
.
prototype
.
msgInfo
=
function
(
msg
)
{
this
.
$message
.
info
(
msg
);
}
}
;
// 全局组件挂载
Vue
.
component
(
'Pagination'
,
Pagination
)
Vue
.
component
(
'RightToolbar'
,
RightToolbar
)
Vue
.
component
(
"Pagination"
,
Pagination
);
Vue
.
component
(
"RightToolbar"
,
RightToolbar
);
Vue
.
use
(
permission
)
Vue
.
use
(
permission
)
;
/**
* If you don't want to use mock-server
...
...
@@ -72,16 +79,19 @@ Vue.use(permission)
* Currently MockJs will be used in the production environment,
* please remove it before going online! ! !
*/
// dialog只允许点关闭或者取消按钮关闭
Element
.
Dialog
.
props
.
closeOnClickModal
=
false
;
Element
.
Dialog
.
props
.
closeOnPressEscape
=
false
;
Vue
.
use
(
Element
,
{
size
:
Cookies
.
get
(
'size'
)
||
'medium'
// set element-ui default size
})
size
:
Cookies
.
get
(
"size"
)
||
"medium"
,
// set element-ui default size
});
console
.
log
(
Element
);
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
;
new
Vue
({
el
:
'#app'
,
el
:
"#app"
,
router
,
store
,
render
:
h
=>
h
(
App
)
})
render
:
(
h
)
=>
h
(
App
),
})
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment