Commit 64f72fc5 by lichengming

修改了试验项目接口

parent 24e1f700
...@@ -61,10 +61,6 @@ export default { ...@@ -61,10 +61,6 @@ export default {
iconMsg: [{ type: 'md-create', id: '', name: '编辑' }], iconMsg: [{ type: 'md-create', id: '', name: '编辑' }],
selectIds: [], selectIds: [],
formObj: { formObj: {
aptitudeItemId: '',
typeName: '',
testParameter: '',
judgeBasis: '',
name: '' name: ''
}, },
// 资质信息 // 资质信息
...@@ -83,6 +79,7 @@ export default { ...@@ -83,6 +79,7 @@ export default {
}, },
_page: async function() { _page: async function() {
Object.assign(this.formObj, this.$refs.pageTable._searchParams()) Object.assign(this.formObj, this.$refs.pageTable._searchParams())
this.formObj.expId = this.id
const result = await soilAptitude.expItemPage(this.formObj) const result = await soilAptitude.expItemPage(this.formObj)
if (result) { if (result) {
console.log(result) console.log(result)
......
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
this.$refs.footerModal._hideLoading() this.$refs.footerModal._hideLoading()
}, },
_open(formObj) { _open(formObj) {
this.formId = 'edit-form' this.formId = 'index-edit-form'
this._hideLoading() this._hideLoading()
this.$refs.formObj.resetFields() this.$refs.formObj.resetFields()
if (this.$string(formObj).isEmpty()) { if (this.$string(formObj).isEmpty()) {
...@@ -316,7 +316,7 @@ export default { ...@@ -316,7 +316,7 @@ export default {
_ok() { _ok() {
this.$refs.formObj.validate(valid => { this.$refs.formObj.validate(valid => {
if (valid) { if (valid) {
const data = this.$serialize('edit-form') const data = this.$serialize('index-edit-form')
if (this.$string(this.id).isEmpty()) { if (this.$string(this.id).isEmpty()) {
// 添加 // 添加
this._save(data) 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