Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuIncubator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kimber
GaoQuIncubator
Commits
9343e4cc
Commit
9343e4cc
authored
Oct 17, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问题处理
parent
e71eb6b9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
103 additions
and
68 deletions
+103
-68
httpApi.js
src/assets/js/httpApi.js
+7
-7
routers.js
src/router/routers.js
+2
-2
index.vue
src/views/Screen/index.vue
+1
-1
enterprise.vue
src/views/system/home/enterprise.vue
+93
-58
No files found.
src/assets/js/httpApi.js
View file @
9343e4cc
...
@@ -490,7 +490,7 @@ var reqApis = function(){
...
@@ -490,7 +490,7 @@ var reqApis = function(){
baseInfo
:
{
baseInfo
:
{
// "incubatorId": {name:"孵化器名称", must:true, 'type':'select', val:'id', key:'name',},
// "incubatorId": {name:"孵化器名称", must:true, 'type':'select', val:'id', key:'name',},
"
year
"
:
{
"
year
"
:
{
name
:
"
年度
"
,
must
:
true
,
'
type
'
:
'
date
'
,
'
datetype
'
:
'
year
'
,
'
format
'
:
'
yyyy
'
,
name
:
"
年度
"
,
must
:
true
,
'
type
'
:
'
date
'
,
'
datetype
'
:
'
year
'
,
'
format
'
:
'
yyyy
'
,
table
:
0
},
},
"
totalRevenue
"
:
{
name
:
"
孵化器总收入(万元)
"
,
must
:
true
},
"
totalRevenue
"
:
{
name
:
"
孵化器总收入(万元)
"
,
must
:
true
},
"
serviceRevenue
"
:
{
name
:
"
综合服务收入(万元)
"
,
},
"
serviceRevenue
"
:
{
name
:
"
综合服务收入(万元)
"
,
},
...
@@ -539,11 +539,11 @@ var reqApis = function(){
...
@@ -539,11 +539,11 @@ var reqApis = function(){
rightBtn
:
[
rightBtn
:
[
],
],
search
:
[
search
:
[
{
//
{
'
type
'
:
'
string
'
,
'
name
'
:
'
孵化器名称
'
,
'
word
'
:
'
incubatorName
'
,
'
mode
'
:
0
,
'
width
'
:
'
180px
'
,
'
clear
'
:
function
()
{
//
'type': 'string', 'name': '孵化器名称', 'word': 'incubatorName', 'mode': 0, 'width': '180px', 'clear': function () {
this
.
loadData
()
//
this.loadData()
}
//
}
},
//
},
{
{
'
type
'
:
'
date
'
,
'
datetype
'
:
'
year
'
,
'
defaultTime
'
:
[
'
2024
'
],
'
name
'
:
'
年度
'
,
'
word
'
:
'
year
'
,
'
mode
'
:
0
,
'
width
'
:
'
140px
'
,
'
type
'
:
'
date
'
,
'
datetype
'
:
'
year
'
,
'
defaultTime
'
:
[
'
2024
'
],
'
name
'
:
'
年度
'
,
'
word
'
:
'
year
'
,
'
mode
'
:
0
,
'
width
'
:
'
140px
'
,
'
change
'
:
function
(
a
,
b
){
'
change
'
:
function
(
a
,
b
){
...
@@ -645,7 +645,7 @@ var reqApis = function(){
...
@@ -645,7 +645,7 @@ var reqApis = function(){
"
occupiedArea
"
:
{
name
:
"
占用孵化场地面积
"
,
table
:
0
},
"
occupiedArea
"
:
{
name
:
"
占用孵化场地面积
"
,
table
:
0
},
"
principal
"
:
{
name
:
"
企业负责人
"
,
must
:
true
},
"
principal
"
:
{
name
:
"
企业负责人
"
,
must
:
true
},
"
contactPhone
"
:
{
name
:
"
联系方式
"
,
must
:
true
},
"
contactPhone
"
:
{
name
:
"
联系方式
"
,
must
:
true
},
"
intellectualProperty
"
:
{
name
:
"
知识产权
"
,
table
:
0
,
'
type
'
:
'
select
'
,
key
:
'
name
'
,},
//
"intellectualProperty": {name:"知识产权", table:0, 'type':'select', key:'name',},
"
totalFunding
"
:
{
name
:
"
累计获得融资总额(万元)
"
,
table
:
0
},
"
totalFunding
"
:
{
name
:
"
累计获得融资总额(万元)
"
,
table
:
0
},
"
incubationStatus
"
:
{
name
:
"
企业孵化状态
"
,
'
type
'
:
'
select
'
,
"
incubationStatus
"
:
{
name
:
"
企业孵化状态
"
,
'
type
'
:
'
select
'
,
change
:
function
(
val
){
change
:
function
(
val
){
...
...
src/router/routers.js
View file @
9343e4cc
...
@@ -54,14 +54,14 @@ export const constantRouterMap = [
...
@@ -54,14 +54,14 @@ export const constantRouterMap = [
]
]
},
},
{
{
path
:
"
/home
/enterprise
"
,
path
:
"
/home
"
,
//component: Layout,
//component: Layout,
component
:
HomeLayout
,
component
:
HomeLayout
,
redirect
:
"
noredirect
"
,
redirect
:
"
noredirect
"
,
hidden
:
false
,
hidden
:
false
,
children
:
[
children
:
[
{
{
path
:
"
center
"
,
path
:
"
enterprise
"
,
component
:
resolve
=>
require
([
"
@/views/system/home/enterprise
"
],
resolve
),
component
:
resolve
=>
require
([
"
@/views/system/home/enterprise
"
],
resolve
),
name
:
"
首页-企业
"
,
name
:
"
首页-企业
"
,
meta
:
{
title
:
"
首页
"
,
affix
:
true
,
icon
:
"
index
"
}
meta
:
{
title
:
"
首页
"
,
affix
:
true
,
icon
:
"
index
"
}
...
...
src/views/Screen/index.vue
View file @
9343e4cc
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
</ul>
</ul>
</div>
-->
</div>
-->
<div
class=
"go-back"
>
<div
class=
"go-back"
>
<a
href=
"/home/enterprise
Home
"
>
进入后台
</a>
<a
href=
"/home/enterprise"
>
进入后台
</a>
</div>
</div>
</header>
</header>
</div>
</div>
...
...
src/views/system/home/enterprise.vue
View file @
9343e4cc
...
@@ -27,7 +27,12 @@
...
@@ -27,7 +27,12 @@
style=
"width: 320px"
style=
"width: 320px"
size=
"middle"
size=
"middle"
>
>
<el-option
:label=
"item.name"
:value=
"item.value"
v-for=
"item in companyLevelList"
:key=
"item.name"
></el-option>
<el-option
:label=
"item.name"
:value=
"item.value"
v-for=
"item in companyLevelList"
:key=
"item.name"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"联系人"
>
<el-form-item
label=
"联系人"
>
...
@@ -140,7 +145,6 @@ import crudOperation from "@crud/CRUD.operation";
...
@@ -140,7 +145,6 @@ import crudOperation from "@crud/CRUD.operation";
import
udOperation
from
"
@crud/UD.operation
"
;
import
udOperation
from
"
@crud/UD.operation
"
;
import
DateRangePicker
from
"
@/components/DateRangePicker
"
;
import
DateRangePicker
from
"
@/components/DateRangePicker
"
;
import
dic
from
"
@/api/system/dict
"
;
import
dic
from
"
@/api/system/dict
"
;
import
cuAmap
from
"
@/components/AMap
"
;
import
cuAmap
from
"
@/components/AMap
"
;
...
@@ -223,9 +227,9 @@ export default {
...
@@ -223,9 +227,9 @@ export default {
mounted
()
{
mounted
()
{
// this.getData();
// this.getData();
dic
.
getCompanyDicts
().
then
((
res
)
=>
{
dic
.
getCompanyDicts
().
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
);
this
.
companyLevelList
=
res
.
body
.
companyLevel
||
[]
this
.
companyLevelList
=
res
.
body
.
incubatorLevel
||
[];
});
});
},
},
methods
:
{
methods
:
{
handleSuccess
(
response
,
file
)
{
handleSuccess
(
response
,
file
)
{
...
@@ -273,67 +277,101 @@ export default {
...
@@ -273,67 +277,101 @@ export default {
//showLabel: true,
//showLabel: true,
//pitch: 40,
//pitch: 40,
onload
:
function
(
cmap
)
{
onload
:
function
(
cmap
)
{
// debugger
// debugger
VUE
.
cmap
=
cmap
;
VUE
.
cmap
=
cmap
;
var
center
=
cmap
.
options
.
center
;
var
center
=
cmap
.
options
.
center
;
var
lng
=
form
.
longitude
||
center
[
0
],
var
lng
=
form
.
longitude
||
center
[
0
],
lat
=
form
.
latitude
||
center
[
1
];
lat
=
form
.
latitude
||
center
[
1
];
if
(
lng
&&
lat
)
{
if
(
lng
&&
lat
)
{
cmap
.
setCenter
([
lng
,
lat
]);
cmap
.
setCenter
([
lng
,
lat
]);
// 添加标记
// 添加标记
cmap
.
addMarker
({
cmap
.
addMarker
({
lnglat
:
[
lng
,
lat
],
lnglat
:
[
lng
,
lat
],
title
:
""
,
title
:
""
,
draggable
:
true
,
draggable
:
true
,
dragend
:
function
(
e
)
{
dragend
:
function
(
e
)
{
var
lnglat
=
e
.
lnglat
;
// var lnglat = e.lnglat;
cmap
.
deGeocode
([
lnglat
.
lng
,
lnglat
.
lat
],
function
(
addr
)
{
// cmap.deGeocode([lnglat.lng, lnglat.lat], function (addr) {
form
.
address
=
addr
;
// form.address = addr;
form
.
longitude
=
lnglat
.
lng
;
// form.longitude = lnglat.lng;
form
.
latitude
=
lnglat
.
lat
;
// form.latitude = lnglat.lat;
self
.
$forceUpdate
();
// self.$forceUpdate();
});
// });
},
VUE
.
getAddrPlus
(
e
,
cmap
)
});
},
}
});
}
VUE
.
getData
(
function
()
{});
VUE
.
getData
(
function
()
{});
},
},
click
:
function
(
e
,
cmap
)
{
click
:
function
(
e
,
cmap
)
{
var
lnglat
=
e
.
lnglat
;
// 经纬度坐标
cmap
.
deGeocode
([
lnglat
.
lng
,
lnglat
.
lat
],
function
(
addr
)
{
VUE
.
getAddrPlus
(
e
,
cmap
);
form
.
address
=
addr
;
form
.
longitude
=
lnglat
.
lng
;
// var lnglat = e.lnglat;
form
.
latitude
=
lnglat
.
lat
;
// cmap.deGeocode([lnglat.lng, lnglat.lat], function (addr) {
});
// form.address = addr;
// form.longitude = lnglat.lng;
// form.latitude = lnglat.lat;
// });
cmap
.
marker
&&
cmap
.
removeMarker
();
cmap
.
marker
&&
cmap
.
removeMarker
();
// 添加标记
// 添加标记
cmap
.
addMarker
({
cmap
.
addMarker
({
lnglat
:
[
lnglat
.
lng
,
lnglat
.
lat
],
lnglat
:
[
e
.
lnglat
.
lng
,
e
.
lnglat
.
lat
],
title
:
""
,
title
:
""
,
draggable
:
true
,
draggable
:
true
,
dragend
:
function
(
e
)
{
dragend
:
function
(
e
)
{
var
lnglat
=
e
.
lnglat
;
// var lnglat = e.lnglat;
cmap
.
deGeocode
([
lnglat
.
lng
,
lnglat
.
lat
],
function
(
addr
)
{
// cmap.deGeocode([lnglat.lng, lnglat.lat], function (addr) {
form
.
address
=
addr
;
// form.address = addr;
form
.
longitude
=
lnglat
.
lng
;
// form.longitude = lnglat.lng;
form
.
latitude
=
lnglat
.
lat
;
// form.latitude = lnglat.lat;
});
// });
VUE
.
getAddrPlus
(
e
,
cmap
,
form
);
},
},
});
});
},
},
};
};
},
},
getAddrPlus
(
e
,
cmap
,
form
)
{
var
lnglat
=
e
.
lnglat
;
let
longitude
=
lnglat
.
lng
;
let
latitude
=
lnglat
.
lat
;
// 创建逆地理编码对象
let
geocoder
;
AMap
.
plugin
(
"
AMap.Geocoder
"
,
()
=>
{
geocoder
=
new
AMap
.
Geocoder
({
radius
:
1000
,
extensions
:
"
all
"
,
});
console
.
log
();
// 根据经纬度进行逆地理编码查询
geocoder
.
getAddress
([
longitude
,
latitude
],
(
status
,
result
)
=>
{
if
(
status
===
"
complete
"
&&
result
.
info
===
"
OK
"
)
{
if
(
result
.
regeocode
&&
result
.
regeocode
.
formattedAddress
)
{
let
address
=
result
.
regeocode
.
formattedAddress
;
this
.
formInline
.
address
=
address
;
this
.
formInline
.
longitude
=
longitude
;
this
.
formInline
.
latitude
=
latitude
;
this
.
$forceUpdate
();
console
.
log
(
"
精确地址获取
"
,
address
);
}
}
else
{
console
.
error
(
"
获取地址失败
"
);
}
});
});
},
onSubmit
()
{
onSubmit
()
{
console
.
log
(
"
submit!
"
);
console
.
log
(
"
submit!
"
);
},
},
edit
()
{
edit
()
{
crudHome
.
edit
(
this
.
formInline
).
then
((
res
)
=>
{
crudHome
.
edit
(
this
.
formInline
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
if
(
res
&&
res
.
code
===
200
)
{
this
.
$message
.
success
(
'
保存成功
'
);
// res.msg
this
.
$message
.
success
(
"
保存成功
"
);
// res.msg
}
}
});
});
},
},
...
@@ -341,22 +379,19 @@ export default {
...
@@ -341,22 +379,19 @@ export default {
crudHome
.
getData
().
then
((
res
)
=>
{
crudHome
.
getData
().
then
((
res
)
=>
{
this
.
formInline
=
res
.
body
;
this
.
formInline
=
res
.
body
;
this
.
formInline
.
incubatorImage
=
res
.
body
.
incubatorImage
;
this
.
formInline
.
incubatorImage
=
res
.
body
.
incubatorImage
;
const
lat
=
this
.
formInline
.
latitude
const
lat
=
this
.
formInline
.
latitude
;
const
lng
=
this
.
formInline
.
longitude
const
lng
=
this
.
formInline
.
longitude
;
// this.$refs.amap.init(amapOptions());
// this.$refs.amap.init(amapOptions());
const
center
=
[
lng
,
lat
];
const
center
=
[
lng
,
lat
];
// setTimeout(() => {
// setTimeout(() => {
// 定位中心地址
// 定位中心地址
this
.
$refs
.
amap
.
setCenter
(
center
);
this
.
$refs
.
amap
.
setCenter
(
center
);
console
.
log
(
"
map
"
,
this
.
cmap
);
console
.
log
(
"
map
"
,
this
.
cmap
);
// 定位marker设置
// 定位marker设置
this
.
cmap
.
marker
.
setPosition
(
this
.
cmap
.
marker
.
setPosition
(
new
AMap
.
LngLat
(
lng
,
lat
));
new
AMap
.
LngLat
(
lng
,
lat
)
);
// }, 3000);
// }, 3000);
console
.
log
();
console
.
log
();
fn
&&
fn
()
fn
&&
fn
();
});
});
},
},
// 选中图标
// 选中图标
...
@@ -372,7 +407,7 @@ export default {
...
@@ -372,7 +407,7 @@ export default {
} */
} */
</
style
>
</
style
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
.app-container
{
.app-container
{
background-color
:
#f5f6fb
;
background-color
:
#f5f6fb
;
}
}
.header
{
.header
{
...
@@ -416,7 +451,7 @@ export default {
...
@@ -416,7 +451,7 @@ export default {
}
}
}
}
}
}
::v-deep
.el-input
{
::v-deep
.el-input
{
width
:
320px
;
width
:
320px
;
}
}
::v-deep
.el-input__inner
{
::v-deep
.el-input__inner
{
...
...
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