Commit 4fa146cd by lichengming

修改了开土制备查看指标

parent 535797d0
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</template> </template>
<script> <script>
import { soilAptitude, soilTest } from '../../../api' import { soilTest } from '../../../api'
import IndexManageEdit from './IndexManageEdit' import IndexManageEdit from './IndexManageEdit'
export default { export default {
...@@ -151,9 +151,9 @@ export default { ...@@ -151,9 +151,9 @@ export default {
} }
}, },
_delOk: async function(ids) { _delOk: async function(ids) {
const result = await soilAptitude.expItemDeleteByIds(ids) const result = await soilTest.itemDelete(ids)
if (result) { if (result) {
this.$message.success('删除成功') this.$Message.success('删除成功')
this._page() this._page()
} }
} }
......
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
this.$refs.footerModal._hideLoading() this.$refs.footerModal._hideLoading()
}, },
_open(id, formObj) { _open(id, formObj) {
this.formId = 'edit-form' this.formId = 'edit-form-prepare'
this._hideLoading() this._hideLoading()
this.$refs.formObj.resetFields() this.$refs.formObj.resetFields()
if (this.$string(formObj).isEmpty()) { if (this.$string(formObj).isEmpty()) {
...@@ -318,7 +318,8 @@ export default { ...@@ -318,7 +318,8 @@ 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('edit-form-prepare')
console.log('data', data)
if (this.$string(this.id).isEmpty()) { if (this.$string(this.id).isEmpty()) {
data.experimentId = this.expId data.experimentId = this.expId
// 添加 // 添加
...@@ -334,7 +335,7 @@ export default { ...@@ -334,7 +335,7 @@ export default {
}) })
}, },
_save: async function(data) { _save: async function(data) {
console.log(data) console.log('data', data)
const result = await soilTest.itemSave(data) const result = await soilTest.itemSave(data)
console.log(result) console.log(result)
if (result) { if (result) {
......
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