Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
supply-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 65c2bdc3
authored
Apr 07, 2021
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新文件及cdn配置
1 parent
e2d6dc1b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
150 additions
and
30 deletions
src/components/dialog/index.vue
src/components/dialog/indexOld.vue
vue.config.js
src/components/dialog/index.vue
View file @
65c2bdc
<
template
>
<
template
>
<div
class=
"dialog_page"
>
<div
class=
"dialog_page"
>
<el-dialog
<el-dialog
:title=
"title"
:visible
.
sync=
"show"
:width=
"width"
:append-to-body=
"appendtobody"
custom-class=
"glsx_dialog"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
@
close=
"onCancel"
>
:title=
"title"
:visible
.
sync=
"show"
:width=
"width"
custom-class=
"glsx_dialog"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
@
close=
"onCancel"
>
<div
class=
"dialog_content"
>
<div
class=
"dialog_content"
>
<slot
/>
<slot
/>
</div>
</div>
<div
class=
"dialog_footer"
v-show=
"
usef
ooter"
>
<div
class=
"dialog_footer"
v-show=
"
hasF
ooter"
>
<slot
name=
"footer"
></slot>
<slot
name=
"footer"
></slot>
</div>
</div>
</el-dialog>
</el-dialog>
...
@@ -49,18 +41,30 @@ export default {
...
@@ -49,18 +41,30 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
,
},
},
appendtobody
:
{
required
:
false
,
type
:
Boolean
,
default
:
false
,
},
},
},
data
()
{
data
()
{
return
{}
return
{
hasFooter
:
false
,
}
},
created
()
{
let
o
=
this
.
$slots
this
.
hasFooter
=
o
.
footer
},
},
created
()
{},
mounted
:
function
()
{},
mounted
:
function
()
{},
methods
:
{
methods
:
{
/**
/**
* 取消关闭弹框
* 取消关闭弹框
*/
*/
onCancel
:
function
()
{
onCancel
:
function
()
{
// 兼容以前的页面
this
.
$emit
(
'closed'
)
this
.
$emit
(
'closed'
)
this
.
$emit
(
'close'
)
},
},
/**
/**
...
...
src/components/dialog/indexOld.vue
0 → 100644
View file @
65c2bdc
<
template
>
<div
class=
"dialog_page"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"show"
:width=
"width"
custom-class=
"glsx_dialog"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
@
close=
"onCancel"
>
<div
class=
"dialog_content"
>
<slot
/>
</div>
<div
class=
"dialog_footer"
v-show=
"usefooter"
>
<slot
name=
"footer"
></slot>
</div>
</el-dialog>
</div>
</
template
>
<
script
>
import
{}
from
'@/http/interface'
export
default
{
name
:
'GlsxDialog'
,
props
:
{
show
:
{
type
:
Boolean
,
default
:
false
,
},
title
:
{
type
:
String
,
default
:
'提示'
,
},
width
:
{
type
:
String
,
default
:
'46%'
,
},
cancel
:
{
required
:
false
,
type
:
Function
,
},
confirm
:
{
required
:
false
,
type
:
Function
,
},
usefooter
:
{
required
:
false
,
type
:
Boolean
,
default
:
false
,
},
},
data
()
{
return
{}
},
created
()
{},
mounted
:
function
()
{},
methods
:
{
/**
* 取消关闭弹框
*/
onCancel
:
function
()
{
this
.
$emit
(
'closed'
)
},
/**
* 确定
*/
onConfirm
:
function
()
{},
},
}
</
script
>
<
style
lang=
"scss"
>
.glsx_dialog
{
.el-dialog__header
{
border-bottom
:
1px
solid
#ddd
!important
;
padding-top
:
10px
;
font-size
:
14px
;
}
.el-dialog__headerbtn
{
top
:
10px
;
right
:
10px
;
}
.el-dialog__body
{
padding
:
0
;
}
.el-dialog__footer
{
border-top
:
1px
solid
#ddd
;
}
}
</
style
>
<
style
lang=
"scss"
scoped
>
.dialog_content
{
max-height
:
600px
;
overflow-y
:
auto
;
padding
:
20px
;
}
.dialog_footer
{
padding
:
10px
15px
;
border-top
:
1px
solid
#e1e1e1
;
text-align
:
right
;
}
</
style
>
vue.config.js
View file @
65c2bdc
...
@@ -13,27 +13,39 @@ const port = process.env.port || process.env.npm_config_port || 9528 // dev port
...
@@ -13,27 +13,39 @@ const port = process.env.port || process.env.npm_config_port || 9528 // dev port
// 基础路径 注意发布之前要先修改这里
// 基础路径 注意发布之前要先修改这里
let
publicPath
=
'/supply-web/'
let
publicPath
=
'/supply-web/'
const
CDN_DOMAIN
=
'https://cdn.bootcss.com'
// const CDN_DOMAIN = 'https://cdn.bootcss.com'
const
CDN_DOMAIN
=
'https://cdn.bootcdn.net'
const
cdn
=
{
const
cdn
=
{
css
:
[
css
:
[
`
${
CDN_DOMAIN
}
/element-ui/2.11.1/theme-chalk/index.css`
,
// `${CDN_DOMAIN}/element-ui/2.11.1/theme-chalk/index.css`,
`
${
CDN_DOMAIN
}
/nprogress/0.2.0/nprogress.min.css`
// `${CDN_DOMAIN}/nprogress/0.2.0/nprogress.min.css`
`
${
CDN_DOMAIN
}
/ajax/libs/element-ui/2.11.1/theme-chalk/index.css`
,
`
${
CDN_DOMAIN
}
/ajax/libs/nprogress/0.2.0/nprogress.min.css`
],
],
js
:
[
// js: [
`
${
CDN_DOMAIN
}
/vue/2.6.10/vue.min.js`
,
// `${CDN_DOMAIN}/vue/2.6.10/vue.min.js`,
`
${
CDN_DOMAIN
}
/vue-router/3.0.6/vue-router.min.js`
,
// `${CDN_DOMAIN}/vue-router/3.0.6/vue-router.min.js`,
`
${
CDN_DOMAIN
}
/element-ui/2.11.1/index.js`
,
// `${CDN_DOMAIN}/element-ui/2.11.1/index.js`,
`
${
CDN_DOMAIN
}
/vuex/3.1.1/vuex.min.js`
,
// `${CDN_DOMAIN}/vuex/3.1.1/vuex.min.js`,
`
${
CDN_DOMAIN
}
/axios/0.19.0/axios.min.js`
,
// `${CDN_DOMAIN}/axios/0.19.0/axios.min.js`,
`
${
CDN_DOMAIN
}
/js-cookie/2.2.0/js.cookie.min.js`
,
// `${CDN_DOMAIN}/js-cookie/2.2.0/js.cookie.min.js`,
`
${
CDN_DOMAIN
}
/nprogress/0.2.0/nprogress.min.js`
,
// `${CDN_DOMAIN}/nprogress/0.2.0/nprogress.min.js`,
`
${
CDN_DOMAIN
}
/echarts/4.3.0-rc.1/echarts.min.js`
,
// `${CDN_DOMAIN}/echarts/4.3.0-rc.1/echarts.min.js`,
//`${CDN_DOMAIN}/lodash.js/4.17.15/lodash.min.js`,
// //`${CDN_DOMAIN}/lodash.js/4.17.15/lodash.min.js`,
//`${CDN_DOMAIN}/qs/6.8.0/qs.min.js`,
// //`${CDN_DOMAIN}/qs/6.8.0/qs.min.js`,
// `${CDN_DOMAIN}/core-js/2.6.9/core.min.js`,
// // `${CDN_DOMAIN}/core-js/2.6.9/core.min.js`,
// `${CDN_DOMAIN}/vue-i18n/8.14.0/vue-i18n.esm.js`,
// // `${CDN_DOMAIN}/vue-i18n/8.14.0/vue-i18n.esm.js`,
//`${CDN_DOMAIN}/UAParser.js/0.7.20/ua-parser.min.js`
// //`${CDN_DOMAIN}/UAParser.js/0.7.20/ua-parser.min.js`
//'https://unpkg.com/better-scroll@1.15.2/dist/bscroll.min.js'
// //'https://unpkg.com/better-scroll@1.15.2/dist/bscroll.min.js'
// ]
js
:[
`
${
CDN_DOMAIN
}
/ajax/libs/vue/2.6.9/vue.min.js`
,
`
${
CDN_DOMAIN
}
/ajax/libs/vue-router/3.0.6/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
/ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
/ajax/libs/vuex/3.1.1/vuex.min.js`
,
`
${
CDN_DOMAIN
}
/ajax/libs/axios/0.19.0/axios.min.js`
,
`
${
CDN_DOMAIN
}
/ajax/libs/js-cookie/2.2.0/js.cookie.min.js`
,
`
${
CDN_DOMAIN
}
/ajax/libs/nprogress/0.2.0/nprogress.min.js`
,
]
]
}
}
module
.
exports
=
{
module
.
exports
=
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment