Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
MeteorologicalBureau
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b850620d
authored
Mar 18, 2020
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加邮箱
parent
c3126569
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
91 additions
and
53 deletions
+91
-53
admin/.env.development
+2
-1
admin/src/layout/mixin/ResizeHandler.js
+7
-7
admin/src/views/contents/snece.vue
+44
-44
admin/src/views/contents/warmingCenter/liaisonPerson.vue
+38
-1
No files found.
admin/.env.development
View file @
b850620d
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
ENV = 'development'
ENV = 'development'
# base api
# base api
VUE_APP_BASE_API = 'http://172.16.4.63:8090'
#VUE_APP_BASE_API = 'http://172.16.4.63:8090'
VUE_APP_BASE_API = 'http://123.56.149.208:8090'
VUE_APP_BASE_API_MOCK = '/dev-api'
VUE_APP_BASE_API_MOCK = '/dev-api'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
...
...
admin/src/layout/mixin/ResizeHandler.js
View file @
b850620d
...
@@ -32,14 +32,14 @@ export default {
...
@@ -32,14 +32,14 @@ export default {
return
rect
.
width
-
1
<
WIDTH
return
rect
.
width
-
1
<
WIDTH
},
},
$_resizeHandler
()
{
$_resizeHandler
()
{
if
(
!
document
.
hidden
)
{
//
if (!document.hidden) {
const
isMobile
=
this
.
$_isMobile
()
//
const isMobile = this.$_isMobile()
store
.
dispatch
(
'app/toggleDevice'
,
isMobile
?
'mobile'
:
'desktop'
)
//
store.dispatch('app/toggleDevice', isMobile ? 'mobile' : 'desktop')
if
(
isMobile
)
{
//
if (isMobile) {
store
.
dispatch
(
'app/closeSideBar'
,
{
withoutAnimation
:
true
})
//
store.dispatch('app/closeSideBar', { withoutAnimation: true })
}
//
}
}
//
}
}
}
}
}
}
}
admin/src/views/contents/snece.vue
View file @
b850620d
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
<div>
<div>
<div>
<div>
<div>
省份:
</div>
<div>
省份:
</div>
<br
/
>
<br>
<el-select
v-model=
"temp.code"
placeholder=
"请选择"
>
<el-select
v-model=
"temp.code"
placeholder=
"请选择"
>
<el-option
v-for=
"item in citys"
:key=
"item.name"
:label=
"item.name"
:value=
"item.code"
/>
<el-option
v-for=
"item in citys"
:key=
"item.name"
:label=
"item.name"
:value=
"item.code"
/>
</el-select>
</el-select>
</div>
</div>
<br
/
>
<br>
<el-checkbox
<el-checkbox
v-model=
"checkAll"
v-model=
"checkAll"
:indeterminate=
"isIndeterminate"
:indeterminate=
"isIndeterminate"
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
<el-checkbox
v-for=
"city in cities"
:key=
"city"
:label=
"city"
>
{{
city
}}
</el-checkbox>
<el-checkbox
v-for=
"city in cities"
:key=
"city"
:label=
"city"
>
{{
city
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</div>
</div>
<br
/
>
<br>
<br
/
>
<br>
<div>
<div>
<el-checkbox
<el-checkbox
v-model=
"checkAll2"
v-model=
"checkAll2"
...
@@ -42,95 +42,95 @@
...
@@ -42,95 +42,95 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getProvince
,
getVisit
,
updateVisit
}
from
"@/api/common"
;
import
{
getProvince
,
getVisit
,
updateVisit
}
from
'@/api/common'
const
cityOptions
=
[
"上海"
,
"北京"
,
"广州"
,
"深圳"
];
const
cityOptions
=
[
'上海'
,
'北京'
,
'广州'
,
'深圳'
]
const
defaultCity
=
[
const
defaultCity
=
[
{
{
name
:
"京津冀"
,
name
:
'京津冀'
,
code
:
"1"
code
:
'1'
},
},
{
{
name
:
"长三角"
,
name
:
'长三角'
,
code
:
"2"
code
:
'2'
},
},
{
{
name
:
"珠三角"
,
name
:
'珠三角'
,
code
:
"3"
code
:
'3'
},
},
{
{
name
:
"长江流域"
,
name
:
'长江流域'
,
code
:
"4"
code
:
'4'
}
}
]
;
]
export
default
{
export
default
{
name
:
"Modules"
,
name
:
'Modules'
,
data
()
{
data
()
{
return
{
return
{
checkAll
:
false
,
checkAll
:
false
,
citys
:
[],
citys
:
[],
checkedCities
:
[
"上海"
,
"北京"
],
checkedCities
:
[
'上海'
,
'北京'
],
cities
:
cityOptions
,
cities
:
cityOptions
,
isIndeterminate
:
true
,
isIndeterminate
:
true
,
checkAll2
:
false
,
checkAll2
:
false
,
checkedCities2
:
[
"上海"
,
"北京"
],
checkedCities2
:
[
'上海'
,
'北京'
],
cities2
:
cityOptions
,
cities2
:
cityOptions
,
isIndeterminate2
:
true
,
isIndeterminate2
:
true
,
temp
:
{
temp
:
{
code
:
"1"
code
:
'1'
}
}
}
;
}
},
},
created
()
{
created
()
{
this
.
getMyProvince
()
;
this
.
getMyProvince
()
this
.
getMyVisit
()
;
this
.
getMyVisit
()
},
},
methods
:
{
methods
:
{
submit
()
{
submit
()
{
updateVisit
({
updateVisit
({
code
:
""
,
code
:
''
,
industry
:
[],
industry
:
[],
position
:
[]
position
:
[]
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$notify
({
this
.
$notify
({
title
:
"Success"
,
title
:
'Success'
,
message
:
"更新成功"
,
message
:
'更新成功'
,
type
:
"success"
,
type
:
'success'
,
duration
:
2000
duration
:
2000
})
;
})
})
;
})
},
},
async
getMyProvince
()
{
async
getMyProvince
()
{
const
data
=
await
getProvince
()
;
const
data
=
await
getProvince
()
this
.
citys
=
[...
defaultCity
,
...
data
.
data
]
;
this
.
citys
=
[...
defaultCity
,
...
data
.
data
]
console
.
log
(
data
)
;
console
.
log
(
data
)
},
},
async
getMyVisit
()
{
async
getMyVisit
()
{
const
data
=
await
getVisit
()
;
const
data
=
await
getVisit
()
console
.
log
(
data
)
;
console
.
log
(
data
)
},
},
handleCheckAllChange
(
val
)
{
handleCheckAllChange
(
val
)
{
this
.
checkedCities
=
val
?
cityOptions
:
[]
;
this
.
checkedCities
=
val
?
cityOptions
:
[]
this
.
isIndeterminate
=
false
;
this
.
isIndeterminate
=
false
},
},
handleCheckedCitiesChange
(
value
)
{
handleCheckedCitiesChange
(
value
)
{
const
checkedCount
=
value
.
length
;
const
checkedCount
=
value
.
length
this
.
checkAll
=
checkedCount
===
this
.
cities
.
length
;
this
.
checkAll
=
checkedCount
===
this
.
cities
.
length
this
.
isIndeterminate
=
this
.
isIndeterminate
=
checkedCount
>
0
&&
checkedCount
<
this
.
cities
.
length
;
checkedCount
>
0
&&
checkedCount
<
this
.
cities
.
length
},
},
handleCheckAllChange2
(
val
)
{
handleCheckAllChange2
(
val
)
{
this
.
checkedCities
=
val
?
cityOptions
:
[]
;
this
.
checkedCities
=
val
?
cityOptions
:
[]
this
.
isIndeterminate
=
false
;
this
.
isIndeterminate
=
false
},
},
handleCheckedCitiesChange2
(
value
)
{
handleCheckedCitiesChange2
(
value
)
{
const
checkedCount
=
value
.
length
;
const
checkedCount
=
value
.
length
this
.
checkAll
=
checkedCount
===
this
.
cities
.
length
;
this
.
checkAll
=
checkedCount
===
this
.
cities
.
length
this
.
isIndeterminate
=
this
.
isIndeterminate
=
checkedCount
>
0
&&
checkedCount
<
this
.
cities
.
length
;
checkedCount
>
0
&&
checkedCount
<
this
.
cities
.
length
}
}
}
}
}
;
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
admin/src/views/contents/warmingCenter/liaisonPerson.vue
View file @
b850620d
...
@@ -181,6 +181,13 @@
...
@@ -181,6 +181,13 @@
placeholder=
"请输入"
placeholder=
"请输入"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"邮箱"
prop=
"email"
>
<el-input
v-model=
"temp.email"
type=
"text"
placeholder=
"请输入"
/>
</el-form-item>
<el-form-item
label=
"邮编"
prop=
"postal"
>
<el-form-item
label=
"邮编"
prop=
"postal"
>
<el-input
<el-input
v-model=
"temp.postal"
v-model=
"temp.postal"
...
@@ -188,6 +195,28 @@
...
@@ -188,6 +195,28 @@
placeholder=
"请输入"
placeholder=
"请输入"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上传图片"
prop=
"type"
>
<el-upload
class=
"upload-demo"
drag
name=
"resource"
accept=
"image/*"
:limt=
"1"
:file-list=
"fileList"
list-type=
"picture"
:show-file-list=
"true"
:on-success=
"uploadZipSuccess"
:on-progress=
"onProgress"
:action=
"uploadUrl"
>
<i
class=
"el-icon-upload"
/>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em>
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传图片
</div>
</el-upload>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogFormVisible = false"
>
取消
</el-button>
<el-button
@
click=
"dialogFormVisible = false"
>
取消
</el-button>
...
@@ -245,6 +274,7 @@ export default {
...
@@ -245,6 +274,7 @@ export default {
tableKey
:
0
,
tableKey
:
0
,
list
:
null
,
list
:
null
,
total
:
0
,
total
:
0
,
fileList
:
[],
listLoading
:
true
,
listLoading
:
true
,
listQuery
:
{
listQuery
:
{
page
:
1
,
page
:
1
,
...
@@ -445,6 +475,13 @@ export default {
...
@@ -445,6 +475,13 @@ export default {
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
getDetail
(
row
.
liaisonId
).
then
(
res
=>
{
getDetail
(
row
.
liaisonId
).
then
(
res
=>
{
this
.
temp
=
res
.
data
this
.
temp
=
res
.
data
this
.
fileList
=
this
.
temp
.
url
.
split
(
','
).
map
(
item
=>
{
return
{
uid
:
''
,
name
:
item
,
url
:
item
}
})
this
.
dialogStatus
=
'update'
this
.
dialogStatus
=
'update'
this
.
dialogFormVisible
=
true
this
.
dialogFormVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -495,7 +532,7 @@ export default {
...
@@ -495,7 +532,7 @@ export default {
}
else
{
}
else
{
this
.
fullscreenLoading
=
false
this
.
fullscreenLoading
=
false
this
.
$message
(
'上传成功'
)
this
.
$message
(
'上传成功'
)
this
.
temp
.
url
=
e
.
url
this
.
temp
.
url
=
e
.
data
console
.
log
(
this
.
temp
)
console
.
log
(
this
.
temp
)
}
}
console
.
log
(
e
)
console
.
log
(
e
)
...
...
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