eb7bb34e by yangwei

逻辑幢信息 -- 业务表单

1 parent 6fc23e2c
import request from "@/utils/request";
import SERVER from "./config";
class kttFwLjz {
// 逻辑幢信息 -- 业务表单
async getKttFwLjzById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/KttFwLjz/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
// 逻辑幢信息 -- 业务修改
async updateKttFwLjz(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/KttFwLjz/edit",
method: "post",
data,
});
}
}
export default new kttFwLjz();
......@@ -263,7 +263,7 @@
</template>
<script>
// 逻辑幢信息
import business from '@/api/business'
import kttFwLjz from '@/api/kttFwLjz'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -309,7 +309,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getKttFwLjzById(this.bsmSjsb)
let { result: res } = await kttFwLjz.getKttFwLjzById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -319,7 +319,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve, reject) => {
try {
let res = await business.updateKttFwLjz(this.ruleForm)
let res = await kttFwLjz.updateKttFwLjz(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......