46ef4eca by 任超

style:更正登记信息

1 parent 83537435
import request from '@/utils/request'
import SERVER from './config'
class qlfQlGzdj {
// 更正登记信息
async getQlfQlGzdjById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlGzdj/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 更正登记信息-修改
async updateQlfQlGzdj (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlGzdj/edit',
method: 'post',
data
})
}
}
export default new qlfQlGzdj()
......@@ -172,7 +172,7 @@
</template>
<script>
// 归档信息
import business from "@/api/business";
import qlfQlGzdj from "@/api/qlfQlGzdj";
import ruleMixin from "@/mixins/ruleMixin.js";
export default {
mixins: [ruleMixin],
......@@ -186,7 +186,7 @@ export default {
default: "",
},
},
data() {
data () {
return {
ruleForm: {
YSDM: "",
......@@ -205,19 +205,19 @@ export default {
};
},
methods: {
async featchData() {
async featchData () {
try {
let { result: res } = await business.getQlfQlGzdjById(this.bsmSjsb);
let { result: res } = await qlfQlGzdj.getQlfQlGzdjById(this.bsmSjsb);
this.ruleForm = res;
//this.featchRule()
} catch (error) {
this.$refs.msg.messageShow();
}
},
handleUpdateForm() {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateQlfQlGzdj(this.ruleForm);
let res = await qlfQlGzdj.updateQlfQlGzdj(this.ruleForm);
// this.$refs['formList'].resetFields();
resolve(res.code);
} catch (error) {
......