12 |
- (function(){var t={191:function(t,e,a){"use strict";a.d(e,{i:function(){return i}});var s=a(4642);const i={baseUrl:`${s.baseApi}onlinePost`,ajaxstart:{functionName:"select_user_type1",r_type:null,page:null,num:null},userstate:{functionName:"update_user_state"},ajax_admin:{functionName:"update_user_admin"},ajax_school:{functionName:"select_school_name2",u_name:"",u_org:"",u_regC:""},ajax_org:{functionName:"select_organization"},ajax_school_name:{functionName:"select_school_name"},ajax_add_school:{functionName:"insert_school2"},ajax_add_org:{functionName:"insert_org2"},ajax_confirm:{functionName:"updata_user_o_s"},ajax_Suffix:{functionName:"select_Suffix"},moveUser:{functionName:"account_update_user2"},allRecords:{functionName:"select_requestuser2",page:1,num:10}}},3080:function(t){t.exports={env:"production",title:"cocorobo",baseUrl:"https://www.xxx.com/",baseApi:"https://pbl.cocorobo.cn/api/pbl/",APPID:"xxx",APPSECRET:"xxx",$cdn:"https://imgs.solui.cn"}},4642:function(t,e,a){const s=a(3080);t.exports=s},4717:function(t,e,a){"use strict";var s=a(6848),i=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},o=[],l=a(1656),n={},r=(0,l.A)(n,i,o,!1,null,null,null),c=r.exports,u=a(6178),d=function(){var t=this,e=t._self._c;return e("div",{staticClass:"body"},[e("div",{staticClass:"top"},[e("div",{staticClass:"title"},[t._v("CocoClass后台管理")]),e("div",{staticClass:"person"},[e("div",{staticClass:"person_name"},[t._v(t._s(t.userinfo?t.userinfo.username:""))]),e("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"text"},on:{click:t.handleLogout}},[t._v("退出")])],1)]),e("div",{staticClass:"container"},[e("div",{staticClass:"left"},[e("ul",[e("router-link",{staticClass:"menu_left",attrs:{to:"/user-list"}},[e("i",{staticClass:"el-icon-s-custom"}),t._v("账号列表 ")]),e("router-link",{staticClass:"menu_left",attrs:{to:"/user-examine"}},[e("i",{staticClass:"el-icon-edit"}),t._v("账号审核 ")]),e("router-link",{staticClass:"menu_left",attrs:{to:"/organ-list"}},[e("i",{staticClass:"el-icon-office-building"}),t._v("组织列表 ")]),e("router-link",{staticClass:"menu_left",attrs:{to:"/school-list"}},[e("i",{staticClass:"el-icon-school"}),t._v("学校列表 ")])],1)]),e("div",{staticClass:"table-container"},[e("router-view")],1)])])},h=[],m=(a(4114),a(3518)),p=a(4373),g=a(9122),_=a.n(g);p.A.defaults.timeout=6e5,p.A.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8",p.A.defaults.baseURL={NODE_ENV:"production",VUE_APP_ENV:"production",BASE_URL:"/"}.NODE_HOST,p.A.defaults.withCredentials=!0,console.log({NODE_ENV:"production",VUE_APP_ENV:"production",BASE_URL:"/"});const f=p.A.CancelToken;let v;function b(t){return JSON.stringify(t)}function y(t,e,a){return new Promise(((s,i)=>{p.A.post(t,e,a?{cancelToken:a.token}:"").then((t=>{s(t)}),(t=>{i(t)})).catch((t=>{i(t)}))}))}function C(t,e,a){return new Promise(((s,i)=>{p.A.put(t,e,a?{cancelToken:a.token}:"").then((t=>{s(t)}),(t=>{i(t)})).catch((t=>{i(t)}))}))}function x(t,e,a){return new Promise(((s,i)=>{let o=a?a.token:"";p.A.get(t,{params:e,cancelToken:o}).then((t=>{s(t)}),(t=>{i(t)})).catch((t=>{i(t)}))}))}p.A.interceptors.request.use((t=>{if("https://gpt.cocorobo.cn/search_image"===t.url||"https://gpt.cocorobo.cn/chat"===t.url||"https://gpt4.cocorobo.cn/create_free_assistants"===t.url||"https://gpt4.cocorobo.cn/assistants_completion_response"===t.url)t.data=b(t.data);else if(-1!==t.url.indexOf("https://gpt4.cocorobo.cn/")||-1!==t.url.indexOf("https://claude3.cocorobo.cn/")||-1!==t.url.indexOf("https://llm.cocorobo.cn/"))t.headers={"Content-Type":"application/json"};else if(t.data&&"1"===t.data[0].post&&"post"===t.method)t.data="mode="+Object.values(t.data[0]).join(",");else if("post"===t.method&&t.data){const e={};for(const a in t.data[0])Object.hasOwnProperty.call(t.data[0],a)&&(e[a]=encodeURIComponent(t.data[0][a]));t.data=_().stringify([e])}else{const e={};for(const a in t.data)Object.hasOwnProperty.call(t.data,a)&&(e[a]=encodeURIComponent(t.data[a]));t.data=e}return t}),(t=>Promise.reject(t))),p.A.interceptors.response.use((t=>{if(!t.data.success){let e=t.data.token;localStorage.setItem("access_token",e)}return t}),(t=>(p.A.isCancel(t)?console.log("请求已取消",t.message):"401"==t.response.data.status&&(void 0).$router.push("/login"),Promise.reject(t))));var k={get:x,post:y,put:C,setCancelSource:()=>(v=f.source(),v)},w=a(4642);function S(){return k.get("//beta.api.cocorobo.cn/api/getcookieuserid")}function A(t){return k.post("//beta.api.cocorobo.cn/api/logout",t)}function D(t){return k.get(`${w.baseApi}/selectUser`,t)}function T(t){return k.post(`${w.baseApi}/batchRegistrationUser`,[t])}function $(t){return k.post(`${w.baseApi}/addCourseBehavior`,[t])}var O={name:"HomeView",computed:{...(0,m.L8)(["userinfo"])},methods:{...(0,m.i0)({logout:"user/logout"}),async handleLogout(){this.$confirm("确定退出吗","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((async()=>{A().then((async()=>{this.$message({message:"退出成功",type:"success"}),await this.logout(),this.$router.push("/login")})).catch((t=>{console.error(t)}))})).catch((()=>{}))}},mounted(){}},j=O,N=(0,l.A)(j,d,h,!1,null,"5f63425d",null),U=N.exports,P=function(){var t=this,e=t._self._c;return e("div",{staticClass:"list_container"},[e("div",{staticClass:"title_examine"},[e("div",{staticClass:"pub_title"},[t._v("账号列表")]),e("div",{staticStyle:{"margin-left":"auto"}},[e("el-input",{staticStyle:{"margin-right":"10px",width:"200px"},attrs:{placeholder:"输入检索用户名",size:"normal",clearable:""},on:{input:t.changeOid},model:{value:t.s_name,callback:function(e){t.s_name=e},expression:"s_name"}}),e("el-input",{staticStyle:{"margin-right":"10px",width:"200px"},attrs:{placeholder:"输入检索账号",size:"normal",clearable:""},on:{input:t.changeOid},model:{value:t.s_username,callback:function(e){t.s_username=e},expression:"s_username"}}),e("el-select",{staticStyle:{"margin-right":"10px",width:"120px"},attrs:{placeholder:"选择身份",clearable:"",filterable:""},on:{change:t.changeOid},model:{value:t.checkRole,callback:function(e){t.checkRole=e},expression:"checkRole"}},t._l(t.roleArray,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),e("el-select",{staticStyle:{"margin-right":"10px"},attrs:{placeholder:"选择学校",clearable:"",filterable:""},on:{change:t.changeOid},model:{value:t.checkOid,callback:function(e){t.checkOid=e},expression:"checkOid"}},t._l(t.getSchool,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),e("el-select",{staticStyle:{"margin-right":"10px"},attrs:{placeholder:"选择组织",clearable:"",filterable:""},on:{change:t.changeOrg},model:{value:t.checkOrg,callback:function(e){t.checkOrg=e},expression:"checkOrg"}},t._l(t.organizations,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.nextStep()}}},[t._v("新增账户")])],1)]),e("el-dialog",{staticClass:"table",attrs:{title:"移动选择",visible:t.isOrgFormVisible,"before-close":t.close_table,width:"920px"},on:{"update:visible":function(e){t.isOrgFormVisible=e}}},[e("div",{staticClass:"input-container"},[e("div",{staticClass:"input_box"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchQuery,expression:"searchQuery"}],staticClass:"table_find",attrs:{type:"text",placeholder:"搜索学校"},domProps:{value:t.searchQuery},on:{change:t.ajax_org_check,input:function(e){e.target.composing||(t.searchQuery=e.target.value)}}})]),e("el-select",{staticClass:"custom-select",staticStyle:{"margin-left":"10px"},attrs:{placeholder:"请选择组织",filterable:"",clearable:""},on:{change:t.ajax_org_check},model:{value:t.school.OrgId,callback:function(e){t.$set(t.school,"OrgId",e)},expression:"school.OrgId"}},t._l(t.organizations,(function(a,s){return e("el-option",{key:s,attrs:{label:a.name,value:a.id}},[t._v(" "+t._s(a.name)+" ")])})),1),e("el-select",{staticClass:"custom-select",staticStyle:{"margin-left":"10px"},attrs:{placeholder:"请选择区域",filterable:"",clearable:""},on:{change:t.ajax_org_check},model:{value:t.selReg,callback:function(e){t.selReg=e},expression:"selReg"}},t._l(t.regionCList,(function(a,s){return e("el-option",{key:s,attrs:{label:a.name,value:a.name}},[t._v(" "+t._s(a.name)+" ")])})),1)],1),e("div",{staticClass:"table_down"},[t.cn_org?e("div",[e("div",{staticClass:"checkbox-container"},t._l(t.cn_school,(function(a,s){return e("div",{key:s,staticClass:"checkbox_comment"},[e("div",{staticClass:"checkbox-left"},[e("label",{staticClass:"checkbox-label"},[e("a",[t._v(t._s(a.name))])]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedSchool,expression:"selectedSchool"}],staticClass:"checkbox_input_org",attrs:{type:"radio",name:"school_selection"},domProps:{value:a.id,checked:t._q(t.selectedSchool,a.id)},on:{change:function(e){t.selectedSchool=a.id}}})])])})),0)]):t._e()]),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.close_table}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){t.add_school_dialog=!0}}},[t._v("新增学校")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){t.add_org_dialog=!0}}},[t._v("新增组织")]),e("el-button",{attrs:{type:"primary"},on:{click:t.ajax_confirm}},[t._v("确认移动")])],1)]),e("el-dialog",{staticClass:"table",attrs:{title:"新增账户",visible:t.isTableUseVisible,"before-close":t.close_table,width:"700px"},on:{"update:visible":function(e){t.isTableUseVisible=e}}},[e("div",[e("form",{staticClass:"el-form"},[e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("姓名")]),e("div",{staticClass:"el-form-item__content"},[e("el-input",{staticClass:"add_input",attrs:{placeholder:"请输入姓名",autocomplete:"off"},model:{value:t.person.name,callback:function(e){t.$set(t.person,"name",e)},expression:"person.name"}})],1)]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("账号")]),e("div",{staticClass:"el-form-item__content"},[e("el-input",{staticClass:"add_input",attrs:{placeholder:"请输入账号",autocomplete:"off"},model:{value:t.person.account,callback:function(e){t.$set(t.person,"account",e)},expression:"person.account"}})],1)]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("选择组织")]),e("div",{staticClass:"el-form-item__content"},[e("el-select",{staticClass:"custom-select",attrs:{placeholder:"请选择组织",clearable:"",filterable:""},on:{change:t.orgChange},model:{value:t.person.selectedOrg,callback:function(e){t.$set(t.person,"selectedOrg",e)},expression:"person.selectedOrg"}},t._l(t.organizations,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("选择学校")]),e("div",{staticClass:"el-form-item__content"},[e("el-select",{staticClass:"custom-select",attrs:{placeholder:"请选择学校",clearable:"",filterable:""},on:{change:t.schoolChange},model:{value:t.person.selectedSchool,callback:function(e){t.$set(t.person,"selectedSchool",e)},expression:"person.selectedSchool"}},t._l(t.getSchool2,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)])])]),e("div",{staticClass:"el-dialog__footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.isTableUseVisible=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.addUser}},[t._v("确认")])],1)]),e("el-dialog",{staticClass:"table",attrs:{title:"新增学校",visible:t.add_school_dialog,"before-close":t.close_add_school,width:"700px"},on:{"update:visible":function(e){t.add_school_dialog=e}}},[e("div",{staticClass:"el_dialog_school_content"},[e("form",{staticClass:"el-form"},[e("div",{staticClass:"el-form-item",staticStyle:{"margin-top":"15px"}},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("学校名称")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.sch_name,expression:"sch_name"}],staticClass:"el-input__inner",attrs:{type:"text",autocomplete:"off",placeholder:"学校名称"},domProps:{value:t.sch_name},on:{input:function(e){e.target.composing||(t.sch_name=e.target.value)}}})])])])]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("地区")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.region,expression:"region"}],staticClass:"el-input__inner",attrs:{type:"text",autocomplete:"off",placeholder:"请输入地区"},domProps:{value:t.region},on:{input:function(e){e.target.composing||(t.region=e.target.value)}}})])])])]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("学校编码")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.schoolCode,expression:"schoolCode"}],staticClass:"el-input__inner",attrs:{type:"text",autocomplete:"off",placeholder:"请输入编码"},domProps:{value:t.schoolCode},on:{input:function(e){e.target.composing||(t.schoolCode=e.target.value)}}})])])])]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("上级组织")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("el-form",{ref:"form",attrs:{model:t.school}},[e("el-select",{staticClass:"custom-select",attrs:{placeholder:"请选择组织",filterable:""},model:{value:t.school.parentOrgId,callback:function(e){t.$set(t.school,"parentOrgId",e)},expression:"school.parentOrgId"}},t._l(t.organizations,(function(a,s){return e("el-option",{key:s,attrs:{label:a.name,value:a.id}},[t._v(" "+t._s(a.name)+" ")])})),1)],1)],1)])])]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("区域")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("el-select",{staticClass:"custom-select",attrs:{placeholder:"请选择区域",filterable:""},model:{value:t.regionC,callback:function(e){t.regionC=e},expression:"regionC"}},t._l(t.regionCList,(function(a,s){return e("el-option",{key:s,attrs:{label:a.name,value:a.name}},[t._v(" "+t._s(a.name)+" ")])})),1)],1)])])])])]),e("div",{staticClass:"el-dialog__footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.close_add_school}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.ajax_add_school}},[t._v("确认")])],1)]),e("el-dialog",{staticClass:"table",attrs:{title:"新增组织",visible:t.add_org_dialog,"before-close":t.close_add_school,width:"700px"},on:{"update:visible":function(e){t.add_org_dialog=e}}},[e("div",{staticClass:"el_dialog_org_content"},[e("form",{staticClass:"el-form"},[e("div",{staticClass:"el-form-item",staticStyle:{"margin-top":"15px"}},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("组织名称")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.orgName,expression:"orgName"}],staticClass:"el-input__inner",attrs:{type:"text",autocomplete:"off",placeholder:"组织名称"},domProps:{value:t.orgName},on:{input:function(e){e.target.composing||(t.orgName=e.target.value)}}})])])])]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("组织编码")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.randomCode,expression:"randomCode"}],staticClass:"el-input__inner",attrs:{type:"text",autocomplete:"off",placeholder:"请输入随机码"},domProps:{value:t.randomCode},on:{input:function(e){e.target.composing||(t.randomCode=e.target.value)}}})])])])]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("区域")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("el-select",{staticClass:"custom-select",attrs:{placeholder:"请选择区域",filterable:""},model:{value:t.regionC,callback:function(e){t.regionC=e},expression:"regionC"}},t._l(t.regionCList,(function(a,s){return e("el-option",{key:s,attrs:{label:a.name,value:a.name}},[t._v(" "+t._s(a.name)+" ")])})),1)],1)])])])])]),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.close_add_school}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.ajax_add_org}},[t._v("确认")])],1)]),e("div",{staticClass:"content"},[e("div",{staticClass:"button_top"},[e("a",{style:{color:1==t.type?"black":"rgb(179, 179, 179)"},on:{click:function(e){return t.showType(1)}}},[t._v("启用中("+t._s(t.tableData_start)+")")]),e("a",{style:{color:0==t.type?"black":"rgb(179, 179, 179)"},on:{click:function(e){return t.showType(0)}}},[t._v("已停用("+t._s(t.tableData_stop)+")")])]),e("div",[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData,border:"",stripe:"","header-cell-style":t.headerCellStyle,"row-key":t=>t.userid},on:{"selection-change":t.handleSelectionChange}},[e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"company_name",label:"组织名称","min-width":"32","header-align":"center",align:"center"}}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"company_number",label:"学校名称","min-width":"32","header-align":"center",align:"center"}}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"company_number",label:"组织编号","min-width":"32","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:a}){return[e("div",[t._v(t._s(a.orgCode?a.orgCode:a.schoolCode?a.schoolCode:"暂无"))])]}}])}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"name",label:"姓名","min-width":"32","header-align":"center",align:"center"}}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"account",label:"账户","min-width":"32","header-align":"center",align:"center"}}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"Ctime",label:"账户开通时间","min-width":"40","header-align":"center",align:"center"}}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"身份","min-width":"32","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:a}){return[e("div",[t._v(t._s(t.roleType(a)))])]}}])}),e("el-table-column",{attrs:{"show-overflow-toolti":"",label:"操作","min-width":"35","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:a}){return[1==a.state?e("el-button",{attrs:{link:"",type:"text",size:"small"},on:{click:function(e){return t.ajax__open_stop(a)}}},[t._v("停用")]):t._e(),1==a.state?e("el-button",{attrs:{link:"",type:"text",size:"small"},on:{click:function(e){return t.run(a)}}},[t._v("移动")]):t._e(),0==a.state?e("el-button",{attrs:{link:"",type:"text",size:"small"},on:{click:function(e){return t.ajax__open_stop(a)}}},[t._v("启用")]):t._e(),1===a.type&&1==a.state?e("el-button",{attrs:{link:"",type:"text",size:"small"},on:{click:function(e){return t.ajax_admin(a.userid,a.role,a.type)}}},[t._v(" "+t._s(1===a.role?"取消管理员":"设置管理员")+" ")]):t._e()]}}])})],1),t.total?e("div",{staticClass:"Pagetion"},[e("el-pagination",{attrs:{"current-page":t.currentPage,"page-size":t.pageSize,total:t.total,layout:"total, prev, pager, next, jumper"},on:{"current-change":t.handlePageChange}})],1):t._e()],1)])],1)},E=[],I=(a(8992),a(4520),a(2577),a(1454),a(191)),V=a(8626),B={name:"HelloWorld",components:{},data(){return{SuffixData:"",schoolList:[],dropdownVisible:!1,checked:!0,showCompany:!1,isOrgFormVisible:!1,isTableUseVisible:!1,add_org_dialog:!1,orgName:"",u_create:"",randomCode:"",uLogin:"1",radio:"1",sch_name:"",region:"",schoolType:"1",schoolCode:"",loginPermission:"1",add_school_dialog:!1,isCompanyDropdownVisible:!1,companyListVisibility:[!1,!1,!1],open_content:!0,add_button:!0,stop_content:!1,open:!0,stop:!1,selectedSchool:"",currentPage:1,pageSize:10,down_currentPage:1,down_pageSize:10,up_page:!0,down_page:!1,company_name:0,tableData:[],tableData_start:"",tableData_stop:"",form:{name:"",account:"",organization:"",school:""},cn_org:!0,hk_org:!1,com_org:!1,organizations:[],cn_school:[],searchQuery:"",dialogVisible:!0,school:{OrgId:null},regionCList:[{id:1,name:"hk"},{id:2,name:"cn"}],regionC:"cn",selReg:"",ajaxParams:null,check_user_id:"",type:1,total:0,tableLoading:!1,checkOrg:"",checkOid:"",s_name:"",s_username:"",checkRole:"",roleArray:[{value:"1",label:"老师"},{value:"2",label:"学生"},{value:"3",label:"管理员"}],opUser:{},person:{name:"",account:"",type:"",selectedOrg:"",selectedSchool:""},checkArray:[]}},computed:{...(0,m.L8)(["userid"]),roleType(){return function(t){return 2==t.type?"学生":1==t.type?1==t.role?"管理员":"老师":void 0}},getSchool(){return this.checkOrg?this.cn_school.filter((t=>t.org===this.checkOrg)):this.cn_school},getSchool2(){return this.person.selectedOrg?this.cn_school.filter((t=>t.org===this.person.selectedOrg)):this.cn_school},getSchool3(){return this.school.OrgId||this.searchQuery?this.cn_school.filter((t=>t.org===this.school.OrgId||t.name.includes(this.searchQuery))):this.cn_school}},watch:{},methods:{handleSelectionChange(t){this.checkArray=t.map((t=>t.userid))},run(t){this.opUser=t,this.check_user_id=t.userid,this.isOrgFormVisible=!0},close_table(){this.searchQuery="",this.school.OrgId=null,this.selReg="",this.ajax_school(),this.SuffixData="",this.isOrgFormVisible=!1,this.isTableUseVisible=!1,this.selectedSchool=""},nextStep(){this.isTableUseVisible=!0,this.person={name:"",account:"",type:2,selectedOrg:"",selectedSchool:""}},form_clost(){this.isTableUseVisible=!1},close_add_school(){this.regionC="cn",this.add_org_dialog=!1,this.add_school_dialog=!1},showType(t){this.type=t,this.currentPage=1,this.getData()},handlePageChange(t){this.currentPage=t,this.getData()},headerCellStyle(){return{backgroundColor:"#f1f1f1"}},getData(){this.tableLoading=!0;let t=[{functionName:I.i.ajaxstart.functionName,r_type:this.type,cn:this.s_name,un:this.s_username,oid:this.checkOid,org:this.checkOrg,userType:this.checkRole,page:this.currentPage,num:this.pageSize}];this.tableData=[],this.$ajax.post(I.i.baseUrl,t).then((t=>{const e=t.data[0].map((t=>({company_name:t.org_name||"暂无",company_number:t.school_name||"暂无",name:t.user_name||"暂无",account:t.account_name||"暂无",userid:t.user_id,role:t.admin_role||0,school:t.s_id,org:t.org,type:t.usertype,state:t.user_state,orgCode:t.org_code,schoolCode:t.school_code,Ctime:t.Ctime})));this.tableData=e,this.total=t.data[0][0].total_count,this.tableData_stop=t.data[2][0].num,this.tableData_start=t.data[1][0].num,this.tableLoading=!1,console.log("you",t.data)})).catch((t=>{this.tableLoading=!1,console.error("请求失败,错误信息:",t)}))},ajax__open_stop(t){const e=1==t.state?"停用该用户":"启用该用户",a=1==t.state?"停用成功!":"启用成功!",s=1==t.state?"已取消停用":"已取消启用";let i=[{functionName:I.i.userstate.functionName,u_id:t.userid}];this.$confirm(`此操作将会${e}, 是否继续?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.$ajax.post(I.i.baseUrl,i).then((async()=>{this.$message({type:"success",message:a}),this.getData(),await $({uid:this.userid,cid:"",type:"user_op",content:`${1==t.state?"停用":"启用"}了${t.userid}`})})).catch((t=>{this.$message.error("处理失败"),console.error("请求失败,错误信息:",t)}))})).catch((()=>{this.$message({type:"info",message:s})}))},ajax_admin(t,e){let a=1===e?"此操作将会取消此用户的管理员状态,是否继续?":"此操作将会设置该用户为管理员,是否继续?";this.$confirm(a,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{let a=[{functionName:I.i.ajax_admin.functionName,u_id:t}];this.$ajax.post(I.i.baseUrl,a).then((async()=>{this.getData(),this.$message({type:"success",message:"已成功执行!"}),await $({uid:this.userid,cid:"",type:"user_op",content:`将${t}${1==e?"取消了管理员":"设置了管理员"}`})})).catch((t=>{console.error("请求失败:",t),this.$message({type:"error",message:"操作失败,请稍后再试"})}))})).catch((()=>{this.$message({type:"info",message:"已取消操作"})}))},addUser(){if(!this.person.name||!this.person.account||!this.person.selectedSchool)return void this.$message({type:"error",message:"请填写所有必填项:姓名、账号、组织和学校。"});if(this.person.account=this.person.account+this.SuffixData,!/\S+@\S+\.\S+/.test(this.person.account))return void this.$message.error("账号要填写邮箱格式");let t={alias:this.person.name,username:this.person.account,org:this.person.selectedOrg,oid:this.person.selectedSchool,ph:"",cid:"",type:1,opid:"",dest:"",eduid:""};T(t).then((async t=>{t&&(await $({uid:this.userid,cid:"",type:"user_op",content:`添加了${this.person.name} 账号为${this.person.account}`}),this.$message({type:"success",message:"操作成功"}),this.isTableUseVisible=!1,this.getData())})).catch((t=>{console.error("请求失败,错误信息:",t)}))},ajax_school(){let t=[{functionName:I.i.ajax_school.functionName,u_name:this.searchQuery,u_org:this.school.OrgId||"",u_regC:this.selReg}];this.$ajax.post(I.i.baseUrl,t).then((t=>{t.data&&Array.isArray(t.data[0])&&(this.cn_school=t.data[0].map((t=>({name:t.name,id:t.id,org:t.org,area:t.area}))),console.log(this.cn_school))})).catch((t=>{this.$message.error("查询失败"),console.error("请求失败,错误信息:",t)}))},ajax_org(){const t=[I.i.ajax_org];this.$ajax.post(I.i.baseUrl,t).then((t=>{t.data&&Array.isArray(t.data[0])&&(this.organizations=t.data[0].map((t=>({name:t.name,id:t.id}))))})).catch((t=>{this.$message.error("查询失败"),console.error("请求失败,错误信息:",t)}))},ajax_school_name(){this.selectedSchool=""},ajax_org_check(){this.selectedSchool="",this.ajax_school()},ajax_add_school(){if(!this.sch_name||""===this.sch_name.trim())return void this.$message.error("学校名称不能为空!");let t=[{functionName:I.i.ajax_add_school.functionName,u_name:this.sch_name,u_org:this.school.parentOrgId||"",u_dest:this.region||"",u_type:this.schoolType||"",u_code:this.schoolCode||"",u_regionC:this.regionC||"",u_isLogin:"1"===this.loginPermission?1:2,uid:this.userid}];this.$ajax.post(I.i.baseUrl,t).then((()=>{this.$message({type:"success",message:"已成功执行!"}),this.ajax_school(),this.add_school_dialog=!1,this.sch_name="",this.school.parentOrgId="",this.region="",this.schoolType="1",this.schoolCode="",this.regionC="cn",this.loginPermission="1"})).catch((t=>{this.$message.error("插入失败"),console.error("请求失败,错误信息:",t)}))},ajax_add_org(){let t=this.orgName,e=this.randomCode||"",a=this.radio;if(!t)return void this.$message.error("组织名称不能为空");let s=[{functionName:I.i.ajax_add_org.functionName,u_name:t,u_create:this.userid,u_code:e,u_regionC:this.regionC,u_login:a}];this.$ajax.post(I.i.baseUrl,s).then((()=>{this.$message({type:"success",message:"已成功执行!"}),this.ajax_org(),this.add_org_dialog=!1,this.orgName="",this.regionC="cn",this.randomCode="",this.uLogin="1"})).catch((t=>{this.$message.error("插入失败"),console.error("请求失败,错误信息:",t)}))},ajax_confirm(){let t=this.school.OrgId||"";const e=this.cn_school.find((t=>t.id===this.selectedSchool));if(!e||!e.id)return void this.$message({type:"warning",message:"请选择你要移动的学校!"});e.org&&(t=e.org);let a=[{functionName:I.i.ajax_confirm.functionName,u_id:this.check_user_id,o_id:t||"",s_id:e.id}];this.$ajax.post(I.i.baseUrl,a).then((async()=>{this.$message({type:"success",message:"移动成功!"}),this.isOrgFormVisible=!1,this.getData(),this.school.OrgId="",this.selectedSchool=null,this.ajax_school(),await $({uid:this.userid,cid:"",type:"user_op",content:`将${this.opUser.userid} 原组织id ${this.opUser.org?this.opUser.org:"无"} 原学校id ${this.opUser.school}移动到 组织id ${t||"无"} 学校id ${e.id}`})})).catch((t=>{this.$message.error("移动失败"),console.error("请求失败,错误信息:",t)}))},changeOrg(){this.checkOid="",this.currentPage=1,this.getData()},changeOid:(0,V.debounce)((function(){this.currentPage=1,this.getData()}),300),orgChange(){this.person.selectedSchool="",this.$forceUpdate()},getSuffix(){let t=[{functionName:I.i.ajax_Suffix.functionName,org:this.person.selectedOrg,oid:this.person.selectedSchool}];this.$ajax.post(I.i.baseUrl,t).then((t=>{console.log("getSuffix",t);let e=t.data[0];if(e.length>0){let t=e[0].username;this.SuffixData=this.getEmailWithAt(t)[0]}})).catch((t=>{console.error("请求失败,错误信息:",t)}))},getEmailWithAt(t){const e=/@[^@]+$/,a=t.match(e);return a||""},schoolChange(){for(var t=0;t<this.cn_school.length;t++)this.cn_school[t].id==this.person.selectedSchool&&this.cn_school[t].org&&(this.person.selectedOrg=this.cn_school[t].org);this.getSuffix(),this.$forceUpdate()}},mounted(){this.getData(),this.ajax_org(),this.ajax_school()}},R=B,L=(0,l.A)(R,P,E,!1,null,"7cae164d",null),z=L.exports,M=function(){var t=this,e=t._self._c;return e("div",{staticClass:"table_container"},[e("div",{staticClass:"title_examine"},[e("div",{staticClass:"pub_title"},[t._v("账号审核")]),e("div",{staticStyle:{"margin-left":"auto"}},[0==t.type?e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.bactchConfirm(1)}}},[t._v("批量通过")]):t._e(),0==t.type?e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.bactchConfirm(2)}}},[t._v("批量忽略")]):t._e(),2==t.type?e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.bactchConfirm(0)}}},[t._v("批量操作")]):t._e()],1)]),e("div",{staticClass:"table_content"},[e("div",{staticClass:"button_top"},[e("div",{staticClass:"examine_title"},[e("a",{style:{color:0==t.type?"black":"rgb(179, 179, 179)",fontWeight:"bold"},on:{click:function(e){return t.showData(0)}}},[t._v("待审核("+t._s(t.tableData)+")")])]),e("div",{staticClass:"examine_title"},[e("a",{style:{color:1==t.type?"black":"rgb(179, 179, 179)",fontWeight:"bold"},on:{click:function(e){return t.showData(1)}}},[t._v("已通过("+t._s(t.approvedData)+")")])]),e("div",{staticClass:"examine_title"},[e("a",{style:{color:2==t.type?"black":"rgb(179, 179, 179)",fontWeight:"bold"},on:{click:function(e){return t.showData(2)}}},[t._v("已忽略("+t._s(t.RefusedData)+")")])]),e("div",{staticClass:"examine_title"},[e("a",{style:{color:3==t.type?"black":"rgb(179, 179, 179)",fontWeight:"bold"},on:{click:function(e){return t.showData(3)}}},[t._v("全部记录("+t._s(t.AllData)+")")])])]),e("div",{staticClass:"content"},[e("div",{staticClass:"tableBox"},[e("el-table",{ref:"rtable",staticStyle:{width:"100%"},attrs:{data:t.currentTableData,stripe:"",border:"","header-cell-style":t.headerCellStyle,"row-key":t=>t.id},on:{"selection-change":t.handleSelectionChange,"sort-change":t.onSortChange}},[e("el-table-column",{attrs:{type:"selection",width:"50px"}}),e("el-table-column",{attrs:{label:"组织名称","min-width":"45","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.orgname?e.row.orgname:"-"))]}}])}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"contact_info",label:"电话/邮箱","min-width":"45"}}),e("el-table-column",{attrs:{prop:"name",label:"姓名","min-width":"45","show-overflow-tooltip":"","label-class-name":"address-column"}}),e("el-table-column",{attrs:{prop:"time",label:"提交时间",width:"180px",sortable:"custom"}}),e("el-table-column",{attrs:{prop:"remark",label:"备注","min-width":"45"}}),0!==t.type?e("el-table-column",{attrs:{prop:"utime",label:"审核时间",width:"180px",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.utime?e.row.utime:"-"))]}}],null,!1,1297987829)}):t._e(),1==t.type?e("el-table-column",{attrs:{label:"开通组织","min-width":"45","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.orgName?e.row.orgName:"-"))]}}],null,!1,1373081653)}):t._e(),0==t.type||2==t.type?e("el-table-column",{attrs:{label:"操作",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(a){return[0==a.row.type?e("button",{staticStyle:{color:"#308fff",background:"none",border:"none",cursor:"pointer","margin-left":"25px"},on:{click:function(e){return t.ajax_move_user(1,a.row)}}},[t._v(" 通过 ")]):t._e(),0==a.row.type?e("button",{staticStyle:{color:"#ff2570",background:"none",border:"none",cursor:"pointer","margin-left":"35px"},on:{click:function(e){return t.ajax_move_user(2,a.row)}}},[t._v(" 忽略 ")]):t._e(),2==a.row.type?e("button",{staticStyle:{color:"#308fff",background:"none",border:"none",cursor:"pointer","margin-left":"25px"},on:{click:function(e){return t.ajax_move_user(0,a.row)}}},[t._v(" 移动至待审核 ")]):t._e()]}}],null,!1,2652193109)}):t._e(),3==t.type?e("el-table-column",{attrs:{label:"状态","min-width":"45"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.getStatusText(e.row.type))+" ")]}}],null,!1,1641654171)}):t._e()],1)],1),e("el-dialog",{staticClass:"table",attrs:{title:"补充信息",visible:t.isOrgFormVisible,"before-close":t.close_table,width:"920px"},on:{"update:visible":function(e){t.isOrgFormVisible=e}}},[e("div",{staticClass:"input-container"},[e("div",{staticClass:"input_box"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchQuery,expression:"searchQuery"}],staticClass:"table_find",attrs:{type:"text",placeholder:"搜索学校"},domProps:{value:t.searchQuery},on:{change:t.ajax_org_check,input:function(e){e.target.composing||(t.searchQuery=e.target.value)}}})]),e("el-select",{staticClass:"custom-select",staticStyle:{"margin-left":"10px"},attrs:{placeholder:"请选择组织",filterable:"",clearable:""},on:{change:t.ajax_org_check},model:{value:t.school.OrgId,callback:function(e){t.$set(t.school,"OrgId",e)},expression:"school.OrgId"}},t._l(t.organizations,(function(a,s){return e("el-option",{key:s,attrs:{label:a.name,value:a.id}},[t._v(" "+t._s(a.name)+" ")])})),1),e("el-select",{staticClass:"custom-select",staticStyle:{"margin-left":"10px"},attrs:{placeholder:"请选择区域",filterable:"",clearable:""},on:{change:t.ajax_org_check},model:{value:t.selReg,callback:function(e){t.selReg=e},expression:"selReg"}},t._l(t.regionCList,(function(a,s){return e("el-option",{key:s,attrs:{label:a.name,value:a.name}},[t._v(" "+t._s(a.name)+" ")])})),1)],1),e("div",{staticClass:"table_down"},[t.cn_org?e("div",[e("div",{staticClass:"checkbox-container"},t._l(t.cn_school,(function(a,s){return e("div",{key:s,staticClass:"checkbox_comment"},[e("div",{staticClass:"checkbox-left"},[e("label",{staticClass:"checkbox-label"},[e("a",[t._v(t._s(a.name))])]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedSchool,expression:"selectedSchool"}],staticClass:"checkbox_input_org",attrs:{type:"radio",name:"school_selection"},domProps:{value:a,checked:t._q(t.selectedSchool,a)},on:{change:function(e){t.selectedSchool=a}}})])])})),0)]):t._e()]),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.close_table}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){t.add_school_dialog=!0}}},[t._v("新增学校")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){t.add_org_dialog=!0}}},[t._v("新增组织")]),t.addBtn?t._e():e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.ajax_move_user(1,t.AddUserInfo)}}},[t._v("通过")]),t.addBtn?e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.bactchConfirm(1)}}},[t._v("批量通过")]):t._e()],1)]),e("el-dialog",{staticClass:"table",attrs:{title:"新增学校",visible:t.add_school_dialog,"before-close":t.close_add_school,width:"700px"},on:{"update:visible":function(e){t.add_school_dialog=e}}},[e("div",{staticClass:"el_dialog_school_content"},[e("form",{staticClass:"el-form"},[e("div",{staticClass:"el-form-item",staticStyle:{"margin-top":"15px"}},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("学校名称")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.sch_name,expression:"sch_name"}],staticClass:"el-input__inner",attrs:{type:"text",autocomplete:"off",placeholder:"学校名称"},domProps:{value:t.sch_name},on:{input:function(e){e.target.composing||(t.sch_name=e.target.value)}}})])])])]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("地区")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.region,expression:"region"}],staticClass:"el-input__inner",attrs:{type:"text",autocomplete:"off",placeholder:"请输入地区"},domProps:{value:t.region},on:{input:function(e){e.target.composing||(t.region=e.target.value)}}})])])])]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("学校编码")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.schoolCode,expression:"schoolCode"}],staticClass:"el-input__inner",attrs:{type:"text",autocomplete:"off",placeholder:"请输入编码"},domProps:{value:t.schoolCode},on:{input:function(e){e.target.composing||(t.schoolCode=e.target.value)}}})])])])]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("上级组织")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("el-form",{ref:"form",attrs:{model:t.school}},[e("el-select",{staticClass:"custom-select",attrs:{placeholder:"请选择组织",filterable:""},model:{value:t.school.parentOrgId,callback:function(e){t.$set(t.school,"parentOrgId",e)},expression:"school.parentOrgId"}},t._l(t.organizations,(function(a,s){return e("el-option",{key:s,attrs:{label:a.name,value:a.id}},[t._v(" "+t._s(a.name)+" ")])})),1)],1)],1)])])]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("区域")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("el-select",{staticClass:"custom-select",attrs:{placeholder:"请选择区域",filterable:""},model:{value:t.regionC,callback:function(e){t.regionC=e},expression:"regionC"}},t._l(t.regionCList,(function(a,s){return e("el-option",{key:s,attrs:{label:a.name,value:a.name}},[t._v(" "+t._s(a.name)+" ")])})),1)],1)])])])])]),e("div",{staticClass:"el-dialog__footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.close_add_school}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.ajax_add_school}},[t._v("确认")])],1)]),e("el-dialog",{staticClass:"table",attrs:{title:"新增组织",visible:t.add_org_dialog,"before-close":t.close_add_school,width:"700px"},on:{"update:visible":function(e){t.add_org_dialog=e}}},[e("div",{staticClass:"el_dialog_org_content"},[e("form",{staticClass:"el-form"},[e("div",{staticClass:"el-form-item",staticStyle:{"margin-top":"15px"}},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("组织名称")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.orgName,expression:"orgName"}],staticClass:"el-input__inner",attrs:{type:"text",autocomplete:"off",placeholder:"组织名称"},domProps:{value:t.orgName},on:{input:function(e){e.target.composing||(t.orgName=e.target.value)}}})])])])]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("组织编码")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.randomCode,expression:"randomCode"}],staticClass:"el-input__inner",attrs:{type:"text",autocomplete:"off",placeholder:"请输入随机码"},domProps:{value:t.randomCode},on:{input:function(e){e.target.composing||(t.randomCode=e.target.value)}}})])])])]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px"}},[t._v("区域")]),e("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"5px"}},[e("span",[e("div",{staticClass:"add_input el-input el-input--suffix"},[e("el-select",{staticClass:"custom-select",attrs:{placeholder:"请选择区域",filterable:""},model:{value:t.regionC,callback:function(e){t.regionC=e},expression:"regionC"}},t._l(t.regionCList,(function(a,s){return e("el-option",{key:s,attrs:{label:a.name,value:a.name}},[t._v(" "+t._s(a.name)+" ")])})),1)],1)])])])])]),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.close_add_school}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.ajax_add_org}},[t._v("确认")])],1)]),e("el-pagination",{attrs:{"current-page":t.currentPage,"page-size":t.pageSize,total:t.total,layout:"total,prev, pager, next, jumper"},on:{"current-change":t.handlePageChange}})],1)])])},F=[],Q={name:"IndexTable",components:{},data(){return{addBtn:0,isOrgFormVisible:!1,add_org_dialog:!1,add_school_dialog:!1,cn_org:!0,searchQuery:"",selectedSchool:{},organizations:[],cn_school:[],school:{OrgId:null},regionCList:[{id:1,name:"hk"},{id:2,name:"cn"}],regionC:"cn",selReg:"",schoolList:[],AddUserInfo:{},orgName:"",u_create:"",randomCode:"",uLogin:"1",radio:"1",sch_name:"",region:"",schoolType:"1",schoolCode:"",loginPermission:"1",checked:!0,selectedOptions:[],showCompany:!1,selectedOrg:"CN",checkboxStates:Array(10).fill(!1),selectedSchools:Array(16).fill(""),button:Array(10).fill(!1),currentPage:1,currentApprovedPage:1,currentRefusedPage:1,currentAllPage:1,total:0,pageSize:10,pageSizeOptions:[10,25,50],currentTableData:[],Pending_request:!0,type:0,tableData:0,approvedData:0,RefusedData:0,AllData:0,checkArray:[],checkArray2:[],sortF:"add_time",sortO:"DESC"}},watch:{},computed:{...(0,m.L8)(["userid"])},methods:{close_add_org(){this.add_org_dialog=!1},ajax_org(){const t=[I.i.ajax_org];this.$ajax.post(I.i.baseUrl,t).then((t=>{t.data&&Array.isArray(t.data[0])&&(this.organizations=t.data[0].map((t=>({name:t.name,id:t.id}))))})).catch((t=>{this.$message.error("查询失败"),console.error("请求失败,错误信息:",t)}))},ajax_school(){let t=[{functionName:I.i.ajax_school.functionName,u_name:this.searchQuery,u_org:this.school.OrgId||"",u_regC:this.selReg}];this.$ajax.post(I.i.baseUrl,t).then((t=>{t.data&&Array.isArray(t.data[0])&&(this.cn_school=t.data[0].map((t=>({name:t.name,id:t.id,org:t.org,area:t.area}))),console.log(this.cn_school))})).catch((t=>{this.$message.error("查询失败"),console.error("请求失败,错误信息:",t)}))},ajax_add_school(){if(!this.sch_name||""===this.sch_name.trim())return void this.$message.error("学校名称不能为空!");let t=[{functionName:I.i.ajax_add_school.functionName,u_name:this.sch_name,u_org:this.school.parentOrgId||"",u_dest:this.region||"",u_type:this.schoolType||"",u_code:this.schoolCode||"",u_regionC:this.regionC||"",u_isLogin:"1"===this.loginPermission?1:2,uid:this.userid}];this.$ajax.post(I.i.baseUrl,t).then((()=>{this.$message({type:"success",message:"已成功执行!"}),this.ajax_school(),this.add_school_dialog=!1,this.sch_name="",this.school.parentOrgId="",this.region="",this.regionC="cn",this.schoolType="1",this.schoolCode="",this.loginPermission="1"})).catch((t=>{this.$message.error("插入失败"),console.error("请求失败,错误信息:",t)}))},ajax_add_org(){let t=this.orgName,e=this.randomCode||"",a=this.radio;if(!t)return void this.$message.error("组织名称不能为空");let s=[{functionName:I.i.ajax_add_org.functionName,u_name:t,u_create:this.userid,u_code:e,u_regionC:this.regionC,u_login:a}];this.$ajax.post(I.i.baseUrl,s).then((()=>{this.$message({type:"success",message:"已成功执行!"}),this.ajax_org(),this.add_org_dialog=!1,this.orgName="",this.regionC="cn",this.randomCode="",this.uLogin="1"})).catch((t=>{this.$message.error("插入失败"),console.error("请求失败,错误信息:",t)}))},close_add_school(){this.regionC="cn",this.add_org_dialog=!1,this.add_school_dialog=!1},ajax_org_check(){this.selectedSchool={},this.ajax_school()},close_table(){this.searchQuery="",this.school.OrgId=null,this.selReg="",this.ajax_school(),this.isOrgFormVisible=!1,this.selectedSchool={},this.sch_name="",this.school.parentOrgId="",this.region="",this.schoolType="1",this.schoolCode="",this.loginPermission="1",this.orgName="",this.randomCode="",this.uLogin="1"},getStatusText(t){const e={0:"待审核",1:"已通过",2:"已忽略"};return e[t]||"未知状态"},getButtonType(t){const e={0:"primary",1:"success",2:"danger"};return e[t]||"default"},headerCellStyle(){return{backgroundColor:"#f1f1f1"}},handlePageChange(t){I.i.allRecords.page=t,this.$forceUpdate(),this.ajaxAll()},showData(t){this.sortF="add_time",this.sortO="DESC",this.type=t,this.$refs.rtable.clearSort(),this.ajaxAll()},handleSelectionChange(t){console.log(t),this.checkArray=t.map((t=>t.id)),this.checkArray2=t},ajaxAll(){console.log("获取所有记录");const t=[{functionName:I.i.allRecords.functionName,r_type:3==this.type?'""':this.type,page:I.i.allRecords.page,r_num:I.i.allRecords.num,sort_field:this.sortF,sort_order:this.sortO}];this.currentTableData=[],this.$ajax.post(I.i.baseUrl,t).then((t=>{t.data&&(this.currentTableData=t.data[0],this.total=t.data[0].length?t.data[0][0].total_count:0,this.tableData=t.data[1][0].num,this.approvedData=t.data[2][0].num,this.RefusedData=t.data[3][0].num,this.AllData=t.data[4][0].num),console.log("返回的结果为:",t.data)})).catch((t=>{console.error("请求失败,错误信息:",t)}))},addUser(t){let e={alias:t.name,username:t.username,org:t.orgid,oid:t.oid,ph:t.phonenumber,cid:"",type:1,opid:"",dest:"",eduid:""};console.log("params",e),T(e).then((t=>{t&&(this.$message({type:"success",message:"操作成功"}),this.ajaxAll())})).catch((t=>{console.error("请求失败,错误信息:",t)}))},async bactchConfirm(t){if(!this.checkArray.length)return void this.$message.error("请选择要操作的用户");const e=1===t?"您确定同意这些用户申请并创建吗?":0==t?"您确定将这些用户移动至待审核吗?":"您确定忽略这些用户申请吗?",a=t;return this.isOrgFormVisible||1!=t?this.selectedSchool&&!this.selectedSchool.id&&1==t?this.$message.error("请选择学校"):void this.$confirm(e,"确认操作",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((async()=>{for(const s of this.checkArray2){const i=[{functionName:I.i.moveUser.functionName,uid:s.id,org:this.selectedSchool.org,oid:this.selectedSchool.id,type:a,euid:this.userid}];try{const e=await this.$ajax.post(I.i.baseUrl,i);console.log(e),1===t?(s.oid=this.selectedSchool.id,s.orgid=this.selectedSchool.org,await this.addUser(s)):this.$message.success("操作成功"),console.log("此条数据处理后的id为:",s.id)}catch(e){this.$message.error("操作失败"),console.error("请求失败,错误信息:",e)}}this.close_table(),await this.ajaxAll()})).catch((()=>{})):(this.addBtn=1,this.isOrgFormVisible=!0)},onSortChange({prop:t,order:e}){e?(this.sortF="time"==t?"add_time":"update_time",this.sortO="descending"==e?"DESC":"ASC"):(this.sortF="add_time",this.sortO="DESC"),this.ajaxAll(),console.log(t,e)},ajax_move_user(t,e){this.AddUserInfo=e;let a="";if(1==t){if(1==e.type)return;if(!this.isOrgFormVisible)return this.addBtn=0,this.isOrgFormVisible=!0;if(this.selectedSchool&&!this.selectedSchool.id)return this.$message.error("请选择学校");a="您确定同意此用户申请并创建吗?"}else 2==t?a="您确定忽略此用户申请吗?":0==t&&(a="您确定将此用户移动至待审核吗?");let s=t;this.$confirm(a,"确认操作",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{let a=[{functionName:I.i.moveUser.functionName,uid:e.id,org:this.selectedSchool.org,oid:this.selectedSchool.id,type:s,euid:this.userid}];this.$ajax.post(I.i.baseUrl,a).then((a=>{console.log(a),1==t?(e.oid=this.selectedSchool.id,e.orgid=this.selectedSchool.org,this.addUser(e)):(this.$message({type:"success",message:"操作成功"}),this.ajaxAll()),this.close_table(),console.log("此条数据处理后的id为:",e.id)})).catch((t=>{this.$message.error("操作失败"),console.error("请求失败,错误信息:",t)}))})).catch((()=>{}))}},mounted(){this.ajaxAll(),this.ajax_org(),this.ajax_school()}},H=Q,Y=(0,l.A)(H,M,F,!1,null,"68aea6e1",null),q=Y.exports,W=function(){var t=this,e=t._self._c;return e("div",{staticClass:"list_container"},[e("div",{staticClass:"title_examine"},[e("div",{staticClass:"pub_title"},[t._v("版本添加")]),e("div",{staticStyle:{"margin-left":"auto"}},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.addVersionm()}}},[t._v("新增版本")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.checkDate()}}},[t._v("查看日历")])],1)]),e("div",{staticClass:"content"},[e("div",{staticClass:"button_top"},[e("a",{style:{color:"正式"==t.type?"black":"rgb(179, 179, 179)"},on:{click:function(e){return t.showType("正式")}}},[t._v("正式("+t._s(t.countFormal)+")")]),e("a",{style:{color:"beta"==t.type?"black":"rgb(179, 179, 179)"},on:{click:function(e){return t.showType("beta")}}},[t._v("beta("+t._s(t.countBeta)+")")]),e("a",{style:{color:"hk"==t.type?"black":"rgb(179, 179, 179)"},on:{click:function(e){return t.showType("hk")}}},[t._v("hk("+t._s(t.countHk)+")")]),e("a",{style:{color:"com"==t.type?"black":"rgb(179, 179, 179)"},on:{click:function(e){return t.showType("com")}}},[t._v("com("+t._s(t.countCom)+")")])]),e("div",{staticClass:"tableBox"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,stripe:"",border:"","header-cell-style":t.headerCellStyle}},[e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"update_at",label:"更新日期","min-width":"45"}}),e("el-table-column",{attrs:{prop:"update_title",label:"更新标题","min-width":"45","show-overflow-tooltip":""}}),e("el-table-column",{staticClass:"description",attrs:{prop:"update_desc",label:"更新描述",width:"180px"}}),e("el-table-column",{attrs:{prop:"update_details",label:"更新详情",width:"180px"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:a.row.update_details,placement:"left"}},[e("div",{staticClass:"cell-ellipsis"},[t._v(t._s(a.row.update_details))])])]}}])}),e("el-table-column",{attrs:{prop:"update_version",label:"更新版本","min-width":"45"}}),e("el-table-column",{attrs:{prop:"tagName",label:"更新标签","min-width":"45"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:a.row.tagName,placement:"top"}},[e("div",{staticClass:"cell-ellipsis"},[t._v(t._s(a.row.tagName))])])]}}])}),e("el-table-column",{attrs:{label:"操作",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"operate",staticStyle:{display:"flex",gap:"24px"}},[e("button",{staticStyle:{color:"#308fff"},on:{click:function(e){return t.update(a.row)}}},[t._v("修改")]),e("button",{staticStyle:{color:"#ff2570"},on:{click:function(e){return t.delete_version(a.row.id)}}},[t._v("删除")]),e("button",{staticStyle:{color:"rgb(21 189 97)"},on:{click:function(e){return t.go(a.row)}}},[t._v("预览")])])]}}])})],1)],1),e("el-pagination",{attrs:{"current-page":t.currentPage,"page-size":t.pageSize,total:t.total,layout:"total,prev, pager, next, jumper"},on:{"current-change":t.handlePageChange}})],1),e("el-dialog",{staticClass:"table",attrs:{title:"新增版本",visible:t.isTableUseVisible,width:"700px"},on:{"update:visible":function(e){t.isTableUseVisible=e}}},[e("div",[e("form",{staticClass:"el-form"},[e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("更新日期")]),e("div",{staticClass:"el-form-item__content"},[e("el-date-picker",{attrs:{format:"yyyy-MM-dd",type:"date","value-format":"yyyy-MM-dd",placeholder:"更新日期"},model:{value:t.currentDate,callback:function(e){t.currentDate=e},expression:"currentDate"}})],1)]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("更新标题")]),e("div",{staticClass:"el-form-item__content"},[e("el-input",{attrs:{placeholder:"请输入标题",autocomplete:"off"},model:{value:t.upTitle,callback:function(e){t.upTitle=e},expression:"upTitle"}})],1)]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("更新描述")]),e("div",{staticClass:"el-form-item__content"},[e("el-input",{attrs:{type:"textarea",placeholder:"请输入描述",autocomplete:"off",autosize:{minRows:2,maxRows:10}},model:{value:t.upDesc,callback:function(e){t.upDesc=e},expression:"upDesc"}})],1)]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("更新详情")]),e("div",{staticClass:"el-form-item__content"},[e("el-input",{attrs:{type:"textarea",placeholder:"请输入详情",autocomplete:"off",autosize:{minRows:2,maxRows:10}},model:{value:t.upDetail,callback:function(e){t.upDetail=e},expression:"upDetail"}})],1)]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("更新标签")]),e("div",{staticClass:"el-form-item__content"},[e("el-input",{attrs:{placeholder:"请输入标签,回车添加标签",autocomplete:"off"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.addTag.apply(null,arguments))}},model:{value:t.newTag,callback:function(e){t.newTag=e},expression:"newTag"}})],1),e("div",{staticClass:"tags-container"},t._l(t.tags,(function(a,s){return e("el-tag",{key:s,staticClass:"tag-item",attrs:{closable:""},on:{close:function(e){return t.removeTag(s)}}},[t._v(" "+t._s(a)+" ")])})),1)]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("版本分类")]),e("div",{staticClass:"el-form-item__content"},[e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.tagValue,callback:function(e){t.tagValue=e},expression:"tagValue"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.label}})})),1)],1)])])]),e("div",{staticClass:"el-dialog__footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.isTableUseVisible=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addVersion()}}},[t._v("确认")])],1)]),e("el-dialog",{staticClass:"table",attrs:{title:"修改版本",visible:t.isTableUseVisible2,width:"700px"},on:{"update:visible":function(e){t.isTableUseVisible2=e},close:function(e){return t.cancel()}}},[e("div",[e("form",{staticClass:"el-form"},[e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("更新日期")]),e("div",{staticClass:"el-form-item__content"},[e("el-date-picker",{attrs:{format:"yyyy-MM-dd",type:"date","value-format":"yyyy-MM-dd",placeholder:"更新日期"},model:{value:t.currentDate,callback:function(e){t.currentDate=e},expression:"currentDate"}})],1)]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("更新标题")]),e("div",{staticClass:"el-form-item__content"},[e("el-input",{attrs:{placeholder:"请输入标题",autocomplete:"off"},model:{value:t.upTitle,callback:function(e){t.upTitle=e},expression:"upTitle"}})],1)]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("更新描述")]),e("div",{staticClass:"el-form-item__content"},[e("el-input",{attrs:{type:"textarea",placeholder:"请输入描述",autocomplete:"off",autosize:{minRows:2,maxRows:10}},model:{value:t.upDesc,callback:function(e){t.upDesc=e},expression:"upDesc"}})],1)]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("更新详情")]),e("div",{staticClass:"el-form-item__content"},[e("el-input",{attrs:{type:"textarea",placeholder:"请输入详情",autocomplete:"off",autosize:{minRows:2,maxRows:10}},model:{value:t.upDetail,callback:function(e){t.upDetail=e},expression:"upDetail"}})],1)]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("更新标签")]),e("div",{staticClass:"el-form-item__content"},[e("el-input",{attrs:{placeholder:"请输入标签,回车添加标签",autocomplete:"off"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.addTag.apply(null,arguments))}},model:{value:t.newTag,callback:function(e){t.newTag=e},expression:"newTag"}})],1),e("div",{staticClass:"tags-container"},t._l(t.tags,(function(a,s){return e("el-tag",{key:s,staticClass:"tag-item",attrs:{closable:""},on:{close:function(e){return t.removeTag(s)}}},[t._v(" "+t._s(a)+" ")])})),1)]),e("div",{staticClass:"el-form-item"},[e("label",{staticClass:"el-form-item__label"},[t._v("版本分类")]),e("div",{staticClass:"el-form-item__content"},[e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.tagValue,callback:function(e){t.tagValue=e},expression:"tagValue"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.label}})})),1)],1)])])]),e("div",{staticClass:"el-dialog__footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.isTableUseVisible2=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateVersion()}}},[t._v("确认")])],1)])],1)},X=[],Z={name:"versionAdd",data(){return{type:"正式",tableData:[],options:[{value:"选项1",label:"正式"},{value:"选项2",label:"beta"},{value:"选项3",label:"hk"},{value:"选项4",label:"com"}],tagValue:"",isTableUseVisible:!1,isTableUseVisible2:!1,isPreviewVisible:!1,upTitle:"",upDesc:"",upDetail:"",newTag:"",tags:[],nid:"",currentDate:"",currentPage:1,total:0,pageSize:10,countFormal:0,countBeta:0,countHk:0,countCom:0,isChong:0}},computed:{...(0,m.L8)(["userid"])},created(){this.formatDate()},methods:{go(t){this.$router.push({path:"/versionInstr",query:{id:t.id,type:2}})},checkDate(){this.$router.push({path:"/updateDate",query:{versType:this.type}})},formatDate(){const t=new Date,e=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0");this.currentDate=`${e}-${a}-${s}`},headerCellStyle(){return{backgroundColor:"#f1f1f1"}},showType(t){this.type=t,this.currentPage=1,this.getData()},addVersionm(){this.isTableUseVisible=!0},cancel(){this.formatDate(),this.upTitle="",this.upDesc="",this.upDetail="",this.tagValue="",this.tags=[]},update(t){this.isTableUseVisible2=!0,console.log("表格信息",t),this.currentDate=t.update_at,this.upTitle=t.update_title,this.upDesc=t.update_desc,this.upDetail=t.update_details,this.tagValue=t.update_version,this.tags=t.tagName?t.tagName.split(","):[],this.nid=t.id},addTag(){""!==this.newTag.trim()&&(this.tags.push(this.newTag.trim()),this.newTag="")},handlePreviewClose(){this.tags=[]},removeTag(t){this.tags.splice(t,1)},getData(){let t=[{functionName:"getVersion",uid:this.userid,page:this.currentPage,num:this.pageSize,type:this.type}];this.$ajax.post(I.i.baseUrl,t).then((t=>{console.log("👉",t.data),this.tableData=t.data[0]||[],this.total=t.data[0]&&t.data[0][0]&&t.data[0][0].num||0,this.countFormal=t.data[1]&&t.data[1][0]&&t.data[1][0].countFormal||0,this.countBeta=t.data[1]&&t.data[1][0]&&t.data[1][0].countBeta||0,this.countHk=t.data[1]&&t.data[1][0]&&t.data[1][0].countHk||0,this.countCom=t.data[1]&&t.data[1][0]&&t.data[1][0].countCom||0,console.log("我被调用了")})).catch((t=>{console.log(t)}))},async addVersion(){if(""===this.upTitle)return void this.$message.error("请填写标题");if(""===this.upDesc)return void this.$message.error("请填写描述");if(""===this.upDetail)return void this.$message.error("请填写详情");if(0===this.tags.length)return void this.$message.error("请填写标签");if(""===this.tagValue)return void this.$message.error("请选择版本分类");if(await this.versionChong(),1===this.isChong)return void console.log(1);this.isTableUseVisible=!1;let t=[{functionName:"addVersion",uid:this.userid,upTime:this.currentDate,utitle:this.upTitle,udesc:this.upDesc,udetail:this.upDetail,uversion:this.tagValue,utags:this.tags.join(",")}];this.$ajax.post(I.i.baseUrl,t).then((t=>{console.log("👉",t.data),this.$message({message:"添加成功",type:"success"}),this.getData(),this.upTitle="",this.upDesc="",this.upDetail="",this.tagValue="",this.tags=[],console.log(this.currentDate),this.formatDate()})).catch((t=>{this.$message.error("添加失败"),console.log(t)}))},handlePageChange(t){this.currentPage=t,this.getData()},updateVersion(){if(""===this.upTitle)return void this.$message.error("请填写标题");if(""===this.upDesc)return void this.$message.error("请填写描述");if(""===this.upDetail)return void this.$message.error("请填写详情");if(0===this.tags.length)return void this.$message.error("请填写标签");if(""===this.tagValue)return void this.$message.error("请选择版本分类");let t=[{functionName:"updateVersion",id:this.nid,ntitle:this.upTitle,ndesc:this.upDesc,ndetail:this.upDetail,ntags:this.tags,nversion:this.tagValue,ntime:this.currentDate}];this.$ajax.post(I.i.baseUrl,t).then((t=>{console.log("👉",t.data),this.isTableUseVisible2=!1,this.$message({message:"修改成功",type:"success"}),this.getData()})).catch((t=>{this.$message.error("修改失败"),console.log(t)}))},delete_version(t){this.nid=t;let e=[{functionName:"deleteVersion",id:this.nid}];this.$confirm("确定删除此版本记录吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.$ajax.post(I.i.baseUrl,e).then((t=>{console.log("👉",t.data),this.$message({message:"删除成功",type:"success"}),this.getData()}))})).catch((t=>{this.$message.error("删除失败"),console.log(t)}))},async versionChong(){let t=[{functionName:"selectVersionChong",id:this.userid,ntime:this.currentDate,nversion:this.tagValue}];await this.$ajax.post(I.i.baseUrl,t).then((t=>{1===t.data[0][0].isChong?(this.$message.error("该日期在当前版本中已存在,请重新选择!"),this.isChong=1,console.log(t.data)):this.isChong=0})).catch((t=>{console.error("检查日期和版本失败:",t),this.$message.error("检查日期和版本失败,请稍后重试!")}))}},mounted(){this.getData()}},J=Z,K=(0,l.A)(J,W,X,!1,null,"c1ce7ae2",null),G=K.exports,tt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"list_container"},[t._m(0),e("div",{staticClass:"tableBox"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.organizations,stripe:"",border:"","header-cell-style":t.headerCellStyle}},[e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"name",label:"组织名称","min-width":"45"}}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"code",label:"编码","min-width":"45"}}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"ctime",label:"创建时间","min-width":"45"}}),e("el-table-column",{attrs:{label:"操作",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"operate"},[e("button",{staticStyle:{color:"#308fff"},on:{click:function(e){return t.update(a.row)}}},[t._v("编辑")])])]}}])})],1)],1),e("el-pagination",{attrs:{"current-page":t.currentPage,"page-size":t.pageSize,total:t.total,layout:"total,prev, pager, next, jumper"},on:{"current-change":t.handlePageChange}})],1)},et=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"title_examine"},[e("div",{staticClass:"pub_title"},[t._v("组织列表")])])}],at={name:"onList",data(){return{organizations:[],currentPage:1,pageSize:10,total:0}},methods:{headerCellStyle(){return{backgroundColor:"#f1f1f1"}},getOrgan(){let t=[{functionName:"getOrgan",page:this.currentPage,num:this.pageSize}];this.$ajax.post(I.i.baseUrl,t).then((t=>{t.data&&Array.isArray(t.data[0])&&(this.organizations=t.data[0],this.total=t.data[0][0].num,console.log(this.organizations))})).catch((t=>{this.$message.error("查询失败"),console.error("请求失败,错误信息:",t)}))},handlePageChange(t){this.currentPage=t,this.getOrgan()}},mounted(){this.getOrgan()}},st=at,it=(0,l.A)(st,tt,et,!1,null,"fa923c80",null),ot=it.exports,lt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"list_container"},[t._m(0),e("div",{staticClass:"tableBox"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.schoolList,stripe:"",border:"","header-cell-style":t.headerCellStyle}},[e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"name",label:"学校名称","min-width":"45"}}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"dest",label:"组织","min-width":"45"}}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"code",label:"编码","min-width":"45"}}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"ctime",label:"创建时间","min-width":"45"}}),e("el-table-column",{attrs:{label:"操作",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"operate"},[e("button",{staticStyle:{color:"#308fff"},on:{click:function(e){return t.update(a.row)}}},[t._v("编辑")])])]}}])})],1)],1),e("el-pagination",{attrs:{"current-page":t.currentPage,"page-size":t.pageSize,total:t.total,layout:"total,prev, pager, next, jumper"},on:{"current-change":t.handlePageChange}})],1)},nt=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"title_examine"},[e("div",{staticClass:"pub_title"},[t._v("学校列表")])])}],rt={name:"schoolList",data(){return{schoolList:[],currentPage:1,pageSize:10,total:0}},methods:{headerCellStyle(){return{backgroundColor:"#f1f1f1"}},getOrgan(){let t=[{functionName:"getSchoolList",page:this.currentPage,num:this.pageSize}];this.$ajax.post(I.i.baseUrl,t).then((t=>{t.data&&Array.isArray(t.data[0])&&(this.schoolList=t.data[0],this.total=t.data[0][0].num)})).catch((t=>{this.$message.error("查询失败"),console.error("请求失败,错误信息:",t)}))},handlePageChange(t){this.currentPage=t,this.getOrgan()}},mounted(){this.getOrgan()}},ct=rt,ut=(0,l.A)(ct,lt,nt,!1,null,"43599bbe",null),dt=ut.exports,ht=function(){var t=this,e=t._self._c;return e("div",{staticClass:"version_instr"},[e("div",{staticClass:"version_head"},[e("div",{staticClass:"version_title"},[e("img",{attrs:{src:a(6266),alt:""}}),e("div",{staticStyle:{"font-size":"14px"}},[t._v(t._s(t.message))])]),e("div",{staticClass:"versionBtn",on:{click:t.handleClick}},[e("div",{staticStyle:{"font-size":"14px"}},[t._v(t._s("1"===t.type?"查看更新日历":"返回"))]),"1"===t.type?e("img",{attrs:{src:a(3668),alt:""}}):t._e()])]),e("div",{staticClass:"version_middle"},[e("div",{staticClass:"v_m_title"},[t._v(t._s(t.tableData[0].update_title))]),e("div",{staticClass:"v_m_instr"},[t._v(t._s(t.tableData[0].update_desc))])]),e("div",{staticClass:"version_content"},[e("div",{staticClass:"version_left"},[e("div",{staticStyle:{"font-size":"12px"}},[t._v(t._s(t.tableData[0].update_at))]),e("div",{staticClass:"v_l_items"},t._l(t.tagNameArray,(function(a,s){return e("div",{key:s,staticClass:"v_l_item"},[t._v(t._s(a))])})),0)]),e("div",{staticClass:"version_right"},t._l(t.formattedDetails,(function(a,s){return e("p",{key:s,staticStyle:{"font-size":"18px","margin-bottom":"8px"}},[t._v(t._s(a))])})),0)])])},mt=[],pt={name:"versionInstr",data(){return{message:"版本说明",type:this.$route.query.type,id:this.$route.query.id,tableData:[]}},computed:{...(0,m.L8)(["userid"]),tagNameArray(){return this.tableData[0].tagName?this.tableData[0].tagName.split(",").map((t=>t.trim())):[]},formattedDetails(){return this.tableData[0]?.update_details?this.tableData[0].update_details.split("\n"):[]}},mounted(){this.getData(),console.log("👉",this.tableData[0])},methods:{getData(){let t=[{functionName:"getVersionInstr",uid:this.userid,id:this.id}];this.$ajax.post(I.i.baseUrl,t).then((t=>{this.tableData=t.data[0],console.log("👉",this.tableData)})).catch((t=>{console.log(t)}))},formatDate(t){const e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1,i=e.getDate();return`${a}年${s}月${i}日`},handleClick(){1===this.type?this.$router.push("/updateDate"):this.$router.go(-1)}}},gt=pt,_t=(0,l.A)(gt,ht,mt,!1,null,"7c37148a",null),ft=_t.exports,vt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"DateUpda"},[t._m(0),e("div",{staticClass:"DateUpda_area"},[e("div",{staticClass:"Date_left"},[e("div",{staticClass:"D_l_title"},[e("img",{staticStyle:{cursor:"pointer"},attrs:{src:a(9669)},on:{click:t.handleClick}}),e("div",{staticClass:"D_l_text"},[t._v("更新日历")])]),e("div",{staticClass:"D_l_content"},[e("div",{staticClass:"D_l_head"},[e("div",{staticClass:"head_left",class:{active:t.isSelectActive}},[t._v("选择年份: "),e("el-select",{staticStyle:{width:"86px"},attrs:{placeholder:""},on:{focus:t.handleFocus,blur:t.handleBlur},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),e("div",{staticClass:"head_right"},[e("div",{staticClass:"prevBtn",class:{active:t.isPrevActive},on:{click:t.prevPage}},[t._v("上一页")]),e("div",{staticClass:"nextBtn",class:{active:t.isNextActive},on:{click:t.nextPage}},[t._v("下一页")])])]),e("div",{staticClass:"calendars"},t._l(t.currentPageMonths,(function(a){return e("div",{key:a.month,staticClass:"calendar"},[e("div",{staticClass:"month"},[t._v(t._s(a.name))]),e("div",{staticClass:"days"},t._l(a.days,(function(s){return e("div",{key:s,staticClass:"day",class:{highlight:t.isHighlighted(s,a.month)},on:{click:function(e){return t.selectDate(s,a.month)}}},[t._v(t._s(s))])})),0)])})),0)])]),e("div",{staticClass:"Date_right"},[e("div",{staticClass:"last_update"},[t._v("最新更新日期:"),e("div",[t._v(t._s(t.latestDate||"暂无数据"))])]),e("div",{staticClass:"update_count"},[t._v("最高月更新频次:"),e("div",{staticStyle:{"font-family":"DIN Alternate"}},[t._v(" "+t._s(t.getMostUpdatedMonth.month?`${t.getMostUpdatedMonth.month} 月 (${t.getMostUpdatedMonth.count} 次)`:"暂无数据")+" ")])]),e("div",{staticClass:"update_number"},[t._v("版本数量:"),e("div",{staticStyle:{"font-family":"DIN Alternate"}},[t._v(t._s(t.filteredHighlightDates.length))])])])])])},bt=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"DateUpda_head"},[e("div",{staticClass:"head_title"},[e("img",{attrs:{src:a(6266),alt:""}}),e("div",{staticStyle:{"font-size":"14px"}},[t._v("版本说明")])])])}],yt=(a(3949),{data(){return{options:[],value:"",months:[{month:1,name:"1月",days:[]},{month:2,name:"2月",days:[]},{month:3,name:"3月",days:[]},{month:4,name:"4月",days:[]},{month:5,name:"5月",days:[]},{month:6,name:"6月",days:[]},{month:7,name:"7月",days:[]},{month:8,name:"8月",days:[]},{month:9,name:"9月",days:[]},{month:10,name:"10月",days:[]},{month:11,name:"11月",days:[]},{month:12,name:"12月",days:[]}],currentPage:0,isPrevActive:!1,isNextActive:!1,isSelectActive:!1,highlightDates:[],datesData:[],filteredData:[],filteredHighlightDates:[]}},computed:{...(0,m.L8)(["userid"]),totalPages(){return Math.ceil(this.months.length/6)},currentPageMonths(){const t=6*this.currentPage,e=t+6;return this.months.slice(t,e)},latestDate(){if(!this.filteredHighlightDates||0===this.filteredHighlightDates.length)return null;const t=new Date(Math.max(...this.filteredHighlightDates.map((t=>new Date(t))))),e=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0");return`${e}-${a}-${s}`},getMostUpdatedMonth(){if(!this.filteredHighlightDates||0===this.filteredHighlightDates.length)return{month:null,count:0};const t={};this.filteredHighlightDates.forEach((e=>{const a=e.substring(5,7);t[a]=(t[a]||0)+1}));let e=0,a=null;for(const[s,i]of Object.entries(t))i>e&&(e=i,a=s);return{month:a,count:e}}},watch:{value(t){t&&(this.generateMonths(),this.filterHighlightDates())}},mounted(){this.generateYears(),this.generateMonths(),this.getDate()},methods:{handleClick(){this.$router.go(-1)},generateYears(){const t=(new Date).getFullYear();this.options=Array.from({length:5},((e,a)=>{const s=t-a;return{value:s.toString(),label:s.toString()}})),this.value=t.toString()},generateMonths(){const t=parseInt(this.value,10);this.months.forEach((e=>{const a=new Date(t,e.month,0).getDate();e.days=Array.from({length:a},((t,e)=>e+1))}))},filterHighlightDates(){const t=this.value;this.filteredHighlightDates=this.highlightDates.filter((e=>e.startsWith(t)))},isHighlighted(t,e){const a=`${this.value}-${String(e).padStart(2,"0")}-${String(t).padStart(2,"0")}`;return this.filteredHighlightDates.includes(a)},prevPage(){this.currentPage>0&&(this.currentPage--,this.isPrevActive=!0,this.isNextActive=!1)},nextPage(){this.currentPage<this.totalPages-1&&(this.currentPage++,this.isNextActive=!0,this.isPrevActive=!1)},handleFocus(){this.isSelectActive=!0},handleBlur(){this.isSelectActive=!1},selectDate(t,e){const a=`${this.value}-${e<10?"0"+e:e}-${t<10?"0"+t:t}`;if(!this.filteredHighlightDates.includes(a))return void console.log(`日期 ${a} 未高亮,无法跳转`);const s=this.datesData.find((t=>t.update_at.startsWith(a)));this.$router.push({path:"/versionInstr",query:{id:s.id,type:1}})},getDate(){let t=[{functionName:"getDates",uid:this.userid}];this.$ajax.post(I.i.baseUrl,t).then((t=>{this.datesData=t.data[0];const e=this.$route.query.versType;console.log("我是type",e),this.filteredData=this.datesData.filter((t=>t.update_version===e)),console.log("filteredData",this.filteredData),this.highlightDates=this.filteredData.map((t=>t.update_at.substring(0,10))),console.log("highlightDates",this.highlightDates),this.filterHighlightDates()})).catch((t=>{console.log(t)}))}}}),Ct=yt,xt=(0,l.A)(Ct,vt,bt,!1,null,"edc0abe6",null),kt=xt.exports;s["default"].use(u.Ay);const wt=[{path:"/login",name:"login",component:()=>a.e(976).then(a.bind(a,1976)),meta:{title:"登录",keepAlive:!1}},{path:"/",name:"home",component:U,redirect:"/user-list",children:[{path:"user-list",name:"UserList",component:z},{path:"user-examine",name:"UserExamine",component:q},{path:"version-add",name:"VersionAdd",component:G},{path:"organ-list",name:"organList",component:ot},{path:"school-list",name:"schoolList",component:dt}]},{path:"/examineDialog",name:"examineDialog",component:()=>a.e(448).then(a.bind(a,4770))},{path:"/versionInstr",name:"versionInstr",component:ft},{path:"/updateDate",name:"updateDate",component:kt}],St=new u.Ay({routes:wt});var At=St;const Dt={courseId:t=>t.app.courseId,testId:t=>t.app.testId,shareCourseId:t=>t.app.shareCourseId,id:t=>t.user.id,userid:t=>t.user.userinfo.userid,userinfo:t=>t.user.userinfo,token:t=>t.user.token};var Tt=Dt;const $t={courseId:"",testId:"",shareCourseId:""},Ot={SET_COURSEID:(t,e)=>{t.courseId=e},SET_TESTID:(t,e)=>{t.testId=e},SET_SHARECOURSEID:(t,e)=>{t.shareCourseId=e}},jt={};var Nt={state:$t,mutations:Ot,actions:jt},Ut=a(8704);const Pt="vue_admin_template_token";function Et(){return Ut.A.get(Pt)}function It(t){return Ut.A.set(Pt,t)}function Vt(){return Ut.A.remove(Pt)}const Bt=()=>({token:Et(),id:"",roles:[],name:"",username:"",avatar:"",is_init:!1,userinfo:{}}),Rt=Bt(),Lt={RESET_STATE:t=>{Object.assign(t,Bt())},SET_TOKEN:(t,e)=>{t.token=e},SET_ROLES:(t,e)=>{t.roles=e},SET_ID:(t,e)=>{t.id=e},SET_NAME:(t,e)=>{t.name=e},SET_USERNAME:(t,e)=>{t.username=e},SET_IS_INIT:(t,e)=>{t.is_init=e},SET_AVATAR:(t,e)=>{t.avatar=e},SET_USERINFO:(t,e)=>{t.userinfo=e}},zt={login({commit:t,dispatch:e}){return new Promise(((a,s)=>{S().then((i=>{console.log(i);var o=i.data[0][0];const l=["0abcb118-9110-11eb-80ad-005056b86db5","b7ccc834-aae5-11ea-a8d4-52540005ab01","a77e9404-efec-11e9-96f9-028edca3b798","0e8d50c3-50b5-2f1c-9f1a-bd346a0bf817","5943e08c-b7d4-11ed-8d51-005056b86db5"];l.includes(o.userid)?(t("SET_ID",o.userid),t("SET_TOKEN",o.userid),It(o.userid),a(o.userid)):(e("logout"),s("该用户ID不允许登录"))})).catch((t=>{s(t)}))}))},getInfo({commit:t,state:e}){return new Promise(((a,s)=>{t("SET_ID",e.token),D({userid:e.token}).then((e=>{console.log(e);const i=e.data[0][0];i||s("验证失败,请重新登录。"),t("SET_USERINFO",i),a(i)})).catch((t=>{s(t)}))}))},logout({commit:t}){return new Promise((e=>{t("SET_TOKEN",""),t("SET_ROLES",[]),Vt(),t("RESET_STATE"),e()}))},resetToken({commit:t}){return new Promise((e=>{t("SET_TOKEN",""),t("SET_ROLES",[]),Vt(),e()}))}};var Mt={namespaced:!0,state:Rt,mutations:Lt,actions:zt};s["default"].use(m.Ay);const Ft=new m.Ay.Store({modules:{app:Nt,user:Mt},getters:Tt});var Qt=Ft,Ht=a(9143),Yt=a.n(Ht),qt=a(4130),Wt=a.n(qt);Wt().configure({showSpinner:!1});const Xt=["/login","/examineDialog","/versionInstr","/updateDate"];At.beforeEach((async(t,e,a)=>{Wt().start();const s=Qt.getters.token;if(s)if("/login"===t.path)a({path:"/"}),Wt().done();else{const e=Qt.getters.userinfo&&Object.keys(Qt.getters.userinfo).length>0;if(e)a();else try{const e=await Qt.dispatch("user/getInfo");await Qt.commit("user/SET_USERINFO",e),a({...t,replace:!0})}catch(i){await Qt.dispatch("user/resetToken"),a(`/login?redirect=${t.path}`),Wt().done()}}else-1!==Xt.indexOf(t.path)?a():(a(`/login?redirect=${t.path}`),Wt().done())})),At.afterEach((()=>{Wt().done()})),s["default"].config.productionTip=!1,s["default"].use(Yt()),s["default"].prototype.$ajax=k,new s["default"]({router:At,store:Qt,render:t=>t(c)}).$mount("#app")},3668:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABnSURBVHgBzZLBDYAgDEW/xptJp3QCnAPXcwJH8G41H0M4UeDQl/yUfNqmhAIe2agqf2LcVYHnlfEuckv/UMV0eanEMIGwBnkDK1/NkhkBDcwYRPMTuifw1UBQz5+bvvHdqBM2IlzwANQSDy2Fpeh6AAAAAElFTkSuQmCC"},9669:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAXCAYAAAA7kX6CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABuSURBVHgB7ZTBCYAwEAQP/GsDWkEKsZ80kkZswFRgI/bhLuQQ89r8DGRhIDmY3CPHmemZQbTGUMrgBomFSZQOEMo9CM6nk5NLfUj/kZhYSUT6ZCZV4gXWIXcjKxvgBJu9Q7GUB+R45+aFxex+eABoS08uX7QB5QAAAABJRU5ErkJggg=="},6266:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADcSURBVHgBpZK/CoJQFIfPkXJ2aWuQ3ILAJajNIOhN3HsDe4FeoIdwboomg5agNZ3aHHKJCMqb54ZkdL1e7QPh+PPez3P/APwJ5sVw8bhkL4ZkbMJYOtl7+qEYagWTbDJhIGq+7d1MoUARU8f2xvaY0VTAJW18+lLBtI/gOp9ProM8y8kqRyoIQgZjC2HQfT8jS+OZiJYovN4BlusU5jONHxPVlCkLiOOZQXBivF+qyygVEKttClUIBb0Orfs724UAUfzbSY1jrLGJ9KcoBiWaXCSxIGswUZ1UZ2wlL28lOzfFu2YsAAAAAElFTkSuQmCC"},2634:function(){}},e={};function a(s){var i=e[s];if(void 0!==i)return i.exports;var o=e[s]={id:s,loaded:!1,exports:{}};return t[s].call(o.exports,o,o.exports,a),o.loaded=!0,o.exports}a.m=t,function(){a.amdO={}}(),function(){var t=[];a.O=function(e,s,i,o){if(!s){var l=1/0;for(u=0;u<t.length;u++){s=t[u][0],i=t[u][1],o=t[u][2];for(var n=!0,r=0;r<s.length;r++)(!1&o||l>=o)&&Object.keys(a.O).every((function(t){return a.O[t](s[r])}))?s.splice(r--,1):(n=!1,o<l&&(l=o));if(n){t.splice(u--,1);var c=i();void 0!==c&&(e=c)}}return e}o=o||0;for(var u=t.length;u>0&&t[u-1][2]>o;u--)t[u]=t[u-1];t[u]=[s,i,o]}}(),function(){a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,{a:e}),e}}(),function(){a.d=function(t,e){for(var s in e)a.o(e,s)&&!a.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})}}(),function(){a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,s){return a.f[s](t,e),e}),[]))}}(),function(){a.u=function(t){return"js/"+(448===t?"examineDialog":t)+"."+{448:"cda2d068",976:"6ff2b0f3"}[t]+".js"}}(),function(){a.miniCssF=function(t){return"css/"+(448===t?"examineDialog":t)+"."+{448:"bd35f735",976:"87799d5f"}[t]+".css"}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="userManage:";a.l=function(s,i,o,l){if(t[s])t[s].push(i);else{var n,r;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==s||d.getAttribute("data-webpack")==e+o){n=d;break}}n||(r=!0,n=document.createElement("script"),n.charset="utf-8",n.timeout=120,a.nc&&n.setAttribute("nonce",a.nc),n.setAttribute("data-webpack",e+o),n.src=s),t[s]=[i];var h=function(e,a){n.onerror=n.onload=null,clearTimeout(m);var i=t[s];if(delete t[s],n.parentNode&&n.parentNode.removeChild(n),i&&i.forEach((function(t){return t(a)})),e)return e(a)},m=setTimeout(h.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=h.bind(null,n.onerror),n.onload=h.bind(null,n.onload),r&&document.head.appendChild(n)}}}(),function(){a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){a.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){a.p="/"}(),function(){if("undefined"!==typeof document){var t=function(t,e,s,i,o){var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",a.nc&&(l.nonce=a.nc);var n=function(a){if(l.onerror=l.onload=null,"load"===a.type)i();else{var s=a&&a.type,n=a&&a.target&&a.target.href||e,r=new Error("Loading CSS chunk "+t+" failed.\n("+s+": "+n+")");r.name="ChunkLoadError",r.code="CSS_CHUNK_LOAD_FAILED",r.type=s,r.request=n,l.parentNode&&l.parentNode.removeChild(l),o(r)}};return l.onerror=l.onload=n,l.href=e,s?s.parentNode.insertBefore(l,s.nextSibling):document.head.appendChild(l),l},e=function(t,e){for(var a=document.getElementsByTagName("link"),s=0;s<a.length;s++){var i=a[s],o=i.getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(o===t||o===e))return i}var l=document.getElementsByTagName("style");for(s=0;s<l.length;s++){i=l[s],o=i.getAttribute("data-href");if(o===t||o===e)return i}},s=function(s){return new Promise((function(i,o){var l=a.miniCssF(s),n=a.p+l;if(e(l,n))return i();t(s,n,null,i,o)}))},i={524:0};a.f.miniCss=function(t,e){var a={448:1,976:1};i[t]?e.push(i[t]):0!==i[t]&&a[t]&&e.push(i[t]=s(t).then((function(){i[t]=0}),(function(e){throw delete i[t],e})))}}}(),function(){var t={524:0};a.f.j=function(e,s){var i=a.o(t,e)?t[e]:void 0;if(0!==i)if(i)s.push(i[2]);else{var o=new Promise((function(a,s){i=t[e]=[a,s]}));s.push(i[2]=o);var l=a.p+a.u(e),n=new Error,r=function(s){if(a.o(t,e)&&(i=t[e],0!==i&&(t[e]=void 0),i)){var o=s&&("load"===s.type?"missing":s.type),l=s&&s.target&&s.target.src;n.message="Loading chunk "+e+" failed.\n("+o+": "+l+")",n.name="ChunkLoadError",n.type=o,n.request=l,i[1](n)}};a.l(l,r,"chunk-"+e,e)}},a.O.j=function(e){return 0===t[e]};var e=function(e,s){var i,o,l=s[0],n=s[1],r=s[2],c=0;if(l.some((function(e){return 0!==t[e]}))){for(i in n)a.o(n,i)&&(a.m[i]=n[i]);if(r)var u=r(a)}for(e&&e(s);c<l.length;c++)o=l[c],a.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return a.O(u)},s=self["webpackChunkuserManage"]=self["webpackChunkuserManage"]||[];s.forEach(e.bind(null,0)),s.push=e.bind(null,s.push.bind(s))}();var s=a.O(void 0,[504],(function(){return a(4717)}));s=a.O(s)})();
- //# sourceMappingURL=app.6f4921ce.js.map
|