Commit 64f72fc5 by lichengming

修改了试验项目接口

parent 24e1f700
......@@ -61,10 +61,6 @@ export default {
iconMsg: [{ type: 'md-create', id: '', name: '编辑' }],
selectIds: [],
formObj: {
aptitudeItemId: '',
typeName: '',
testParameter: '',
judgeBasis: '',
name: ''
},
// 资质信息
......@@ -83,6 +79,7 @@ export default {
},
_page: async function() {
Object.assign(this.formObj, this.$refs.pageTable._searchParams())
this.formObj.expId = this.id
const result = await soilAptitude.expItemPage(this.formObj)
if (result) {
console.log(result)
......
......@@ -158,7 +158,7 @@ export default {
this.$refs.footerModal._hideLoading()
},
_open(formObj) {
this.formId = 'edit-form'
this.formId = 'index-edit-form'
this._hideLoading()
this.$refs.formObj.resetFields()
if (this.$string(formObj).isEmpty()) {
......@@ -316,7 +316,7 @@ export default {
_ok() {
this.$refs.formObj.validate(valid => {
if (valid) {
const data = this.$serialize('edit-form')
const data = this.$serialize('index-edit-form')
if (this.$string(this.id).isEmpty()) {
// 添加
this._save(data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment