| | |
| | | } |
| | | }, |
| | | watch:{ |
| | | sourceData:{ |
| | | handler(newval) { |
| | | //源数据有变化时变更当前区域数据 |
| | | console.log(this.areasName); |
| | | console.log(newval); |
| | | } |
| | | } |
| | | }, |
| | | watch:{ |
| | | slotData:{ |
| | | handler(newV){ |
| | | this.getDictList(newV) |
| | |
| | | deep: true, |
| | | immediate: true, |
| | | }, |
| | | sourceData:{ |
| | | handler(newval) { |
| | | //源数据有变化时变更当前区域数据 |
| | | console.log(this.areasName); |
| | | console.log(newval); |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | //转化数据 |
| | |
| | | export default { |
| | | buttonClick(item,that) { |
| | | buttonClick(item, that) { |
| | | that.formName = item.name; |
| | | const location = item.paramVOS.webUiButtonLocation; |
| | | const method = item.paramVOS.webUiButtonMethods; |
| | |
| | | const messageAllText = '请至少选择一条数据!' |
| | | |
| | | const handlers = { |
| | | add: () => this.handleAdd(that,location), |
| | | edit: () => this.handleEdit(that,location, messageOnlyText), |
| | | delete: () => this.handleDelete(that,location, messageAllText), |
| | | add: () => this.handleAdd(that, location), |
| | | edit: () => this.handleEdit(that, location, messageOnlyText), |
| | | delete: () => this.handleDelete(that, location, messageAllText), |
| | | }; |
| | | |
| | | const handler = handlers[method]; |
| | |
| | | } |
| | | }, |
| | | |
| | | handleAdd(that,location) { |
| | | handleAdd(that, location) { |
| | | if (location === 'top') { |
| | | that.visible = true; |
| | | } else { |
| | |
| | | |
| | | }, |
| | | |
| | | handleEdit(that,location, messageOnlyText) { |
| | | handleEdit(that, location, messageOnlyText) { |
| | | if (location === 'menu') { |
| | | that.visible = true; |
| | | that.$refs.dynamicForm.form = that.scope.row; |
| | | console.log('1',that.scope.row) |
| | | console.log(that.scope.row) |
| | | |
| | | } else if (location === 'top' && that.selectList.length === 1) { |
| | | that.visible = true; |
| | | that.$refs.dynamicForm.form = that.selectList[0]; |
| | |
| | | |
| | | }, |
| | | |
| | | handleDelete(that,location, messageAllText) { |
| | | handleDelete(that, location, messageAllText) { |
| | | if (location === 'top') { |
| | | if (that.selectList.length <= 0) { |
| | | that.$message.warning(messageAllText); |
| | |
| | | target: 'http://192.168.0.103:12000/web', |
| | | // target: 'http://dev.vci-tech.com:37000', |
| | | //远程演示服务地址,可用于直接启动项目 |
| | | //target: 'https://saber.bladex.vip/api', |
| | | //target: 'https://saber.bladex.vip/api/', |
| | | ws: true, |
| | | pathRewrite: { |
| | | '^/api': '/' |