| | |
| | | return |
| | | } |
| | | callback() |
| | | }; |
| | | } |
| | | return { |
| | | // 表单数据 |
| | | time:null, |
| | |
| | | }, |
| | | methods: { |
| | | filterMethod(query, item) { |
| | | if (!query) return item; |
| | | return item.label.indexOf(query) > -1 ; |
| | | if (!query) return item |
| | | return item.label.indexOf(query) > -1 |
| | | }, |
| | | seleTime (e) { |
| | | if(e && e.length >= 2){ |
| | |
| | | if (this.form.roleIds == null || this.form.roleIds.length == 0) { |
| | | this.$dialog.actionConfirm('权限为空,提交后即清除所选人员已分配权限!请谨慎操作', '您确认进行该操作吗?') |
| | | .then(() => { |
| | | this.confirmDo(); |
| | | this.confirmDo() |
| | | }) |
| | | .catch(() => {}) |
| | | |
| | | } else { |
| | | this.confirmDo(); |
| | | this.confirmDo() |
| | | } |
| | | }) |
| | | }, |
| | |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | // this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | this.form[this.configData['field.id']] = null |
| | | this.form.ids = ids; |
| | | this.form.names =names; |
| | | this.form.ids = ids |
| | | this.form.names = names |
| | | |
| | | console.log(names) |
| | | }) |