恢复文件

master
lynn 8 months ago
parent 6a034d90cb
commit 33cbb00355

@ -19,6 +19,7 @@
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-input style="width:300px" v-model="form.cangkubianma"></el-input> <el-input style="width:300px" v-model="form.cangkubianma"></el-input>
</div> </div>
</div> </div>
</template> </template>
@ -57,6 +58,7 @@
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-input style="width:300px" v-model="form.cangkumianji"></el-input> <el-input style="width:300px" v-model="form.cangkumianji"></el-input>
</div> </div>
</div> </div>
</template> </template>
@ -137,7 +139,6 @@
import { import {
Message Message
} from 'element-ui' } from 'element-ui'
import { saveStorehouseType } from '@/api/system/storehouseType'
export default { export default {
data() { data() {
@ -210,21 +211,35 @@
}, },
submit() { submit() {
const params = { if (this.type === 'add') {
name: this.form.cangkumingcheng, save({
remark: this.form.cangkujianjie, table_name: this.tableName,
}; ...this.form
if (this.type === 'editor') { }).then(res => {
params.id = this.id; Message({
type: 'success',
message: '新增成功'
})
this.$emit('refresh')
this.isShow = false
})
return
} }
saveStorehouseType(params).then(res => { if (this.type === 'editor') {
save({
id: this.id,
table_name: this.tableName,
...this.form
}).then(res => {
Message({ Message({
type: 'success', type: 'success',
message: this.type === 'add' ? '新增成功' : '编辑成功' message: '编辑成功'
}) })
this.$emit('refresh') this.$emit('refresh')
this.isShow = false this.isShow = false
}) })
}
}, },
}, },

Loading…
Cancel
Save