Commit 5a1a3d7d authored by daywrite's avatar daywrite

1.实施阶段

parent 1f9b5f34
......@@ -38,7 +38,7 @@
<script>
import SearchHeader from '../../common/searchHeader'
import BreadCrumb from '../BreadCrumb'
import FormModal from '../implement/modal'
import FormModal from './modal'
import Pagenation from '../pagenation'
import {
requestAPI,
......
......@@ -70,12 +70,14 @@ export default {
save () {
let _params = Object.assign({}, setModule(this.model, 'ImplementTypes'))
let _apiUrl = !this.model.id ? api.saveNewimplementType : api.saveEditimplementType
let _apiUrl = !this.model.id ? api[`saveNew${this.t}${this.tt}`] : api[`saveEdit${this.t}${this.tt}`]
!this.model.id && delete _params['ImplementTypes[id]']
this.$refs['form']._validate(() => {
requestAPI(Object.assign(_apiUrl, { method: 'POST' }), _params)
.then((res) => {
this.$refs.sidePopup.close()
this.$refs.sidePopup.close(() => {
this.btnClose()
})
this.$message.success('操作成功')
this.$parent._reload()
}) // save
......
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