f1e28c68 by yangwei

申请人属性信息-业务表单

1 parent 83537435
import request from "@/utils/request";
import SERVER from "./config";
class djfDjSqr {
// 申请人属性信息-业务表单
async getDjfDjSqrById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjSqr/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
// 申请人属性信息-业务-修改
async updateDjfDjSqr(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjSqr/edit",
method: "post",
data,
});
}
}
export default new djfDjSqr();
......@@ -87,7 +87,7 @@
</template>
<script>
// 申请人属性信息
import business from "@/api/business";
import djfDjSqr from "@/api/djfDjSqr";
import ruleMixin from "@/mixins/ruleMixin.js";
import treeSelect from "@/components/treeSelect/index.vue";
export default {
......@@ -151,7 +151,7 @@ export default {
return new Promise(async (resolve, reject) => {
try {
let data = _.cloneDeep(this.ruleForm);
let res = await business.updateDjfDjSqr(data);
let res = await djfDjSqr.updateDjfDjSqr(data);
resolve(res.code);
} catch (error) {
this.$refs.msg.messageShow();
......
......@@ -309,7 +309,7 @@
</template>
<script>
// 申请人属性信息
import business from "@/api/business";
import djfDjSqr from "@/api/djfDjSqr";
import ruleMixin from "@/mixins/ruleMixin.js";
import treeSelect from "@/components/treeSelect/index.vue";
export default {
......@@ -362,7 +362,7 @@ export default {
methods: {
async featchData() {
try {
let { result: res } = await business.getDjfDjSqrById(this.bsmSjsb);
let { result: res } = await djfDjSqr.getDjfDjSqrById(this.bsmSjsb);
this.ruleForm = res;
//this.featchRule()
} catch (error) {
......@@ -373,7 +373,7 @@ export default {
return new Promise(async (resolve, reject) => {
try {
let data = _.cloneDeep(this.ruleForm);
let res = await business.updateDjfDjSqr(data);
let res = await djfDjSqr.updateDjfDjSqr(data);
resolve(res.code);
} catch (error) {
this.$refs.msg.messageShow();
......