eccff4f8 by yangwei
2 parents e273f6bb aef89b62
import request from '@/utils/request'
import SERVER from './config'
class ktfQtDzdzw {
// 点状定着物信息
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 ktfQtDzdzw()
\ No newline at end of file
......@@ -134,7 +134,7 @@
</template>
<script>
// 点状定着物信息
import business from '@/api/business'
import ktfQtDzdzw from '@/api/ktfQtDzdzw'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -166,9 +166,8 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getKtfQtDzdzwById(this.bsmSjsb)
let { result: res } = await ktfQtDzdzw.getKtfQtDzdzwById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
this.$refs.msg.messageShow()
}
......@@ -176,8 +175,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateKtfQtDzdzw(this.ruleForm)
// this.$refs['formList'].resetFields();
let res = await ktfQtDzdzw.updateKtfQtDzdzw(this.ruleForm)
resolve(res.code)
} catch (error) {
this.$refs.msg.messageShow()
......