Files
eladmin-web/src/views/system/dept/module/edit.vue
2019-05-18 12:22:50 +08:00

48 lines
887 B
Vue

<template>
<div>
<el-button size="mini" type="primary" icon="el-icon-edit" @click="to"/>
<eForm ref="form" :sup_this="sup_this" :is-add="false" :dicts="dicts"/>
</div>
</template>
<script>
import eForm from './form'
export default {
components: { eForm },
props: {
data: {
type: Object,
required: true
},
sup_this: {
type: Object,
required: true
},
dicts: {
type: Array,
required: true
}
},
methods: {
to() {
const _this = this.$refs.form
_this.getDepts()
_this.form = {
id: this.data.id,
name: this.data.name,
pid: this.data.pid,
createTime: this.data.createTime,
enabled: this.data.enabled.toString()
}
_this.dialog = true
}
}
}
</script>
<style scoped>
div{
display: inline-block;
margin-right: 3px;
}
</style>