175c8faa by yangwei
2 parents eccff4f8 e07531d0
......@@ -919,41 +919,5 @@ class business {
data
})
}
// 面状定着物
async getKtfQtMzdzwById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 面状定着物-修改
async updateKtfQtMzdzw(data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/edit',
method: 'post',
data
})
}
// 点状定着物信息
async getKtfQtDzdzwById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtDzdzw/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 点状定着物信息-修改
async updateKtfQtDzdzw(data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtDzdzw/edit',
method: 'post',
data
})
}
}
export default new business()
......
import request from '@/utils/request'
import SERVER from './config'
class ktfQtMzdzw {
// 面状定着物
async getKtfQtMzdzwById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 面状定着物-修改
async updateKtfQtMzdzw (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/edit',
method: 'post',
data
})
}
}
export default new ktfQtMzdzw()
\ No newline at end of file
......@@ -134,7 +134,7 @@
</template>
<script>
// 面状定着物
import business from '@/api/business'
import ktfQtMzdzw from '@/api/ktfQtMzdzw'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -166,7 +166,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getKtfQtMzdzwById(this.bsmSjsb)
let { result: res } = await ktfQtMzdzw.getKtfQtMzdzwById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -176,7 +176,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateKtfQtMzdzw(this.ruleForm)
let res = await ktfQtMzdzw.updateKtfQtMzdzw(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......