webpackJsonp([1],{"0OgD":function(t,e){},"1EGx":function(t,e){},"2bWO":function(t,e){},"4IS6":function(t,e){},"6Olm":function(t,e){},"9yjr":function(t,e){},AQny:function(t,e){e.__esModule=!0,e.default={help:"Help",demo:"Demo",index_login_or_register:"Login / Register",my_item:"My items",section_title1:"ShowDoc",section_description1:" A tool greatly applicable for an IT team",section_title2:"API Document",section_description2:"ShowDoc can compile exquisite API documents <br>in a very fast and convenient way",section_title3:"Data Dictionary",section_description3:"A good Data Dictionary can easily exhibit database structure to other people<br>ShowDoc can compile exquisite Data Dictionary",section_title4:"Explanation Document",section_description4:"You can absolutely use ShowDoc to compile the explanation documents for some tools",section_title5:"Team Work",section_description5:"Your team will work with ShowDoc together very well ",section_title6:"Open Source",section_description6:"ShowDoc is a free, open source tool that <br>you can deploy it to your own server",section_title7:"Hosted online",section_description7:"Www.showdoc.cc provide security and stability of the document hosting service",section_title8:"Try it now",section_description8:"Over 6000+ IT team is using ShowDoc",login:"Login",username:"Username",password:"Passwod",register_new_account:"register",forget_password:"forget password",username_description:"username/email",password_again:"input password again",verification_code:"verification code",register:"register",update_personal_info:"update personal info",submit:"submit",goback:"goback",my_email:"my email",input_email:"请输入要绑定的邮箱",input_login_password:"Please enter your login password to verify",status:"状态",status_1:"已验证",status_2:"未验证",status_3:"未绑定",binding:"绑定",modify:"修改",modify_password:"modify password",old_password:"old password",new_password:"new password",modify_success:"modify success",update_email_success:"更新邮箱成功！请登录邮箱查收验证邮件",personal_setting:"personal setting",web_home:"web home",logout:"logout",add_an_item:"add an item",new_item:"new item",feedback:"feedback",more:"more",my_notice:"my notice",item_setting:"item setting",item_top:"make item top",cancel_item_top:"cancel top",item_type1:"regular item",item_type2:"single item",item_name:"item name",item_description:"description",item_domain:"(可选)个性域名",item_domain_illegal:"个性域名只能是字母或数字的组合",domain_already_exists:"个性域名已经存在",visit_password_placeholder:"password(Optional: private project required)",copy_exists_item:"copy exists item",please_choose:"please select",auto_db:"Auto data dictionary",input_visit_password:"input visit password",export_all:"export all",export_cat:"export catalog",select_cat_2:"select catalog level2",select_cat_3:"select catalog level3",begin_export:"begin to export",base_info:"base info",member_manage:"manage member",advance_setting:"advance setting",open_api:"open api",info_item_domain:"个性域名",visit_password:"password",visit_password_description:"(Optional: private project required)",add_member:"add member",authority:"authority",add_time:"add time",operation:"operation",delete:"delete",input_target_member:"input member's username",readonly:"readonly",member_authority_tips:"权限说明：默认成员可以新建/编辑项目页面，删除时将只能删除自己新建/编辑的页面。 勾选只读属性后，该成员对所有页面都只能查看，无法新增/编辑/删除",cancel:"cancel",confirm:"confirm",confirm_delete:"confirm to delete",attorn:"attorn",archive:"archive",attorn:"attorn",attorn_tips:"you can attorn item to other user",archive_tips:"After archiving, the project will become read-only, and no more changes / additions will be made. If you want to edit it again, copy it to the new project and edit it",delete_tips:"After deleting, it will not be restored!",attorn_username:"username of project receiver",archive_tips2:"说明： 归档项目后，项目将无法再新增和修改内容，并且无法取消归档状态。 如想再次修改内容，可复制本项目，在新的项目基础上修改。复制项目的方法是，在创建项目的时候，选择从已有项目里复制。",success_jump:"The operation is successful! Skipping...",reset_token:"reset token",open_api_tips1:"showdoc开放文档编辑的API，供使用者更加方便地操作文档数据。<br>利用开放API，你可以自动化地完成很多事",open_api_tips2:'如果你想自动化生成API文档，则可参考<a target="_bank" href="https://www.showdoc.cc/page/741656402509783">API文档</a>',open_api_tips3:'如果你想自动化生成数据字典，则可参考<a target="_bank" href="https://www.showdoc.cc/page/312209902620725">数据字典</a>',open_api_tips4:'如果你更自由地生成自己所需要的格式，则可参考<a target="_bank" href="https://www.showdoc.cc/page/102098">开放API</a>',item:"item",share:"share",export:"export",update_info:"update info",manage_members:"manage members",more_item:"more item",login_or_register:"login/register",about_showdoc:"about ShowDoc",new_page:"new page",edit_page:"edit page",new_catalog:"new/manage catalog ",share_address_to_your_friends:"分享该接口地址给你的好友",share:"share",copy_interface_to_new:"复制该页面到新页面",copy:"copy",edit:"edit",detail:"detail",delete_interface:"delete page",comfirm_delete:"comfirm to delete",delete:"delete",item_address:"item address",copy_address_to_your_friends:"你可以复制地址给你的好友",share_page:"share page",page_address:"page address",copy_address_to_your_friends:"你可以复制地址给你的好友",input_keyword:"press Enter to search",item_page_address:"item page address",single_page_address:"single page address",page_diff_tips:"项目页面地址和单页面地址有什么区别？",title:"title",catalog:"catalog",level_2_directory:"level 2 catalog",level_3_directory:"level 3 catalog",s_number:"order",s_number_explain:"(optional) the default is 99, the smaller the number, the earlier",optional:"optional",history_version:"history version",save:"save",cancel:"cancel",insert_apidoc_template:"insert ApiDoc template",insert_database_doc_template:"insert DatabaseDoc template",json_tools:"json tools",json_to_table:"json to table",beautify_json:"json beautify",beautify_json_description:"请粘贴一段json，程序将自动以美观的方式格式化显示",http_test_api:"test api online",json_to_table_description:"请粘贴一段json，程序将自动将json解析并生成参数表格。此功能适合用于快速编写API文档的返回参数表格",confirm:"confirm",cancel:"cancel",update_time:"update time",update_by_who:"update by ",operation:"operation",recover_to_this_version:"recover",close:"close",finish:"finish",params:"params",clear:"clear",result:"result",save_to_templ:"save to template",more_templ:"more templpate",saved_templ_list:"template list",page_comments:"页面注释",cur_page_content:"current newest version",overview:"overview",save_templ_title:"input template title",save_templ_text:"已经保存好模板。你以后新建或者编辑编辑页面时，点击“更多模板”按钮，便可以使用你保存的模板",welcome_use_showdoc:"Welcome to ShowDoc！",templ_list:"template list",templ_title:"template title",no_templ_text:"你尚未保存过任何模板。你可以在编辑页面时，在“保存”按钮右边点击，在下拉菜单中选择“另存为模板”。把页面内容保存为模板后，你下次新建或者编辑页面时便可以使用你之前保存的模板",save_time:"save time",insert_templ:"insert",delete_templ:"delete",save_success:"save success",add_cat:"add catalog",cat_name:"catalog name",input_cat_name:"input catalog name",parent_cat_name:"parent catalog",none:"none",back_to_top:"back to top",draft_tips:"A draft that is automatically saved when you have the last editor was detected. Do you automatically fill in the last draft?",management_backstage:"backstage",user_management:"users",item_management:"items",add_user:"add user",search:"search",team_mamage:"teamMamage",background:"background",distribution_to_team:"distribution item",back_to_team:"back to team",check_item:"checkItem",unassign:"unassign",go_to_new_an_item:"new an item",confirm_unassign:"confirm unassign?",Join_time:"Join time",add_team:"add team",member_authority:"member authority",go_to_new_an_team:"new an team",adjust_member_authority:"adjust member authority",team_member_empty_tips:"The team has not yet had any members.",team_member_authority_tips:"Permission description: Editing permission means that members can create/edit project pages, and when deleted, they can only delete their own newly created/edited pages. Read-only permission means that the member can only view all pages of this project and can not add/edit/delete them.",member:"member",team_item:"item",add_member:"add member",member_username:"member username",team_name:"team name",memberCount:"memberCount",itemCount:"itemCount"}},CQ3L:function(t,e){},CeUo:function(t,e){},DPCl:function(t,e){},EBy1:function(t,e){},Fadd:function(t,e){},Gw7h:function(t,e){},J5fp:function(t,e){},J71k:function(t,e){e.__esModule=!0,e.default={help:"帮助",demo:"示例",index_login_or_register:"登录 / 注册",my_item:"我的项目",section_title1:"ShowDoc",section_description1:"一个非常适合IT团队的在线API文档、技术文档工具",section_title2:"API文档",section_description2:" APP、web前端与服务器常用API来进行交互<br>用ShowDoc可以非常方便快速地编写出美观的API文档",section_title3:"数据字典",section_description3:"好的数据字典可以很方便地向别人描述你的数据库结构<br>用ShowDoc可以编辑出美观的数字字典",section_title4:"说明文档",section_description4:"你完全可以使用 ShowDoc来编写一些工具的说明书<br>也可以编写一些技术规范说明文档以供团队查阅",section_title5:"团队协作",section_description5:"团队权限管理机制让团队良好地协同编写文档",section_title6:"免费开源",section_description6:"ShowDoc提供免费开源的版本<br>你可以选择将ShowDoc部署到你的服务器",section_title7:"在线托管",section_description7:"www.showdoc.cc 提供安全稳定的在线文档托管服务<br>你可以放心地选择托管你的文档数据在云端",section_title8:"立即体验",section_description8:"超过6000+互联网团队正在使用ShowDoc",login:"登录",username:"用户名",password:"密码",register_new_account:"注册新账号",forget_password:"忘记密码",username_description:"用户名/邮箱",password_again:"再次输入密码",verification_code:"验证码",register:"注册",update_personal_info:"修改个人信息",submit:"提交",goback:"返回",my_email:"我的邮箱",input_email:"请输入要绑定的邮箱",input_login_password:"请输入你的登录密码以验证",status:"状态",status_1:"已验证",status_2:"未验证",status_3:"未绑定",binding:"绑定",modify:"修改",modify_password:"修改密码",old_password:"原密码",new_password:"新密码",modify_success:"修改成功",update_email_success:"更新邮箱成功！请登录邮箱查收验证邮件",personal_setting:"个人设置",web_home:"网站首页",logout:"退出登录",add_an_item:"添加一个新项目",new_item:"新建项目",feedback:"反馈",more:"更多",my_notice:"我的消息",item_setting:"项目设置",item_top:"置顶项目",cancel_item_top:"取消置顶",item_type1:"常规项目",item_type2:"单页项目",item_name:"项目名",item_description:"项目描述",item_domain:"(可选)个性域名",item_domain_illegal:"个性域名只能是字母或数字的组合",domain_already_exists:"个性域名已经存在",visit_password_placeholder:"访问密码（可选，私密项目请设置密码）",submit:"提交",goback:"返回",copy_exists_item:"复制已存在项目",please_choose:"请选择",auto_db:"我要自动生成数据字典",input_visit_password:"请输入访问密码",export_all:"导出全部",export_cat:"按目录导出",select_cat_2:"选择二级目录：",select_cat_3:"选择三级目录：",begin_export:"开始导出",base_info:"基础信息",member_manage:"成员管理",advance_setting:"高级设置",open_api:"开放API",info_item_domain:"个性域名",visit_password:"访问密码",visit_password_description:"(可选)私有项目请设置访问密码",add_member:"添加成员",authority:"权限",add_time:"添加时间",operation:"操作",delete:"删除",input_target_member:"请输入目标成员的用户名",readonly:"只读",member_authority_tips:"权限说明：默认成员可以新建/编辑项目页面，删除时将只能删除自己新建/编辑的页面。 勾选只读属性后，该成员对所有页面都只能查看，无法新增/编辑/删除",cancel:"取消",confirm:"确定",confirm_delete:"确认删除吗？",attorn:"转让",archive:"归档",attorn:"转让",attorn_tips:"你可以将项目转让给他人",archive_tips:"归档后，项目将变为只读，无法再修改/新增内容。如果要重新编辑，请复制到新项目后编辑",delete_tips:"删除后将不可恢复！",attorn_username:"项目接受者用户名",archive_tips2:"说明： 归档项目后，项目将无法再新增和修改内容，并且无法取消归档状态。 如想再次修改内容，可复制本项目，在新的项目基础上修改。复制项目的方法是，在创建项目的时候，选择从已有项目里复制。",success_jump:"操作成功！正在跳转...",reset_token:"重新生成api_token",open_api_tips1:"showdoc开放文档编辑的API，供使用者更加方便地操作文档数据。<br>利用开放API，你可以自动化地完成很多事",open_api_tips2:'如果你想自动化生成API文档，则可参考<a target="_bank" href="https://www.showdoc.cc/page/741656402509783">API文档</a>',open_api_tips3:'如果你想自动化生成数据字典，则可参考<a target="_bank" href="https://www.showdoc.cc/page/312209902620725">数据字典</a>',open_api_tips4:'如果你更自由地生成自己所需要的格式，则可参考<a target="_bank" href="https://www.showdoc.cc/page/102098">开放API</a>',item:"项目",share:"分享",export:"导出",update_info:"修改信息",manage_members:"成员管理",more_item:"更多项目",login_or_register:"登录/注册",about_showdoc:"关于ShowDoc",my_item:"我的项目",new_page:"新建页面",edit_page:"编辑页面",new_catalog:"新建/管理目录",share_address_to_your_friends:"分享该接口地址给你的好友",share:"分享",copy_interface_to_new:"复制该页面到新页面",copy:"复制",edit:"编辑",detail:"详情",delete_interface:"删除页面",comfirm_delete:"确认删除吗？",delete:"删除",item_address:"项目地址",copy_address_to_your_friends:"你可以复制地址给你的好友",share_page:"分享页面",page_address:"页面地址",copy_address_to_your_friends:"你可以复制地址给你的好友",input_keyword:"输入关键字后按回车以搜索",item_page_address:"项目页面地址",single_page_address:"单页面地址",page_diff_tips:"项目页面地址和单页面地址有什么区别？",title:"标题",catalog:"目录",level_2_directory:"二级目录",level_3_directory:"三级目录",s_number:"序号",s_number_explain:"(可选)默认是99，数字越小越靠前",optional:"可选",history_version:"历史版本",save:"保存",cancel:"取消",insert_apidoc_template:"插入API接口模板",insert_database_doc_template:"插入数据字典模板",json_tools:"JSON工具",json_to_table:"JSON转参数表格",beautify_json:"JSON格式化",beautify_json_description:"请粘贴一段json，程序将自动以美观的方式格式化显示",http_test_api:"在线测试API",json_to_table_description:"请粘贴一段json，程序将自动将json解析并生成参数表格。此功能适合用于快速编写API文档的返回参数表格",confirm:"确定",cancel:"取消",update_time:"修改时间",update_by_who:"修改人",operation:"操作",recover_to_this_version:"恢复到此版本",close:"关闭",finish:"完成",params:"参数",clear:"清除",result:"返回结果",save_to_templ:"另存为模板",more_templ:"更多模板",saved_templ_list:"保存的模板列表",page_comments:"页面注释",cur_page_content:"当前最新版本",overview:"预览",save_templ_title:"请为要保存的模板设置标题",save_templ_text:"已经保存好模板。你以后新建或者编辑编辑页面时，点击“更多模板”按钮，便可以使用你保存的模板",welcome_use_showdoc:"欢迎使用ShowDoc！",templ_list:"模板列表",templ_title:"模板标题",no_templ_text:"你尚未保存过任何模板。你可以在编辑页面时，在“保存”按钮右边点击，在下拉菜单中选择“另存为模板”。把页面内容保存为模板后，你下次新建或者编辑页面时便可以使用你之前保存的模板",save_time:"保存时间",insert_templ:"插入此模板",delete_templ:"删除模板",save_success:"保存成功",add_cat:"添加目录",cat_name:"目录名",input_cat_name:"请输入目录名",parent_cat_name:"上级目录",none:"无",back_to_top:"回到顶部",draft_tips:"检测到有上次编辑时自动保存的草稿。是否自动填充上次的草稿内容？",management_backstage:"管理后台",user_management:"用户管理",item_management:"项目管理",add_user:"新增用户",search:"查询",team_mamage:"团队管理",background:"管理后台",distribution_to_team:"分配项目给团队",back_to_team:"返回团队管理",check_item:"查看项目",unassign:"取消分配",go_to_new_an_item:"去新建项目",confirm_unassign:"确认取消分配吗？此操作会取消项目和团队之间的关联",Join_time:"加入时间",add_team:"添加团队",member_authority:"成员权限",go_to_new_an_team:"去新建团队",adjust_member_authority:"调整每一个成员的项目权限",team_member_empty_tips:"该团队尚未有任何成员",team_member_authority_tips:"权限说明：编辑权限指的是成员可以新建/编辑项目页面，删除时将只能删除自己新建/编辑的页面。 只读权限指的是，该成员对本项目所有页面都只能查看，无法新增/编辑/删除",member:"成员",team_item:"项目",add_member:"添加成员",member_username:"成员用户名",team_name:"团队名",memberCount:"成员数",itemCount:"分配项目数"}},"JJn/":function(t,e){},NHnr:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("woOf"),o=a.n(i),n=a("7+uW"),s={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]},r=a("VU/8")({name:"app"},s,!1,function(t){a("oASR")},null,null).exports,l=a("/ocq"),c={name:"Index",data:function(){return{height:"",link:"",link_text:""}},methods:{getHeight:function(){if(window.innerHeight)var t=window.innerHeight;else if(document.body&&document.body.clientHeight)t=document.body.clientHeight;this.height=t+"px"}},mounted:function(){var t=this;this.getHeight(),t.link="/user/login",t.link_text=t.$t("index_login_or_register"),this.get_user_info(function(e){0===e.data.error_code&&(t.link="/item/index",t.link_text=t.$t("my_item"))})}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("div",{staticClass:"block"},[a("div",{staticClass:"row header  "},[a("div",{staticClass:"right pull-right"},[a("ul",{staticClass:"inline pull-right"},[a("li",[a("router-link",{attrs:{to:t.link}},[t._v(t._s(t.link_text))])],1)])])]),t._v(" "),a("el-carousel",{attrs:{height:t.height,autoplay:!1,arrow:"always"}},[a("el-carousel-item",{staticStyle:{"background-color":"#1bbc9b"}},[a("div",{staticClass:"slide"},[a("img",{attrs:{src:"static/logo/b_64.png",alt:""}}),t._v(" "),a("h2",[t._v(t._s(t.$t("section_title1")))]),t._v(" "),a("p",[a("span",{domProps:{innerHTML:t._s(t.$t("section_description1"))}})]),t._v(" "),a("p",[a("a",{staticClass:"el-button ",attrs:{href:"https://www.showdoc.cc/demo",target:"_blank"}},[t._v(t._s(t.$t("demo")))]),t._v("     \n                "),a("a",{staticClass:"el-button",attrs:{href:"https://www.showdoc.cc/help",target:"_blank"}},[t._v(t._s(t.$t("help"))+" ")])])])]),t._v(" "),a("el-carousel-item",{staticStyle:{"background-color":"#2C606A"}},[a("div",{staticClass:"slide"},[a("h2",[t._v(t._s(t.$t("section_title2")))]),t._v(" "),a("p",[a("span",{domProps:{innerHTML:t._s(t.$t("section_description2"))}})])])]),t._v(" "),a("el-carousel-item",{staticStyle:{"background-color":"#f90"}},[a("div",{staticClass:"slide"},[a("h2",[t._v(t._s(t.$t("section_title3")))]),t._v(" "),a("p",[a("span",{domProps:{innerHTML:t._s(t.$t("section_description3"))}})])])]),t._v(" "),a("el-carousel-item",{staticStyle:{"background-color":"#7CBD9D"}},[a("div",{staticClass:"slide"},[a("h2",[t._v(t._s(t.$t("section_title4")))]),t._v(" "),a("p",[a("span",{domProps:{innerHTML:t._s(t.$t("section_description4"))}})])])]),t._v(" "),a("el-carousel-item",{staticStyle:{"background-color":"#A77DC2"}},[a("div",{staticClass:"slide"},[a("h2",[t._v(t._s(t.$t("section_title5")))]),t._v(" "),a("p",[a("span",{domProps:{innerHTML:t._s(t.$t("section_description5"))}})])])]),t._v(" "),a("el-carousel-item",{staticStyle:{"background-color":"#85CE92"}},[a("div",{staticClass:"slide"},[a("h2",[t._v(t._s(t.$t("section_title6")))]),t._v(" "),a("p",[a("span",{domProps:{innerHTML:t._s(t.$t("section_description6"))}})])])]),t._v(" "),a("el-carousel-item",{staticStyle:{"background-color":"#4BBFC3"}},[a("div",{staticClass:"slide"},[a("h2",[t._v(t._s(t.$t("section_title7")))]),t._v(" "),a("p",[a("span",{domProps:{innerHTML:t._s(t.$t("section_description7"))}})])])]),t._v(" "),a("el-carousel-item",{staticStyle:{"background-color":"#1bbc9b"}},[a("div",{staticClass:"slide"},[a("h2"),t._v(" "),a("p",[t._v(t._s(t.$t("section_description8")))]),t._v(" "),a("p",[a("el-button",[a("router-link",{attrs:{to:"/user/login"}},[t._v(t._s(t.$t("section_title8")))])],1)],1)])])],1)],1)])},staticRenderFns:[]},m=a("VU/8")(c,d,!1,function(t){a("U72k")},"data-v-3f12fd01",null).exports,_={name:"Login",components:{},data:function(){return{username:"",password:"",v_code:"",v_code_img:DocConfig.server+"/api/common/verify",show_v_code:!1,is_show_alert:!1}},methods:{onSubmit:function(){if(!this.is_show_alert){var t=this,e=DocConfig.server+"/api/user/login",a=new URLSearchParams;a.append("username",this.username),a.append("password",this.password),a.append("v_code",this.v_code),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=decodeURIComponent(t.$route.query.redirect||"/item/index");t.$router.replace({path:a})}else 10206!==e.data.error_code&&10210!==e.data.error_code||(t.show_v_code=!0,t.change_v_code_img()),t.is_show_alert=!0,t.$alert(e.data.error_message,{callback:function(){setTimeout(function(){t.is_show_alert=!1},500)}})})}},change_v_code_img:function(){var t="&rand="+Math.random();this.v_code_img+=t},script_cron:function(){var t=DocConfig.server+"/api/ScriptCron/run";this.axios.get(t)}},mounted:function(){var t=this;document.getElementsByTagName("body")[0].className="grey-bg",this.get_user_info(function(e){if(0===e.data.error_code){var a=decodeURIComponent(t.$route.query.redirect||"/item/index");t.$router.replace({path:a})}}),this.script_cron()},beforeDestroy:function(){document.body.removeAttribute("class","grey-bg")}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-form",{staticClass:"demo-ruleForm",attrs:{"status-icon":"","label-width":"0px"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.onSubmit(e)}}},[a("h2",[t._v(t._s(t.$t("login")))]),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("username_description")},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:t.$t("password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),t._v(" "),t.show_v_code?a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("verification_code")},model:{value:t.v_code,callback:function(e){t.v_code=e},expression:"v_code"}}),t._v(" "),a("img",{staticClass:"v_code_img",attrs:{src:t.v_code_img},on:{click:t.change_v_code_img}})],1):t._e(),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("login")))])],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("router-link",{attrs:{to:"/user/register"}},[t._v(t._s(t.$t("register_new_account")))]),t._v("\n                   \n\n            ")],1)],1)],1)],1),t._v(" "),a("Footer")],1)},staticRenderFns:[]},u=a("VU/8")(_,p,!1,function(t){a("ofm6")},"data-v-38b7de79",null).exports,f={name:"Login",components:{},data:function(){return{passwordForm:{username:"",password:"",new_password:""},emailForm:{status:"",email:"",password:"",submit_text:""},userInfo:{}}},methods:{get_user_info:function(){var t=this,e=DocConfig.server+"/api/user/info",a=new URLSearchParams;t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.userInfo=a,t.passwordForm.username=a.username,t.emailForm.email=a.email;var i=t.$t("status")+":";a.email.length>0?(t.emailForm.submit_text=t.$t("modify"),a.email_verify>0?i+=t.$t("status_1"):i+=t.$t("status_2")):(i+=t.$t("status_3"),t.emailForm.submit_text=t.$t("binding")),t.emailForm.status=i}else t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})},passwordFormSubmit:function(){var t=this,e=DocConfig.server+"/api/user/resetPassword",a=new URLSearchParams;a.append("new_password",this.passwordForm.new_password),a.append("password",this.passwordForm.password),t.axios.post(e,a).then(function(e){0===e.data.error_code?t.$message.success(t.$t("modify_success")):t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})},emailFormSubmit:function(){var t=this,e=DocConfig.server+"/api/user/updateEmail",a=new URLSearchParams;a.append("email",this.emailForm.email),a.append("password",this.emailForm.password),t.axios.post(e,a).then(function(e){0===e.data.error_code?(t.$alert(t.$t("update_email_success")),this.get_user_info()):t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})}},mounted:function(){this.get_user_info(),document.getElementsByTagName("body")[0].className="grey-bg"},beforeDestroy:function(){document.body.removeAttribute("class","grey-bg")}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[[a("router-link",{staticClass:"goback-btn ",attrs:{to:"/item/index"}},[t._v(t._s(t.$t("goback")))]),t._v(" "),a("el-tabs",{attrs:{value:"first",type:"card"}},[a("el-tab-pane",{attrs:{label:t.$t("modify_password"),name:"first"}},[a("el-form",{staticClass:"passwordForm",attrs:{"status-icon":"","label-width":"0px"},model:{value:t.passwordForm,callback:function(e){t.passwordForm=e},expression:"passwordForm"}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"",disabled:!0},model:{value:t.passwordForm.username,callback:function(e){t.$set(t.passwordForm,"username",e)},expression:"passwordForm.username"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:t.$t("old_password")},model:{value:t.passwordForm.password,callback:function(e){t.$set(t.passwordForm,"password",e)},expression:"passwordForm.password"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:t.$t("new_password")},model:{value:t.passwordForm.new_password,callback:function(e){t.$set(t.passwordForm,"new_password",e)},expression:"passwordForm.new_password"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.passwordFormSubmit}},[t._v(t._s(t.$t("submit")))])],1)],1)],1)],1)]],2)],1),t._v(" "),a("Footer")],1)},staticRenderFns:[]},g=a("VU/8")(f,h,!1,function(t){a("dxxh")},"data-v-521d6430",null).exports,v={name:"Register",components:{},data:function(){return{username:"",password:"",confirm_password:"",v_code:"",v_code_img:DocConfig.server+"/api/common/verify"}},methods:{onSubmit:function(){var t=this,e=DocConfig.server+"/api/user/register",a=new URLSearchParams;a.append("username",this.username),a.append("password",this.password),a.append("confirm_password",this.confirm_password),a.append("v_code",this.v_code),t.axios.post(e,a).then(function(e){0===e.data.error_code?t.$router.push({path:"/item/index"}):(t.change_v_code_img(),t.$alert(e.data.error_message))})},change_v_code_img:function(){var t="&rand="+Math.random();this.v_code_img+=t}},mounted:function(){document.getElementsByTagName("body")[0].className="grey-bg"},beforeDestroy:function(){document.body.removeAttribute("class","grey-bg")}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-form",{staticClass:"demo-ruleForm",attrs:{"status-icon":"","label-width":"0px"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.onSubmit(e)}}},[a("h2",[t._v(t._s(t.$t("register")))]),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("username_description")},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:t.$t("password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:t.$t("password_again")},model:{value:t.confirm_password,callback:function(e){t.confirm_password=e},expression:"confirm_password"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("verification_code")},model:{value:t.v_code,callback:function(e){t.v_code=e},expression:"v_code"}}),t._v(" "),a("img",{staticClass:"v_code_img",attrs:{src:t.v_code_img},on:{click:t.change_v_code_img}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("register")))])],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("router-link",{attrs:{to:"/user/login"}},[t._v(t._s(t.$t("login")))]),t._v("\n                   \n\n            ")],1)],1)],1)],1),t._v(" "),a("Footer")],1)},staticRenderFns:[]},w=a("VU/8")(v,b,!1,function(t){a("cKVC")},"data-v-63520b46",null).exports,y={name:"",components:{},data:function(){return{email:"",v_code:"",v_code_img:DocConfig.server+"/api/common/verify"}},methods:{onSubmit:function(){var t=this,e=DocConfig.server+"/api/user/resetPasswordEmail",a=new URLSearchParams;a.append("email",this.email),a.append("v_code",this.v_code),t.axios.post(e,a).then(function(e){0===e.data.error_code?t.$alert("已成功发送重置密码邮件到你的邮箱中。请登录并查看邮件"):t.$alert(e.data.error_message)})},change_v_code_img:function(){var t="&rand="+Math.random();this.v_code_img+=t}},mounted:function(){document.getElementsByTagName("body")[0].className="grey-bg"},beforeDestroy:function(){document.body.removeAttribute("class","grey-bg")}},k={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-form",{staticClass:"demo-ruleForm",attrs:{"status-icon":"","label-width":"0px"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.onSubmit(e)}}},[a("h2",[t._v("重置密码")]),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"绑定的邮箱"},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"验证码"},model:{value:t.v_code,callback:function(e){t.v_code=e},expression:"v_code"}}),t._v(" "),a("img",{staticClass:"v_code_img",attrs:{src:t.v_code_img},on:{click:t.change_v_code_img}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("提交")])],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("router-link",{attrs:{to:"/user/login"}},[t._v("想起密码了？去登录")]),t._v("\n                   \n            ")],1)],1)],1)],1),t._v(" "),a("Footer")],1)},staticRenderFns:[]},x=a("VU/8")(y,k,!1,function(t){a("u9pU")},"data-v-6a89fdf0",null).exports,C={name:"",components:{},data:function(){return{new_password:""}},methods:{onSubmit:function(){var t=this,e=DocConfig.server+"/api/user/resetPasswordByUrl",a=new URLSearchParams;a.append("new_password",this.new_password),a.append("uid",this.$route.query.uid),a.append("email",this.$route.query.email),a.append("token",this.$route.query.token),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=decodeURIComponent(t.$route.query.redirect||"/item/index");t.$router.replace({path:a})}else t.$alert(e.data.error_message)})}},mounted:function(){document.getElementsByTagName("body")[0].className="grey-bg"},beforeDestroy:function(){document.body.removeAttribute("class","grey-bg")}},F={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-form",{staticClass:"demo-ruleForm",attrs:{"status-icon":"","label-width":"0px"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.onSubmit(e)}}},[a("h2",[t._v("重置密码")]),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"请输入新密码"},model:{value:t.new_password,callback:function(e){t.new_password=e},expression:"new_password"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("提交")])],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("router-link",{attrs:{to:"/user/login"}},[t._v("去登录")]),t._v("\n                   \n            ")],1)],1)],1)],1),t._v(" "),a("Footer")],1)},staticRenderFns:[]},S=a("VU/8")(C,F,!1,function(t){a("pmUg")},"data-v-a58f682e",null).exports;if("undefined"!=typeof window)var T=a("zhAq");var L={data:function(){return{currentDate:new Date,itemList:{},isAdmin:!1}},methods:{get_item_list:function(){var t=this,e=DocConfig.server+"/api/item/myList",a=new URLSearchParams;t.axios.get(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.itemList=a,t.bind_item_even()}else t.$alert(e.data.error_message)})},feedback:function(){window.open("https://github.com/star7th/showdoc/issues")},item_top_class:function(t){return t?"el-icon-arrow-down":"el-icon-arrow-up"},bind_item_even:function(){T(["static/jquery.min.js"],function(){$(".item-thumbnail").mouseover(function(){$(this).find(".item-setting").show(),$(this).find(".item-top").show(),$(this).find(".item-down").show()}),$(".item-thumbnail").mouseout(function(){$(this).find(".item-setting").hide(),$(this).find(".item-top").hide(),$(this).find(".item-down").hide()})})},click_item_setting:function(t){this.$router.push({path:"/item/setting/"+t})},click_item_top:function(t,e){if(e)var a="cancel";else a="top";var i=this,o=DocConfig.server+"/api/item/top",n=new URLSearchParams;n.append("action",a),n.append("item_id",t),i.axios.post(o,n).then(function(t){0===t.data.error_code?i.get_item_list():i.$alert(t.data.error_message)})},logout:function(){var t=this,e=DocConfig.server+"/api/user/logout",a=new URLSearchParams;t.axios.get(e,a).then(function(e){0===e.data.error_code?t.$router.push({path:"/"}):t.$alert(e.data.error_message)})},user_info:function(){var t=this;this.get_user_info(function(e){0===e.data.error_code&&1==e.data.data.groupid&&(t.isAdmin=!0)})},dropdown_callback:function(t){t&&t()}},mounted:function(){this.get_item_list(),this.user_info()},beforeDestroy:function(){this.$message.closeAll(),document.body.removeAttribute("class","grey-bg")}},V={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",{staticClass:"container-narrow"},[a("el-row",{staticClass:"masthead"},[a("div",{staticClass:"logo-title "},[a("h2",{staticClass:"muted"},[a("img",{staticStyle:{width:"50px",height:"50px","margin-bottom":"-10px"},attrs:{src:"static/logo/b_64.png",alt:""}}),t._v("ShowDoc")])]),t._v(" "),a("div",{staticClass:"header-btn-group pull-right"},[a("el-button",{attrs:{type:"text"},on:{click:t.feedback}},[t._v(t._s(t.$t("feedback")))]),t._v(" "),a("router-link",{attrs:{to:"/team/index"}},[t._v("   "+t._s(t.$t("team_mamage")))]),t._v(" "),t.isAdmin?a("router-link",{attrs:{to:"/admin/index"}},[t._v("   "+t._s(t.$t("background")))]):t._e(),t._v("\n             \n          "),a("el-dropdown",{on:{command:t.dropdown_callback}},[a("span",{staticClass:"el-dropdown-link"},[t._v("\n              "+t._s(t.$t("more"))),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("router-link",{attrs:{to:"/user/setting"}},[t._v(t._s(t.$t("personal_setting")))])],1),t._v(" "),a("el-dropdown-item",{attrs:{command:t.logout}},[t._v(t._s(t.$t("logout")))])],1)],1)],1)])],1),t._v(" "),a("el-container",{staticClass:"container-narrow"},[a("div",{staticClass:"container-thumbnails"},[t.itemList?a("ul",{staticClass:"thumbnails",attrs:{id:"item-list"}},[t._l(t.itemList,function(e){return a("li",{staticClass:" text-center"},[a("router-link",{staticClass:"thumbnail item-thumbnail",attrs:{to:"/"+(e.item_domain?e.item_domain:e.item_id),title:""}},[a("span",{staticClass:"item-setting ",attrs:{title:t.$t("item_setting")},on:{click:function(a){a.preventDefault(),t.click_item_setting(e.item_id)}}},[a("i",{staticClass:"el-icon-setting"})]),t._v(" "),a("span",{staticClass:"item-top ",attrs:{title:e.top?t.$t("cancel_item_top"):t.$t("item_top")},on:{click:function(a){a.preventDefault(),t.click_item_top(e.item_id,e.top)}}},[a("i",{class:t.item_top_class(e.top)})]),t._v(" "),a("p",{staticClass:"my-item"},[t._v(t._s(e.item_name))])])],1)}),t._v(" "),a("li",{staticClass:" text-center"},[a("router-link",{staticClass:"thumbnail item-thumbnail",attrs:{to:"/item/add",title:""}},[a("p",{staticClass:"my-item"},[t._v(t._s(t.$t("new_item"))),a("i",{staticClass:"el-icon-plus"})])])],1)],2):t._e()])]),t._v(" "),a("Footer")],1)},staticRenderFns:[]},D=a("VU/8")(L,V,!1,function(t){a("acf6")},"data-v-24c64fa2",null).exports,P={name:"Login",components:{},data:function(){return{item_type:"1",item_name:"",item_description:"",item_domain:"",password:"",show_copy:!1,itemList:{},copy_item_id:""}},methods:{get_item_list:function(){var t=this,e=DocConfig.server+"/api/item/myList",a=new URLSearchParams;t.axios.get(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.itemList=a}else t.$alert(e.data.error_message)})},choose_copy_item:function(t){for(var e=0;e<this.itemList.length;e++)t==this.itemList[e].item_id&&(this.item_name=this.itemList[e].item_name+"--copy",this.item_description=this.itemList[e].item_description)},onSubmit:function(){var t=this,e=DocConfig.server+"/api/item/add",a=new URLSearchParams;a.append("item_type",this.item_type),a.append("item_name",this.item_name),a.append("password",this.password),a.append("item_domain",this.item_domain),a.append("copy_item_id",this.copy_item_id),a.append("item_description",this.item_description),t.axios.post(e,a).then(function(e){0===e.data.error_code?t.$router.push({path:"/item/index"}):t.$alert(e.data.error_message)})},auto_doc:function(){var t='<p>如果你想自动化生成API文档，则可参考<a target="_bank" href="https://www.showdoc.cc/page/741656402509783">API文档</a></p>';t+='<p>如果你想自动化生成数据字典，则可参考<a target="_bank" href="https://www.showdoc.cc/page/312209902620725">数据字典</a></p>',t+='<p>如果你更自由地生成自己所需要的格式，则可参考<a target="_bank" href="https://www.showdoc.cc/page/102098">开放API</a></p>',this.$alert(t,{dangerouslyUseHTMLString:!0})}},mounted:function(){this.get_item_list(),document.getElementsByTagName("body")[0].className="grey-bg"},beforeDestroy:function(){document.body.removeAttribute("class","grey-bg")}},M={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-form",{staticClass:"demo-ruleForm",attrs:{"status-icon":"","label-width":"0px"}},[a("h2"),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-radio",{attrs:{label:"1"},model:{value:t.item_type,callback:function(e){t.item_type=e},expression:"item_type"}},[t._v(t._s(t.$t("item_type1")))]),t._v(" "),a("el-radio",{attrs:{label:"2"},model:{value:t.item_type,callback:function(e){t.item_type=e},expression:"item_type"}},[t._v(t._s(t.$t("item_type2")))]),t._v("\n                "),a("a",{attrs:{href:"https://www.showdoc.cc/page/65391",target:"_blank"}},[a("i",{staticClass:"el-icon-question"})])],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("item_name")},model:{value:t.item_name,callback:function(e){t.item_name=e},expression:"item_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("item_description")},model:{value:t.item_description,callback:function(e){t.item_description=e},expression:"item_description"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:t.$t("visit_password_placeholder")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),t._v(" "),a("el-form-item",{staticClass:"text-left",attrs:{label:""}},[a("el-checkbox",{on:{change:t.show_copy_even},model:{value:t.show_copy,callback:function(e){t.show_copy=e},expression:"show_copy"}},[t._v(t._s(t.$t("copy_exists_item")))]),t._v(" "),t.show_copy?a("el-select",{attrs:{placeholder:t.$t("please_choose")},on:{change:t.choose_copy_item},model:{value:t.copy_item_id,callback:function(e){t.copy_item_id=e},expression:"copy_item_id"}},t._l(t.itemList,function(t){return a("el-option",{key:t.item_id,attrs:{label:t.item_name,value:t.item_id}})})):t._e()],1),t._v(" "),a("el-form-item",{staticStyle:{"text-align":"left","margin-bottom":"5px","margin-left":"15px","margin-top":"-25px"},attrs:{label:""}},[a("el-button",{attrs:{type:"text"},on:{click:t.auto_doc}},[t._v("我要自动生成文档")]),t._v("\n                   \n            ")],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("submit")))])],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("router-link",{attrs:{to:"/item/index"}},[t._v(t._s(t.$t("goback")))])],1)],1)],1)],1),t._v(" "),a("Footer")],1)},staticRenderFns:[]},U=a("VU/8")(P,M,!1,function(t){a("bNli")},"data-v-6c7ce650",null).exports,I={name:"Login",components:{},data:function(){return{password:"",v_code:"",v_code_img:DocConfig.server+"/api/common/verify",show_v_code:!1}},methods:{onSubmit:function(){var t=this.$route.params.item_id?this.$route.params.item_id:0,e=this.$route.query.page_id?this.$route.query.page_id:0,a=this,i=DocConfig.server+"/api/item/pwd",o=new URLSearchParams;o.append("item_id",t),o.append("page_id",e),o.append("password",this.password),o.append("v_code",this.v_code),a.axios.post(i,o).then(function(e){if(0===e.data.error_code){var i=decodeURIComponent(a.$route.query.redirect||"/"+t);a.$router.replace({path:i})}else 10206!==e.data.error_code&&10308!==e.data.error_code||(a.show_v_code=!0,a.change_v_code_img()),a.$alert(e.data.error_message)})},change_v_code_img:function(){var t="&rand="+Math.random();this.v_code_img+=t}},mounted:function(){document.getElementsByTagName("body")[0].className="grey-bg"},beforeDestroy:function(){document.body.removeAttribute("class","grey-bg")}},R={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-form",{staticClass:"demo-ruleForm",attrs:{"status-icon":"","label-width":"0px"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.onSubmit(e)}}},[a("h2",[t._v(t._s(t.$t("input_visit_password")))]),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:t.$t("password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),t._v(" "),t.show_v_code?a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("verification_code")},model:{value:t.v_code,callback:function(e){t.v_code=e},expression:"v_code"}}),t._v(" "),a("img",{staticClass:"v_code_img",attrs:{src:t.v_code_img},on:{click:t.change_v_code_img}})],1):t._e(),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("submit")))])],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("router-link",{attrs:{to:"/user/login"}},[t._v(t._s(t.$t("login")))]),t._v("\n                   \n\n            ")],1)],1)],1)],1),t._v(" "),a("Footer")],1)},staticRenderFns:[]},A=a("VU/8")(I,R,!1,function(t){a("ek17")},"data-v-6645e718",null).exports,E={render:function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:"fade"}},[e("div",{staticClass:"img-view",on:{click:this.bigImg}},[e("div",{staticClass:"img-layer"}),this._v(" "),e("div",{staticClass:"img"},[e("img",{attrs:{src:this.imgSrc}})])])])},staticRenderFns:[]},j=a("VU/8")({props:["imgSrc"],methods:{bigImg:function(){this.$emit("clickit")}}},E,!1,function(t){a("RlsY")},"data-v-437ecbaa",null).exports;if("undefined"!=typeof window)var H=a("zhAq");var B={name:"Editor",props:{width:"",content:{type:String,default:"###初始化成功"},type:{type:String,default:"editor"},id:{type:String,default:"editor-md"},editorPath:{type:String,default:"static/editor.md"},editorConfig:{type:Object,default:function(){return{path:"static/editor.md/lib/",height:1e3,taskList:!0,tex:!0,flowChart:!0,sequenceDiagram:!0,syncScrolling:"single",htmlDecode:"style,script,iframe|filterXSS",imageUpload:!0,imageFormats:["jpg","jpeg","gif","png","bmp","webp","JPG","JPEG","GIF","PNG","BMP","WEBP"],imageUploadURL:DocConfig.server+"/api/page/uploadImg",onload:function(){console.log("onload")}}}}},components:{BigImg:j},data:function(){return{instance:null,showImg:!1,imgSrc:""}},computed:{},mounted:function(){var t=this;H([this.editorPath+"/../jquery.min.js",this.editorPath+"/lib/raphael.min.js",this.editorPath+"/lib/flowchart.min.js"],function(){H([t.editorPath+"/../xss.min.js",t.editorPath+"/lib/marked.min.js",t.editorPath+"/lib/prettify.min.js",t.editorPath+"/lib/underscore.min.js",t.editorPath+"/lib/sequence-diagram.min.js",t.editorPath+"/lib/jquery.flowchart.min.js"],function(){H(t.editorPath+"/editormd.js",function(){t.initEditor()}),H(t.editorPath+"/../highlight/highlight.min.js",function(){hljs.initHighlightingOnLoad()})})})},beforeDestroy:function(){for(var t=1;t<999;t++)window.clearInterval(t)},methods:{initEditor:function(){var t=this;this.$nextTick(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.editormd;e&&("editor"==t.type?t.instance=e(t.id,t.editorConfig):t.instance=e.markdownToHTML(t.id,t.editorConfig),t.deal_with_content())})},insertValue:function(t){this.instance.insertValue(this.html_decode(t))},getMarkdown:function(){return this.instance.getMarkdown()},editor_unwatch:function(){return this.instance.unwatch()},editor_watch:function(){return this.instance.watch()},clear:function(){return this.instance.clear()},draft:function(){var t=this;setInterval(function(){localStorage.page_content=t.getMarkdown()},6e4);var e=localStorage.page_content;e&&e.length>0&&(localStorage.removeItem("page_content"),t.$confirm(t.$t("draft_tips"),"",{showClose:!1}).then(function(){t.clear(),t.insertValue(e),localStorage.removeItem("page_content")}).catch(function(){localStorage.removeItem("page_content")}))},beforeunloadHandler:function(t){return(t=t||window.event)&&(t.returnValue="提示"),"提示"},deal_with_content:function(){var t=this;$.each($("#"+this.id+" table"),function(){$(this).prop("outerHTML",'<div style="width: 100%;overflow-x: auto;">'+$(this).prop("outerHTML")+"</div>")}),$("#"+this.id+' a[href^="http"]').each(function(){$(this).attr("target","_blank")}),$("#"+this.id+" table tbody tr").each(function(){var t=$(this),e=t.find("td").eq(1).html(),a=t.find("td").eq(2).html();"object"==e||"array[object]"==e||"object"==a||"array[object]"==a?t.css({"background-color":"#F8F8F8"}):t.css("background-color","#fff"),t.hover(function(){t.css("background-color","#F8F8F8")},function(){"object"==e||"array[object]"==e||"object"==a||"array[object]"==a?t.css({"background-color":"#F8F8F8"}):t.css("background-color","#fff")})}),$("th").css("width","180px"),$("#"+this.id+" img").click(function(){var e=$(this).attr("src");t.showImg=!0,t.imgSrc=e}),$("#"+this.id+" table thead tr").css("background-color","#409eff"),$("#"+this.id+" table thead tr").css("color","#fff"),$("#"+this.id+" .linenums").css("padding-left","5px"),$("#"+this.id+" .linenums li").css("list-style-type","none"),$("#"+this.id+" .linenums li").css("background-color","#fcfcfc"),$("#"+this.id+" pre").css("background-color","#fcfcfc"),$("#"+this.id+" pre").css("border","1px solid #e1e1e8"),$("#"+this.id+" code").css("color","#d14")},html_decode:function(t){var e="";return 0==t.length?"":(e=t.replace(/&gt;/g,"&"),e=e.replace(/&lt;/g,"<"),e=e.replace(/&gt;/g,">"),e=e.replace(/&nbsp;/g," "),e=e.replace(/&#39;/g,"'"),e=e.replace(/&quot;/g,'"'))}}},q={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main-editor",attrs:{id:t.id}},[a("link",{attrs:{href:"static/editor.md/css/editormd.min.css",rel:"stylesheet"}}),t._v(" "),a("textarea",{staticStyle:{display:"none"},domProps:{innerHTML:t._s(t.content)}}),t._v(" "),t.showImg?a("BigImg",{attrs:{imgSrc:t.imgSrc},on:{clickit:function(e){t.showImg=!1}}}):t._e()],1)},staticRenderFns:[]},z=a("VU/8")(B,q,!1,function(t){a("1EGx")},"data-v-27a5fd2c",null).exports,J={data:function(){return{status:!1,scrollTop:0,timer:null,speed:30}},mounted:function(){var t=this;window.onscroll=function(){t.scrollTop=document.body.scrollTop?document.body.scrollTop:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:null,t.status=t.scrollTop&&t.scrollTop>0}},methods:{gototop:function(){var t=this;t.timer=setInterval(function(){t.scrollTop-=100,t.scrollTop<100&&(t.scrollTop=0,t.status=!1,clearInterval(t.timer)),scrollTo(0,t.scrollTop)},this.speed)}},destroyed:function(){clearInterval(this.timer)}},N={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{directives:[{name:"show",rawName:"v-show",value:this.status,expression:"status"}],staticClass:"gotop-box",on:{click:this.gototop}},[e("i",{staticClass:"el-icon-caret-top",attrs:{title:this.$t("back_to_top")}})])},staticRenderFns:[]},O=a("VU/8")(J,N,!1,function(t){a("YN3J")},"data-v-a442ed38",null).exports,G={props:{get_page_content:"",item_info:"",search_item:""},data:function(){return{keyword:"",openeds:[],menu:""}},components:{Editormd:z},methods:{select_menu:function(t,e){this.change_url(t),this.get_page_content(t)},new_page:function(){var t="/page/edit/"+this.item_info.item_id+"/0";this.$router.push({path:t})},mamage_catalog:function(){var t="/catalog/"+this.item_info.item_id;this.$router.push({path:t})},change_url:function(t){var e=this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id;this.$router.replace({path:"/"+e,query:{page_id:t}})},input_keyword:function(){this.search_item(this.keyword)}},mounted:function(){this.menu=this.item_info.menu;var t=this.item_info;t.default_page_id>0&&(this.select_menu(t.default_page_id),t.default_cat_id4?this.openeds=[t.default_cat_id4,t.default_cat_id3,t.default_cat_id2,t.default_page_id]:t.default_cat_id3?this.openeds=[t.default_cat_id3,t.default_cat_id2,t.default_page_id]:t.default_cat_id2&&(this.openeds=[t.default_cat_id2,t.default_page_id]))}},W={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("el-menu",{attrs:{"background-color":"#fafafa","text-color":"","active-text-color":"#008cff","default-active":t.item_info.default_page_id,"default-openeds":t.openeds},on:{select:t.select_menu}},[a("el-input",{attrs:{placeholder:t.$t("input_keyword")},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.input_keyword(e)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),t._v(" "),t.item_info.ItemPermn&&t.item_info.is_archived<1?a("div",{staticClass:"new-bar"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.$t("new_page"),placement:"left"}},[a("i",{staticClass:"el-icon-plus",on:{click:t.new_page}})]),t._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.$t("new_catalog"),placement:"right"}},[a("img",{staticClass:"icon-folder",attrs:{src:"static/images/folder.png"},on:{click:t.mamage_catalog}})])],1):t._e(),t._v(" "),t._l(t.menu.pages,function(e,i){return t.menu.pages.length?a("el-menu-item",{key:e.page_id,attrs:{index:e.page_id}},[a("i",{staticStyle:{"margin-left":"30px"}}),t._v("\n        "+t._s(e.page_title)+"\n      ")]):t._e()}),t._v(" "),t._l(t.menu.catalogs,function(e,i){return t.menu.catalogs.length?a("el-submenu",{key:e.cat_id,attrs:{index:e.cat_id}},[a("template",{slot:"title"},[a("img",{staticClass:"icon-folder menu-icon-folder ",attrs:{src:"static/images/folder.png"}}),t._v(t._s(e.cat_name))]),t._v(" "),t._l(e.pages,function(i,o){return e.pages?a("el-menu-item-group",{key:i.page_id},[a("el-menu-item",{attrs:{index:i.page_id}},[t._v(t._s(i.page_title))])],1):t._e()}),t._v(" "),t._l(e.catalogs,function(i,o){return e.catalogs.length?a("el-submenu",{key:i.cat_id,attrs:{index:i.cat_id}},[a("template",{slot:"title"},[t._v(t._s(i.cat_name))]),t._v(" "),t._l(i.pages,function(e,o){return i.pages?a("el-menu-item",{key:e.page_id,attrs:{index:e.page_id}},[t._v(t._s(e.page_title))]):t._e()}),t._v(" "),t._l(i.catalogs,function(e,o){return i.catalogs.length?a("el-submenu",{key:e.cat_id,attrs:{index:e.cat_id}},[a("template",{slot:"title"},[t._v(t._s(e.cat_name))]),t._v(" "),t._l(e.pages,function(i,o){return e.pages?a("el-menu-item",{key:i.page_id,attrs:{index:i.page_id}},[t._v(t._s(i.page_title))]):t._e()})],2):t._e()})],2):t._e()})],2):t._e()})],2)],1)},staticRenderFns:[]},Q=a("VU/8")(G,W,!1,function(t){a("J5fp")},"data-v-79d27a4a",null).exports,K={props:{callback:"",page_id:"",is_modal:!0,is_show_recover_btn:!0},data:function(){return{currentDate:new Date,content:[],dialogTableVisible:!1}},components:{},methods:{get_content:function(){var t=this,e=DocConfig.server+"/api/page/history",a=new URLSearchParams,i=this.page_id?this.page_id:t.$route.params.page_id;a.append("page_id",i),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){e.data.data.length>0?(t.content=e.data.data,t.dialogTableVisible=!0):(t.dialogTableVisible=!1,t.$alert("no data"))}else t.dialogTableVisible=!1,t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})},show:function(){this.get_content()},recover:function(t){this.callback(t.page_content,!0),this.dialogTableVisible=!1},preview_diff:function(t){var e=t.page_history_id,a="#/page/diff/"+(this.page_id?this.page_id:this.$route.params.page_id)+"/"+e;window.open(a)}},mounted:function(){}},Y={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",{staticClass:"container-narrow"},[a("el-dialog",{attrs:{title:t.$t("history_version"),modal:t.is_modal,visible:t.dialogTableVisible},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[a("el-table",{attrs:{data:t.content}},[a("el-table-column",{attrs:{property:"addtime",label:t.$t("update_time"),width:"170"}}),t._v(" "),a("el-table-column",{attrs:{property:"author_username",label:t.$t("update_by_who")}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.preview_diff(e.row)}}},[t._v(t._s(t.$t("overview")))]),t._v(" "),t.is_show_recover_btn?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.recover(e.row)}}},[t._v(t._s(t.$t("recover_to_this_version")))]):t._e()]}}])})],1)],1)],1),t._v(" "),a("Footer"),t._v(" "),a("div",{})],1)},staticRenderFns:[]},Z=a("VU/8")(K,Y,!1,function(t){a("e1ID")},null,null).exports,X={props:{item_id:"",page_id:"",page_info:{}},data:function(){return{menu:[],dialogVisible:!1,qr_page_link:"#",qr_single_link:"#",share_page_link:"",share_single_link:""}},components:{HistoryVersion:Z},methods:{edit_page:function(){var t=this.page_id>0?this.page_id:0,e="/page/edit/"+this.item_id+"/"+t;this.$router.push({path:e})},share_page:function(){var t=this.page_id>0?this.page_id:0;this.share_page_link=this.getRootPath()+"#/"+this.item_id+"?page_id="+t,this.share_single_link=this.getRootPath()+"#/page/"+t,this.qr_page_link=DocConfig.server+"/api/common/qrcode&size=3&url="+encodeURIComponent(this.share_page_link),this.qr_single_link=DocConfig.server+"/api/common/qrcode&size=3&url="+encodeURIComponent(this.share_single_link),this.dialogVisible=!0},dropdown_callback:function(t){t&&t()},show_page_info:function(){var t="本页面由 "+this.page_info.author_username+" 于 "+this.page_info.addtime+" 更新";this.$alert(t)},ShowHistoryVersion:function(){this.$refs.HistoryVersion.show()},delete_page:function(){var t=this.page_id>0?this.page_id:0,e=this,a=DocConfig.server+"/api/page/delete";this.$confirm(e.$t("comfirm_delete")," ",{confirmButtonText:e.$t("confirm"),cancelButtonText:e.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("page_id",t),e.axios.post(a,i).then(function(t){0===t.data.error_code?window.location.reload():e.$alert(t.data.error_message)})})}},mounted:function(){var t=this;document.onkeydown=function(e){var a=window.event?e.keyCode:e.which;69==a&&e.ctrlKey&&(t.edit_page(),e.preventDefault()),46==a&&e.ctrlKey&&(t.delete_page(),e.preventDefault())}}},tt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("ul",{staticClass:"page-bar"},[a("li",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.$t("edit_page"),placement:"right"}},[a("el-button",{attrs:{type:"text",icon:"el-icon-edit"},on:{click:t.edit_page}})],1)],1),t._v(" "),a("li",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.$t("share_page"),placement:"right"}},[a("el-button",{attrs:{type:"text",icon:"el-icon-share"},on:{click:t.share_page}})],1)],1),t._v(" "),a("li",[a("el-dropdown",{on:{command:t.dropdown_callback}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--down"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("router-link",{attrs:{to:"/page/edit/"+t.item_id+"/0?copy_page_id="+t.page_id}},[a("el-dropdown-item",[t._v(t._s(t.$t("copy")))])],1),t._v(" "),a("el-dropdown-item",{attrs:{command:t.show_page_info}},[t._v(t._s(t.$t("detail")))]),t._v(" "),a("el-dropdown-item",{attrs:{command:t.ShowHistoryVersion}},[t._v(t._s(t.$t("history_version")))]),t._v(" "),a("el-dropdown-item",{attrs:{command:t.delete_page}},[t._v(t._s(t.$t("delete")))])],1)],1)],1)]),t._v(" "),a("el-dialog",{staticClass:"text-center",attrs:{title:t.$t("share_page"),visible:t.dialogVisible,width:"500px",modal:!1},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("p",[t._v(t._s(t.$t("item_page_address"))+" : "),a("code",[t._v(t._s(t.share_page_link))])]),t._v(" "),a("p",{staticStyle:{"border-bottom":"1px solid #eee"}},[a("img",{staticStyle:{width:"114px",height:"114px"},attrs:{id:"qr-page-link",src:t.qr_page_link}})]),t._v(" "),a("p",[t._v(t._s(t.$t("single_page_address"))+" : "),a("code",{attrs:{id:"share-single-link"}},[t._v(t._s(t.share_single_link))])]),t._v(" "),a("p",{staticStyle:{"border-bottom":"1px solid #eee"}},[a("img",{staticStyle:{width:"114px",height:"114px"},attrs:{id:"qr-single-link",src:t.qr_single_link}})]),t._v(" "),a("p",[a("a",{attrs:{href:"https://www.showdoc.cc/page/63882",target:"_blank"}},[t._v(t._s(t.$t("page_diff_tips")))])]),a("p"),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v(t._s(t.$t("confirm")))])],1)]),t._v(" "),a("HistoryVersion",{ref:"HistoryVersion",attrs:{page_id:t.page_id,is_show_recover_btn:!1,is_modal:!1,callback:"insertValue"}})],1)},staticRenderFns:[]},et={props:{item_info:"",search_item:""},data:function(){return{content:"###正在加载...",page_id:"",page_title:"",dialogVisible:!1,share_item_link:"",qr_item_link:"",page_info:"",show_page_bar:!0}},components:{Editormd:z,LeftMenu:Q,PageBar:a("VU/8")(X,tt,!1,function(t){a("EBy1")},"data-v-803c9bbe",null).exports,BackToTop:O},methods:{get_page_content:function(t){var e=this;if(!(t<=0)){(this.isMobile()||window.screen.width<1e3)&&this.$nextTick(function(){e.AdaptToMobile()});var a=this,i=DocConfig.server+"/api/page/info",o=new URLSearchParams;o.append("page_id",t),a.axios.post(i,o).then(function(e){0===e.data.error_code&&(a.content=e.data.data.page_content,a.page_title=e.data.data.page_title,a.page_info=e.data.data,a.page_id=0,a.$nextTick(function(){a.page_id=t}))})}},dropdown_callback:function(t){t&&t()},share_item:function(){this.share_item_link=this.getRootPath()+"#/"+this.item_info.item_id,this.qr_item_link=DocConfig.server+"/api/common/qrcode&size=3&url="+encodeURIComponent(this.share_item_link),this.dialogVisible=!0},AdaptToMobile:function(){this.hide_menu(),this.show_page_bar=!1},show_menu:function(){document.getElementById("left-side").style.display="block";document.getElementById("right-side").style.marginLeft="300px";document.getElementById("page_content_main").style.width="800px"},hide_menu:function(){document.getElementById("left-side").style.display="none";document.getElementById("right-side").style.marginLeft="0px";document.getElementById("page_content_main").style.width="95%"},switch_menu:function(){"none"==document.getElementById("left-side").style.display?this.show_menu():this.hide_menu()}},mounted:function(){var t=this;(this.isMobile()||window.screen.width<1e3)&&this.$nextTick(function(){t.AdaptToMobile()})}},at={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",[a("el-aside",{staticClass:"el-aside",attrs:{id:"left-side"}},[t.item_info?a("LeftMenu",{attrs:{get_page_content:t.get_page_content,item_info:t.item_info,search_item:t.search_item}}):t._e()],1),t._v(" "),a("el-container",{staticClass:"right-side",attrs:{id:"right-side"}},[a("el-header",[a("div",{staticClass:"header-left"},[a("i",{staticClass:"el-icon-menu header-left-btn",attrs:{id:"header-left-btn"},on:{click:t.switch_menu}})]),t._v(" "),a("div",{staticClass:"header-right"},[t.item_info.is_login?a("router-link",{attrs:{to:"/item/index"}},[t._v(t._s(t.$t("goback"))+" ")]):t._e(),t._v(" "),t.item_info.is_login?a("el-dropdown",{on:{command:t.dropdown_callback}},[a("span",{staticClass:"el-dropdown-link"},[t._v("\n                "+t._s(t.$t("item"))),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:t.share_item}},[t._v(t._s(t.$t("share")))]),t._v(" "),t.item_info.ItemPermn?a("router-link",{attrs:{to:"/item/export/"+t.item_info.item_id}},[a("el-dropdown-item",[t._v(t._s(t.$t("export")))])],1):t._e(),t._v(" "),t.item_info.ItemCreator?a("router-link",{attrs:{to:"/item/setting/"+t.item_info.item_id}},[a("el-dropdown-item",[t._v(t._s(t.$t("item_setting")))])],1):t._e()],1)],1):t._e(),t._v(" "),t.item_info.is_login?t._e():a("div",[a("router-link",{attrs:{to:"/user/login"}},[t._v(t._s(t.$t("login_or_register")))]),t._v("\n                    \n                "),a("a",{attrs:{href:"https://www.showdoc.cc/help",target:"_blank"}},[t._v(t._s(t.$t("about_showdoc")))])],1)],1)]),t._v(" "),a("el-main",{staticClass:"page_content_main",attrs:{id:"page_content_main"}},[t.page_id?a("div",{staticClass:"doc-title-box"},[a("span",{staticClass:"dn",attrs:{id:"doc-title-span"}}),t._v(" "),a("h2",{attrs:{id:"doc-title"}},[t._v(t._s(t.page_title))])]):t._e(),t._v(" "),t.page_id?a("Editormd",{attrs:{content:t.content,type:"html"}}):t._e()],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.show_page_bar&&t.item_info.ItemPermn&&t.item_info.is_archived<1,expression:"show_page_bar && item_info.ItemPermn && item_info.is_archived < 1 "}],staticClass:"page-bar"},[t.page_id?a("PageBar",{attrs:{page_id:t.page_id,item_id:t.item_info.item_id,page_info:t.page_info}}):t._e()],1)],1),t._v(" "),a("BackToTop"),t._v(" "),a("el-dialog",{staticClass:"text-center",attrs:{title:"分享项目",visible:t.dialogVisible,width:"400px",modal:!1},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("p",[t._v("项目地址："),a("code",[t._v(t._s(t.share_item_link))])]),t._v(" "),a("p",{staticStyle:{"border-bottom":"1px solid #eee"}},[a("img",{staticStyle:{width:"114px",height:"114px"},attrs:{id:"",src:t.qr_item_link}})]),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v(t._s(t.$t("confirm")))])],1)]),t._v(" "),a("Footer")],1)},staticRenderFns:[]},it={props:{item_info:""},data:function(){return{menu:"",content:"",page_title:"",page_id:"",dialogVisible:!1,share_item_link:"",qr_item_link:""}},components:{Editormd:z,BackToTop:O},methods:{get_page_content:function(t){var e=this,a=DocConfig.server+"/api/page/info";t||(t=e.page_id);var i=new URLSearchParams;i.append("page_id",t),e.axios.post(a,i).then(function(t){0===t.data.error_code?(e.content=t.data.data.page_content,e.page_title=t.data.data.page_title):e.$alert(t.data.error_message)}).catch(function(t){console.log(t)})},edit_page:function(){var t=this.page_id>0?this.page_id:0,e="/page/edit/"+this.item_info.item_id+"/"+t;this.$router.push({path:e})},share_item:function(){this.share_item_link=this.getRootPath()+"#/"+this.item_info.item_id,this.qr_item_link=DocConfig.server+"/api/common/qrcode&size=3&url="+encodeURIComponent(this.share_item_link),this.dialogVisible=!0},AdaptToMobile:function(){var t=document.getElementById("doc-container");t.style.width="95%",t.style.padding="5px";document.getElementById("header").style.height="10px"}},mounted:function(){var t=this;this.menu=this.item_info.menu,this.page_id=this.menu.pages.page_id,this.get_page_content(),(this.isMobile()||window.screen.width<1e3)&&this.$nextTick(function(){t.AdaptToMobile()})}},ot={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello grey-bg"},[a("Header"),t._v(" "),a("div",{attrs:{id:"header"}}),t._v(" "),a("div",{staticClass:"container doc-container",attrs:{id:"doc-container"}},[a("div",{staticClass:"doc-title-box"},[a("span",{staticClass:"dn",attrs:{id:"doc-title-span"}}),t._v(" "),a("h2",{attrs:{id:"doc-title"}},[t._v(t._s(t.page_title))]),t._v(" "),a("div",{staticClass:"tool-bar pull-right"},[a("el-button",{attrs:{type:"text"},on:{click:t.share_item}},[t._v(t._s(t.$t("share")))]),t._v(" "),t.item_info.ItemPermn&&t.item_info.is_archived<1?a("el-button",{attrs:{type:"text"},on:{click:t.edit_page}},[t._v(t._s(t.$t("edit")))]):t._e(),t._v("\n                   \n              "),a("el-dropdown",[a("span",{staticClass:"el-dropdown-link"},[t._v("\n                  "+t._s(t.$t("item"))),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t.item_info.ItemPermn?a("router-link",{attrs:{to:"/item/export/"+t.item_info.item_id}},[a("el-dropdown-item",[t._v(t._s(t.$t("export")))])],1):t._e(),t._v(" "),t.item_info.ItemCreator?a("router-link",{attrs:{to:"/item/setting/"+t.item_info.item_id}},[a("el-dropdown-item",[t._v(t._s(t.$t("item_setting")))])],1):t._e(),t._v(" "),a("router-link",{attrs:{to:"/item/index"}},[a("el-dropdown-item",[t._v(t._s(t.$t("goback")))])],1)],1)],1)],1)]),t._v(" "),a("div",{attrs:{id:"doc-body"}},[a("div",{attrs:{id:"page_md_content"}},[t.content?a("Editormd",{attrs:{content:t.content,type:"html"}}):t._e()],1)])]),t._v(" "),a("el-dialog",{staticClass:"text-center",attrs:{title:t.$t("share"),visible:t.dialogVisible,width:"400px",modal:!1},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("p",[t._v(t._s(t.$t("item_address"))+" :  "),a("code",[t._v(t._s(t.share_item_link))])]),t._v(" "),a("p",{staticStyle:{"border-bottom":"1px solid #eee"}},[a("img",{staticStyle:{width:"114px",height:"114px"},attrs:{id:"",src:t.qr_item_link}})]),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v(t._s(t.$t("confirm")))])],1)]),t._v(" "),a("BackToTop"),t._v(" "),a("Footer"),t._v(" "),a("div",{})],1)},staticRenderFns:[]},nt={data:function(){return{item_info:""}},components:{ShowRegularItem:a("VU/8")(et,at,!1,function(t){a("iffx")},"data-v-20f24198",null).exports,ShowSinglePageItem:a("VU/8")(it,ot,!1,function(t){a("at3f")},"data-v-54ee2242",null).exports},methods:{get_item_menu:function(t){t||(t="");var e=this,a=e.$loading(),i=this.$route.params.item_id?this.$route.params.item_id:0,o=this.$route.query.page_id?this.$route.query.page_id:0,n=DocConfig.server+"/api/item/info",s=new URLSearchParams;s.append("item_id",i),s.append("keyword",t),e.keyword||s.append("default_page_id",o),e.axios.post(n,s).then(function(t){if(a.close(),0===t.data.error_code){var n=t.data.data;n.default_page_id<=0&&n.menu.pages[0]&&(n.default_page_id=n.menu.pages[0].page_id),e.item_info=n,document.title=e.item_info.item_name+"--ShowDoc",n.unread_count>0&&e.$message({showClose:!0,duration:1e4,dangerouslyUseHTMLString:!0,message:'<a href="#/notice/index">你有新的未读消息，点击查看</a>'})}else 10307===t.data.error_code||10303===t.data.error_code?e.$router.replace({path:"/item/password/"+i,query:{page_id:o,redirect:e.$router.currentRoute.fullPath}}):e.$alert(t.data.error_message)}),setTimeout(function(){a.close()},2e4)},search_item:function(t){this.item_info="",this.get_item_menu(t)}},mounted:function(){this.get_item_menu()},beforeDestroy:function(){this.$message.closeAll(),document.body.removeAttribute("class","grey-bg"),document.title="ShowDoc"}},st={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"hello"},[e("Header"),this._v(" "),this.item_info&&1==this.item_info.item_type?e("ShowRegularItem",{attrs:{item_info:this.item_info,search_item:this.search_item}}):this._e(),this._v(" "),this.item_info&&2==this.item_info.item_type?e("ShowSinglePageItem",{attrs:{item_info:this.item_info}}):this._e(),this._v(" "),e("Footer")],1)},staticRenderFns:[]},rt=a("VU/8")(nt,st,!1,function(t){a("yP8J")},"data-v-134ea190",null).exports,lt={name:"Login",components:{},data:function(){return{catalogs:[],cat_id:"",export_type:"1",item_id:0}},computed:{computed_catalogs:function(){for(var t=this.catalogs.slice(0),e=[],a=0;a<t.length;a++){e.push(t[a]);var i=t[a].sub;if(i.length>0)for(var o=0;o<i.length;o++){e.push({cat_id:i[o].cat_id,cat_name:t[a].cat_name+" / "+i[o].cat_name});var n=i[o].sub;if(n.length>0)for(var s=0;s<n.length;s++)e.push({cat_id:n[s].cat_id,cat_name:t[a].cat_name+" / "+i[o].cat_name+" / "+n[s].cat_name})}}var r={cat_id:"",cat_name:this.$t("none")};return e.unshift(r),e}},methods:{get_catalog:function(t){var e=this,a=DocConfig.server+"/api/catalog/catListGroup",i=new URLSearchParams;i.append("item_id",t),e.axios.post(a,i).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.catalogs=a}else e.$alert(t.data.error_message)}).catch(function(t){console.log(t)})},onSubmit:function(){1==this.export_type&&(this.cat_id="");var t=DocConfig.server+"/api/export/word&item_id="+this.item_id+"&cat_id="+this.cat_id;window.location.href=t},goback:function(){this.$router.go(-1)}},mounted:function(){this.get_catalog(this.$route.params.item_id),this.item_id=this.$route.params.item_id,document.getElementsByTagName("body")[0].className="grey-bg"},beforeDestroy:function(){document.body.removeAttribute("class","grey-bg")}},ct={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-form",{staticClass:"demo-ruleForm",attrs:{"status-icon":"","label-width":"0px"}},[a("h2"),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-radio",{attrs:{label:"1"},model:{value:t.export_type,callback:function(e){t.export_type=e},expression:"export_type"}},[t._v(t._s(t.$t("export_all")))]),t._v(" "),a("el-radio",{attrs:{label:"2"},model:{value:t.export_type,callback:function(e){t.export_type=e},expression:"export_type"}},[t._v(t._s(t.$t("export_cat")))])],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-select",{staticClass:"cat",attrs:{disabled:!(t.export_type>1),placeholder:t.$t("catalog")},model:{value:t.cat_id,callback:function(e){t.cat_id=e},expression:"cat_id"}},t._l(t.computed_catalogs,function(e){return t.computed_catalogs?a("el-option",{key:e.cat_name,attrs:{label:e.cat_name,value:e.cat_id}}):t._e()}))],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("begin_export")))])],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticClass:"goback-btn ",attrs:{type:"text"},on:{click:t.goback}},[t._v(t._s(t.$t("goback")))])],1)],1)],1)],1),t._v(" "),a("Footer")],1)},staticRenderFns:[]},dt=a("VU/8")(lt,ct,!1,function(t){a("fqbH")},"data-v-1370ea63",null).exports,mt={name:"Login",components:{},data:function(){return{infoForm:{}}},methods:{get_item_info:function(){var t=this,e=DocConfig.server+"/api/item/detail",a=new URLSearchParams;a.append("item_id",t.$route.params.item_id),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.infoForm=a}else t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})},FormSubmit:function(){var t=this,e=DocConfig.server+"/api/item/update",a=new URLSearchParams;a.append("item_id",t.$route.params.item_id),a.append("item_name",this.infoForm.item_name),a.append("item_description",this.infoForm.item_description),a.append("item_domain",this.infoForm.item_domain),a.append("password",this.infoForm.password),t.axios.post(e,a).then(function(e){0===e.data.error_code?t.$message.success(t.$t("modify_success")):t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})}},mounted:function(){this.get_item_info()}},_t={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("el-form",{staticClass:"infoForm",attrs:{"status-icon":"","label-width":"100px"},model:{value:t.infoForm,callback:function(e){t.infoForm=e},expression:"infoForm"}},[a("el-form-item",{attrs:{label:t.$t("item_name")+":"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:""},model:{value:t.infoForm.item_name,callback:function(e){t.$set(t.infoForm,"item_name",e)},expression:"infoForm.item_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("item_description")+":"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:""},model:{value:t.infoForm.item_description,callback:function(e){t.$set(t.infoForm,"item_description",e)},expression:"infoForm.item_description"}})],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("visit_password")+":"}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:t.$t("visit_password_description")},model:{value:t.infoForm.password,callback:function(e){t.$set(t.infoForm,"password",e)},expression:"infoForm.password"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.FormSubmit}},[t._v(t._s(t.$t("submit")))])],1)],1)],1)},staticRenderFns:[]},pt={name:"Login",components:{},data:function(){return{MyForm:{username:"",is_readonly:!1},MyForm2:{team_id:""},members:[],dialogFormVisible:!1,dialogFormTeamVisible:!1,dialogFormTeamMemberVisible:!1,teams:[],teamItems:[],teamItemMembers:[],authorityOptions:[{label:"编辑",value:"1"},{label:"只读",value:"0"}]}},methods:{get_members:function(){var t=this,e=DocConfig.server+"/api/member/getList",a=new URLSearchParams;a.append("item_id",t.$route.params.item_id),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.members=a}else t.$alert(e.data.error_message)})},get_teams:function(){var t=this,e=DocConfig.server+"/api/team/getList",a=new URLSearchParams;t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.teams=a}else t.$alert(e.data.error_message)})},getTeamItem:function(){var t=this,e=DocConfig.server+"/api/teamItem/getList",a=new URLSearchParams;a.append("item_id",t.$route.params.item_id),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.teamItems=a}else t.$alert(e.data.error_message)})},getTeamItemMember:function(t){var e=this;this.dialogFormTeamMemberVisible=!0;var a=DocConfig.server+"/api/teamItemMember/getList",i=new URLSearchParams;i.append("item_id",e.$route.params.item_id),i.append("team_id",t),e.axios.post(a,i).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.teamItemMembers=a}else e.$alert(t.data.error_message)})},MyFormSubmit:function(){var t=this,e=DocConfig.server+"/api/member/save",a=new URLSearchParams;a.append("item_id",t.$route.params.item_id),a.append("username",this.MyForm.username);var i=1;this.MyForm.is_readonly&&(i=0),a.append("member_group_id",i),t.axios.post(e,a).then(function(e){0===e.data.error_code?(t.dialogFormVisible=!1,t.get_members(),t.MyForm.username="",t.MyForm.is_readonly=!1):t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})},addTeam:function(){var t=this,e=DocConfig.server+"/api/teamItem/save",a=new URLSearchParams;a.append("item_id",t.$route.params.item_id),a.append("team_id",this.MyForm2.team_id),t.axios.post(e,a).then(function(e){0===e.data.error_code?(t.dialogFormTeamVisible=!1,t.getTeamItem(),t.MyForm.team_id=""):t.$alert(e.data.error_message)})},delete_member:function(t){var e=this,a=DocConfig.server+"/api/member/delete";this.$confirm(e.$t("confirm_delete")," ",{confirmButtonText:e.$t("confirm"),cancelButtonText:e.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("item_id",e.$route.params.item_id),i.append("item_member_id",t),e.axios.post(a,i).then(function(t){0===t.data.error_code?e.get_members():e.$alert(t.data.error_message)})})},deleteTeam:function(t){var e=this,a=DocConfig.server+"/api/teamItem/delete";this.$confirm(e.$t("confirm_delete")," ",{confirmButtonText:e.$t("confirm"),cancelButtonText:e.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("id",t),e.axios.post(a,i).then(function(t){0===t.data.error_code?e.getTeamItem():e.$alert(t.data.error_message)})})},changeTeamItemMemberGroup:function(t,e){var a=this,i=DocConfig.server+"/api/teamItemMember/save",o=new URLSearchParams;o.append("member_group_id",t),o.append("id",e),a.axios.post(i,o).then(function(t){0===t.data.error_code?a.$message("权限保存成功"):a.$alert(t.data.error_message)})}},mounted:function(){this.get_members(),this.get_teams(),this.getTeamItem()}},ut={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("el-button",{staticClass:"add-member",attrs:{type:"text"},on:{click:function(e){t.dialogFormVisible=!0}}},[t._v(t._s(t.$t("add_member")))]),t._v(" "),a("el-button",{staticClass:"add-member",attrs:{type:"text"},on:{click:function(e){t.dialogFormTeamVisible=!0}}},[t._v(t._s(t.$t("add_team")))]),t._v(" "),t.members.length>0?a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left",data:t.members,height:"200"}},[a("el-table-column",{attrs:{prop:"username",label:t.$t("member_username"),width:"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time"),width:"160"}}),t._v(" "),a("el-table-column",{attrs:{prop:"member_group",label:t.$t("authority")}}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.delete_member(e.row.item_member_id)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1):t._e(),t._v(" "),t.teamItems.length>0?a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left",data:t.teamItems,height:"200"}},[a("el-table-column",{attrs:{prop:"team_name",label:"团队名"}}),t._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time")}}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.getTeamItemMember(e.row.team_id)}}},[t._v(t._s(t.$t("member_authority")))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.deleteTeam(e.row.id)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1):t._e(),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogFormVisible,modal:!1,top:"10vh"},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:t.$t("input_target_member")},model:{value:t.MyForm.username,callback:function(e){t.$set(t.MyForm,"username",e)},expression:"MyForm.username"}})],1),t._v(" "),a("el-form-item",{staticClass:"readonly-checkbox",attrs:{label:""}},[a("el-checkbox",{model:{value:t.MyForm.is_readonly,callback:function(e){t.$set(t.MyForm,"is_readonly",e)},expression:"MyForm.is_readonly"}},[t._v(t._s(t.$t("readonly")))])],1)],1),t._v(" "),a("p",{staticClass:"tips"},[t._v("\n        "+t._s(t.$t("member_authority_tips"))+"\n      ")]),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.MyFormSubmit}},[t._v(t._s(t.$t("confirm")))])],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogFormTeamVisible,modal:!1,top:"10vh"},on:{"update:visible":function(e){t.dialogFormTeamVisible=e}}},[a("el-form",[a("el-form-item",{attrs:{label:"选择团队"}},[a("el-select",{model:{value:t.MyForm2.team_id,callback:function(e){t.$set(t.MyForm2,"team_id",e)},expression:"MyForm2.team_id"}},t._l(t.teams,function(t){return a("el-option",{key:t.team_name,attrs:{label:t.team_name,value:t.id}})}))],1),t._v(" "),a("router-link",{attrs:{to:"/team/index",target:"_blank"}},[t._v(t._s(t.$t("go_to_new_an_team")))])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormTeamVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.addTeam}},[t._v(t._s(t.$t("confirm")))])],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogFormTeamMemberVisible,modal:!1,top:"10vh",title:t.$t("adjust_member_authority"),width:"90%"},on:{"update:visible":function(e){t.dialogFormTeamMemberVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left","empty-text":t.$t("team_member_empty_tips"),data:t.teamItemMembers}},[a("el-table-column",{attrs:{prop:"member_username",label:t.$t("username")}}),t._v(" "),a("el-table-column",{attrs:{prop:"member_group_id",label:t.$t("authority"),width:"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini",placeholder:t.$t("please_choose")},on:{change:function(a){t.changeTeamItemMemberGroup(a,e.row.id)}},model:{value:e.row.member_group_id,callback:function(a){t.$set(e.row,"member_group_id",a)},expression:"scope.row.member_group_id"}},t._l(t.authorityOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time")}})],1),t._v(" "),a("br"),t._v(" "),a("p",{staticClass:"tips"},[t._v("\n        "+t._s(t.$t("team_member_authority_tips"))+"\n      ")]),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormTeamMemberVisible=!1}}},[t._v(t._s(t.$t("close")))])],1)],1)],1)},staticRenderFns:[]},ft={name:"Login",components:{},data:function(){return{dialogAttornVisible:!1,dialogArchiveVisible:!1,dialogDeleteVisible:!1,attornForm:{username:"",password:""},archiveForm:{password:""},deleteForm:{password:""}}},methods:{deleteItem:function(){var t=this,e=DocConfig.server+"/api/item/delete",a=new URLSearchParams;a.append("item_id",t.$route.params.item_id),a.append("password",this.deleteForm.password),t.axios.post(e,a).then(function(e){0===e.data.error_code?(t.dialogDeleteVisible=!1,t.$message.success(t.$t("success_jump")),setTimeout(function(){t.$router.push({path:"/item/index"})},2e3)):t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})},archive:function(){var t=this,e=DocConfig.server+"/api/item/archive",a=new URLSearchParams;a.append("item_id",t.$route.params.item_id),a.append("password",this.archiveForm.password),t.axios.post(e,a).then(function(e){0===e.data.error_code?(t.dialogArchiveVisible=!1,t.$message.success(t.$t("success_jump")),setTimeout(function(){t.$router.push({path:"/item/index"})},2e3)):t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})},attorn:function(){var t=this,e=DocConfig.server+"/api/item/attorn",a=new URLSearchParams;a.append("item_id",t.$route.params.item_id),a.append("username",this.attornForm.username),a.append("password",this.attornForm.password),t.axios.post(e,a).then(function(e){0===e.data.error_code?(t.dialogAttornVisible=!1,t.$message.success(t.$t("success_jump")),setTimeout(function(){t.$router.push({path:"/item/index"})},2e3)):t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})}},mounted:function(){}},ht={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("p",[a("el-tooltip",{attrs:{content:t.$t("attorn_tips"),placement:"top-start"}},[a("el-button",{staticClass:"a_button",on:{click:function(e){t.dialogAttornVisible=!0}}},[t._v(t._s(t.$t("attorn")))])],1)],1),t._v(" "),a("p",[a("el-tooltip",{attrs:{content:t.$t("archive_tips"),placement:"top-start"}},[a("el-button",{staticClass:"a_button",on:{click:function(e){t.dialogArchiveVisible=!0}}},[t._v(t._s(t.$t("archive")))])],1)],1),t._v(" "),a("p",[a("el-tooltip",{attrs:{content:t.$t("delete_tips"),placement:"top-start"}},[a("el-button",{staticClass:"a_button",on:{click:function(e){t.dialogDeleteVisible=!0}}},[t._v(t._s(t.$t("delete")))])],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogAttornVisible,modal:!1},on:{"update:visible":function(e){t.dialogAttornVisible=e}}},[a("el-form",[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:t.$t("attorn_username")},model:{value:t.attornForm.username,callback:function(e){t.$set(t.attornForm,"username",e)},expression:"attornForm.username"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password",placeholder:t.$t("input_login_password")},model:{value:t.attornForm.password,callback:function(e){t.$set(t.attornForm,"password",e)},expression:"attornForm.password"}})],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogAttornVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.attorn}},[t._v(t._s(t.$t("attorn")))])],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogArchiveVisible,modal:!1},on:{"update:visible":function(e){t.dialogArchiveVisible=e}}},[a("el-form",[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password",placeholder:t.$t("input_login_password")},model:{value:t.archiveForm.password,callback:function(e){t.$set(t.archiveForm,"password",e)},expression:"archiveForm.password"}})],1)],1),t._v(" "),a("p",{staticClass:"tips"},[t._v("\n      "+t._s(t.$t("archive_tips2"))+"\n\n    ")]),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogArchiveVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.archive}},[t._v(t._s(t.$t("archive")))])],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogDeleteVisible,modal:!1},on:{"update:visible":function(e){t.dialogDeleteVisible=e}}},[a("el-form",[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password",placeholder:t.$t("input_login_password")},model:{value:t.deleteForm.password,callback:function(e){t.$set(t.deleteForm,"password",e)},expression:"deleteForm.password"}},[t._v(">")])],1)],1),t._v(" "),a("p",{staticClass:"tips"},[a("el-tag",{attrs:{type:"danger"}},[t._v(t._s(t.$t("delete_tips")))])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogDeleteVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.deleteItem}},[t._v(t._s(t.$t("delete")))])],1)],1)],1)},staticRenderFns:[]},gt={name:"Login",components:{},data:function(){return{api_key:"",api_token:""}},methods:{get_key_info:function(){var t=this,e=DocConfig.server+"/api/item/getKey",a=new URLSearchParams;a.append("item_id",t.$route.params.item_id),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.api_key=a.api_key,t.api_token=a.api_token}else t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})},resetKey:function(){var t=this,e=DocConfig.server+"/api/item/resetKey",a=new URLSearchParams;a.append("item_id",t.$route.params.item_id),t.axios.post(e,a).then(function(e){0===e.data.error_code?t.get_key_info():t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})}},mounted:function(){this.get_key_info()}},vt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("el-form",{staticClass:"infoForm",attrs:{"status-icon":"","label-width":"100px"}},[a("el-form-item",{attrs:{label:"api_key："}},[a("el-input",{attrs:{type:"text","auto-complete":"off",readonly:!0,placeholder:""},model:{value:t.api_key,callback:function(e){t.api_key=e},expression:"api_key"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"api_token"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",readonly:!0,placeholder:""},model:{value:t.api_token,callback:function(e){t.api_token=e},expression:"api_token"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.resetKey}},[t._v(t._s(t.$t("reset_token")))])],1)],1),t._v(" "),a("p",[a("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips1"))}})]),t._v(" "),a("p",[a("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips2"))}})]),t._v(" "),a("p",[a("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips3"))}})]),t._v(" "),a("p",[a("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips4"))}})])],1)},staticRenderFns:[]},bt={name:"Login",components:{Info:a("VU/8")(mt,_t,!1,function(t){a("fT1U")},"data-v-032ae442",null).exports,Member:a("VU/8")(pt,ut,!1,function(t){a("fQLA")},"data-v-847943c4",null).exports,Advanced:a("VU/8")(ft,ht,!1,function(t){a("pt6I")},"data-v-4d191ec0",null).exports,OpenApi:a("VU/8")(gt,vt,!1,function(t){a("Fadd")},"data-v-724b0c0c",null).exports},data:function(){return{userInfo:{}}},methods:{get_item_info:function(){var t=this,e=DocConfig.server+"/api/item/detail",a=new URLSearchParams;a.append("item_id",t.$route.params.item_id),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.infoForm=a}else t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})},goback:function(){this.$router.go(-1)}},mounted:function(){},beforeCreate:function(){document.getElementsByTagName("body")[0].className="grey-bg"},beforeDestroy:function(){document.body.removeAttribute("class","grey-bg")}},wt={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"hello"},[e("Header"),this._v(" "),e("el-container",[e("el-card",{staticClass:"center-card"},[[e("el-button",{staticClass:"goback-btn ",attrs:{type:"text"},on:{click:this.goback}},[this._v(this._s(this.$t("goback")))]),this._v(" "),e("el-tabs",{attrs:{value:"first",type:"card"}},[e("el-tab-pane",{attrs:{label:this.$t("base_info"),name:"first"}},[e("Info")],1),this._v(" "),e("el-tab-pane",{attrs:{label:this.$t("member_manage"),name:"second"}},[e("Member")],1),this._v(" "),e("el-tab-pane",{attrs:{label:this.$t("advance_setting"),name:"third"}},[e("Advanced")],1),this._v(" "),e("el-tab-pane",{attrs:{label:this.$t("open_api"),name:"four"}},[e("OpenApi")],1)],1)]],2)],1),this._v(" "),e("Footer")],1)},staticRenderFns:[]},yt=a("VU/8")(bt,wt,!1,function(t){a("sHs6")},"data-v-10cb1537",null).exports,$t={data:function(){return{currentDate:new Date,itemList:{},content:"",page_title:""}},components:{Editormd:z,BackToTop:O},methods:{get_page_content:function(){var t=this,e=t.$route.params.page_id,a=DocConfig.server+"/api/page/info",i=new URLSearchParams;i.append("page_id",e),t.axios.post(a,i).then(function(a){0===a.data.error_code?(t.content=a.data.data.page_content,t.page_title=a.data.data.page_title):10307===a.data.error_code||10303===a.data.error_code?t.$router.replace({path:"/item/password/0",query:{page_id:e,redirect:t.$router.currentRoute.fullPath}}):t.$alert(a.data.error_message)})},AdaptToMobile:function(){var t=document.getElementById("doc-container");t.style.width="95%",t.style.padding="5px";document.getElementById("header").style.height="10px"}},mounted:function(){var t=this;this.get_page_content(),(this.isMobile()||window.screen.width<1e3)&&this.$nextTick(function(){t.AdaptToMobile()}),document.getElementsByTagName("body")[0].className="grey-bg"},beforeDestroy:function(){document.body.removeAttribute("class","grey-bg")}},kt={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"hello"},[e("Header"),this._v(" "),e("div",{attrs:{id:"header"}}),this._v(" "),e("div",{staticClass:"container doc-container",attrs:{id:"doc-container"}},[e("div",{staticClass:"doc-title-box"},[e("span",{staticClass:"dn",attrs:{id:"doc-title-span"}}),this._v(" "),e("h2",{attrs:{id:"doc-title"}},[this._v(this._s(this.page_title))])]),this._v(" "),e("div",{attrs:{id:"doc-body"}},[e("div",{attrs:{id:"page_md_content"}},[this.content?e("Editormd",{attrs:{content:this.content,type:"html"}}):this._e()],1)])]),this._v(" "),e("BackToTop"),this._v(" "),e("Footer"),this._v(" "),e("div",{})],1)},staticRenderFns:[]},xt=a("VU/8")($t,kt,!1,function(t){a("NQWO")},"data-v-49ae5810",null).exports,Ct=a("pFYg"),Ft=a.n(Ct),St={name:"JsonToTable",props:{formLabelWidth:"120px",callback:""},data:function(){return{content:"",json_table_data:"",dialogFormVisible:!1}},methods:{transform:function(){try{var t=JSON.parse(this.content);this.json_table_data="|参数|类型|描述|\n|:-------|:-------|:-------|\n",this.Change(t),this.callback(this.json_table_data)}catch(t){this.$alert("Json解析失败")}this.dialogFormVisible=!1},Change:function(t){var e="- ";if(arguments.length>1){var a;a=arguments[1]>0?arguments[1]:1;for(var i=0;i<a;i++)e+="- "}for(var o in t){var n=t[o],s=void 0===n?"undefined":Ft()(n);if("object"==s){if(this.json_table_data+="| "+e+o+" |"+s+"  | 无 |\n",n instanceof Array){var r=a+1;this.Change(n[0],r);continue}this.Change(n,a)}else this.json_table_data+="| "+o+" | "+s+"| 无 |\n"}}}},Tt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-dialog",{attrs:{title:t.$t("json_to_table"),visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",[a("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:t.$t("json_to_table_description"),rows:10},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.transform}},[t._v(t._s(t.$t("confirm")))])],1)],1)],1)},staticRenderFns:[]},Lt=a("VU/8")(St,Tt,!1,function(t){a("QxI5")},"data-v-309d9613",null).exports,Vt=a("mvHQ"),Dt=a.n(Vt),Pt={name:"JsonBeautify",props:{formLabelWidth:"120px",callback:""},data:function(){return{content:"",json_table_data:"",dialogFormVisible:!1}},methods:{transform:function(){var t=this.content;try{var e="\n ``` \n "+Dt()(JSON.parse(t),null,2)+" \n\n ```\n\n";this.callback(e)}catch(e){this.callback(t)}this.dialogFormVisible=!1}}},Mt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-dialog",{attrs:{title:t.$t("beautify_json"),visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",[a("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:t.$t("beautify_json_description"),rows:10},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.transform}},[t._v(t._s(t.$t("confirm")))])],1)],1)],1)},staticRenderFns:[]},Ut={props:{callback:""},data:function(){return{currentDate:new Date,content:[],dialogTableVisible:!1}},components:{},methods:{get_content:function(){var t=this,e=DocConfig.server+"/api/template/getList",a=new URLSearchParams;t.axios.post(e,a).then(function(e){if(0===e.data.error_code){e.data.data.length>0?(t.content=e.data.data,t.dialogTableVisible=!0):(t.dialogTableVisible=!1,t.$alert(t.$t("no_templ_text")))}else t.dialogTableVisible=!1,t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})},show:function(){this.get_content()},insertTemplate:function(t){this.callback(t.template_content),this.dialogTableVisible=!1},deleteTemplate:function(t){var e=t.id,a=this,i=DocConfig.server+"/api/template/delete",o=new URLSearchParams;o.append("id",e),a.axios.post(i,o).then(function(t){0===t.data.error_code?a.get_content():a.$alert(t.data.error_message)}).catch(function(t){console.log(t)})}},mounted:function(){}},It={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",{staticClass:"container-narrow"},[a("el-dialog",{attrs:{title:t.$t("templ_list"),visible:t.dialogTableVisible},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[a("el-table",{attrs:{data:t.content}},[a("el-table-column",{attrs:{property:"addtime",label:t.$t("save_time"),width:"170"}}),t._v(" "),a("el-table-column",{attrs:{property:"template_title",label:t.$t("templ_title")}}),t._v(" "),a("el-table-column",{attrs:{label:t.$t("operation"),width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.insertTemplate(e.row)}}},[t._v(t._s(t.$t("insert_templ")))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.deleteTemplate(e.row)}}},[t._v(t._s(t.$t("delete_templ")))])]}}])})],1)],1)],1),t._v(" "),a("Footer"),t._v(" "),a("div",{})],1)},staticRenderFns:[]},Rt={data:function(){return{currentDate:new Date,itemList:{},content:"",title:"",item_id:0,cat_id:"",s_number:"",page_id:"",copy_page_id:""}},computed:{belong_to_catalogs:function(){for(var t=this.catalogs.slice(0),e=[],a=0;a<t.length;a++){e.push(t[a]);var i=t[a].sub;if(i.length>0)for(var o=0;o<i.length;o++){e.push({cat_id:i[o].cat_id,cat_name:t[a].cat_name+" / "+i[o].cat_name});var n=i[o].sub;if(n.length>0)for(var s=0;s<n.length;s++)e.push({cat_id:n[s].cat_id,cat_name:t[a].cat_name+" / "+i[o].cat_name+" / "+n[s].cat_name})}}var r={cat_id:"",cat_name:this.$t("none")};return e.unshift(r),e}},components:{Editormd:z,JsonToTable:Lt,JsonBeautify:a("VU/8")(Pt,Mt,!1,function(t){a("2bWO")},"data-v-4fa5100a",null).exports,TemplateList:a("VU/8")(Ut,It,!1,function(t){a("W05L")},null,null).exports,HistoryVersion:Z},methods:{get_page_content:function(t){if(!t)t=this.page_id;var e=this,a=DocConfig.server+"/api/page/info",i=new URLSearchParams;i.append("page_id",t),e.axios.post(a,i).then(function(t){0===t.data.error_code?(e.content=t.data.data.page_content,setTimeout(function(){e.insertValue(e.content,1)},500),setTimeout(function(){e.content.length>3e3?e.editor_unwatch():e.editor_watch()},1e3),e.title=t.data.data.page_title,e.item_id=t.data.data.item_id,e.s_number=t.data.data.s_number):e.$alert(t.data.error_message)}).catch(function(t){console.log(t)})},get_catalog:function(t){var e=this,a=DocConfig.server+"/api/catalog/catListGroup",i=new URLSearchParams;i.append("item_id",t),e.axios.post(a,i).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.catalogs=a,e.get_default_cat()}else e.$alert(t.data.error_message)}).catch(function(t){console.log(t)})},get_default_cat:function(){var t=this,e=DocConfig.server+"/api/catalog/getDefaultCat",a=new URLSearchParams;a.append("page_id",this.page_id),a.append("item_id",t.$route.params.item_id),a.append("copy_page_id",this.copy_page_id),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.cat_id=a.default_cat_id}else t.$alert(e.data.error_message)})},insertValue:function(t,e){if(t){var a=this.$refs.Editormd;e&&a.clear(),a.insertValue(t)}},insert_api_template:function(){this.insertValue(this.$refs.api_doc_templ.innerHTML)},insert_database_template:function(){this.insertValue(this.$refs.database_doc_templ.innerHTML)},editor_unwatch:function(){this.$refs.Editormd.editor_unwatch(),sessionStorage.getItem("page_id_unwatch_"+this.page_id)||(this.$alert("检测到本页面内容比较多，showdoc暂时关闭了html实时预览功能，以防止过多内容造成页面卡顿。你可以在编辑栏中找到预览按钮进行手动打开。"),sessionStorage.setItem("page_id_unwatch_"+this.page_id,1))},editor_watch:function(){this.$refs.Editormd.editor_watch()},ShowJsonToTable:function(){this.$refs.JsonToTable.dialogFormVisible=!0},ShowJsonBeautify:function(){this.$refs.JsonBeautify.dialogFormVisible=!0},ShowRunApi:function(){window.open("http://runapi.showdoc.cc/")},ShowTemplateList:function(){this.$refs.TemplateList.show()},ShowHistoryVersion:function(){this.$refs.HistoryVersion.show()},save:function(){var t=this,e=t.$loading(),a=this.$refs.Editormd.getMarkdown(),i=this.cat_id,o=t.$route.params.item_id,n=t.$route.params.page_id,s=DocConfig.server+"/api/page/save",r=new URLSearchParams;r.append("page_id",n),r.append("item_id",o),r.append("s_number",t.s_number),r.append("page_title",t.title),r.append("page_content",encodeURIComponent(a)),r.append("is_urlencode",1),r.append("cat_id",i),t.axios.post(s,r).then(function(a){e.close(),0===a.data.error_code?(t.$message({showClose:!0,message:t.$t("save_success"),type:"success"}),localStorage.removeItem("page_content"),n<=0&&t.$router.push({path:"/page/edit/"+o+"/"+a.data.data.page_id})):t.$alert(a.data.error_message)}),setTimeout(function(){e.close()},2e4)},goback:function(){localStorage.removeItem("page_content");var t="/"+this.$route.params.item_id;this.$router.push({path:t,query:{page_id:this.$route.params.page_id}})},dropdown_callback:function(t){t&&t()},save_to_template:function(){var t=this,e=this.$refs.Editormd.getMarkdown();this.$prompt(t.$t("save_templ_title")," ",{}).then(function(a){var i=DocConfig.server+"/api/template/save",o=new URLSearchParams;o.append("template_title",a.value),o.append("template_content",e),t.axios.post(i,o).then(function(e){0===e.data.error_code?t.$alert(t.$t("save_templ_text")):t.$alert(e.data.error_message)})})},upload_paste_img:function(t){for(var e=this,a=DocConfig.server+"/api/page/uploadImg",i=t.clipboardData,o=0,n=i.items.length;o<n;o++)if("file"==i.items[o].kind||i.items[o].type.indexOf("image")>-1){var s=i.items[o].getAsFile(),r=new FormData;r.append("t","ajax-uploadpic"),r.append("editormd-image-file",s);var l="",c=function(t,a){switch(t=t||"before"){case"before":l=e.$loading();break;case"error":l.close(),e.$alert("图片上传失败");break;case"success":if(l.close(),1==a.success){var i="![]("+a.url+")";e.insertValue(i)}else e.$alert(a.message)}};$.ajax({url:a,type:"POST",dataType:"json",data:r,processData:!1,contentType:!1,beforeSend:function(){c("before")},error:function(){c("error")},success:function(t){c("success",t)}}),t.preventDefault()}}},mounted:function(){this.page_id=this.$route.params.page_id,this.copy_page_id=this.$route.query.copy_page_id?this.$route.query.copy_page_id:"",this.copy_page_id>0?this.get_page_content(this.copy_page_id):this.page_id>0?this.get_page_content(this.page_id):(this.item_id=this.$route.params.item_id,this.content=this.$t("welcome_use_showdoc")),this.get_catalog(this.$route.params.item_id),document.addEventListener("paste",this.upload_paste_img)},beforeDestroy:function(){document.removeEventListener("paste",this.upload_paste_img)}},At={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello",on:{keydown:[function(e){return("button"in e||83===e.keyCode)&&e.ctrlKey?(e.preventDefault(),void t.save(e)):null},function(e){return("button"in e||83===e.keyCode)&&e.metaKey?(e.preventDefault(),void t.save(e)):null}]}},[a("Header"),t._v(" "),a("el-container",{staticClass:"container-narrow"},[a("el-row",{staticClass:"masthead"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,size:"small"}},[a("el-form-item",{attrs:{label:t.$t("title")+" : "}},[a("el-input",{attrs:{placeholder:""},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("catalog")+" : "}},[a("el-select",{staticClass:"cat",attrs:{placeholder:t.$t("optional")},model:{value:t.cat_id,callback:function(e){t.cat_id=e},expression:"cat_id"}},t._l(t.belong_to_catalogs,function(e){return t.belong_to_catalogs?a("el-option",{key:e.cat_name,attrs:{label:e.cat_name,value:e.cat_id}}):t._e()}))],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("s_number")+" : "}},[a("el-input",{staticClass:"num",attrs:{placeholder:t.$t("optional")},model:{value:t.s_number,callback:function(e){t.s_number=e},expression:"s_number"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"text"},on:{click:t.ShowHistoryVersion}},[t._v(t._s(t.$t("history_version")))])],1),t._v(" "),a("el-form-item",{staticClass:"pull-right"},[a("el-dropdown",{attrs:{"split-button":"",type:"primary",size:"medium",trigger:"click"},on:{command:t.dropdown_callback,click:t.save}},[t._v("\n                "+t._s(t.$t("save"))+"\n                "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:t.save_to_template}},[t._v(t._s(t.$t("save_to_templ")))])],1)],1),t._v(" "),a("el-button",{attrs:{type:"",size:"medium"},on:{click:t.goback}},[t._v(t._s(t.$t("goback")))])],1)],1),t._v(" "),a("el-row",{staticClass:"fun-btn-group"},[a("el-button",{attrs:{type:"",size:"medium"},on:{click:t.insert_api_template}},[t._v(t._s(t.$t("insert_apidoc_template")))]),t._v(" "),a("el-button",{attrs:{type:"",size:"medium"},on:{click:t.insert_database_template}},[t._v(t._s(t.$t("insert_database_doc_template")))]),t._v(" "),a("el-button",{attrs:{type:"",size:"medium"},nativeOn:{click:function(e){t.ShowTemplateList(e)}}},[t._v(t._s(t.$t("more_templ")))]),t._v(" "),a("el-dropdown",{staticStyle:{"margin-left":"100px"},attrs:{"split-button":"",type:"",size:"medium",trigger:"hover"}},[t._v("\n              "+t._s(t.$t("json_tools"))+"\n              "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){t.ShowJsonToTable(e)}}},[t._v(t._s(t.$t("json_to_table")))]),t._v(" "),a("el-dropdown-item",{nativeOn:{click:function(e){t.ShowJsonBeautify(e)}}},[t._v(t._s(t.$t("beautify_json")))])],1)],1),t._v(" "),a("el-button",{attrs:{type:"",size:"medium"},on:{click:t.ShowRunApi}},[t._v(t._s(t.$t("http_test_api")))])],1),t._v(" "),t.content?a("Editormd",{ref:"Editormd",attrs:{content:t.content,type:"editor"}}):t._e()],1),t._v(" "),a("TemplateList",{ref:"TemplateList",attrs:{callback:t.insertValue}}),t._v(" "),a("HistoryVersion",{ref:"HistoryVersion",attrs:{callback:t.insertValue,is_show_recover_btn:!0}}),t._v(" "),a("JsonToTable",{ref:"JsonToTable",attrs:{callback:t.insertValue}}),t._v(" "),a("JsonBeautify",{ref:"JsonBeautify",attrs:{callback:t.insertValue}})],1),t._v(" "),a("Footer"),t._v(" "),a("div",{}),t._v(" "),a("div",{ref:"api_doc_templ",staticStyle:{display:"none"},attrs:{id:"api-doc-templ"}},[t._v('\n    \n**简要描述：** \n\n- 用户注册接口\n\n**请求URL：** \n- ` http://xx.com/api/user/register `\n  \n**请求方式：**\n- POST \n\n**参数：** \n\n|参数名|必选|类型|说明|\n|:----    |:---|:----- |-----   |\n|username |是  |string |用户名   |\n|password |是  |string | 密码    |\n|name     |否  |string | 昵称    |\n\n **返回示例**\n\n``` \n  {\n    "error_code": 0,\n    "data": {\n      "uid": "1",\n      "username": "12154545",\n      "name": "吴系挂",\n      "groupid": 2 ,\n      "reg_time": "1436864169",\n      "last_login_time": "0",\n    }\n  }\n```\n\n **返回参数说明** \n\n|参数名|类型|说明|\n|:-----  |:-----|-----                           |\n|groupid |int   |用户组id，1：超级管理员；2：普通用户  |\n\n **备注** \n\n- 更多返回错误代码请看首页的错误代码描述\n\n\n')]),t._v(" "),a("div",{ref:"database_doc_templ",staticStyle:{display:"none"},attrs:{id:"database-doc-templ"}},[t._v("\n    \n-  用户表，储存用户信息\n\n|字段|类型|空|默认|注释|\n|:----    |:-------    |:--- |-- -|------      |\n|uid    |int(10)     |否 |  |             |\n|username |varchar(20) |否 |    |   用户名  |\n|password |varchar(50) |否   |    |   密码    |\n|name     |varchar(15) |是   |    |    昵称     |\n|reg_time |int(11)     |否   | 0  |   注册时间  |\n\n- 备注：无\n\n\n")])],1)},staticRenderFns:[]},Et=a("VU/8")(Rt,At,!1,function(t){a("TmJj")},"data-v-f83e598c",null).exports;if("undefined"!=typeof window)var jt=a("zhAq");var Ht={props:{callback:""},data:function(){return{content:"",historyContent:""}},components:{},methods:{get_content:function(){var t=this,e=DocConfig.server+"/api/page/diff",a=new URLSearchParams;a.append("page_id",t.$route.params.page_id),a.append("page_history_id",t.$route.params.page_history_id),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.content=a.page.page_content,t.historyContent=a.history_page.page_content,t.$nextTick(function(){t.diffUsingJS(0)})}else t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})},diffUsingJS:function(t){var e=function(t){return document.getElementById(t)},a=difflib.stringAsLines(e("baseText").value),i=difflib.stringAsLines(e("newText").value),o=new difflib.SequenceMatcher(a,i).get_opcodes(),n=e("diffoutput");n.innerHTML="",n.appendChild(diffview.buildView({baseTextLines:a,newTextLines:i,opcodes:o,baseTextName:this.$t("cur_page_content"),newTextName:this.$t("history_version"),viewType:t}))}},mounted:function(){var t=this;jt(["static/diff/difflib.js","static/diff/diffview.js"],function(){t.get_content()})}},Bt={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"hello"},[e("Header"),this._v(" "),e("link",{attrs:{href:"static/diff/diffview.css",rel:"stylesheet"}}),this._v(" "),e("el-container",{staticClass:"container-narrow"},[e("div",{staticClass:"textInput"},[e("textarea",{staticStyle:{display:"none"},attrs:{id:"baseText"},domProps:{innerHTML:this._s(this.content)}})]),this._v(" "),e("div",{staticClass:"textInput spacer"},[e("textarea",{staticStyle:{display:"none"},attrs:{id:"newText"},domProps:{innerHTML:this._s(this.historyContent)}})]),this._v(" "),e("div",{attrs:{id:"diffoutput"}})]),this._v(" "),e("Footer"),this._v(" "),e("div",{})],1)},staticRenderFns:[]},qt=a("VU/8")(Ht,Bt,!1,function(t){a("ohLl")},"data-v-5bd2b640",null).exports,zt={name:"Login",components:{},data:function(){return{MyForm:{cat_id:0,parent_cat_id:"",cat_name:"",s_number:""},catalogs:[],catalogs_level_2:[],dialogFormVisible:!1}},computed:{catalogs_table:function(){for(var t=this.catalogs.slice(0),e=[],a=0;a<t.length;a++){t[a].cat_name=t[a].cat_name,e.push(t[a]);var i=t[a].sub;if(i.length>0)for(var o=0;o<i.length;o++){e.push({cat_id:i[o].cat_id,parent_cat_id:i[o].parent_cat_id,s_number:i[o].s_number,cat_name:" -- "+i[o].cat_name});for(var n=i[o].sub,s=0;s<n.length;s++)e.push({cat_id:n[s].cat_id,s_number:n[s].s_number,parent_cat_id:n[s].parent_cat_id,cat_name:" ----- "+n[s].cat_name})}}return e},parent_catalogs:function(){for(var t=this.catalogs.slice(0),e=[],a=0;a<t.length;a++){e.push(t[a]);var i=t[a].sub;if(i.length>0)for(var o=0;o<i.length;o++)e.push({cat_id:i[o].cat_id,cat_name:t[a].cat_name+" / "+i[o].cat_name})}var n={cat_id:0,cat_name:this.$t("none")};return e.push(n),e}},methods:{tableRowClassName:function(t){var e=t.row;t.rowIndex;return"2"==e.level?"success-row":""},get_catalog:function(){var t=this,e=DocConfig.server+"/api/catalog/catListGroup",a=new URLSearchParams;a.append("item_id",t.$route.params.item_id),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.catalogs=a}else t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})},MyFormSubmit:function(){var t=this,e=DocConfig.server+"/api/catalog/save",a=new URLSearchParams;a.append("item_id",t.$route.params.item_id),a.append("cat_id",this.MyForm.cat_id),a.append("parent_cat_id",this.MyForm.parent_cat_id),a.append("cat_name",this.MyForm.cat_name),a.append("s_number",this.MyForm.s_number),t.axios.post(e,a).then(function(e){0===e.data.error_code?(t.dialogFormVisible=!1,t.get_catalog(),t.MyForm=[]):t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})},edit:function(t){var e={};(e=JSON.parse(Dt()(t))).cat_name&&(e.cat_name=e.cat_name.replace(" -- ",""),e.cat_name=e.cat_name.replace(" ----- ","")),"0"==e.parent_cat_id&&(e.parent_cat_id=""),this.MyForm=e,this.dialogFormVisible=!0},delete_cat:function(t){var e=this,a=DocConfig.server+"/api/catalog/delete";this.$confirm(e.$t("confirm_delete")," ",{confirmButtonText:e.$t("confirm"),cancelButtonText:e.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("item_id",e.$route.params.item_id),i.append("cat_id",t),e.axios.post(a,i).then(function(t){0===t.data.error_code?e.get_catalog():e.$alert(t.data.error_message)})})},add_cat:function(){this.MyForm=[],this.dialogFormVisible=!0},goback:function(){var t="/"+this.$route.params.item_id;this.$router.push({path:t})}},mounted:function(){this.get_catalog()}},Jt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-button",{staticClass:"add-cat",attrs:{type:"text"},on:{click:t.add_cat}},[t._v(t._s(t.$t("add_cat")))]),t._v(" "),a("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:t.goback}},[t._v(t._s(t.$t("goback")))]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left",data:t.catalogs_table,height:"400","row-class-name":t.tableRowClassName}},[a("el-table-column",{attrs:{prop:"cat_name",label:t.$t("cat_name"),width:"160"}}),t._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time"),width:"160"}}),t._v(" "),a("el-table-column",{attrs:{prop:"s_number",label:t.$t("s_number")}}),t._v(" "),a("el-table-column",{attrs:{prop:"",width:"110",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.edit(e.row)}}},[t._v(t._s(t.$t("edit")))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.delete_cat(e.row.cat_id)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogFormVisible,width:"300px"},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",[a("el-form-item",{attrs:{label:t.$t("cat_name")+" : "}},[a("el-input",{attrs:{placeholder:t.$t("input_cat_name")},model:{value:t.MyForm.cat_name,callback:function(e){t.$set(t.MyForm,"cat_name",e)},expression:"MyForm.cat_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("parent_cat_name")+" : "}},[a("el-select",{attrs:{placeholder:t.$t("none")},model:{value:t.MyForm.parent_cat_id,callback:function(e){t.$set(t.MyForm,"parent_cat_id",e)},expression:"MyForm.parent_cat_id"}},t._l(t.parent_catalogs,function(t){return a("el-option",{key:t.cat_id,attrs:{label:t.cat_name,value:t.cat_id}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("s_number")}},[a("el-input",{attrs:{placeholder:t.$t("s_number_explain")},model:{value:t.MyForm.s_number,callback:function(e){t.$set(t.MyForm,"s_number",e)},expression:"MyForm.s_number"}})],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.MyFormSubmit}},[t._v(t._s(t.$t("confirm")))])],1)],1)],1),t._v(" "),a("Footer")],1)},staticRenderFns:[]},Nt=a("VU/8")(zt,Jt,!1,function(t){a("DPCl"),a("6Olm")},"data-v-36ed7ebb",null).exports,Ot={name:"Login",components:{},data:function(){return{unreadList:[],allList:[]}},methods:{getList:function(t){t||(t="all");var e=this,a=DocConfig.server+"/api/notice/getList",i=new URLSearchParams;i.append("notice_type",t),e.axios.post(a,i).then(function(a){if(0===a.data.error_code){var i=a.data.data;"unread"==t?e.unreadList=i:e.allList=i}else e.$alert(a.data.error_message)})},show_notice:function(t){var e=t.notice_id;t.is_read=1;var a=this;a.$alert(t.notice_content,"",{dangerouslyUseHTMLString:!0});var i=DocConfig.server+"/api/notice/setRead",o=new URLSearchParams;o.append("notice_id",e),a.axios.post(i,o).then(function(t){if(0===t.data.error_code)t.data.data;else a.$alert(t.data.error_message)})},delete_notice:function(t){var e=t.notice_id,a=this,i=DocConfig.server+"/api/notice/delete";this.$confirm("确认删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t=new URLSearchParams;t.append("notice_id",e),a.axios.post(i,t).then(function(t){0===t.data.error_code?a.getList():a.$alert(t.data.error_message)})})},feedback:function(){this.$alert("对showdoc.cc的任何疑问、建议都可以反馈到 xing7th@gmail.com")}},mounted:function(){this.getList()},beforeCreate:function(){document.getElementsByTagName("body")[0].className="grey-bg"},beforeDestroy:function(){document.body.removeAttribute("class","grey-bg")}},Gt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[[a("el-button",{staticClass:"goback-btn ",attrs:{type:"text"},on:{click:t.feedback}},[a("span",{staticClass:"feedback"},[t._v("反馈")])]),a("router-link",{attrs:{to:"/item/index"}},[t._v("返回")]),t._v(" "),a("el-tabs",{attrs:{value:"first",type:"card"}},[a("el-tab-pane",{attrs:{label:"我的消息",name:"first"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left",data:t.allList,height:"350","default-expand-all":!1}},[a("el-table-column",{attrs:{prop:"notice_title",label:"标题"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{domProps:{innerHTML:t._s(e.row.notice_title)}}),t._v(" "),0==e.row.is_read?a("el-badge",{staticClass:"mark",attrs:{value:"未读"}}):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"from_name",label:"发送人"}}),t._v(" "),a("el-table-column",{attrs:{prop:"notice_time",label:"时间",width:"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.show_notice(e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.delete_notice(e.row)}}},[t._v("删除")])]}}])})],1)],1)],1)]],2)],1),t._v(" "),a("Footer")],1)},staticRenderFns:[]},Wt=a("VU/8")(Ot,Gt,!1,function(t){a("CQ3L")},"data-v-f620e030",null).exports,Qt={data:function(){return{page:1,count:7,item_name:"",username:"",itemList:[],total:0,dialogAttornVisible:!1,attornForm:{username:""},attorn_item_id:""}},methods:{get_item_list:function(){var t=this,e=DocConfig.server+"/api/adminItem/getList",a=new URLSearchParams;a.append("item_name",this.item_name),a.append("username",this.username),a.append("page",this.page),a.append("count",this.count),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.itemList=a.items,t.total=a.total}else t.$alert(e.data.error_message)})},formatPrivacy:function(t,e){if(t)return t.password.length>0?"密码访问":"公开访问"},jump_to_item:function(t){var e="#/"+t.item_id;window.open(e)},handleCurrentChange:function(t){this.page=t,this.get_item_list()},onSubmit:function(){this.page=1,this.get_item_list()},delete_item:function(t){var e=this,a=DocConfig.server+"/api/adminItem/deleteItem";this.$confirm(e.$t("confirm_delete")," ",{confirmButtonText:e.$t("confirm"),cancelButtonText:e.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("item_id",t.item_id),e.axios.post(a,i).then(function(t){0===t.data.error_code?(e.$message.success("删除成功"),e.get_item_list()):e.$alert(t.data.error_message)})})},click_attorn_item:function(t){this.dialogAttornVisible=!0,this.attorn_item_id=t.item_id},attorn:function(){var t=this,e=DocConfig.server+"/api/adminItem/attorn",a=new URLSearchParams;a.append("item_id",t.attorn_item_id),a.append("username",this.attornForm.username),t.axios.post(e,a).then(function(e){0===e.data.error_code?(t.dialogAttornVisible=!1,t.$message.success(t.$t("success")),t.get_item_list()):t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})}},mounted:function(){this.get_item_list()},beforeDestroy:function(){this.$message.closeAll(),document.body.removeAttribute("class","grey-bg")}},Kt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"项目名"},model:{value:t.item_name,callback:function(e){t.item_name=e},expression:"item_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"所有者"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),t._v(" "),a("el-form-item",[a("el-button",{on:{click:t.onSubmit}},[t._v("查询")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.itemList}},[a("el-table-column",{attrs:{prop:"item_name",label:"项目名",width:"140"}}),t._v(" "),a("el-table-column",{attrs:{prop:"item_description",label:"项目描述",width:"140"}}),t._v(" "),a("el-table-column",{attrs:{prop:"password",label:"私密性",formatter:t.formatPrivacy,width:"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"item_id",label:"访问链接",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.jump_to_item(e.row)}}},[t._v("查看")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"username",label:"所有者",width:"160"}}),t._v(" "),a("el-table-column",{attrs:{prop:"member_num",label:"成员数",width:"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:"创建时间",width:"160"}}),t._v(" "),a("el-table-column",{attrs:{prop:"item_domain",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.click_attorn_item(e.row)}}},[t._v(t._s(t.$t("attorn")))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.delete_item(e.row)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"}),t._v(" "),a("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogAttornVisible,modal:!1,width:"300px"},on:{"update:visible":function(e){t.dialogAttornVisible=e}}},[a("el-form",[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:t.$t("attorn_username")},model:{value:t.attornForm.username,callback:function(e){t.$set(t.attornForm,"username",e)},expression:"attornForm.username"}})],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogAttornVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.attorn}},[t._v(t._s(t.$t("attorn")))])],1)],1)],1)},staticRenderFns:[]},Yt={data:function(){return{itemList:[],username:"",page:1,count:7,total:0,Form:{new_password:""},addForm:{username:"",password:""},dialogVisible:!1,dialogAddVisible:!1,password_uid:""}},methods:{get_user_list:function(){var t=this,e=DocConfig.server+"/api/adminUser/getList",a=new URLSearchParams;a.append("username",this.username),a.append("page",this.page),a.append("count",this.count),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.itemList=a.users,t.total=a.total}else t.$alert(e.data.error_message)})},formatGroup:function(t,e){if(t)return 1==t.groupid?"管理员":2==t.groupid?"普通用户":"未知"},jump_to_item:function(t){var e="#/"+t.item_id;window.open(e)},handleCurrentChange:function(t){this.page=t,this.get_user_list()},onSubmit:function(){this.page=1,this.get_user_list()},delete_user:function(t){var e=this,a=DocConfig.server+"/api/adminUser/deleteUser";this.$confirm(e.$t("confirm_delete")," ",{confirmButtonText:e.$t("confirm"),cancelButtonText:e.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("uid",t.uid),e.axios.post(a,i).then(function(t){0===t.data.error_code?(e.$message.success("删除成功"),e.get_user_list(),e.username=""):e.$alert(t.data.error_message)})})},click_password:function(t){this.dialogVisible=!0,this.password_uid=t.uid},change_password:function(){var t=this,e=DocConfig.server+"/api/adminUser/changePassword",a=new URLSearchParams;a.append("uid",t.password_uid),a.append("new_password",this.Form.new_password),t.axios.post(e,a).then(function(e){0===e.data.error_code?(t.dialogVisible=!1,t.Form.new_password="",t.$message.success(t.$t("success"))):t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})},add_user:function(){var t=this,e=DocConfig.server+"/api/adminUser/addUser",a=new URLSearchParams;a.append("username",t.addForm.username),a.append("password",this.addForm.password),t.axios.post(e,a).then(function(e){0===e.data.error_code?(t.dialogAddVisible=!1,t.addForm.password="",t.addForm.username="",t.$message.success(t.$t("success")),t.get_user_list()):t.$alert(e.data.error_message)}).catch(function(t){console.log(t)})}},mounted:function(){this.get_user_list()},beforeDestroy:function(){this.$message.closeAll(),document.body.removeAttribute("class","grey-bg")}},Zt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"用户名"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),t._v(" "),a("el-form-item",[a("el-button",{on:{click:t.onSubmit}},[t._v(t._s(t.$t("search")))])],1)],1),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogAddVisible=!0}}},[t._v(t._s(t.$t("add_user")))]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.itemList}},[a("el-table-column",{attrs:{prop:"username",label:"用户名",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{prop:"groupid",label:"用户角色",formatter:t.formatGroup,width:"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"reg_time",label:"注册时间",width:"160"}}),t._v(" "),a("el-table-column",{attrs:{prop:"last_login_time",label:"最后登录时间",width:"160"}}),t._v(" "),a("el-table-column",{attrs:{prop:"item_domain",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.click_password(e.row)}}},[t._v("修改密码")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.delete_user(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"}),t._v(" "),a("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible,modal:!1,width:"300px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password",placeholder:"新密码"},model:{value:t.Form.new_password,callback:function(e){t.$set(t.Form,"new_password",e)},expression:"Form.new_password"}})],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.change_password}},[t._v(t._s(t.$t("confirm")))])],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogAddVisible,modal:!1,width:"300px"},on:{"update:visible":function(e){t.dialogAddVisible=e}}},[a("el-form",[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text",placeholder:"登录名"},model:{value:t.addForm.username,callback:function(e){t.$set(t.addForm,"username",e)},expression:"addForm.username"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:t.addForm.password,callback:function(e){t.$set(t.addForm,"password",e)},expression:"addForm.password"}})],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogAddVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.add_user}},[t._v(t._s(t.$t("confirm")))])],1)],1)],1)},staticRenderFns:[]},Xt={data:function(){return{open_menu_index:1}},components:{Item:a("VU/8")(Qt,Kt,!1,function(t){a("Scl1")},"data-v-94e7596a",null).exports,User:a("VU/8")(Yt,Zt,!1,function(t){a("0OgD")},"data-v-d9c68d6e",null).exports},methods:{select_menu:function(t,e){var a=this;this.open_menu_index=0,this.$nextTick(function(){a.open_menu_index=t})},check_upadte:function(){var t=this,e=DocConfig.server+"/api/adminUser/checkUpdate",a=new URLSearchParams;t.axios.post(e,a).then(function(e){e&&e.data&&e.data.data&&e.data.data.url&&t.$message({showClose:!0,duration:1e4,dangerouslyUseHTMLString:!0,message:'<a target="_blank" href="'+e.data.data.url+'">'+e.data.data.title+"</a>"})})}},mounted:function(){this.check_upadte()},beforeDestroy:function(){this.$message.closeAll(),document.body.removeAttribute("class","grey-bg")}},te={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"hello"},[e("el-container",[e("el-header",[e("div",{staticClass:"header_title"},[this._v("ShowDoc")]),this._v(" "),e("router-link",{staticClass:"goback",attrs:{to:"/item/index"}},[this._v(this._s(this.$t("goback")))])],1),this._v(" "),e("el-container",[e("el-aside",{attrs:{width:"150px"}},[e("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":"1","background-color":"#545c64","text-color":"#fff","active-text-color":"#ffd04b"},on:{select:this.select_menu}},[e("el-menu-item",{attrs:{index:"1"}},[e("i",{staticClass:"el-icon-info"}),this._v(" "),e("span",{attrs:{slot:"title"},slot:"title"},[this._v(this._s(this.$t("user_management")))])]),this._v(" "),e("el-menu-item",{attrs:{index:"2"}},[e("i",{staticClass:"el-icon-tickets"}),this._v(" "),e("span",{attrs:{slot:"title"},slot:"title"},[this._v(this._s(this.$t("item_management")))])])],1)],1),this._v(" "),e("el-container",[e("el-main",[1==this.open_menu_index?e("User"):this._e(),this._v(" "),2==this.open_menu_index?e("Item"):this._e()],1),this._v(" "),e("el-footer")],1)],1)],1)],1)},staticRenderFns:[]},ee=a("VU/8")(Xt,te,!1,function(t){a("CeUo")},"data-v-7a4ee5be",null).exports,ae={components:{},data:function(){return{MyForm:{id:"",team_name:""},list:[],dialogFormVisible:!1,dialogMemberVisible:!1}},methods:{geList:function(){var t=this,e=DocConfig.server+"/api/team/getList",a=new URLSearchParams;t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.list=a}else t.$alert(e.data.error_message)})},MyFormSubmit:function(){var t=this,e=DocConfig.server+"/api/team/save",a=new URLSearchParams;a.append("id",this.MyForm.id),a.append("team_name",this.MyForm.team_name),t.axios.post(e,a).then(function(e){0===e.data.error_code?(t.dialogFormVisible=!1,t.geList(),t.MyForm={}):t.$alert(e.data.error_message)})},edit:function(t){this.MyForm.id=t.id,this.MyForm.team_name=t.team_name,this.dialogFormVisible=!0},deleteTeam:function(t){var e=this,a=DocConfig.server+"/api/team/delete";this.$confirm(e.$t("confirm_delete")," ",{confirmButtonText:e.$t("confirm"),cancelButtonText:e.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("id",t),e.axios.post(a,i).then(function(t){0===t.data.error_code?e.geList():e.$alert(t.data.error_message)})})},addTeam:function(){this.MyForm=[],this.dialogFormVisible=!0},goback:function(){this.$router.push({path:"/item/index"})}},mounted:function(){this.geList()}},ie={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-button",{staticClass:"add-cat",attrs:{type:"text"},on:{click:t.addTeam}},[t._v(t._s(t.$t("add_team")))]),t._v(" "),a("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:t.goback}},[t._v(t._s(t.$t("goback")))]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left",data:t.list,height:"400"}},[a("el-table-column",{attrs:{prop:"team_name",label:t.$t("team_name")}}),t._v(" "),a("el-table-column",{attrs:{prop:"memberCount",label:t.$t("memberCount"),width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{attrs:{to:"/team/member/"+e.row.id}},[t._v(t._s(e.row.memberCount))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"itemCount",label:t.$t("itemCount")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{attrs:{to:"/team/item/"+e.row.id}},[t._v(t._s(e.row.itemCount))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",width:"200",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.$router.push({path:"/team/member/"+e.row.id})}}},[t._v(t._s(t.$t("member")))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.$router.push({path:"/team/item/"+e.row.id})}}},[t._v(t._s(t.$t("team_item")))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.edit(e.row)}}},[t._v(t._s(t.$t("edit")))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.deleteTeam(e.row.id)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogFormVisible,width:"300px"},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",[a("el-form-item",{attrs:{label:t.$t("team_name")+":"}},[a("el-input",{model:{value:t.MyForm.team_name,callback:function(e){t.$set(t.MyForm,"team_name",e)},expression:"MyForm.team_name"}})],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.MyFormSubmit}},[t._v(t._s(t.$t("confirm")))])],1)],1)],1),t._v(" "),a("Footer")],1)},staticRenderFns:[]},oe=a("VU/8")(ae,ie,!1,function(t){a("4IS6"),a("VhD6")},"data-v-1314f493",null).exports,ne={components:{},data:function(){return{MyForm:{id:"",member_username:""},list:[],dialogFormVisible:!1,team_id:""}},methods:{geList:function(){var t=this,e=DocConfig.server+"/api/teamMember/getList",a=new URLSearchParams;a.append("team_id",this.team_id),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.list=a}else t.$alert(e.data.error_message)})},MyFormSubmit:function(){var t=this,e=DocConfig.server+"/api/teamMember/save",a=new URLSearchParams;a.append("team_id",this.team_id),a.append("member_username",this.MyForm.member_username),t.axios.post(e,a).then(function(e){0===e.data.error_code?(t.dialogFormVisible=!1,t.geList(),t.MyForm={}):t.$alert(e.data.error_message)})},deleteTeamMember:function(t){var e=this,a=DocConfig.server+"/api/teamMember/delete";this.$confirm(e.$t("confirm_delete")," ",{confirmButtonText:e.$t("confirm"),cancelButtonText:e.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("id",t),e.axios.post(a,i).then(function(t){0===t.data.error_code?e.geList():e.$alert(t.data.error_message)})})},addTeamMember:function(){this.MyForm=[],this.dialogFormVisible=!0},goback:function(){this.$router.push({path:"/team/index"})}},mounted:function(){this.team_id=this.$route.params.team_id,this.geList()}},se={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-button",{staticClass:"add-cat",attrs:{type:"text"},on:{click:t.addTeamMember}},[t._v(t._s(t.$t("add_member")))]),t._v(" "),a("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:t.goback}},[t._v(t._s(t.$t("back_to_team")))]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left",data:t.list,height:"400"}},[a("el-table-column",{attrs:{prop:"member_username",label:t.$t("member_username")}}),t._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:t.$t("addtime")}}),t._v(" "),a("el-table-column",{attrs:{prop:"",width:"180",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.deleteTeamMember(e.row.id)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogFormVisible,width:"300px"},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",[a("el-form-item",{attrs:{label:t.$t("member_username")+":"}},[a("el-input",{model:{value:t.MyForm.member_username,callback:function(e){t.$set(t.MyForm,"member_username",e)},expression:"MyForm.member_username"}})],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.MyFormSubmit}},[t._v(t._s(t.$t("confirm")))])],1)],1)],1),t._v(" "),a("Footer")],1)},staticRenderFns:[]},re=a("VU/8")(ne,se,!1,function(t){a("JJn/"),a("pqPb")},"data-v-149242bd",null).exports,le={components:{},data:function(){return{MyForm:{item_id:""},list:[],dialogFormVisible:!1,team_id:"",itemList:[],teamItemMembers:[],dialogFormTeamMemberVisible:!1,authorityOptions:[{label:"编辑",value:"1"},{label:"只读",value:"0"}]}},methods:{geList:function(){var t=this,e=DocConfig.server+"/api/teamItem/getListByTeam",a=new URLSearchParams;a.append("team_id",this.team_id),t.axios.post(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.list=a}else t.$alert(e.data.error_message)})},getItemList:function(){var t=this,e=DocConfig.server+"/api/item/myList",a=new URLSearchParams;t.axios.get(e,a).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.itemList=a}else t.$alert(e.data.error_message)})},MyFormSubmit:function(){var t=this,e=DocConfig.server+"/api/teamItem/save",a=new URLSearchParams;a.append("team_id",this.team_id),a.append("item_id",this.MyForm.item_id),t.axios.post(e,a).then(function(e){0===e.data.error_code?(t.dialogFormVisible=!1,t.geList(),t.MyForm={}):t.$alert(e.data.error_message)})},deleteTeamItem:function(t){var e=this,a=DocConfig.server+"/api/teamItem/delete";this.$confirm(e.$t("confirm_unassign")," ",{confirmButtonText:e.$t("confirm"),cancelButtonText:e.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("id",t),e.axios.post(a,i).then(function(t){0===t.data.error_code?e.geList():e.$alert(t.data.error_message)})})},addTeamItem:function(){this.MyForm=[],this.dialogFormVisible=!0},goback:function(){this.$router.push({path:"/team/index"})},getTeamItemMember:function(t){var e=this;this.dialogFormTeamMemberVisible=!0;var a=DocConfig.server+"/api/teamItemMember/getList",i=new URLSearchParams;i.append("item_id",t),i.append("team_id",this.team_id),e.axios.post(a,i).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.teamItemMembers=a}else e.$alert(t.data.error_message)})},changeTeamItemMemberGroup:function(t,e){var a=this,i=DocConfig.server+"/api/teamItemMember/save",o=new URLSearchParams;o.append("member_group_id",t),o.append("id",e),a.axios.post(i,o).then(function(t){0===t.data.error_code?a.$message("权限保存成功"):a.$alert(t.data.error_message)})}},mounted:function(){this.team_id=this.$route.params.team_id,this.geList(),this.getItemList()}},ce={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello"},[a("Header"),t._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-button",{staticClass:"add-cat",attrs:{type:"text"},on:{click:t.addTeamItem}},[t._v(t._s(t.$t("distribution_to_team")))]),t._v(" "),a("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:t.goback}},[t._v(t._s(t.$t("back_to_team")))]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left",data:t.list,height:"400"}},[a("el-table-column",{attrs:{prop:"item_name",label:t.$t("item_name")}}),t._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:t.$t("Join_time")}}),t._v(" "),a("el-table-column",{attrs:{prop:"",width:"210",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{attrs:{to:"/"+e.row.item_id,target:"_blank"}},[t._v(t._s(t.$t("check_item")))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.getTeamItemMember(e.row.item_id)}}},[t._v(t._s(t.$t("member_authority")))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.deleteTeamItem(e.row.id)}}},[t._v(t._s(t.$t("unassign")))])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogFormVisible,width:"300px"},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",[a("el-select",{attrs:{size:"mini",placeholder:t.$t("please_choose")},model:{value:t.MyForm.item_id,callback:function(e){t.$set(t.MyForm,"item_id",e)},expression:"MyForm.item_id"}},t._l(t.itemList,function(t){return a("el-option",{key:t.item_id,attrs:{label:t.item_name,value:t.item_id}})}))],1),t._v(" "),a("br"),t._v(" "),a("router-link",{attrs:{to:"/item/index",target:"_blank"}},[t._v(t._s(t.$t("go_to_new_an_item")))]),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.MyFormSubmit}},[t._v(t._s(t.$t("confirm")))])],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogFormTeamMemberVisible,modal:!1,top:"10vh",title:t.$t("adjust_member_authority")},on:{"update:visible":function(e){t.dialogFormTeamMemberVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left","empty-text":t.$t("team_member_empty_tips"),data:t.teamItemMembers}},[a("el-table-column",{attrs:{prop:"member_username",label:t.$t("username")}}),t._v(" "),a("el-table-column",{attrs:{prop:"member_group_id",label:t.$t("authority"),width:"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini",placeholder:t.$t("please_choose")},on:{change:function(a){t.changeTeamItemMemberGroup(a,e.row.id)}},model:{value:e.row.member_group_id,callback:function(a){t.$set(e.row,"member_group_id",a)},expression:"scope.row.member_group_id"}},t._l(t.authorityOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time")}})],1),t._v(" "),a("br"),t._v(" "),a("p",{staticClass:"tips"},[t._v("\n        "+t._s(t.$t("team_member_authority_tips"))+"\n      ")]),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormTeamMemberVisible=!1}}},[t._v(t._s(t.$t("close")))])],1)],1)],1),t._v(" "),a("Footer")],1)},staticRenderFns:[]},de=a("VU/8")(le,ce,!1,function(t){a("ango"),a("Gw7h")},"data-v-b465c74a",null).exports;n.default.use(l.a);var me=new l.a({routes:[{path:"/",name:"Index",component:m},{path:"/user/login",name:"UserLogin",component:u},{path:"/user/setting",name:"UserSetting",component:g},{path:"/user/register",name:"UserRegister",component:w},{path:"/user/resetPassword",name:"UserResetPassword",component:x},{path:"/user/ResetPasswordByUrl",name:"ResetPasswordByUrl",component:S},{path:"/item/index",name:"ItemIndex",component:D},{path:"/item/add",name:"ItemAdd",component:U},{path:"/item/password/:item_id",name:"ItemPassword",component:A},{path:"/:item_id",name:"ItemShow",component:rt},{path:"/item/export/:item_id",name:"ItemExport",component:dt},{path:"/item/setting/:item_id",name:"ItemSetting",component:yt},{path:"/page/:page_id",name:"PageIndex",component:xt},{path:"/page/edit/:item_id/:page_id",name:"PageEdit",component:Et},{path:"/page/diff/:page_id/:page_history_id",name:"PageDiff",component:qt},{path:"/catalog/:item_id",name:"Catalog",component:Nt},{path:"/notice/index",name:"Notice",component:Wt},{path:"/admin/index",name:"Admin",component:ee},{path:"/team/index",name:"Team",component:oe},{path:"/team/member/:team_id",name:"TeamMember",component:re},{path:"/team/item/:team_id",name:"TeamItem",component:de}]}),_e=a("zL8q"),pe=a.n(_e),ue=(a("tvR6"),{render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]}),fe=a("VU/8")({name:"Header",data:function(){return{msg:"头部"}}},ue,!1,function(t){a("9yjr")},"data-v-6d27f0ce",null).exports,he={render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]},ge=a("VU/8")({name:"Footer",data:function(){return{msg:"尾部"}}},he,!1,function(t){a("W5Mj")},"data-v-09c75c9b",null).exports,ve={install:function(t,e){t.prototype.getData=function(){console.log("我是插件中的方法")},t.prototype.request=function(){},t.prototype.getRootPath=function(){return window.location.protocol+"//"+window.location.host+window.location.pathname},t.prototype.isMobile=function(){return!!navigator.userAgent.match(/iPhone|iPad|iPod|Android|android|BlackBerry|IEMobile/i)},t.prototype.get_user_info=function(t){var e=DocConfig.server+"/api/user/info",a=new URLSearchParams;a.append("redirect_login",!1),this.axios.post(e,a).then(function(e){t&&t(e)})},t.prototype.get_notice=function(t){var e=DocConfig.server+"/api/notice/getList",a=new URLSearchParams;a.append("notice_type","unread"),a.append("count","1"),this.axios.post(e,a).then(function(e){t&&t(e)})}}},be=a("//Fk"),we=a.n(be),ye=a("mtWM"),$e=a.n(ye);$e.a.defaults.timeout=2e4,$e.a.defaults.baseURL=DocConfig.server,$e.a.interceptors.request.use(function(t){return t},function(t){return we.a.reject(t)}),$e.a.interceptors.response.use(function(t){return t.config.data&&t.config.data.indexOf("redirect_login=false")>-1||10102===t.data.error_code&&me.replace({path:"/user/login",query:{redirect:me.currentRoute.fullPath}}),t},function(t){return we.a.reject(t.response.data)});var ke=$e.a,xe=a("xO72"),Ce=a.n(xe),Fe=a("wUZ8"),Se=a.n(Fe),Te=a("Vi3T"),Le=a.n(Te),Ve=a("J71k"),De=a.n(Ve),Pe=a("AQny"),Me=a.n(Pe);a("9Z4o"),a("j1ja");n.default.use(ve),n.default.config.productionTip=!1,n.default.component("Header",fe),n.default.component("Footer",ge),n.default.use(pe.a),n.default.use(Ce.a);var Ue=o()(Le.a,De.a),Ie=o()(Se.a,Me.a);n.default.config.lang=DocConfig.lang,n.default.locale("zh-cn",Ue),n.default.locale("en",Ie),n.default.prototype.axios=ke,new n.default({el:"#app",router:me,template:"<App/>",components:{App:r}})},NQWO:function(t,e){},QxI5:function(t,e){},RlsY:function(t,e){},Scl1:function(t,e){},TmJj:function(t,e){},U72k:function(t,e){},VhD6:function(t,e){},W05L:function(t,e){},W5Mj:function(t,e){},YN3J:function(t,e){},acf6:function(t,e){},ango:function(t,e){},at3f:function(t,e){},bNli:function(t,e){},cKVC:function(t,e){},dxxh:function(t,e){},e1ID:function(t,e){},ek17:function(t,e){},fQLA:function(t,e){},fT1U:function(t,e){},fqbH:function(t,e){},iffx:function(t,e){},oASR:function(t,e){},ofm6:function(t,e){},ohLl:function(t,e){},pmUg:function(t,e){},pqPb:function(t,e){},pt6I:function(t,e){},sHs6:function(t,e){},tvR6:function(t,e){},u9pU:function(t,e){},yP8J:function(t,e){}},["NHnr"]);