37c82586 by yangwei

异议登记信息

1 parent 78831bd4
import request from "@/utils/request";
import SERVER from "./config";
class qlfQlYydj {
// 异议登记信息
async getQlfQlYydjList(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/getDataPage",
method: "post",
data,
});
}
// 异议登记信息
async getQlfQlYydjById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
// 异议登记信息-修改
async updateQlfQlYydj(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/edit",
method: "post",
data,
});
}
}
export default new qlfQlYydj();
......@@ -174,7 +174,7 @@
</template>
<script>
// 异议登记信息
import business from '@/api/business'
import qlfQlYydj from '@/api/qlfQlYydj'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -212,7 +212,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getQlfQlYydjById(this.bsmSjsb)
let { result: res } = await qlfQlYydj.getQlfQlYydjById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -222,7 +222,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateQlfQlYydj(this.ruleForm)
let res = await qlfQlYydj.updateQlfQlYydj(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......
......@@ -64,7 +64,7 @@
<script>
// 异议登记
import data from "./data"
import business from '@/api/business'
import qlfQlYydj from '@/api/qlfQlYydj'
import tableMixin from '@/mixins/tableMixin.js'
import treeSelect from '@/components/treeSelect/index.vue'
export default {
......@@ -130,7 +130,7 @@ export default {
try {
this.form = Object.assign(this.form, this.formData)
let { result: { list, total, pages: pageSize, pageNum: current }
} = await business.getQlfQlYydjList(this.form)
} = await qlfQlYydj.getQlfQlYydjList(this.form)
this.tableData.data = list
this.pageData = {
pageSize,
......