132357e8 by 任超

线状定着物

1 parent c1f72ca4
import request from '@/utils/request'
import SERVER from './config'
class ktfQtXzdzw {
// 线状定着物
async getKtfQtXzdzwById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtXzdzw/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 线状定着物-修改
async updateKtfQtXzdzw (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtXzdzw/edit',
method: 'post',
data
})
}
}
export default new ktfQtXzdzw()
\ No newline at end of file
......@@ -134,7 +134,7 @@
</template>
<script>
// 线状定着物
import business from '@/api/business'
import ktfQtXzdzw from '@/api/ktfQtXzdzw'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -167,7 +167,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getKtfQtXzdzwById(this.bsmSjsb)
let { result: res } = await ktfQtXzdzw.getKtfQtXzdzwById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -177,7 +177,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve, reject) => {
try {
let res = await business.updateKtfQtXzdzw(this.ruleForm)
let res = await ktfQtXzdzw.updateKtfQtXzdzw(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......