提示信息
Signed-off-by: liupengpeng <276665548@qq.com>
| | |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="dialogFormVisible = false" |
| | | @click="handleClose" |
| | | >{{ $t("dataManage.dictionaryManageObj.cancel") }}</el-button> |
| | | <el-button |
| | | class="primary" |
| | |
| | | :title="$t('dataManage.dictionaryManageObj.add')" |
| | | top="2vh" |
| | | :visible.sync="InsertFormdialog" |
| | | :before-close="handleCloseadd" |
| | | > |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form |
| | |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="InsertFormdialog = false" |
| | | @click="handleCloseadd" |
| | | >{{ |
| | | $t("dataManage.dictionaryManageObj.cancel") |
| | | }}</el-button> |
| | |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | handleCloseadd() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | } |
| | | }, |
| | | insertFromDataClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | this.insertFileGuid = ""; |
| | | this.insertViewGuid = ""; |
| | | this.filesReset(); |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | this.insertFileGuid = ""; |
| | | this.insertViewGuid = ""; |
| | | this.filesReset(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | handleClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | }; |
| | | this.filesReset(); |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | }; |
| | | this.filesReset(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | async insertFromData() { |
| | | if (this.insertform.dirid == null || this.insertform.depid == null) { |
| | |
| | | }, |
| | | |
| | | removeUpdate() { |
| | | this.upflag = false; |
| | | this.dialogFormVisible = false; |
| | | this.upform = {}; |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.upflag = false; |
| | | this.dialogFormVisible = false; |
| | | this.upform = {}; |
| | | }) |
| | | .catch((_) => { }); |
| | | // this.filesReset(); |
| | | }, |
| | | submitForm(formName) { |
| | |
| | | <el-dialog |
| | | :title="$t('common.append')" |
| | | :visible.sync="dialogFormVisible" |
| | | :before-close="handleClose" |
| | | > |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form |
| | |
| | | this.ruleForm.level = data.level + 1; |
| | | }, |
| | | resetForm(formName) { |
| | | this.dialogFormVisible = false; |
| | | this.$nextTick(() => { |
| | | this.$refs[formName].resetFields(); |
| | | this.ruleForm = {}; |
| | | }); |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.dialogFormVisible = false; |
| | | this.$nextTick(() => { |
| | | this.$refs[formName].resetFields(); |
| | | this.ruleForm = {}; |
| | | }); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | submitForm(formName) { |
| | | this.$nextTick(() => { |
| | |
| | | } |
| | | } |
| | | }, |
| | | handleClose() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.dialogFormVisible = false |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.getMenuTree(); |
| | |
| | | :title="$t('userManage.userInfoObj.addPermission')" |
| | | style="overflow: hidden" |
| | | :visible.sync="InsertFormdialog" |
| | | :before-close="handleClose" |
| | | > |
| | | |
| | | <el-form :model="insertform" label-position="top"> |
| | |
| | | this.getRoleTabelData(); |
| | | }, |
| | | EditFromDataClose() { |
| | | this.EditFormdialog = false; |
| | | this.upform = {}; |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.EditFormdialog = false; |
| | | this.upform = {}; |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | async EditFromData() { |
| | | const data = await updateAuth(this.upform); |
| | |
| | | this.getRoleTabelData(); |
| | | }, |
| | | insertFromDataClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | async insertFromData() { |
| | | const data = await insertAuth(this.insertform); |
| | |
| | | this.dialogTitle = row.name; |
| | | this.isTransfer = true; |
| | | }, |
| | | handleClose() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | <el-dialog |
| | | :title="$t('common.append')" |
| | | :visible.sync="dialogFormVisible" |
| | | :before-close="handleClose" |
| | | > |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form |
| | |
| | | // console.log(node); |
| | | }, |
| | | resetForm(formName) { |
| | | this.dialogFormVisible = false; |
| | | this.$nextTick(() => { |
| | | this.ruleForm = {}; |
| | | this.$refs[formName].resetFields(); |
| | | }); |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.dialogFormVisible = false; |
| | | this.$nextTick(() => { |
| | | this.ruleForm = {}; |
| | | this.$refs[formName].resetFields(); |
| | | }); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | submitForm(formName) { |
| | | this.$refs[formName].validate((valid) => { |
| | |
| | | } |
| | | } |
| | | }, |
| | | handleClose() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.dialogFormVisible = false |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.getMenuTree(); |
| | |
| | | |
| | | <el-dialog |
| | | :title="$t('userManage.RM.insertRole')" |
| | | |
| | | :before-close="handleClose" |
| | | style="overflow: hidden" |
| | | :visible.sync="InsertFormdialog" |
| | | > |
| | |
| | | <el-dialog |
| | | :title="$t('userManage.RM.updateRole')" |
| | | :visible.sync="UpdateFormdialog" |
| | | :before-close="handleCloseEdit" |
| | | > |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form :model="updateform" label-position="top"> |
| | |
| | | }); |
| | | }, |
| | | insertFromClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | async insertFromData() { |
| | | if (this.insertform.depValue == null) { |
| | |
| | | } |
| | | }, |
| | | updateFromClose() { |
| | | this.UpdateFormdialog = false; |
| | | this.updateform = {}; |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.UpdateFormdialog = false; |
| | | this.updateform = {}; |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | async updateFromData() { |
| | | if (this.updateform.depValue == null) { |
| | |
| | | break; |
| | | } |
| | | }, |
| | | handleClose() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | handleCloseEdit() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.UpdateFormdialog = false |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | }, |
| | | beforeDestroy() { |
| | | this.timer && clearTimeout(this.timer); |
| | |
| | | " |
| | | :visible.sync="dialogVisible" |
| | | :before-close="handleClose" |
| | | :show-close="false" |
| | | > |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form |
| | |
| | | }; |
| | | } |
| | | |
| | | this.$confirm("确认关闭?", blackTheme) |
| | | this.$confirm("关闭后无法保存,是否关闭?", blackTheme) |
| | | .then((_) => { |
| | | this.closeInsertData(); |
| | | }) |