恢复文件

master
lynn 7 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>
@ -131,13 +133,12 @@
save, save,
show show
} from "@/api/system/baseForm.js" } from "@/api/system/baseForm.js"
import { import {
getparameteritem getparameteritem
} from "@/api/system/dictionary.js" } from "@/api/system/dictionary.js"
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') {
Message({ save({
type: 'success', id: this.id,
message: this.type === 'add' ? '新增成功' : '编辑成功' table_name: this.tableName,
...this.form
}).then(res => {
Message({
type: 'success',
message: '编辑成功'
})
this.$emit('refresh')
this.isShow = false
}) })
this.$emit('refresh') }
this.isShow = false
})
}, },
}, },

Loading…
Cancel
Save