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
6393b967
Commit
6393b967
authored
Feb 18, 2022
by
wuqinghua
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
8d163a41
32048128
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
43 deletions
+53
-43
index.vue
gassafetyprogress-web/src/components/GetPos/index.vue
+1
-1
main.js
gassafetyprogress-web/src/main.js
+52
-42
No files found.
gassafetyprogress-web/src/components/GetPos/index.vue
View file @
6393b967
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<div
@
click=
"pos"
class=
"positionBtn pos"
>
<div
@
click=
"pos"
class=
"positionBtn pos"
>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-position"
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-position"
>
定位
</el-button
>
确定
</el-button
>
>
</div>
</div>
</
template
>
</
template
>
...
...
gassafetyprogress-web/src/main.js
View file @
6393b967
/*
/*
* @Author: your name
* @Author: your name
* @Date: 2022-01-07 11:29:13
* @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
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/main.js
* @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
Element
from
"element-ui"
;
import
'./assets/styles/element-variables.scss'
import
"./assets/styles/element-variables.scss"
;
import
'@/assets/styles/index.scss'
// global css
import
"@/assets/styles/index.scss"
;
// global css
import
'@/assets/styles/zehong.scss'
// zehong css
import
"@/assets/styles/zehong.scss"
;
// zehong css
import
'./assets/css/font.css'
import
"./assets/css/font.css"
;
import
'./assets/styles/all.scss'
import
"./assets/styles/all.scss"
;
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
permission
from
'./directive/permission'
import
permission
from
"./directive/permission"
;
import
*
as
echarts
from
'echarts'
import
*
as
echarts
from
"echarts"
;
import
'./assets/icons'
// icon
import
"./assets/icons"
;
// icon
import
'./permission'
// permission control
import
"./permission"
;
// permission control
import
{
getDicts
}
from
"@/api/system/dict/data"
;
import
{
getDicts
}
from
"@/api/system/dict/data"
;
import
{
getConfigKey
}
from
"@/api/system/config"
;
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
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
.
$Vue
=
Vue
;
Vue
.
prototype
.
getDicts
=
getDicts
Vue
.
prototype
.
getDicts
=
getDicts
;
Vue
.
prototype
.
getConfigKey
=
getConfigKey
Vue
.
prototype
.
getConfigKey
=
getConfigKey
;
Vue
.
prototype
.
parseTime
=
parseTime
Vue
.
prototype
.
parseTime
=
parseTime
;
Vue
.
prototype
.
resetForm
=
resetForm
Vue
.
prototype
.
resetForm
=
resetForm
;
Vue
.
prototype
.
addDateRange
=
addDateRange
Vue
.
prototype
.
addDateRange
=
addDateRange
;
Vue
.
prototype
.
selectDictLabel
=
selectDictLabel
Vue
.
prototype
.
selectDictLabel
=
selectDictLabel
;
Vue
.
prototype
.
selectDictLabels
=
selectDictLabels
Vue
.
prototype
.
selectDictLabels
=
selectDictLabels
;
Vue
.
prototype
.
download
=
download
Vue
.
prototype
.
download
=
download
;
Vue
.
prototype
.
handleTree
=
handleTree
Vue
.
prototype
.
handleTree
=
handleTree
;
Vue
.
prototype
.
msgSuccess
=
function
(
msg
)
{
Vue
.
prototype
.
msgSuccess
=
function
(
msg
)
{
this
.
$message
({
showClose
:
true
,
message
:
msg
,
type
:
"success"
});
this
.
$message
({
showClose
:
true
,
message
:
msg
,
type
:
"success"
});
}
}
;
Vue
.
prototype
.
msgError
=
function
(
msg
)
{
Vue
.
prototype
.
msgError
=
function
(
msg
)
{
this
.
$message
({
showClose
:
true
,
message
:
msg
,
type
:
"error"
});
this
.
$message
({
showClose
:
true
,
message
:
msg
,
type
:
"error"
});
}
}
;
Vue
.
prototype
.
msgInfo
=
function
(
msg
)
{
Vue
.
prototype
.
msgInfo
=
function
(
msg
)
{
this
.
$message
.
info
(
msg
);
this
.
$message
.
info
(
msg
);
}
}
;
// 全局组件挂载
// 全局组件挂载
Vue
.
component
(
'Pagination'
,
Pagination
)
Vue
.
component
(
"Pagination"
,
Pagination
);
Vue
.
component
(
'RightToolbar'
,
RightToolbar
)
Vue
.
component
(
"RightToolbar"
,
RightToolbar
);
Vue
.
use
(
permission
)
Vue
.
use
(
permission
)
;
/**
/**
* If you don't want to use mock-server
* If you don't want to use mock-server
...
@@ -72,16 +79,19 @@ Vue.use(permission)
...
@@ -72,16 +79,19 @@ Vue.use(permission)
* Currently MockJs will be used in the production environment,
* Currently MockJs will be used in the production environment,
* please remove it before going online! ! !
* please remove it before going online! ! !
*/
*/
// dialog只允许点关闭或者取消按钮关闭
Element
.
Dialog
.
props
.
closeOnClickModal
=
false
;
Element
.
Dialog
.
props
.
closeOnPressEscape
=
false
;
Vue
.
use
(
Element
,
{
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
({
new
Vue
({
el
:
'#app'
,
el
:
"#app"
,
router
,
router
,
store
,
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