| | |
| | | width="70%" |
| | | @close="addDialogClose"> |
| | | <div> |
| | | <data-view ref="editView" key="editView" :btmNode="nodeRow" :selectRow="selectRow" :actionMap="actionMap" :readOnly="false" :height="clientHeight-340"></data-view> |
| | | <data-view ref="editView" key="editView" :btmNode="nodeRow" :selectRow="title === 'add'?{}:selectRow" :actionMap="actionMap" :readOnly="false" :height="clientHeight-260"></data-view> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button size="small" type="primary" @click="addDialogSavaHandler">确 定</el-button> |
| | |
| | | }, |
| | | getTableList() { |
| | | getData(this.nodeRow.attributes.name).then(res => { |
| | | /*if(typeof res.data == 'string'){ |
| | | if(typeof res.data == 'string'){ |
| | | res.data=eval('('+res.data +')') |
| | | }*/ |
| | | } |
| | | if(res.data.obj.tableHeader){ |
| | | this.option.column=[ { |
| | | label: '规则名称', |
| | |
| | | }, |
| | | //修改 |
| | | editHandler(){ |
| | | if (func.isEmptyObject(this.nodeRow)) { |
| | | this.$message.error('请至少选择一条数据'); |
| | | if (func.isEmptyObject(this.selectRow)) { |
| | | this.$message.error('请选择一条数据'); |
| | | return; |
| | | } |
| | | this.title = 'edit'; |
| | |
| | | }, |
| | | //删除 |
| | | delHandler(){ |
| | | if (func.isEmptyObject(this.nodeRow)) { |
| | | if (func.isEmptyObject(this.selectRow)) { |
| | | this.$message.error('请选择数据'); |
| | | return; |
| | | } |