a2caf275 by yangwei
2 parents d4441f7c 6647b90d
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) {
......