text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67a5f1d6"],{"4d63":function(e,t,r){var o=r("83ab"),a=r("da84"),s=r("94ca"),i=r("7156"),n=r("9bf2").f,l=r("241c").f,u=r("44e7"),c=r("ad6d"),d=r("9f7f"),m=r("6eeb"),p=r("d039"),f=r("69f3").set,b=r("2626"),g=r("b622"),h=g("match"),$=a.RegExp,v=$.prototype,y=/a/g,k=/a/g,w=new $(y)!==y,C=d.UNSUPPORTED_Y,x=o&&s("RegExp",!w||C||p((function(){return k[h]=!1,$(y)!=y||$(k)==k||"/a/i"!=$(y,"i")})));if(x){var O=function(e,t){var r,o=this instanceof O,a=u(e),s=void 0===t;if(!o&&a&&e.constructor===O&&s)return e;w?a&&!s&&(e=e.source):e instanceof O&&(s&&(t=c.call(e)),e=e.source),C&&(r=!!t&&t.indexOf("y")>-1,r&&(t=t.replace(/y/g,"")));var n=i(w?new $(e,t):$(e,t),o?this:v,O);return C&&r&&f(n,{sticky:r}),n},E=function(e){e in O||n(O,e,{configurable:!0,get:function(){return $[e]},set:function(t){$[e]=t}})},P=l($),R=0;while(P.length>R)E(P[R++]);v.constructor=O,O.prototype=v,m(a,"RegExp",O)}b("RegExp")},7156:function(e,t,r){var o=r("861d"),a=r("d2bb");e.exports=function(e,t,r){var s,i;return a&&"function"==typeof(s=t.constructor)&&s!==r&&o(i=s.prototype)&&i!==r.prototype&&a(e,i),e}},"99af":function(e,t,r){"use strict";var o=r("23e7"),a=r("d039"),s=r("e8b5"),i=r("861d"),n=r("7b0b"),l=r("50c4"),u=r("8418"),c=r("65f0"),d=r("1dde"),m=r("b622"),p=r("2d00"),f=m("isConcatSpreadable"),b=9007199254740991,g="Maximum allowed index exceeded",h=p>=51||!a((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),$=d("concat"),v=function(e){if(!i(e))return!1;var t=e[f];return void 0!==t?!!t:s(e)},y=!h||!$;o({target:"Array",proto:!0,forced:y},{concat:function(e){var t,r,o,a,s,i=n(this),d=c(i,0),m=0;for(t=-1,o=arguments.length;t<o;t++)if(s=-1===t?i:arguments[t],v(s)){if(a=l(s.length),m+a>b)throw TypeError(g);for(r=0;r<a;r++,m++)r in s&&u(d,m,s[r])}else{if(m>=b)throw TypeError(g);u(d,m++,s)}return d.length=m,d}})},d07b:function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("breadcrumb-nav",{staticClass:"margin-b20"},[r("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(t){e.dialogVisible=!0}}},[e._v(" "+e._s(e.$t("user.addUser"))+" ")])],1),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.dataList,border:"","empty-text":e.$t("common.noData")}},[r("el-table-column",{attrs:{prop:"name",label:e.$t("user.userName")}}),r("el-table-column",{attrs:{prop:"uid",label:e.$t("user.uid")}}),r("el-table-column",{attrs:{prop:"gid",label:e.$t("user.gid")}}),r("el-table-column",{attrs:{prop:"type",label:e.$t("user.userType")}}),r("el-table-column",{attrs:{prop:"enableFlag",label:e.$t("user.isActive"),formatter:e.translationActive}}),r("el-table-column",{attrs:{prop:"guidCheckT",label:e.$t("user.isGuidCheck"),formatter:e.translationGuidCheck}}),r("el-table-column",{attrs:{prop:"remarks",label:e.$t("user.describe"),width:"350px"}}),r("el-table-column",{attrs:{label:e.$t("common.operation"),width:"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-dropdown",{attrs:{size:"medium"},on:{command:e.handleCommand}},[r("el-button",{staticClass:"multi-operate-btn",attrs:{type:"text",icon:"el-icon-more",round:""}}),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{attrs:{command:e.beforeHandleCommand("updateItem",t.row)}},[e._v(" "+e._s(e.$t("common.modify"))+" ")]),r("el-dropdown-item",{attrs:{command:e.beforeHandleCommand("deleteItem",t.row)}},[e._v(" "+e._s(e.$t("common.delete"))+" ")]),r("el-dropdown-item",{attrs:{command:e.beforeHandleCommand("settingGroup",t.row)}},[e._v(" "+e._s(e.$t("user.userGroupSettings"))+" ")])],1)],1)]}}])})],1),r("el-pagination",{attrs:{"current-page":e.pagination.pageNumber,"page-sizes":e.sizeList,"page-size":e.pagination.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.pagination.totalPage,background:""},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),r("el-dialog",{attrs:{title:e.title,visible:e.dialogVisible,"custom-class":"dialog-style",width:"920px"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.clearDialogForm}},[r("el-form",{ref:"formValidate",attrs:{model:e.form,rules:e.ruleValidate,"label-width":"120px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:e.$t("user.userName"),prop:"name"}},[r("el-input",{attrs:{placeholder:e.$t("user.userNamePro"),disabled:e.modify},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:e.$t("user.userType"),prop:"type"}},[r("el-select",{attrs:{placeholder:e.$t("user.typePro")},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[r("el-option",{attrs:{value:"USER"}},[e._v(" USER ")]),r("el-option",{attrs:{value:"SYSTEM"}},[e._v(" SYSTEM ")])],1)],1)],1)],1),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:e.$t("user.uid"),prop:"uid"}},[r("el-input",{attrs:{placeholder:e.$t("user.uidPro")},model:{value:e.form.uid,callback:function(t){e.$set(e.form,"uid",t)},expression:"form.uid"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:e.$t("user.gid"),prop:"gid"}},[r("el-input",{attrs:{placeholder:e.$t("user.gidDPro")},model:{value:e.form.gid,callback:function(t){e.$set(e.form,"gid",t)},expression:"form.gid"}})],1)],1)],1),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:e.$t("user.isActive"),prop:"enableFlag"}},[r("el-select",{attrs:{placeholder:e.$t("user.activePro")},model:{value:e.form.enableFlag,callback:function(t){e.$set(e.form,"enableFlag",t)},expression:"form.enableFlag"}},[r("el-option",{attrs:{label:e.$t("common.yes"),value:1}})],1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:e.$t("user.guidCheck"),prop:"guidCk"}},[r("el-select",{attrs:{placeholder:e.$t("user.guidCheckPro")},model:{value:e.form.guidCk,callback:function(t){e.$set(e.form,"guidCk",t)},expression:"form.guidCk"}},[r("el-option",{attrs:{label:e.$t("common.yes"),value:1}}),r("el-option",{attrs:{label:e.$t("common.no"),value:0}})],1)],1)],1)],1),r("el-form-item",{attrs:{label:e.$t("user.describe"),prop:"remarks"}},[r("el-input",{attrs:{type:"textarea",placeholder:e.$t("user.describePro")},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary",disabled:e.btnDisabled},on:{click:e.subInfo}},[e._v(e._s(e.$t("common.save")))]),r("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v(e._s(e.$t("common.cancel")))])],1)],1)],1)},a=[],s=(r("a4d3"),r("99af"),r("4de4"),r("4160"),r("b0c0"),r("e439"),r("dbb4"),r("b64b"),r("4d63"),r("ac1f"),r("25f0"),r("159b"),r("ade3"));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){Object(s["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var l={data:function(){return{dialogVisible:!1,form:{name:"",gid:"",uid:"",guidCk:"",guidCheck:"",type:"",enableFlag:1,remarks:""},modify:!1,dataList:[]}},mounted:function(){this.getListData()},computed:{title:function(){return this.modify?this.$t("user.modifyUser"):this.$t("user.newUser")},getUrl:function(){return"/cc/".concat(this.FesEnv.ccApiVersion,"/users")},ruleValidate:function(){return this.resetFormFields(),{name:[{required:!0,message:this.$t("user.userNameReq")},{pattern:new RegExp(/^.*[^\s][\s\S]*$/),message:this.$t("user.userNameReq")}],gid:[{required:!0,message:this.$t("user.gidReq")},{pattern:new RegExp(/^\d*$/),message:this.$t("user.gidNumberPro")}],uid:[{required:!0,message:this.$t("user.uidReq")},{pattern:new RegExp(/^\d*$/),message:this.$t("user.uidNumberPro")}],guidCk:[{required:!0,message:this.$t("user.guidCheckReq")}],enableFlag:[{required:!0,message:this.$t("user.activeReq")}],type:[{required:!0,message:this.$t("user.typeReq")}],remarks:[{pattern:new RegExp(/^.{0,200}$/),message:this.$t("user.remarksMaxLength")}]}}},methods:{translationActive:function(e,t){return e.enableFlag?this.$t("common.yes"):this.$t("common.no")},translationGuidCheck:function(e,t){return"1"===e.guidCheck?this.$t("common.yes"):this.$t("common.no")},updateItem:function(e){var t=this;this.dialogVisible=!0,this.modify=!0,setTimeout((function(){e.guidCk="1"===e.guidCheck?1:0,Object.assign(t.form,e)}),0)},deleteItem:function(e){var t="/cc/".concat(this.FesEnv.ccApiVersion,"/users/id/").concat(e.id);this.deleteListItem(t)},settingGroup:function(e){this.$router.push({name:"settingUserGroup",params:{userName:e.name,userId:e.id+""},query:{userName:e.name}})},subInfo:function(){var e=this;this.form.guidCheck=!!parseInt(this.form.guidCk),this.$refs.formValidate.validate((function(t){if(t){e.setBtnDisabeld();var r="post",o="/cc/".concat(e.FesEnv.ccApiVersion,"/users");e.modify&&(r="put");var a=n({},e.form);a.gid=parseInt(a.gid),a.uid=parseInt(a.uid),a.guidCheck=e.form.guidCheck?"1":"0",delete a.guidCk,e.FesApi.fetch(o,a,r).then((function(){e.getListData(),e.toast(),e.dialogVisible=!1}))}}))}}},u=l,c=r("2877"),d=Object(c["a"])(u,o,a,!1,null,null,null);t["default"]=d.exports}}]);
  //# sourceMappingURL=chunk-67a5f1d6.6d303967.js.map