Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c756b91b
authored
2023-02-02 15:59:36 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore:api文件夹整理
1 parent
c385040e
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
71 additions
and
57 deletions
src/api/business.js → src/api/fjF100.js
src/api/ktfZhYhzk.js
src/api/zhK105.js
src/components/business/fjF100.vue
src/components/business/ktfZhYhzk.vue
src/components/business/ktfZhbhqk.vue
src/components/business/zhK105.vue
src/components/echart/map/chart.vue
src/api/
business
.js
→
src/api/
fjF100
.js
View file @
c756b91
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
class
business
{
// 宗海空间属性
async
getZhK105ById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/ZhK105/detail'
,
method
:
'get'
,
params
:
{
bsmSjsb
:
bsmSjsb
}
})
}
//用海状况
async
getKtfZhYhzkById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KtfZhYhzk/detail'
,
method
:
'get'
,
params
:
{
bsmSjsb
:
bsmSjsb
}
})
}
// 宗海空间属性-修改
async
updateZhK105
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/ZhK105/edit'
,
method
:
'post'
,
data
})
}
//修改用海状况
async
updateKtfZhYhzk
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KtfZhYhzk/edit'
,
method
:
'post'
,
data
})
}
class
fjF100
{
// 非结构化文档
async
getFjF100ById
(
bsmSjsb
)
{
return
request
({
...
...
@@ -57,7 +21,5 @@ class business {
data
})
}
}
export
default
new
business
()
export
default
new
fjF100
()
\ No newline at end of file
...
...
src/api/ktfZhYhzk.js
0 → 100644
View file @
c756b91
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
class
ktfZhYhzk
{
//用海状况
async
getKtfZhYhzkById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KtfZhYhzk/detail'
,
method
:
'get'
,
params
:
{
bsmSjsb
:
bsmSjsb
}
})
}
//修改用海状况
async
updateKtfZhYhzk
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KtfZhYhzk/edit'
,
method
:
'post'
,
data
})
}
}
export
default
new
ktfZhYhzk
()
\ No newline at end of file
src/api/zhK105.js
0 → 100644
View file @
c756b91
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
class
zhK105
{
// 宗海空间属性
async
getZhK105ById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/ZhK105/detail'
,
method
:
'get'
,
params
:
{
bsmSjsb
:
bsmSjsb
}
})
}
// 宗海空间属性-修改
async
updateZhK105
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/ZhK105/edit'
,
method
:
'post'
,
data
})
}
}
export
default
new
zhK105
()
src/components/business/fjF100.vue
View file @
c756b91
...
...
@@ -38,7 +38,7 @@
</
template
>
<
script
>
// 非结构化文档
import
business
from
'@/api/business
'
import
fjF100
from
'@/api/fjF100
'
import
ruleMixin
from
'@/mixins/ruleMixin.js'
export
default
{
mixins
:
[
ruleMixin
],
...
...
@@ -64,7 +64,7 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getFjF100ById
(
this
.
bsmSjsb
)
let
{
result
:
res
}
=
await
fjF100
.
getFjF100ById
(
this
.
bsmSjsb
)
this
.
ruleForm
=
res
//this.featchRule()
}
catch
(
error
)
{
...
...
@@ -74,7 +74,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
res
=
await
business
.
updateFjF100
(
this
.
ruleForm
)
let
res
=
await
fjF100
.
updateFjF100
(
this
.
ruleForm
)
// this.$refs['formList'].resetFields();
resolve
(
res
.
code
)
}
catch
(
error
)
{
...
...
src/components/business/ktfZhYhzk.vue
View file @
c756b91
...
...
@@ -31,8 +31,9 @@
用海面积:
<br
/>
<p
class=
"label-detail"
>
(YHMJ)
</p>
</span>
<el-input-number
controls-position=
"right"
:disabled=
"$store.state.business.Edit"
v-model
.
number=
"ruleForm.YHMJ"
type=
"number"
v-only-number=
"
{ max: 999999, min: 1, precision: 2 }" placeholder="用海面积">
</el-input-number>
<el-input-number
controls-position=
"right"
:disabled=
"$store.state.business.Edit"
v-model
.
number=
"ruleForm.YHMJ"
type=
"number"
v-only-number=
"
{ max: 999999, min: 1, precision: 2 }"
placeholder="用海面积">
</el-input-number>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -54,8 +55,9 @@
使用金额数:
<br
/>
<p
class=
"label-detail"
>
(SYJES)
</p>
</span>
<el-input-number
controls-position=
"right"
:disabled=
"$store.state.business.Edit"
v-model
.
number=
"ruleForm.SYJES"
type=
"number"
v-only-number=
"
{ max: 999999, min: 0, precision: 2 }" placeholder="使用金额数">
</el-input-number>
<el-input-number
controls-position=
"right"
:disabled=
"$store.state.business.Edit"
v-model
.
number=
"ruleForm.SYJES"
type=
"number"
v-only-number=
"
{ max: 999999, min: 0, precision: 2 }"
placeholder="使用金额数">
</el-input-number>
</el-form-item>
</el-col>
...
...
@@ -75,7 +77,7 @@
</
template
>
<
script
>
// 用海状况
import
business
from
'@/api/business
'
import
ktfZhYhzk
from
'@/api/ktfZhYhzk
'
import
ruleMixin
from
'@/mixins/ruleMixin.js'
export
default
{
mixins
:
[
ruleMixin
],
...
...
@@ -104,7 +106,7 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getKtfZhYhzkById
(
this
.
bsmSjsb
)
let
{
result
:
res
}
=
await
ktfZhYhzk
.
getKtfZhYhzkById
(
this
.
bsmSjsb
)
this
.
ruleForm
=
res
//this.featchRule()
}
catch
(
error
)
{
...
...
@@ -114,7 +116,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
res
=
await
business
.
updateKtfZhYhzk
(
this
.
ruleForm
)
let
res
=
await
ktfZhYhzk
.
updateKtfZhYhzk
(
this
.
ruleForm
)
// this.$refs['formList'].resetFields();
resolve
(
res
.
code
)
}
catch
(
error
)
{
...
...
src/components/business/ktfZhbhqk.vue
View file @
c756b91
...
...
@@ -71,7 +71,7 @@
</div>
</
template
>
<
script
>
import
business
from
'@/api/business
'
import
zhK105
from
'@/api/zhK105
'
import
ruleMixin
from
'@/mixins/ruleMixin.js'
// 宗海变化情况
export
default
{
...
...
@@ -101,7 +101,7 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getZhK105ById
(
this
.
bsmSjsb
)
let
{
result
:
res
}
=
await
zhK105
.
getZhK105ById
(
this
.
bsmSjsb
)
this
.
ruleForm
=
res
//this.featchRule()
}
catch
(
error
)
{
...
...
@@ -111,7 +111,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
res
=
await
business
.
updateZhK105
(
this
.
ruleForm
)
let
res
=
await
zhK105
.
updateZhK105
(
this
.
ruleForm
)
// this.$refs['formList'].resetFields();
resolve
(
res
.
code
)
}
catch
(
error
)
{
...
...
src/components/business/zhK105.vue
View file @
c756b91
...
...
@@ -61,7 +61,7 @@
</
template
>
<
script
>
// 宗海空间属性
import
business
from
'@/api/business
'
import
zhK105
from
'@/api/zhK105
'
import
ruleMixin
from
'@/mixins/ruleMixin.js'
export
default
{
mixins
:
[
ruleMixin
],
...
...
@@ -90,7 +90,7 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getZhK105ById
(
this
.
bsmSjsb
)
let
{
result
:
res
}
=
await
zhK105
.
getZhK105ById
(
this
.
bsmSjsb
)
this
.
ruleForm
=
res
//this.featchRule()
}
catch
(
error
)
{
...
...
@@ -100,7 +100,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
res
=
await
business
.
updateZhK105
(
this
.
ruleForm
)
let
res
=
await
zhK105
.
updateZhK105
(
this
.
ruleForm
)
// this.$refs['formList'].resetFields();
resolve
(
res
.
code
)
}
catch
(
error
)
{
...
...
src/components/echart/map/chart.vue
View file @
c756b91
...
...
@@ -109,7 +109,7 @@ export default {
visualMap
:
{
min
:
0
,
max
:
_this
.
max
,
bottom
:
'
20
%'
,
bottom
:
'
13
%'
,
left
:
50
,
splitNumber
:
6
,
seriesIndex
:
[
0
],
...
...
Please
register
or
sign in
to post a comment