var validateForm;function doSubmit(t){return!!validateForm.form()&&(formAjaxSubmit($("#roleMutexForm"),function(e){t(e)}),!0)}var pageDictMap={},fieldDictTypeMap={roleMutexType:"roleMutex_type"},roleMutexFormContentVm=new Vue({el:"#roleMutexForm",data:function(){return{entity:{id:GetQueryString("id"),type:"",appId:"",appName:"",groupDesc:""},editType:GetQueryString("editType"),urlPrefix:commonConfig.sysBackendContext+"/sys/roleMutex",pageDictMap:{}}},computed:{roleMutexTypeDict:function(){return this.pageDictMap.roleMutex_type}},methods:{initFormData:function(){var e,o,i=this,t=i.entity.id;t&&(e=this.urlPrefix+"/getRoleMutexList?id="+t,o="获取微服务系统信息",axios.get(e).then(function(e){var t=getDataFromAxiosResponse(e,o);t.list&&t.list[0]&&(i.entity=t.list[0])}).catch(function(e){axiosErrorTips(e,o+"异常")}))}},created:function(){checkPagePermission(commonConfig.sysBackendContext+"/sys/roleMutex/checkRoleMutexFormPermission");var t=this,e=commonConfig.sysBackendContext+"/sys/sysParam/getParamsByCodeStr?classCodes=roleMutex_type",o="获取字典信息";axios.get(e).then(function(e){t.pageDictMap=getDataFromAxiosResponse(e,o).data,t.initFormData()}).catch(function(e){axiosErrorTips(e,o+"异常")})},mounted:function(){$("#roleMutexForm").submit(function(e){e.preventDefault()}),$.ajax({async:!1,type:"GET",url:WEB_ROOT+"/sys/app/getAppListOfUser?timestamp="+Date.parse(new Date),error:function(){alert("请求失败")},success:function(e){var t=e.data;$appId=$("#appId");for(var o=0;o"+t[o].appName+"")}}),validateForm=$("#roleMutexForm").validate({submitHandler:function(e){loading("正在提交,请稍等..."),e.submit()},errorContainer:"#messageBox",errorPlacement:function(e,t){$("#messageBox").text("输入有误,请先更正。"),t.is(":checkbox")||t.is(":radio")||t.parent().is(".input-append")?e.appendTo(t.parent().parent()):e.insertAfter(t)}}),$("#roleMutexForm").height()<$("#roleMutexForm").context.defaultView.innerHeight&&$($("#roleMutexForm").context.firstElementChild).height($("#inputForm").context.defaultView.innerHeight)}});