c756b91b by 任超

chore:api文件夹整理

1 parent c385040e
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
......
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
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()
......@@ -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) {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -109,7 +109,7 @@ export default {
visualMap: {
min: 0,
max: _this.max,
bottom: '20%',
bottom: '13%',
left: 50,
splitNumber: 6,
seriesIndex: [0],
......