89966f39 by yangwei
2 parents bf79c49e 150c3ecc
import request from '@/utils/request'
import SERVER from './config'
class kttZdjbxx {
// 宗地基本信息
async kttZdjbxxDetail (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttZdjbxx/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 宗地基本信息-修改
async updateKttZdjbxx (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttZdjbxx/edit',
method: 'post',
data
})
}
}
export default new kttZdjbxx()
\ No newline at end of file
......@@ -8,7 +8,7 @@
标识码: <br />
<p class="label-detail">(BSM)</p>
</span>
<el-input :disabled="$store.state.business.Edit" v-model="ruleForm.BSM" placeholder="标识码"></el-input>
<el-input :disabled="$store.state.business.Edit" v-model="ruleForm.BSM" placeholder="标识码"></el-input>
</el-form-item>
</el-col>
......@@ -433,7 +433,7 @@
</template>
<script>
// 宗地基本信息
import business from '@/api/business'
import kttZdjbxx from '@/api/kttZdjbxx'
import ruleMixin from '@/mixins/ruleMixin.js'
import treeSelect from '@/components/treeSelect/index.vue'
export default {
......@@ -496,7 +496,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.kttZdjbxxDetail(this.bsmSjsb)
let { result: res } = await kttZdjbxx.kttZdjbxxDetail(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -506,7 +506,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateKttZdjbxx(this.ruleForm)
let res = await kttZdjbxx.updateKttZdjbxx(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......