bbcc2774 by yangwei

预告登记信息

1 parent 8009507b
import request from "@/utils/request";
import SERVER from "./config";
class qlfQlYgdj {
// 预告登记信息
async getQlfQlYgdjList(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/getDataPage",
method: "post",
data,
});
}
// 预告登记信息
async getQlfQlYgdjById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
// 预告登记信息-修改
async updateQlfQlYgdj(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/edit",
method: "post",
data,
});
}
}
export default new qlfQlYgdj();
......@@ -379,7 +379,7 @@
</template>
<script>
// 预告登记信息
import business from "@/api/business";
import qlfQlYgdj from "@/api/qlfQlYgdj";
import ruleMixin from "@/mixins/ruleMixin.js";
export default {
mixins: [ruleMixin],
......@@ -428,7 +428,7 @@ export default {
methods: {
async featchData() {
try {
let { result: res } = await business.getQlfQlYgdjById(this.bsmSjsb);
let { result: res } = await qlfQlYgdj.getQlfQlYgdjById(this.bsmSjsb);
this.ruleForm = res;
//this.featchRule()
} catch (error) {
......@@ -438,7 +438,7 @@ export default {
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
let res = await business.updateQlfQlYgdj(this.ruleForm);
let res = await qlfQlYgdj.updateQlfQlYgdj(this.ruleForm);
// this.$refs['formList'].resetFields();
resolve(res.code);
} catch (error) {
......
......@@ -74,7 +74,7 @@
<script>
// 预告登记
import data from "./data"
import business from '@/api/business'
import qlfQlYgdj from '@/api/qlfQlYgdj'
import tableMixin from '@/mixins/tableMixin.js'
import treeSelect from '@/components/treeSelect/index.vue'
export default {
......@@ -141,7 +141,7 @@ export default {
async featchData () {
try {
let { result: { list, total, pages: pageSize, pageNum: current }
} = await business.getQlfQlYgdjList(this.form)
} = await qlfQlYgdj.getQlfQlYgdjList(this.form)
this.tableData.data = list
this.pageData = {
pageSize,
......