| | |
| | | import fixedValueOption from "@/const/code/fixedValueMgrDialog"; |
| | | import {mapGetters} from "vuex"; |
| | | import {getByRoleUserList} from "@/api/system/user"; |
| | | import func from "@/util/func"; |
| | | import func from "@/util/func"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | visible:false, |
| | | |
| | | }, |
| | | |
| | | |
| | | /*使用范围对话框显示控制*/ |
| | | codeRangeSettingBox: false, |
| | | useRangeData: [], |
| | |
| | | }, |
| | | /** 发布编码规则 */ |
| | | async enableOrDeactivatse(oid,update){ |
| | | // 避免用户重复点击按钮 |
| | | this.releadDisabled = true; |
| | | await checkLikeCodeRule(oid).then(res => { |
| | | if(res.data.success){ |
| | | this.updateStatus(oid,update); |
| | | }else{ |
| | | this.$confirm('test', '提示', { |
| | | distinguishCancelAndClose: true, |
| | | confirmButtonText: '继续发布', |
| | | cancelButtonText: '取消' |
| | | }).then(() => { |
| | | //this.updateStatus(); |
| | | }) |
| | | .catch(action => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '取消发布!', |
| | | /*if(update==="release"){ |
| | | // 避免用户重复点击按钮 |
| | | this.releadDisabled = true; |
| | | await checkLikeCodeRule(oid).then(res => { |
| | | console.log(res) |
| | | if(res.data.success){ |
| | | this.updateStatus(oid,update); |
| | | }else{ |
| | | this.$confirm(res.data.msg, '提示', { |
| | | distinguishCancelAndClose: true, |
| | | confirmButtonText: '继续发布', |
| | | cancelButtonText: '取消' |
| | | }).then(() => { |
| | | //this.updateStatus(); |
| | | }) |
| | | }); |
| | | } |
| | | }) |
| | | this.releadDisabled = false; |
| | | .catch(action => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '取消发布!', |
| | | }) |
| | | }); |
| | | } |
| | | }) |
| | | this.releadDisabled = false; |
| | | }else {*/ |
| | | this.updateStatus(oid,update); |
| | | //} |
| | | }, |
| | | /** 打开编码规则克隆对话框*/ |
| | | openCodeRuleDialog() { |