| | |
| | | :key="item.oid" :icon="item.paramVOS.icon" |
| | | :type="item.paramVOS.buttonType || 'primary'" plain |
| | | size="small" |
| | | @click="buttonClick(item)"> |
| | | @click="buttonClick(item,scope)"> |
| | | {{ item.name }} |
| | | </el-button> |
| | | <dynamic-form :title="formName" :visible.sync="visible"></dynamic-form> |
| | | <!-- <dynamic-form :title="formName" :visible.sync="visible"></dynamic-form>--> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | LocationType: { |
| | | type: String, |
| | | }, |
| | | scope:{ |
| | | type:Object, |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | initvalue: "reviewtype=department", |
| | | location: 'top', |
| | | buttonType: 'primary', |
| | | buttonMethods: 'form' |
| | | buttonMethods: 'add' |
| | | }, |
| | | pkComponent: "D99AD59E-563F-AB7A-F307-794B929114CD", |
| | | pkParentOid: "", |
| | |
| | | location: 'menu', |
| | | buttonType: 'text', |
| | | icon: "el-icon-edit", |
| | | buttonMethods: 'form' |
| | | buttonMethods: 'edit' |
| | | }, |
| | | pkComponent: "D99AD59E-563F-AB7A-F307-794B929114CD", |
| | | pkParentOid: "", |
| | |
| | | }, |
| | | methods: { |
| | | buttonClick(item) { |
| | | this.$emit('buttonClick', item.id) |
| | | |
| | | this.formName = item.name; |
| | | if (item.paramVOS.buttonMethods === 'form') { |
| | | this.visible = true; |
| | | }else if(item.paramVOS.buttonMethods === 'delete'){ |
| | | this.$message.success('删除成功!') |
| | | } |
| | | this.$emit('buttonClick',this.scope,item) |
| | | } |
| | | } |
| | | } |