Commit 94e0ba07 by xinlaa

--no commit message

1 parent fd6b19ce
...@@ -43,7 +43,7 @@ export function getScop(id) { ...@@ -43,7 +43,7 @@ export function getScop(id) {
] ]
} }
*/ */
export function edit(data) { export function update(data) {
return request({ return request({
url: service, url: service,
method: 'put', method: 'put',
......
<script> <script>
import { edit } from '@/api/drainageCode/welcome' import { update, add } from '@/api/drainageCode/welcome'
import PhoneDialog from '@/components/PhoneDialog' import PhoneDialog from '@/components/PhoneDialog'
import SelectMaterial from '@/components/SelectMaterial' import SelectMaterial from '@/components/SelectMaterial'
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
methods: { methods: {
getData() {}, getData() {},
submit() { submit() {
edit(this.form) ;(this.form.id ? update : add)(this.form)
}, },
insertName() { insertName() {
this.form.welcomeMsg += '#客户昵称#' this.form.welcomeMsg += '#客户昵称#'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!