You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
243 KiB
1 lines
243 KiB
webpackJsonp([1],{"+1uo":function(e,t){},"+Yta":function(e,t){},"+nIW":function(e,t){},"/BJT":function(e,t){},"/CEG":function(e,t){},"/Iv8":function(e,t){},"0EG5":function(e,t){},"0ebM":function(e,t){},"0tRY":function(e,t){},"1Jp5":function(e,t){},"2VLt":function(e,t){},"40fr":function(e,t){},"4Lec":function(e,t){},"6Gtl":function(e,t){},"6xgM":function(e,t){},"7t6a":function(e,t){},"84Br":function(e,t){},"8QMZ":function(e,t){},AQny:function(e,t){t.__esModule=!0,t.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_description1_1:"A tool greatly applicable",section_description1_2:"for an IT team",section_title2:"API Document",section_description2_1:"ShowDoc can compile exquisite API documents",section_description2_2:"in a very fast and convenient way",section_title3:"Data Dictionary",section_description3_1:"A good Data Dictionary can easily exhibit database structure to other people",section_description3_2:"ShowDoc can compile exquisite Data Dictionary",section_title4:"Explanation Document",section_description4_1:"You can absolutely use ShowDoc to compile the explanation documents for some tools",section_description4_2:"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:"Document Automation",section_description6_1:"Documents can be generated automatically from code comments",section_description6_2:"With the runapi client, you can debug the interface and automatically generate documents",section_title7:"Open Source",section_description7_1:"ShowDoc is a free, open source tool",section_description7_2:"You can deploy it to your own server",section_title8:"Hosted online",section_description8_1:"www.showdoc.com.cn provide security and stability of the document hosting service",section_description8_2:"You can safely choose to host your document data in the cloud",section_title9:"Try it now",section_description9:"Over 100000+ IT team is using ShowDoc",login:"Login",username:"Username",password:"Password",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:"Back",my_email:"My email",input_email:"Input email",input_login_password:"Please enter your login password to verify",status:"Status",status_1:"Verified",status_2:"Unverified",status_3:"Unbound",binding:"Binding",modify:"Modify",modify_password:"Modify password",old_password:"Old password",new_password:"New password",modify_success:"Modify success!",update_email_success:"Update your mailbox successfully! Please log in to check the email to check the email.",personal_setting:"Personal settings",web_home:"Home",logout:"Logout",add_an_item:"Add an item",new_item:"New item",feedback:"Feedback",more:"More",my_notice:"My notice",item_setting:"Item settings",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:"Personalized domain name (optional)",item_domain_illegal:"Personalized domain names can only be a combination of letters or numbers",domain_already_exists:"Personal domain name already exists",visit_password_placeholder:"Password",copy_exists_item:"Copy existing item",please_choose:"Please select",auto_db:"Auto data dictionary",input_visit_password:"Input visit password",export_all:"Export all",export_cat:"export catalog/page",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:"Advanced setting",open_api:"open api",info_item_domain:"Personal domain name",visit_password:"Password",visit_password_description:"(Optional: private item required)",add_member:"Add member",authority:"Authority",add_time:"Add time",operation:"Operation",delete:"Delete",input_target_member:"Input member's username",readonly:"Read-only",member_authority_tips:"Permission Description: The default member can create/edit the project page, and only delete the newly created/edited page when deleting. After checking the read-only attribute, the member can only view all pages, and cannot add/edit/delete",cancel:"Cancel",confirm:"Confirm",confirm_delete:"Confirm to delete",attorn:"Attorn",archive:"Archive",attorn_tips:"You can attorn item(s) to other user(s)",archive_tips:"After archiving, the item will become read-only, and no more changes / additions can be made. If you want to edit it again, copy it to the new project and then edit it",delete_tips:"After deleting it, it can not be restored!",attorn_username:"Username of receiver",archive_tips2:"Note: After archiving a project, the project will no longer be able to add and modify content and will not be able to unarchive. If you want to modify the content again, you can copy the project and modify it on the basis of the new project. The way to copy a project is to choose to copy from an existing project when you create the project.",success_jump:"The operation is successful! Skipping...",reset_token:"Reset token",open_api_tips1:"Showdoc opens the API for document editing, making it easier for users to manipulate document data. <br>With the open API, you can do a lot of things automatically",open_api_tips2:'If you want to automate the generation of API documentation, you can refer to<a target="_bank" href="https://www.showdoc.cc/page/741656402509783">API documentation</a>',open_api_tips3:'If you want to automate the generation of a data dictionary, you can refer to<a target="_bank" href="https://www.showdoc.cc/page/312209902620725">Data dictionary</a>',open_api_tips4:'If you are more free to generate the format you need, you can refer to<a target="_bank" href="https://www.showdoc.cc/page/102098">Open API</a>',item:"Item",share:"Share",export:"Export",update_info:"Update info",manage_members:"Manage members",more_item:"More item(s)",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 the interface address to your friends",copy_interface_to_new:"Copy this page to a new page",copy:"Copy",edit:"Edit",detail:"Detail",delete_interface:"Delete page",comfirm_delete:"Comfirm to delete",item_address:"Item address",copy_address_to_your_friends:"You can copy the address to your friend",share_page:"Share page",page_address:"Page address",input_keyword:"Press Enter to search",item_page_address:"Item page address",single_page_address:"Single page address",page_diff_tips:"What is the difference between the project page address and the single page address?",title:"Title",catalog:"Catalog",level_2_directory:"Level 2 catalog",level_3_directory:"Level 3 catalog",s_number:"Order",s_number_explain:"The default is 99, the smaller the number, the earlier it is set.(optional)",optional:"Optional",history_version:"History version",save:"Save",insert_apidoc_template:"ApiDoc template",insert_database_doc_template:"DatabaseDoc template",json_tools:"Json tools",format_tools:"Format tools",json_to_table:"JSON to table",beautify_json:"JSON beautify",beautify_json_description:"Please paste a JSON script, the program will automatically format the display in an elegant way.",http_test_api:"Test API online",json_to_table_description:"Please paste a JSON script, the program will automatically parse the code and generate a parameter table. This feature is suitable for quickly writing back parameter tables for API documents.",update_time:"Update time",update_by_who:"Update by ",recover_to_this_version:"Recover",close:"Close",finish:"Finish",params:"params",clear:"Clear",result:"Result",save_to_templ:"Save to template",more_templ:"More templates",saved_templ_list:"Template list",page_comments:"Page comment",cur_page_content:"Current newest version",overview:"Overview",save_templ_title:"Input template title",save_templ_text:'The template has been saved. When you create or edit an edit page later, click the "More Templates" button to use your saved template.',welcome_use_showdoc:"Welcome to ShowDoc!",templ_list:"Template list",templ_title:"Template title",no_templ_text:'You have not saved any templates yet. You can click on the right side of the "Save" button while editing the page, and select "Save as template" from the drop-down menu. After saving the page content as a template, you can use your previously saved template the next time you create or edit a page.',save_time:"Save time",insert_templ:"Insert",delete_templ:"Delete",save_success:"Save success",paste_insert_table:"Insert table from paste",paste_insert_table_tips:"Paste (Ctrl + V) below an existing table data copied (Ctrl + C) from a spreadsheet (e.g. Microsoft Excel), a text document, a Markdown code, or even a website.",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:"Your last draft is automatically saved. Do you want automatically fill this document in with the last draft?",management_backstage:"Backstage",user_management:"User(s)",item_management:"Items",add_user:"Add user",search:"Search",team_mamage:"Manage Team(s)",background:"Background",distribution_to_team:"Distribution item",back_to_team:"Back to team",check_item:"Check item",unassign:"Unassign",go_to_new_an_item:"New item",confirm_unassign:"Confirm unassign?",Join_time:"Join time",add_team:"Add team",member_authority:"Member authority",go_to_new_an_team:"New team",adjust_member_authority:"Adjust member authority",team_member_empty_tips:"The team does not have any members yet.",team_member_authority_tips:"Permission description: The editing permission means that members can create/edit project pages, and when deleted, they can only delete their own newly created/edited pages. The 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",member_username:"Member username",team_name:"Team name",memberCount:"Member count",itemCount:"Item count",empty_team_tips:"Welcome to the team management function. This function is well suited for collaborative management of team leader for multi person and cross team projects. Please click the top left button to add the team(s). After adding team(s), team members can be added or deleted at any time, allocated to different projects in batches, and member rights can be set in different projects. Compared with simple membership management mode, team management function can add and delete personnel in batches, which is more convenient for complex team cooperation.",copy_link:"Copy link",copy_success:"Copy success",user_manage:"User manage",item_manage:"Item manage",web_setting:"Web setting",register_open_label:"Register open",ldap_open_label:"LDAP login",name:"Name",name_tips:"Your real name",attachment:"Attachment",upload:"Upload",upload_file:"Upload file",file_name:"File name",download:"Download",file_size_tips:"Less than 4MB",confirm_cat_delete:"Are you sure you want to delete the directory? This action will delete all the pages in this directory. Please be careful.",userrole:"User role",reg_time:"Registration time",last_login_time:"Last login time",administrator:"Administrator",ordinary_users:"Ordinary users",owner:"Owner",privacy:"Privacy",link:"link",private:"private",public:"public",register_open:"Open registration",long_page_tips:"The content of this page was detected to be more, and showdoc temporarily shut down the HTML real-time preview function to prevent the page from getting stuck due to too much content. You can find the preview button in the edit bar and open it manually.",item_exit:"Exit item",confirm_exit_item:"Are you sure to exit this item?",insert:"Insert",Open_item:"public item",private_item:"private item",private_item_passwrod:"Please set a password for private item",create_sigle_page:"I want to create a single page address",create_sigle_page_tips:"When you just want to share a page and not the whole project, you can choose to share a single page address. After sharing, your friends will only see a single page, can not browse the catalog menu, and can not switch to other pages to view.",home_page:"Website home page",full_page:"Full page",login_page:"jump to login page",jump_to_an_item:"jump to an item",jump_to_item:"choose item",recycle:"recycle",recycle_tips:"The deleted page will go to the recycle bin. The content in the recycle bin for more than 30 days will be automatically selected by the system and cleaned up when appropriate",page_title:"Page title",deleter:"Delete Account",del_time:"Delete time",recover:"recover",recover_tips:"Are you sure to recover? The recovered page will appear in the item root",sort_pages:"Sort Pages",sort_pages_tips:"After selecting a specific catalog, you can drag and sort the pages in that catalog",cat_tips:"Drag to sort",cat_limite_tips:"Only up to three levels of directories are supported",regular_item:"Regular Item",single_item:"Single Item",copy_item:"Copy Item",import_file:"Import File",auto_item:"Auto Create",single_item_tips:"Single item refers to the item with no catalog structure and only one page",copy_item_tips1:"Select and copy from your existing items",copy_item_tips2:"After copying, rename the new item to:",import_file_tips1:"The imported file can be the JSON file of postman, the JSON file of swagger, and the markdown zip of showdoc. The system will automatically identify the file type",import_file_tips2:"Drag the file here, or click to upload",export_format_word:"Word format",export_format_markdown:"Markdown zip",export_markdown_tips:"The exported compressed package can be re imported into showdoc. Select 'Import File' when creating a new item",private_tips:"It's a private item",oss_open:"Image/attachment saved to cloud",oss_server:"cloud server",tencent:"tencent",aliyun:"aliyun",qiniu:"qiniu",oss_domain:"domain(optional)",attornTeamTips:"All items owned by the team will also be transferred to he/her",lock_edit:"Lock edit",lock_edit_tips:"When locked, other people will not be able to edit this page. Until you unlock or exit editing",cacel_lock:"Unlock",locking:"The current page is being locked and edited by other members. Editor:",all_cat:"All catalogs",cat_success:"Catalogs saved successfully",auth_success:"saved successfully",all_cat2:"Catalogs permissions: all",c_team:"Select team",Logged:"Logged",update_pwd_tips:"Password, leave blank if not changed",import_excel:"You can choose to import excel file",table:"table",attachment_manage:"Attachment",op_success:"success",display_name:"display name",all_attachment_type:"all type",image:"image",general_attachment:"general attachment",uploader:"uploader",file_id:"file id",file_type:"type",file_size_m:"size/mb",visit:"visit",visit_times:"visit times",my_attachment:"My attachment",accumulated_used_sapce:"Accumulated used space",month_flow:"Traffic has been used this month",all_pages:"All pages",cancelSingle:"Are you sure you want to cancel the single page link? After cancellation, the original link will be invalid immediately",cancelSingleYes:"Unlink single page",cancelSingleNo:"Keep single page",from_file_gub:"From FileHub",file_gub:"FileHub",select:"select"}},B2VT:function(e,t){},D4Ma:function(e,t){},DgpF:function(e,t){},DhOl:function(e,t){},EtTO:function(e,t){},HLMm:function(e,t){},HMj1:function(e,t){},J71k:function(e,t){t.__esModule=!0,t.default={help:"帮助",demo:"示例",index_login_or_register:"登录 / 注册",my_item:"我的项目",section_title1:"ShowDoc",section_description1_1:"一个非常适合IT团队的",section_description1_2:"在线API文档、技术文档工具",section_title2:"API文档",section_description2_1:"APP、web前端与服务器常用API来进行交互",section_description2_2:"ShowDoc可以非常方便快速地编写出美观的API文档",section_title3:"数据字典",section_description3_1:"好的数据字典可以方便地向别人描述你的数据库结构",section_description3_2:"用ShowDoc可以编辑出美观的数据字典",section_title4:"说明文档",section_description4_1:"你完全可以使用 ShowDoc来编写一些工具的说明书",section_description4_2:"也可以编写一些技术规范说明文档以供团队查阅",section_title5:"团队协作",section_description5:"团队权限管理机制让团队良好地协同编写文档",section_title6:"文档自动化",section_description6_1:"可从代码注释中自动生成文档",section_description6_2:"搭配的RunApi客户端,可调试接口和自动生成文档",section_title7:"免费开源",section_description7_1:"ShowDoc提供免费开源的版本",section_description7_2:"你可以选择将ShowDoc部署到你的服务器",section_title8:"在线托管",section_description8_1:"www.showdoc.com.cn 安全稳定的在线文档托管服务",section_description8_2:"你可以放心地选择托管你的文档数据在云端",section_title9:"立即体验",section_description9:"超过100000+互联网团队正在使用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:"访问密码",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_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",new_page:"新建页面",edit_page:"编辑页面",new_catalog:"新建/管理目录",share_address_to_your_friends:"分享该接口地址给你的好友",copy_interface_to_new:"复制该页面到新页面",copy:"复制",edit:"编辑",detail:"详情",delete_interface:"删除页面",comfirm_delete:"确认删除吗?",item_address:"项目地址",copy_address_to_your_friends:"你可以复制地址给你的好友",share_page:"分享页面",page_address:"页面地址",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:"保存",insert_apidoc_template:"API接口模板",insert_database_doc_template:"数据字典模板",json_tools:"JSON工具",format_tools:"格式工具",json_to_table:"JSON转参数表格",beautify_json:"JSON格式化",beautify_json_description:"请粘贴一段json,程序将自动以美观的方式格式化显示",http_test_api:"在线测试API",json_to_table_description:"请粘贴一段json,程序将自动将json解析并生成参数表格。此功能适合用于快速编写API文档的返回参数表格",update_time:"修改时间",update_by_who:"修改人",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:"保存成功",paste_insert_table:"粘贴插入表格",paste_insert_table_tips:"你可以从网页或者excel中复制表格,然后粘贴在此处。粘贴并确定后,程序将自动把源表格转为markdown格式的表格。注:复制excel后,请鼠标右击,粘贴为纯文本。否则会当做图片上传。",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:"项目",member_username:"成员用户名",team_name:"团队名",memberCount:"成员数",itemCount:"分配项目数",empty_team_tips:"欢迎使用团队管理功能。此功能非常适合Team leader对多人员、跨团队项目的协作管理。请先点击左上方按钮添加团队。添加团队后,可以随时增加/删除团队成员、批量分配到不同项目,并且可以设置不同项目里的成员权限。相比简单成员管理模式,团队管理功能可以批量地进行人员的增删,更方便复杂团队的协作。",copy_link:"复制链接",copy_success:"复制成功",user_manage:"用户管理",item_manage:"项目管理",web_setting:"站点设置",register_open_label:"开放用户注册",ldap_open_label:"启用ldap登录",name:"姓名",name_tips:"推荐使用真实姓名",attachment:"附件",upload:"上传",upload_file:"上传文件",file_name:"文件名",download:"下载",file_size_tips:"文件大小在4M内",confirm_cat_delete:"确认删除目录吗?此操作会把该目录下的所有页面一并删除,请谨慎操作。",userrole:"用户角色",reg_time:"注册时间",last_login_time:"最后登录时间",administrator:"管理员",ordinary_users:"普通用户",owner:"所有者",privacy:"私密性",link:"链接",private:"密码访问",public:"公开访问",register_open:"开放用户注册",long_page_tips:"检测到本页面内容比较多,showdoc暂时关闭了html实时预览功能,以防止过多内容造成页面卡顿。你可以在编辑栏中找到预览按钮进行手动打开。",item_exit:"退出项目",confirm_exit_item:"你确定要退出该项目吗?",insert:"插入",Open_item:"公开项目",private_item:"私密项目",private_item_passwrod:"私密项目请设置访问密码",create_sigle_page:"我要创建单页面地址",create_sigle_page_tips:"当仅仅想分享某个页面、而不想分享整个项目的时候,你可以选择分享单页面地址。分享出去后,你的好友将仅仅只看到单个页面,无法浏览目录菜单,也无法切换到其他页面查看。",home_page:"网站首页",full_page:"全屏介绍页面",login_page:"跳转到登录页面",jump_to_an_item:"跳转到某个项目",jump_to_item:"跳转到项目",recycle:"回收站",recycle_tips:"被删除的页面会进入回收站。在回收站超过30天的内容将被系统自动选择合适时候清理掉",page_title:"页面标题",deleter:"删除账号",del_time:"删除时间",recover:"恢复",recover_tips:"确认恢复吗?恢复的页面将出现在项目根目录",cat_tips:"可拖动以排序",cat_limite_tips:"showdoc只支持最多三层目录,请优化目录结构",sort_pages:"页面排序",sort_pages_tips:"选择特定的目录后,你可以对该目录下的页面进行拖动排序",regular_item:"常规项目",single_item:"单页项目",copy_item:"复制项目",import_file:"导入文件",auto_item:"自动生成",single_item_tips:"单页项目指的是指没有目录结构,只有一个页面的项目",copy_item_tips1:"从你已有的项目中选择并复制",copy_item_tips2:"复制后将新项目重命名为:",import_file_tips1:"导入的文件可以是<b>postman</b>的json文件、<b>swagger</b>的json文件、showdoc的<b>markdown压缩包</b>。系统会自动识别文件类型。",import_file_tips2:"将文件拖到此处,或<em>点击上传</em>",export_format_word:"word格式",export_format_markdown:"markdown压缩包",export_markdown_tips:"导出的压缩包可以重新导入showdoc,在新建项目的时候选择“文件导入”即可",private_tips:"这是一个私密项目",oss_open:"图片附件储存到云",oss_server:"云服务商",tencent:"腾讯云",aliyun:"阿里云",qiniu:"七牛云",oss_domain:"oss绑定域名(选填)",attornTeamTips:"转让团队后,该团队下拥有的所有项目也会一并转让给对方",lock_edit:"锁定编辑",lock_edit_tips:"当锁定后,其他人将无法编辑本页面。直到你取消锁定或者退出编辑",cacel_lock:"解除锁定",locking:"当前页面正在被其他成员锁定编辑中,编辑者:",all_cat:"所有目录",cat_success:"目录保存成功",auth_success:"权限保存成功",all_cat2:"目录权限:所有目录",c_team:"选择团队",Logged:"已登录",update_pwd_tips:"密码,不修改则留空",import_excel:"你可以选择Excel文件导入",table:"表格",attachment_manage:"附件管理",op_success:"操作成功",display_name:"展示名字",all_attachment_type:"全部文件类型",image:"图片",general_attachment:"其它文件",uploader:"上传者",file_id:"文件id",file_type:"文件类型",file_size_m:"文件大小/mb",visit:"查看",visit_times:"访问次数",my_attachment:"文件库",accumulated_used_sapce:"累计已使用空间",month_flow:"本月已使用流量",all_pages:"全部页面",cancelSingle:"是否确定取消单页链接?取消后,原链接会立马失效",cancelSingleYes:"取消单页链接",cancelSingleNo:"保留单页链接",from_file_gub:"从文件库选择",file_gub:"文件库",select:"选择"}},LOCQ:function(e,t){},M2JD:function(e,t){},M4ay:function(e,t){},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("woOf"),o=a.n(i),n=a("7+uW"),s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},staticRenderFns:[]};var r=a("VU/8")({name:"app"},s,!1,function(e){a("oFiZ")},null,null).exports,l=a("/ocq"),c={name:"Index",data:function(){return{loading:!1,keyword:this.$route.query.keyword,itemList:[],height:"",link:"",link_text:"",lang:""}},watch:{"$route.query.keyword":function(e){this.keyword=e,e?this.search():this.getList()}},methods:{handldSearch:function(){this.$router.push({query:{keyword:this.keyword}})},search:function(){var e=this;this.loading=!0;var t=DocConfig.server+"/api/help/search";this.axios.post(t,{keyword:this.keyword}).then(function(t){e.loading=!1,0===t.data.error_code&&(e.itemList=t.data.data.items)})},getHeight:function(){var e;window.innerHeight?e=window.innerHeight:document.body&&document.body.clientHeight&&(e=document.body.clientHeight),this.height=e+"px"},homePageSetting:function(){var e=this,t=DocConfig.server+"/api/common/homePageSetting";this.axios.post(t,this.form).then(function(t){0===t.data.error_code&&(2==t.data.data.home_page&&e.$router.replace({path:"/user/login"}),3==t.data.data.home_page&&t.data.data.home_item&&e.$router.replace({path:"/"+t.data.data.home_item}))})},getList:function(){var e=this;this.loading=!0;var t=DocConfig.server+"/api/help/getItemList";this.axios.post(t).then(function(t){e.loading=!1,0===t.data.error_code&&(e.itemList=t.data.data.items)})}},mounted:function(){var e=this;this.lang=DocConfig.lang,this.keyword?this.search():this.getList(),this.getHeight(),this.homePageSetting(),e.link="/user/login",e.link_text=e.$t("index_login_or_register"),this.get_user_info(function(t){0===t.data.error_code&&(e.link="/item/index",e.link_text=e.$t("my_item"))})}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"body"},[a("OxHeader"),e._v(" "),a("div",{staticClass:"searchBox"},[a("div",{staticClass:"wrapperBox"},[a("div",{staticClass:"tip-text"},[e._v("您好! 请问您需要什么帮助?")]),e._v(" "),a("div",{staticClass:"input-group"},[a("img",{attrs:{src:"static/images/search.png",alt:""}}),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.keyword},on:{input:function(t){t.target.composing||(e.keyword=t.target.value)}}}),e._v(" "),a("button",{staticClass:"btn",attrs:{type:"button"},on:{click:e.handldSearch}},[e._v("搜索")])])])]),e._v(" "),e.$route.query.keyword?a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"docListBox resListBox"},[a("div",{staticClass:"docList"},e._l(e.itemList,function(t){return a("router-link",{key:t.item_id,attrs:{to:"/"+(t.item_domain?t.item_domain:t.item_id)+"?page_id="+t.page_id,title:""}},[e._v("\n \n "+e._s(t.page_title)+"\n "),a("small",[e._v(e._s(t.item_cat))])])}),1),e._v(" "),0===e.itemList.length?a("div",{staticStyle:{"text-align":"center",padding:"30px"}},[e._v("暂无数据")]):e._e()]):a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"docListBox "},[a("h2",{staticClass:"title"},[e._v("获取帮助")]),e._v(" "),a("div",{staticClass:"docList"},e._l(e.itemList,function(t){return a("router-link",{key:t.item_id,attrs:{to:"/"+(t.item_domain?t.item_domain:t.item_id),title:""}},[e._v("\n "+e._s(t.item_name)+"\n ")])}),1)]),e._v(" "),a("OxFooter")],1)},staticRenderFns:[]};var m=a("VU/8")(c,d,!1,function(e){a("2VLt"),a("/Iv8"),a("PDcD")},"data-v-64b4a54e",null).exports,_=a("mvHQ"),p=a.n(_),u={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 e=this,t=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),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){localStorage.setItem("userinfo",p()(t.data.data));var a=decodeURIComponent(e.$route.query.redirect||"/item/index");e.$router.replace({path:a})}else 10206!==t.data.error_code&&10210!==t.data.error_code||(e.show_v_code=!0,e.change_v_code_img()),e.is_show_alert=!0,e.$alert(t.data.error_message,{callback:function(){setTimeout(function(){e.is_show_alert=!1},500)}})})}},change_v_code_img:function(){var e="&rand="+Math.random();this.v_code_img+=e},script_cron:function(){var e=DocConfig.server+"/api/ScriptCron/run";this.axios.get(e)},checkDb:function(){var e=DocConfig.server+"/api/update/checkDb";this.axios.get(e)}},mounted:function(){var e=this;this.get_user_info(function(t){if(0===t.data.error_code){var a=decodeURIComponent(e.$route.query.redirect||"/item/index");e.$router.replace({path:a})}}),this.script_cron(),this.checkDb()},beforeDestroy:function(){}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._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(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmit(t)}}},[a("h2",[e._v(e._s(e.$t("login")))]),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:e.$t("username_description")},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:e.$t("password")},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}})],1),e._v(" "),e.show_v_code?a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:e.$t("verification_code")},model:{value:e.v_code,callback:function(t){e.v_code=t},expression:"v_code"}}),e._v(" "),a("img",{staticClass:"v_code_img",attrs:{src:e.v_code_img},on:{click:e.change_v_code_img}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$t("login")))])],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("router-link",{attrs:{to:"/user/register"}},[e._v(e._s(e.$t("register_new_account")))]),e._v(" \n ")],1)],1)],1)],1),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var h=a("VU/8")(u,f,!1,function(e){a("+1uo")},"data-v-6be4766b",null).exports,g={name:"Login",components:{},data:function(){return{infoForm:{username:"",name:""},userInfo:{},emailForm:{email:"",status:""},passwordForm:{password:"",new_password:""},dialogEmailFormVisible:!1,dialogPasswordFormVisible:!1}},methods:{get_user_info:function(){var e=this,t=DocConfig.server+"/api/user/info",a=new URLSearchParams;e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a,i=t.data.data;e.userInfo=i,e.passwordForm.username=i.username,e.emailForm.email=i.email,e.infoForm.username=i.username,e.infoForm.name=i.name,i.email.length>0?(e.emailForm.submit_text=e.$t("modify"),a=i.email_verify>0?e.$t("status_1"):e.$t("status_2")):(a=e.$t("status_3"),e.emailForm.submit_text=e.$t("binding")),e.emailForm.status=a}else e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})},passwordFormSubmit:function(){var e=this,t=DocConfig.server+"/api/user/resetPassword",a=new URLSearchParams;a.append("new_password",this.passwordForm.new_password),a.append("password",this.passwordForm.password),e.axios.post(t,a).then(function(t){0===t.data.error_code?e.dialogPasswordFormVisible=!1:e.$alert(t.data.error_message)})},emailFormSubmit:function(){var e=this,t=DocConfig.server+"/api/user/updateEmail",a=new URLSearchParams;a.append("email",this.emailForm.email),a.append("password",this.emailForm.password),e.axios.post(t,a).then(function(t){0===t.data.error_code?(e.dialogEmailFormVisible=!1,this.get_user_info()):e.$alert(t.data.error_message)})},formSubmit:function(){var e=this,t=DocConfig.server+"/api/user/updateInfo",a=new URLSearchParams;a.append("name",this.infoForm.name),e.axios.post(t,a).then(function(t){0===t.data.error_code?(e.$message.success(e.$t("modify_success")),this.get_user_info()):e.$alert(t.data.error_message)})},goback:function(){this.$router.push({path:"/item/index"})}},mounted:function(){this.get_user_info()},beforeDestroy:function(){}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:e.goback}},[a("i",{staticClass:"el-icon-back"})]),e._v(" "),a("el-form",{staticClass:"infoForm",attrs:{"status-icon":"","label-width":"75px"},model:{value:e.infoForm,callback:function(t){e.infoForm=t},expression:"infoForm"}},[a("el-form-item",{attrs:{label:e.$t("username")+":"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",disabled:!0,placeholder:""},model:{value:e.infoForm.username,callback:function(t){e.$set(e.infoForm,"username",t)},expression:"infoForm.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("name")+":"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:e.$t("name_tips")},model:{value:e.infoForm.name,callback:function(t){e.$set(e.infoForm,"name",t)},expression:"infoForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("password")+":"}},[a("a",{attrs:{href:"javascript:;"},on:{click:function(t){e.dialogPasswordFormVisible=!0}}},[e._v(e._s(e.$t("modify")))])]),e._v(" "),a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.formSubmit}},[e._v(e._s(e.$t("submit")))])],1)],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogEmailFormVisible,top:"10vh",width:"300px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogEmailFormVisible=t}}},[a("el-form",{staticClass:"emailForm"},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:e.$t("input_email")},model:{value:e.emailForm.email,callback:function(t){e.$set(e.emailForm,"email",t)},expression:"emailForm.email"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:e.$t("input_login_password")},model:{value:e.emailForm.password,callback:function(t){e.$set(e.emailForm,"password",t)},expression:"emailForm.password"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogEmailFormVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.emailFormSubmit}},[e._v(e._s(e.$t("confirm")))])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogPasswordFormVisible,top:"10vh",width:"300px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogPasswordFormVisible=t}}},[a("el-form",{staticClass:"emailForm"},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:e.$t("old_password")},model:{value:e.passwordForm.password,callback:function(t){e.$set(e.passwordForm,"password",t)},expression:"passwordForm.password"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:e.$t("new_password")},model:{value:e.passwordForm.new_password,callback:function(t){e.$set(e.passwordForm,"new_password",t)},expression:"passwordForm.new_password"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogPasswordFormVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.passwordFormSubmit}},[e._v(e._s(e.$t("confirm")))])],1)],1),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var b=a("VU/8")(g,v,!1,function(e){a("40fr")},"data-v-769a8726",null).exports,w={name:"Register",components:{},data:function(){return{username:"",password:"",confirm_password:"",v_code:"",v_code_img:DocConfig.server+"/api/common/verify"}},methods:{onSubmit:function(){var e=this,t=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),e.axios.post(t,a).then(function(t){0===t.data.error_code?(localStorage.setItem("userinfo",p()(t.data.data)),e.$router.push({path:"/item/index"})):(e.change_v_code_img(),e.$alert(t.data.error_message))})},change_v_code_img:function(){var e="&rand="+Math.random();this.v_code_img+=e}},mounted:function(){},beforeDestroy:function(){}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._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(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmit(t)}}},[a("h2",[e._v(e._s(e.$t("register")))]),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:e.$t("username_description")},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:e.$t("password")},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:e.$t("password_again")},model:{value:e.confirm_password,callback:function(t){e.confirm_password=t},expression:"confirm_password"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:e.$t("verification_code")},model:{value:e.v_code,callback:function(t){e.v_code=t},expression:"v_code"}}),e._v(" "),a("img",{staticClass:"v_code_img",attrs:{src:e.v_code_img},on:{click:e.change_v_code_img}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$t("register")))])],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("router-link",{attrs:{to:"/user/login"}},[e._v(e._s(e.$t("login")))]),e._v("\n \n ")],1)],1)],1)],1),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var k=a("VU/8")(w,y,!1,function(e){a("0ebM")},"data-v-66952295",null).exports,x={name:"",components:{},data:function(){return{email:"",v_code:"",v_code_img:DocConfig.server+"/api/common/verify"}},methods:{onSubmit:function(){var e=this,t=DocConfig.server+"/api/user/resetPasswordEmail",a=new URLSearchParams;a.append("email",this.email),a.append("v_code",this.v_code),e.axios.post(t,a).then(function(t){0===t.data.error_code?e.$alert("已成功发送重置密码邮件到你的邮箱中。请登录并查看邮件"):e.$alert(t.data.error_message)})},change_v_code_img:function(){var e="&rand="+Math.random();this.v_code_img+=e}},mounted:function(){},beforeDestroy:function(){}},C={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._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(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmit(t)}}},[a("h2",[e._v("重置密码")]),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"绑定的邮箱"},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"验证码"},model:{value:e.v_code,callback:function(t){e.v_code=t},expression:"v_code"}}),e._v(" "),a("img",{staticClass:"v_code_img",attrs:{src:e.v_code_img},on:{click:e.change_v_code_img}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("提交")])],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("router-link",{attrs:{to:"/user/login"}},[e._v("想起密码了?去登录")]),e._v(" \n ")],1)],1)],1)],1),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var F=a("VU/8")(x,C,!1,function(e){a("lkmy")},"data-v-36e6a820",null).exports,S={name:"",components:{},data:function(){return{new_password:""}},methods:{onSubmit:function(){var e=this,t=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),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=decodeURIComponent(e.$route.query.redirect||"/item/index");e.$router.replace({path:a})}else e.$alert(t.data.error_message)})}},mounted:function(){},beforeDestroy:function(){}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._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(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmit(t)}}},[a("h2",[e._v("重置密码")]),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"请输入新密码"},model:{value:e.new_password,callback:function(t){e.new_password=t},expression:"new_password"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("提交")])],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("router-link",{attrs:{to:"/user/login"}},[e._v("去登录")]),e._v(" \n ")],1)],1)],1)],1),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var T=a("VU/8")(S,L,!1,function(e){a("/CEG")},"data-v-34f0823e",null).exports,P=a("u4Bf"),I=a.n(P);if("undefined"!=typeof window)var D=a("zhAq");var M={components:{draggable:I.a},data:function(){return{currentDate:new Date,itemList:{},isAdmin:!1,keyword:"",lang:"",username:""}},computed:{itemListByKeyword:function(){if(!this.keyword)return this.itemList;for(var e=[],t=0;t<this.itemList.length;t++)this.itemList[t].item_name.indexOf(this.keyword)>-1&&e.push(this.itemList[t]);return e}},methods:{get_item_list:function(){var e=this;this.request("/api/item/myList",{}).then(function(t){e.itemList=t.data})},feedback:function(){if("en"==DocConfig.lang)window.open("https://github.com/star7th/showdoc/issues");else{var e="你正在使用免费开源版showdoc,如有问题或者建议,请到github提issue:";e+="<a href='https://github.com/star7th/showdoc/issues' target='_blank'>https://github.com/star7th/showdoc/issues</a><br>",e+="如果你觉得showdoc好用,不妨给开源项目点一个star。良好的关注度和参与度有助于开源项目的长远发展。",this.$alert(e,{dangerouslyUseHTMLString:!0})}},item_top_class:function(e){return e?"el-icon-arrow-down":"el-icon-arrow-up"},bind_item_even:function(){D(["static/jquery.min.js"],function(){$(".item-thumbnail").mouseover(function(){$(this).find(".item-setting").show()}),$(".item-thumbnail").mouseout(function(){$(this).find(".item-setting").hide(),$(this).find(".item-top").hide(),$(this).find(".item-down").hide()})})},click_item_setting:function(e){this.$router.push({path:"/item/setting/"+e})},click_item_exit:function(e){var t=this;this.$confirm(t.$t("confirm_exit_item")," ",{confirmButtonText:t.$t("confirm"),cancelButtonText:t.$t("cancel"),type:"warning"}).then(function(){var a=DocConfig.server+"/api/item/exitItem",i=new URLSearchParams;i.append("item_id",e),t.axios.post(a,i).then(function(e){0===e.data.error_code?window.location.reload():t.$alert(e.data.error_message)})})},logout:function(){var e=this,t=DocConfig.server+"/api/user/logout",a=new URLSearchParams;e.axios.get(t,a).then(function(t){0===t.data.error_code?e.$router.push({path:"/"}):e.$alert(t.data.error_message)})},user_info:function(){var e=this;this.get_user_info(function(t){0===t.data.error_code&&1==t.data.data.groupid&&(e.isAdmin=!0)})},dropdown_callback:function(e){e&&e()},sort_item:function(e){var t=this,a=DocConfig.server+"/api/item/sort",i=new URLSearchParams;i.append("data",p()(e)),t.axios.post(a,i).then(function(e){0===e.data.error_code?t.get_item_list():t.$alert(e.data.error_message,"",{callback:function(){window.location.reload()}})})},exchangeArray:function(e,t,a){var i=e[t];return e.splice(t,1),e.splice(a,0,i),e},endMove:function(e){var t=this,a={},i=this.exchangeArray(this.itemList,e.oldIndex,e.newIndex);this.itemList=[],this.$nextTick(function(){t.itemList=i});for(var o=0;o<i.length;o++){a[i[o].item_id]=o+1}this.sort_item(a)},script_cron:function(){var e=DocConfig.server+"/api/ScriptCron/run";this.axios.get(e)},checkDb:function(){var e=DocConfig.server+"/api/update/checkDb";this.axios.get(e)}},mounted:function(){var e=this;this.get_item_list(),this.user_info(),this.lang=DocConfig.lang,this.script_cron(),this.checkDb(),this.get_user_info(function(t){0===t.data.error_code&&(e.username=t.data.data.username)})},beforeDestroy:function(){this.$message.closeAll()}},V={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._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:""}}),e._v("ShowDoc\n ")])]),e._v(" "),a("div",{staticClass:"header-btn-group pull-right"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("feedback"),placement:"top"}},[a("router-link",{attrs:{to:""}},[a("i",{staticClass:"el-icon-phone-outline",on:{click:e.feedback}})])],1),e._v(" "),"zh-cn"==e.lang?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"客户端",placement:"top"}},[a("a",{attrs:{target:"_blank",href:"https://www.showdoc.cc/clients"}},[a("i",{staticClass:"el-icon-mobile-phone"})])]):e._e(),e._v(" "),"zh-cn"==e.lang?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"接口开发调试工具RunApi",placement:"top"}},[a("a",{attrs:{target:"_blank",href:"https://www.showdoc.cc/runapi"}},[a("i",{staticClass:"el-icon-connection"})])]):e._e(),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("team_mamage"),placement:"top"}},[a("router-link",{attrs:{to:"/team/index"}},[a("i",{staticClass:"el-icon-s-flag"})])],1),e._v(" "),e.isAdmin?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("background"),placement:"top"}},[a("router-link",{attrs:{to:"/admin/index"}},[a("i",{staticClass:"el-icon-s-tools"})])],1):e._e(),e._v(" \n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("more"),placement:"top"}},[a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.dropdown_callback}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-caret-bottom el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("router-link",{attrs:{to:"/user/setting"}},[e._v(e._s(e.$t("Logged"))+":"+e._s(e.username))])],1),e._v(" "),a("el-dropdown-item",[a("router-link",{attrs:{to:"/attachment/index"}},[e._v(e._s(e.$t("my_attachment")))])],1),e._v(" "),a("el-dropdown-item",{attrs:{command:e.logout}},[e._v(e._s(e.$t("logout")))])],1)],1)],1)],1)])],1),e._v(" "),a("el-container",{staticClass:"container-narrow"},[a("div",{staticClass:"container-thumbnails"},[e.itemList.length>9?a("div",{staticClass:"search-box-div"},[a("div",{staticClass:"search-box el-input el-input--prefix"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],staticClass:"el-input__inner",attrs:{autocomplete:"off",type:"text",rows:"2",validateevent:"true"},domProps:{value:e.keyword},on:{input:function(t){t.target.composing||(e.keyword=t.target.value)}}}),e._v(" "),a("span",{staticClass:"el-input__prefix"},[a("i",{staticClass:"el-input__icon el-icon-search"})])])]):e._e(),e._v(" "),e.itemListByKeyword?a("ul",{staticClass:"thumbnails",attrs:{id:"item-list"}},[a("draggable",{attrs:{tag:"span",group:"item",ghostClass:"sortable-chosen"},on:{end:e.endMove},model:{value:e.itemListByKeyword,callback:function(t){e.itemListByKeyword=t},expression:"itemListByKeyword"}},e._l(e.itemListByKeyword,function(t){return a("li",{directives:[{name:"dragging",rawName:"v-dragging",value:{item:t,list:e.itemListByKeyword,group:"item"},expression:"{ item: item, list: itemListByKeyword, group: 'item' }"}],key:t.item_id,staticClass:"text-center"},[a("router-link",{staticClass:"thumbnail item-thumbnail",attrs:{to:"/"+(t.item_domain?t.item_domain:t.item_id),title:""}},[t.creator?a("span",{staticClass:"item-setting",attrs:{title:e.$t("item_setting")},on:{click:function(a){return a.preventDefault(),e.click_item_setting(t.item_id)}}},[a("i",{staticClass:"el-icon-setting"})]):e._e(),e._v(" "),t.creator?e._e():a("span",{staticClass:"item-exit",attrs:{title:e.$t("item_exit")},on:{click:function(a){return a.preventDefault(),e.click_item_exit(t.item_id)}}},[a("i",{staticClass:"el-icon-close"})]),e._v(" "),a("p",{staticClass:"my-item"},[e._v(e._s(t.item_name))]),e._v(" "),t.is_private?a("span",{staticClass:"item-private"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("private_tips"),placement:"right"}},[a("i",{staticClass:"el-icon-lock"})])],1):e._e()])],1)}),0),e._v(" "),a("li",{staticClass:"text-center"},[a("router-link",{staticClass:"thumbnail item-thumbnail",attrs:{to:"/item/add",title:""}},[a("p",{staticClass:"my-item"},[e._v("\n "+e._s(e.$t("new_item"))+"\n "),a("i",{staticClass:"el-icon-plus"})])])],1)],1):e._e()])]),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var U=a("VU/8")(M,V,!1,function(e){a("B2VT")},"data-v-dcdca8ac",null).exports,R={name:"Login",components:{},data:function(){return{infoForm:{item_name:"",item_description:"",item_domain:"",password:"",item_type:"1"},isOpenItem:!0}},methods:{FormSubmit:function(){var e=this,t=DocConfig.server+"/api/item/add";if(!this.isOpenItem&&!this.infoForm.password)return e.$alert(e.$t("private_item_passwrod")),!1;this.isOpenItem&&(this.infoForm.password="");var a=new URLSearchParams;a.append("item_type",this.infoForm.item_type),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),e.axios.post(t,a).then(function(t){0===t.data.error_code?e.$router.push({path:"/item/index"}):e.$alert(t.data.error_message)})}},mounted:function(){}},A={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("el-form",{staticClass:"infoForm",attrs:{"status-icon":"","label-width":"10px"},model:{value:e.infoForm,callback:function(t){e.infoForm=t},expression:"infoForm"}},[a("el-form-item",[a("el-radio-group",{model:{value:e.infoForm.item_type,callback:function(t){e.$set(e.infoForm,"item_type",t)},expression:"infoForm.item_type"}},[a("el-radio",{attrs:{label:"1"}},[e._v(e._s(e.$t("regular_item")))]),e._v(" "),a("el-radio",{attrs:{label:"4"}},[e._v(e._s(e.$t("table")))]),e._v(" "),a("el-radio",{attrs:{label:"2"}},[e._v("\n "+e._s(e.$t("single_item"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("single_item_tips"),placement:"top"}},[a("i",{staticClass:"el-icon-question"})])],1)],1)],1),e._v(" "),a("el-form-item",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("item_name"),placement:"right"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:e.$t("item_name")},model:{value:e.infoForm.item_name,callback:function(t){e.$set(e.infoForm,"item_name",t)},expression:"infoForm.item_name"}})],1)],1),e._v(" "),a("el-form-item",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("item_description"),placement:"right"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:e.$t("item_description")},model:{value:e.infoForm.item_description,callback:function(t){e.$set(e.infoForm,"item_description",t)},expression:"infoForm.item_description"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-radio",{attrs:{label:!0},model:{value:e.isOpenItem,callback:function(t){e.isOpenItem=t},expression:"isOpenItem"}},[e._v(e._s(e.$t("Open_item")))]),e._v(" "),a("el-radio",{attrs:{label:!1},model:{value:e.isOpenItem,callback:function(t){e.isOpenItem=t},expression:"isOpenItem"}},[e._v(e._s(e.$t("private_item")))])],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.isOpenItem,expression:"!isOpenItem"}]},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:e.$t("visit_password")},model:{value:e.infoForm.password,callback:function(t){e.$set(e.infoForm,"password",t)},expression:"infoForm.password"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.FormSubmit}},[e._v(e._s(e.$t("submit")))])],1)],1)],1)},staticRenderFns:[]};var E={name:"Login",components:{},data:function(){return{infoForm:{},isOpenItem:!0,itemList:{},copy_item_id:"",item_name:"",item_description:""}},methods:{get_item_list:function(){var e=this,t=DocConfig.server+"/api/item/myList",a=new URLSearchParams;e.axios.get(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.itemList=a}else e.$alert(t.data.error_message)})},choose_copy_item:function(e){for(var t=0;t<this.itemList.length;t++)e==this.itemList[t].item_id&&(this.item_name=this.itemList[t].item_name+"--copy",this.item_description=this.itemList[t].item_description)},FormSubmit:function(){var e=this,t=DocConfig.server+"/api/item/add";if(!this.isOpenItem&&!this.infoForm.password)return e.$alert(e.$t("private_item_passwrod")),!1;this.isOpenItem&&(this.infoForm.password="");var a=new URLSearchParams;a.append("copy_item_id",this.copy_item_id),a.append("item_name",this.item_name),a.append("item_description",this.item_description),e.axios.post(t,a).then(function(t){0===t.data.error_code?e.$router.push({path:"/item/index"}):e.$alert(t.data.error_message)})}},mounted:function(){this.get_item_list()}},j={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("p",{staticClass:"tips"},[e._v(e._s(e.$t("copy_item_tips1")))]),e._v(" "),a("el-form",{staticClass:"infoForm",attrs:{"status-icon":"","label-width":"10px"},model:{value:e.infoForm,callback:function(t){e.infoForm=t},expression:"infoForm"}},[a("el-form-item",{staticClass:"text-left",attrs:{label:""}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("please_choose")},on:{change:e.choose_copy_item},model:{value:e.copy_item_id,callback:function(t){e.copy_item_id=t},expression:"copy_item_id"}},e._l(e.itemList,function(e){return a("el-option",{key:e.item_id,attrs:{label:e.item_name,value:e.item_id}})}),1)],1),e._v(" "),a("el-form-item",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("copy_item_tips2"),placement:"right"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:e.$t("copy_item_tips2")},model:{value:e.item_name,callback:function(t){e.item_name=t},expression:"item_name"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.FormSubmit}},[e._v(e._s(e.$t("submit")))])],1)],1)],1)},staticRenderFns:[]};var O={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("p",[a("span",{domProps:{innerHTML:e._s(e.$t("open_api_tips1"))}})]),e._v(" "),a("p",[a("span",{domProps:{innerHTML:e._s(e.$t("open_api_tips2"))}})]),e._v(" "),a("p",[a("span",{domProps:{innerHTML:e._s(e.$t("open_api_tips3"))}})]),e._v(" "),a("p",[a("span",{domProps:{innerHTML:e._s(e.$t("open_api_tips4"))}})])])},staticRenderFns:[]};var q={name:"Login",components:{},data:function(){return{api_key:"",api_token:"",loading:"",upload_url:DocConfig.server+"/api/import/auto"}},methods:{success:function(e){this.loading.close(),0===e.error_code?this.$router.push({path:"/item/index"}):this.$alert(e.error_message)},beforeUpload:function(){this.loading=this.$loading()}},mounted:function(){}},B={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("p",{staticClass:"tips"},[a("span",{domProps:{innerHTML:e._s(e.$t("import_file_tips1"))}})]),e._v(" "),a("p",[a("el-upload",{staticClass:"upload-demo",attrs:{drag:"",name:"file",action:e.upload_url,"on-success":e.success,"before-upload":e.beforeUpload,"show-file-list":!1}},[a("i",{staticClass:"el-icon-upload"}),e._v(" "),a("div",{staticClass:"el-upload__text"},[a("span",{domProps:{innerHTML:e._s(e.$t("import_file_tips2"))}})])])],1),e._v(" "),a("p"),e._v(" "),a("p")])},staticRenderFns:[]};var z={name:"Login",components:{Regular:a("VU/8")(R,A,!1,function(e){a("j3By")},"data-v-fd95dd74",null).exports,Copy:a("VU/8")(E,j,!1,function(e){a("pt9Z")},"data-v-15948fa9",null).exports,OpenApi:a("VU/8")({name:"Login",components:{},data:function(){return{api_key:"",api_token:""}},methods:{},mounted:function(){}},O,!1,function(e){a("bv2D")},"data-v-ad064460",null).exports,Import:a("VU/8")(q,B,!1,function(e){a("qHHh")},"data-v-11eb7760",null).exports},data:function(){return{userInfo:{}}},methods:{get_item_info:function(){var e=this,t=DocConfig.server+"/api/item/detail",a=new URLSearchParams;a.append("item_id",e.$route.params.item_id),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.infoForm=a}else e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})},goback:function(){this.$router.go(-1)}},mounted:function(){},beforeDestroy:function(){}},H={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[[a("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:e.goback}},[a("i",{staticClass:"el-icon-back"})]),e._v(" "),a("el-tabs",{attrs:{value:"first",type:"card"}},[a("el-tab-pane",{attrs:{label:e.$t("new_item"),name:"first"}},[a("Regular")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("copy_item"),name:"third"}},[a("Copy")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("import_file"),name:"four"}},[a("Import")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("auto_item"),name:"five"}},[a("OpenApi")],1)],1)]],2)],1),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var N=a("VU/8")(z,H,!1,function(e){a("6Gtl")},"data-v-42d40eb4",null).exports,J={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 e=this.$route.params.item_id?this.$route.params.item_id:0,t=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",e),o.append("page_id",t),o.append("password",this.password),o.append("v_code",this.v_code),a.axios.post(i,o).then(function(t){if(0===t.data.error_code){var i=decodeURIComponent(a.$route.query.redirect||"/"+e);a.$router.replace({path:i})}else 10206!==t.data.error_code&&10308!==t.data.error_code||(a.show_v_code=!0,a.change_v_code_img()),a.$alert(t.data.error_message)})},change_v_code_img:function(){var e="&rand="+Math.random();this.v_code_img+=e}},mounted:function(){},beforeDestroy:function(){}},Y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",[a("el-card",{staticClass:"center-card",attrs:{onkeydown:"if(event.keyCode==13)return false;"}},[a("el-form",{staticClass:"demo-ruleForm",attrs:{"status-icon":"","label-width":"0px"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmit(t)}}},[a("h2",[e._v(e._s(e.$t("input_visit_password")))]),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:e.$t("password")},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}})],1),e._v(" "),e.show_v_code?a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:e.$t("verification_code")},model:{value:e.v_code,callback:function(t){e.v_code=t},expression:"v_code"}}),e._v(" "),a("img",{staticClass:"v_code_img",attrs:{src:e.v_code_img},on:{click:e.change_v_code_img}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$t("submit")))])],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("router-link",{attrs:{to:"/user/login"}},[e._v(e._s(e.$t("login")))]),e._v("\n \n ")],1)],1)],1)],1),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var W=a("VU/8")(J,Y,!1,function(e){a("Y+qT")},"data-v-4a7c4210",null).exports,G={render:function(){var e=this.$createElement,t=this._self._c||e;return t("transition",{attrs:{name:"fade"}},[t("div",{staticClass:"img-view",on:{click:this.bigImg}},[t("div",{staticClass:"img-layer"}),this._v(" "),t("div",{staticClass:"img"},[t("img",{attrs:{src:this.imgSrc}})])])])},staticRenderFns:[]};var K=a("VU/8")({props:["imgSrc"],methods:{bigImg:function(){this.$emit("clickit")}}},G,!1,function(e){a("/BJT")},"data-v-8b8ced44",null).exports;if("undefined"!=typeof window)var X=a("zhAq");var Z={name:"Editor",props:{width:"",content:{type:String,default:"###初始化成功"},type:{type:String,default:"editor"},keyword:{type:String,default:""},id:{type:String,default:"editor-md"},editorPath:{type:String,default:"static/editor.md"},editorConfig:{type:Object,default:function(){var e=this;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")},toolbarIcons:function(){return["undo","redo","|","bold","del","italic","quote","|","toc","mindmap","h1","h2","h3","h4","h5","h6","|","list-ul","list-ol","hr","center","|","link","reference-link","image","video","code","code-block","table","datetime","html-entities","pagebreak","|","watch","preview","fullscreen","clear","search","|","help","info"]},toolbarIconsClass:{toc:"fa-bars ",mindmap:"fa-sitemap ",video:"fa-file-video-o",center:"fa-align-center"},toolbarHandlers:{toc:function(e,t,a,i){e.setCursor(0,0),e.replaceSelection("[TOC]\r\n\r\n")},video:function(e,t,a,i){e.replaceSelection('\r\n<video src="http://your-site.com/your.mp4" style="width: 100%; height: 100%;" controls="controls"></video>\r\n'),""===i&&e.setCursor(a.line,a.ch+1)},mindmap:function(e,t,a,i){e.replaceSelection("\n```mindmap\n# 一级\n## 二级分支1\n### 三级分支1\n### 三级分支2\n## 二级分支2\n### 三级分支3\n### 三级分支4\n```\n"),""===i&&e.setCursor(a.line,a.ch+1)},center:function(e,t,a,i){e.replaceSelection("<center>"+i+"</center>"),""===i&&e.setCursor(a.line,a.ch+1)}},lang:{toolbar:{toc:"在最开头插入TOC,自动生成标题目录",mindmap:"插入思维导图",video:"插入视频",center:"居中"}},onchange:function(){e.deal_with_content()}}}}},components:{BigImg:K},data:function(){return{instance:null,showImg:!1,imgSrc:""}},computed:{},mounted:function(){var e=this;X([this.editorPath+"/../jquery.min.js",this.editorPath+"/lib/raphael.min.js",this.editorPath+"/lib/flowchart.min.js",this.editorPath+"/lib/d3@5.min.js"],function(){X([e.editorPath+"/../xss.min.js",e.editorPath+"/lib/marked.min.js",e.editorPath+"/lib/prettify.min.js",e.editorPath+"/lib/underscore.min.js",e.editorPath+"/lib/sequence-diagram.min.js",e.editorPath+"/lib/jquery.flowchart.min.js",e.editorPath+"/lib/jquery.mark.min.js",e.editorPath+"/lib/plantuml.js",e.editorPath+"/lib/view.min.js",e.editorPath+"/lib/transform.min.js"],function(){X(e.editorPath+"/editormd.js",function(){e.initEditor()}),X(e.editorPath+"/../highlight/highlight.min.js",function(){hljs.initHighlightingOnLoad()})})})},beforeDestroy:function(){for(var e=1;e<999;e++)window.clearInterval(e)},methods:{initEditor:function(){var e=this;this.$nextTick(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.editormd;t&&("editor"==e.type?e.instance=t(e.id,e.editorConfig):e.instance=t.markdownToHTML(e.id,e.editorConfig),e.deal_with_content())})},insertValue:function(e){this.instance.insertValue(this.html_decode(e))},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 e=this;setInterval(function(){localStorage.page_content=e.getMarkdown()},6e4);var t=localStorage.page_content;t&&t.length>0&&(localStorage.removeItem("page_content"),e.$confirm(e.$t("draft_tips"),"",{showClose:!1}).then(function(){e.clear(),e.insertValue(t),localStorage.removeItem("page_content")}).catch(function(){localStorage.removeItem("page_content")}))},beforeunloadHandler:function(e){return(e=e||window.event)&&(e.returnValue="提示"),"提示"},deal_with_content:function(){var e=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"]').click(function(){var t=$(this).attr("href"),a=e.parseURL(t);return window.location.hostname==a.hostname&&window.location.pathname==a.pathname?(window.location.href=t,a.hash&&window.location.reload()):window.open(t),!1}),$("#"+this.id+" table tbody tr").each(function(){var e=$(this),t=e.find("td").eq(1).html(),a=e.find("td").eq(2).html();"object"==t||"array[object]"==t||"object"==a||"array[object]"==a?e.css({"background-color":"#F8F8F8"}):e.css("background-color","#fff"),e.hover(function(){e.css("background-color","#F8F8F8")},function(){"object"==t||"array[object]"==t||"object"==a||"array[object]"==a?e.css({"background-color":"#F8F8F8"}):e.css("background-color","#fff")})});var t=$("#"+this.id+" p").width();t=t||722,$("#"+this.id+" table").each(function(e){var a=$(this).get(0).rows.item(0).cells.length,i=Math.floor(t/a)-2;a<=5&&$(this).find("th").css("width",i.toString()+"px")}),$("#"+this.id+" img").click(function(){var t=$(this).attr("src");e.showImg=!0,e.imgSrc=t}),$("#"+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 code").each(function(){$(this).find("span").text()&&$(this).parent().css("list-style-type","none")}),$("#"+this.id+" .linenums li").css("background-color","#fcfcfc"),$(".markdown-body pre").css("background-color","#fcfcfc"),$(".markdown-body pre").css("border","1px solid #e1e1e8"),this.keyword&&$("#"+this.id).mark(this.keyword)},html_decode:function(e){return 0==e.length?"":e.replace(/>/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/ /g," ").replace(/'/g,"'").replace(/"/g,'"')},parseURL:function(e){var t=document.createElement("a");return t.href=e,{source:e,protocol:t.protocol.replace(":",""),host:t.hostname,hostname:t.hostname,port:t.port,query:t.search,params:function(){for(var e,a={},i=t.search.replace(/^\?/,"").split("&"),o=i.length,n=0;n<o;n++)i[n]&&(a[(e=i[n].split("="))[0]]=e[1]);return a}(),hash:t.hash.replace("#",""),path:t.pathname.replace(/^([^\/])/,"/$1"),pathname:t.pathname.replace(/^([^\/])/,"/$1")}}}},Q={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"main-editor",attrs:{id:e.id}},[a("link",{attrs:{href:"static/editor.md/css/editormd.min.css",rel:"stylesheet"}}),e._v(" "),a("textarea",{staticStyle:{display:"none"},domProps:{innerHTML:e._s(e.content)}}),e._v(" "),e.showImg?a("BigImg",{attrs:{imgSrc:e.imgSrc},on:{clickit:function(t){e.showImg=!1}}}):e._e()],1)},staticRenderFns:[]};var ee=a("VU/8")(Z,Q,!1,function(e){a("D4Ma")},null,null).exports,te={data:function(){return{status:!1,scrollTop:0,timer:null,speed:50}},mounted:function(){var e=this;window.onscroll=function(){e.scrollTop=document.body.scrollTop?document.body.scrollTop:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:null,e.status=e.scrollTop&&e.scrollTop>0}},methods:{gototop:function(){var e=this;e.timer=setInterval(function(){e.scrollTop-=2e3,e.scrollTop<100&&(e.scrollTop=0,e.status=!1,clearInterval(e.timer)),scrollTo(0,e.scrollTop)},this.speed)}},destroyed:function(){clearInterval(this.timer)}},ae={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{directives:[{name:"show",rawName:"v-show",value:this.status,expression:"status"}],staticClass:"gotop-box",on:{click:this.gototop}},[t("i",{staticClass:"el-icon-caret-top",attrs:{title:this.$t("back_to_top")}})])},staticRenderFns:[]};var ie=a("VU/8")(te,ae,!1,function(e){a("M2JD")},"data-v-f105c618",null).exports,oe={data:function(){return{}},mounted:function(){var e=this,t=setInterval(function(){try{void 0!=$&&(clearInterval(t),e.toc_main_script())}catch(e){}},200)},methods:{toc_main_script:function(){$(document).on("click",".markdown-toc-list a[href]",function(e){e.preventDefault();var t=$(this).attr("href").substring(1),a=$('[name="'+t+'"]').offset().top;$("html, body").animate({scrollTop:a},300)}),$(document).on("click",".markdown-toc",function(e){$(e.target).is("a")||$(".markdown-toc").toggleClass("open-list")}),$(window).scroll(function(e){var t="";$(".markdown-toc-list a[href]").each(function(e,a){var i=$(a).attr("href").substring(1);if(!($('[name="'+i+'"]').offset().top-$(window).scrollTop()<1))return!1;t=i}),$(".markdown-toc-list a").removeClass("current"),$('.markdown-toc-list a[href="#'+t+'"]').addClass("current")}),!this.isMobile()&&window.screen.width>1e3&&this.$nextTick(function(){setTimeout(function(){$(".markdown-toc").click()},200)})}},destroyed:function(){$(document).off("click",".markdown-toc-list a[href]"),$(document).off("click",".markdown-toc"),$(".markdown-toc").remove()}},ne={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var se=a("VU/8")(oe,ne,!1,function(e){a("yUSZ")},null,null).exports,re={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.catalog.length?e._l(e.catalog,function(t){return a("el-submenu",{key:t.cat_id,attrs:{index:t.cat_id}},[a("template",{slot:"title"},[a("img",{attrs:{src:"static/images/folder.png"}}),e._v("\n "+e._s(t.cat_name)+"\n ")]),e._v(" "),t.pages?e._l(t.pages,function(t){return a("el-menu-item",{key:t.page_id,attrs:{index:t.page_id}},[a("i",{staticClass:"el-icon-document"}),e._v(" "),a("span",{attrs:{title:t.page_title,id:"left_page_"+t.page_id}},[e._v(e._s(t.page_title))])])}):e._e(),e._v(" "),t.catalogs.length?a("LeftMenuSub",{attrs:{catalog:t.catalogs}}):e._e()],2)}):e._e()],2)},staticRenderFns:[]};var le={props:{get_page_content:"",item_info:"",search_item:"",keyword:""},data:function(){return{openeds:[],menu:"",show_menu_btn:!1,hideScrollbar:!0,asideWidth:"250px",menuMarginLeft:"menu-margin-left1"}},components:{LeftMenuSub:a("VU/8")({name:"LeftMenuSub",props:{catalog:[]},data:function(){return{}},components:{},methods:{},mounted:function(){}},re,!1,function(e){a("RU/w")},"data-v-e06959a0",null).exports},methods:{select_menu:function(e,t){this.change_url(e),this.get_page_content(e)},new_page:function(){var e="/page/edit/"+this.item_info.item_id+"/0";this.$router.push({path:e})},mamage_catalog:function(){var e="/catalog/"+this.item_info.item_id;this.$router.push({path:e})},change_url:function(e){if(!(e>0&&e==this.$route.query.page_id)){var t=this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id;this.$router.replace({path:"/"+t,query:{page_id:e}})}},input_keyword:function(){this.search_item(this.keyword)},show_menu:function(){this.show_menu_btn=!1;var e=document.getElementById("left-side-menu");e.style.display="block",e.style.marginLeft="0px",e.style.marginTop="0px",e.style.position="static",(e=document.getElementById("p-content")).style.display="none"},hide_menu:function(){this.show_menu_btn=!0;var e=document.getElementById("left-side-menu");e.style.display="none",(e=document.getElementById("p-content")).style.marginLeft="0px",e.style.display="block",(e=document.getElementById("page_md_content")).style.width="95%"}},mounted:function(){this.menu=this.item_info.menu;var e=this.item_info;e.default_page_id>0&&(this.select_menu(e.default_page_id),e.default_cat_id4?this.openeds=[e.default_cat_id4,e.default_cat_id3,e.default_cat_id2,e.default_page_id]:e.default_cat_id3?this.openeds=[e.default_cat_id3,e.default_cat_id2,e.default_page_id]:e.default_cat_id2&&(this.openeds=[e.default_cat_id2,e.default_page_id]),setTimeout(function(){document.querySelector("#left_page_"+e.default_page_id).scrollIntoView()},1e3)),window.screen.width>=1600&&this.menu.catalogs&&this.menu.catalogs.length>0&&(this.asideWidth="300px",this.menuMarginLeft="menu-margin-left2")}},ce={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.hideScrollbar?"hide-scrollbar":"normal-scrollbar"},[e.show_menu_btn?a("i",{staticClass:"el-icon-menu header-left-btn",attrs:{id:"header-left-btn"},on:{click:e.show_menu}}):e._e(),e._v(" "),e.show_menu_btn?a("i",{staticClass:"el-icon-menu header-left-btn",attrs:{id:"header-left-btn"},on:{click:e.show_menu}}):e._e(),e._v(" "),a("el-aside",{class:e.menuMarginLeft,attrs:{id:"left-side-menu",width:e.asideWidth},nativeOn:{mouseenter:function(t){e.hideScrollbar=!1},mouseleave:function(t){e.hideScrollbar=!0}}},[a("el-menu",{attrs:{"background-color":"#fafafa","text-color":"","active-text-color":"#008cff","default-active":e.item_info.default_page_id,"default-openeds":e.openeds},on:{select:e.select_menu}},[a("el-input",{staticClass:"search-box",attrs:{placeholder:e.$t("input_keyword"),clearable:!0},on:{clear:function(t){return e.search_item()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.input_keyword(t)}},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}}),e._v(" "),e.menu.pages&&e.menu.pages.length?e._l(e.menu.pages,function(t){return a("el-menu-item",{key:t.page_id,attrs:{index:t.page_id}},[a("i",{staticClass:"el-icon-document"}),e._v(" "),a("span",{attrs:{title:t.page_title,id:"left_page_"+t.page_id}},[e._v(e._s(t.page_title))])])}):e._e(),e._v(" "),e.menu.catalogs&&e.menu.catalogs.length?a("LeftMenuSub",{attrs:{catalog:e.menu.catalogs}}):e._e()],2)],1)],1)},staticRenderFns:[]};var de=a("VU/8")(le,ce,!1,function(e){a("P1Jq"),a("+Yta")},"data-v-7e34519b",null).exports,me={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 e=this,t=DocConfig.server+"/api/page/history",a=new URLSearchParams,i=this.page_id?this.page_id:e.$route.params.page_id;a.append("page_id",i),e.axios.post(t,a).then(function(t){0===t.data.error_code?t.data.data.length>0?(e.content=t.data.data,e.dialogTableVisible=!0):(e.dialogTableVisible=!1,e.$alert("no data")):(e.dialogTableVisible=!1,e.$alert(t.data.error_message))}).catch(function(e){console.log(e)})},show:function(){this.get_content()},recover:function(e){this.callback(e.page_content,!0),this.dialogTableVisible=!1},preview_diff:function(e){var t=e.page_history_id,a="#/page/diff/"+(this.page_id?this.page_id:this.$route.params.page_id)+"/"+t;window.open(a)}},mounted:function(){}},_e={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",{staticClass:"container-narrow"},[a("el-dialog",{attrs:{title:e.$t("history_version"),modal:e.is_modal,visible:e.dialogTableVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("el-table",{attrs:{data:e.content}},[a("el-table-column",{attrs:{property:"addtime",label:e.$t("update_time"),width:"170"}}),e._v(" "),a("el-table-column",{attrs:{property:"author_username",label:e.$t("update_by_who")}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.preview_diff(t.row)}}},[e._v(e._s(e.$t("overview")))]),e._v(" "),e.is_show_recover_btn?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.recover(t.row)}}},[e._v(e._s(e.$t("recover_to_this_version")))]):e._e()]}}])})],1)],1)],1),e._v(" "),a("Footer"),e._v(" "),a("div",{})],1)},staticRenderFns:[]};var pe=a("VU/8")(me,_e,!1,function(e){a("gfD7")},null,null).exports,ue={props:{item_id:"",item_domain:"",page_id:"",item_info:"",page_info:{}},data:function(){return{menu:[],dialogVisible:!1,qr_page_link:"#",qr_single_link:"#",share_page_link:"",share_single_link:"",copyText1:"",copyText2:"",isCreateSiglePage:!1,showMore:!1,lang:"",show_menu_btn:!1,show_op_bar:!0}},components:{HistoryVersion:pe},methods:{edit_page:function(){var e=this.page_id>0?this.page_id:0,t="/page/edit/"+this.item_id+"/"+e;this.$router.push({path:t})},share_page:function(){var e=this.page_id>0?this.page_id:0,t=this.item_domain?this.item_domain:this.item_id;this.share_page_link=this.getRootPath()+"#/"+t+"?page_id="+e,this.qr_page_link=DocConfig.server+"/api/common/qrcode&size=3&url="+encodeURIComponent(this.share_page_link),this.dialogVisible=!0,this.copyText1=this.item_info.item_name+" - "+this.page_info.page_title+"\r\n"+this.share_page_link,this.copyText2=this.page_info.page_title+"\r\n"+this.share_single_link},dropdown_callback:function(e){e&&e()},show_page_info:function(){var e="本页面由 "+this.page_info.author_username+" 于 "+this.page_info.addtime+" 更新";this.$alert(e)},ShowHistoryVersion:function(){this.$refs.HistoryVersion.show()},delete_page:function(){var e=this.page_id>0?this.page_id:0,t=this,a=DocConfig.server+"/api/page/delete";this.$confirm(t.$t("comfirm_delete")," ",{confirmButtonText:t.$t("confirm"),cancelButtonText:t.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("page_id",e),t.axios.post(a,i).then(function(e){0===e.data.error_code?window.location.reload():t.$alert(e.data.error_message)})})},onCopy:function(){this.$message(this.$t("copy_success"))},checkCreateSiglePage:function(e){var t=this;e?this.CreateSiglePage():this.$confirm(this.$t("cancelSingle")," ",{confirmButtonText:this.$t("cancelSingleYes"),cancelButtonText:this.$t("cancelSingleNo"),type:"warning"}).then(function(){t.CreateSiglePage()},function(){t.isCreateSiglePage=!0})},CreateSiglePage:function(){var e=this.page_id>0?this.page_id:0,t=this,a=DocConfig.server+"/api/page/createSinglePage",i=new URLSearchParams;i.append("page_id",e),i.append("isCreateSiglePage",this.isCreateSiglePage),t.axios.post(a,i).then(function(e){if(0===e.data.error_code){var a=e.data.data.unique_key;t.share_single_link=a?t.getRootPath()+"#/p/"+a:""}else t.$alert(e.data.error_message)})},new_page:function(){var e="/page/edit/"+this.item_info.item_id+"/0";this.$router.push({path:e})},mamage_catalog:function(){var e="/catalog/"+this.item_info.item_id;this.$router.push({path:e})},showMoreAction:function(){this.showMore=!0,document.getElementById("page_md_content").getElementsByClassName("open-list")[0].style.top="330px"},hideMoreAction:function(){this.showMore=!1,document.getElementById("page_md_content").getElementsByClassName("open-list")[0].style.top="230px"},handleCommand:function(e){switch(e){case"goback":this.$router.push({path:"/item/index"});break;case"share":this.share_page();break;case"new_page":this.new_page();break;case"new_catalog":this.mamage_catalog();break;case"edit_page":this.edit_page();break;case"ShowHistoryVersion":this.ShowHistoryVersion();break;case"copy":this.$router.push({path:"/page/edit/"+this.item_info.item_id+"/0?copy_page_id="+this.page_id});break;case"export":this.$router.push({path:"/item/export/"+this.item_info.item_id});break;case"delete_page":this.delete_page()}}},mounted:function(){var e=this;this.lang=DocConfig.lang,this.page_info.unique_key&&(this.isCreateSiglePage=!0,this.share_single_link=this.getRootPath()+"#/p/"+this.page_info.unique_key),document.onkeydown=function(t){var a=window.event?t.keyCode:t.which;69==a&&t.ctrlKey&&(e.edit_page(),t.preventDefault()),46==a&&t.ctrlKey&&(e.delete_page(),t.preventDefault())},(this.isMobile()||window.innerWidth<1300&&!this.item_info.is_login)&&(this.show_menu_btn=!1,this.show_op_bar=!1),(this.isMobile()||window.innerWidth<1300&&this.item_info.is_login)&&(this.show_menu_btn=!0,this.show_op_bar=!1)},watch:{page_info:function(){this.page_info.unique_key?(this.isCreateSiglePage=!0,this.share_single_link=this.getRootPath()+"#/p/"+this.page_info.unique_key):(this.isCreateSiglePage=!1,this.share_single_link="")}},destroyed:function(){document.onkeydown=void 0}},fe={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[e.show_menu_btn?a("div",{attrs:{id:"header-right-btn"}},[a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-caret-bottom el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"goback"}},[e._v(e._s(e.$t("goback")))]),e._v(" "),a("el-dropdown-item",{attrs:{command:"share"}},[e._v(e._s(e.$t("share")))]),e._v(" "),e.item_info.ItemPermn?a("el-dropdown-item",{attrs:{command:"new_page"}},[e._v(e._s(e.$t("new_page")))]):e._e(),e._v(" "),e.item_info.ItemPermn?a("el-dropdown-item",{attrs:{command:"new_catalog"}},[e._v(e._s(e.$t("new_catalog")))]):e._e(),e._v(" "),e.item_info.ItemPermn?a("el-dropdown-item",{attrs:{command:"edit_page"}},[e._v(e._s(e.$t("edit_page")))]):e._e(),e._v(" "),e.item_info.ItemPermn?a("el-dropdown-item",{attrs:{command:"copy"}},[e._v(e._s(e.$t("copy")))]):e._e(),e._v(" "),e.item_info.ItemPermn?a("el-dropdown-item",{attrs:{command:"ShowHistoryVersion"}},[e._v(e._s(e.$t("history_version")))]):e._e(),e._v(" "),e.item_info.ItemPermn?a("el-dropdown-item",{attrs:{command:"export"}},[e._v(e._s(e.$t("export")))]):e._e(),e._v(" "),e.item_info.ItemPermn?a("el-dropdown-item",{attrs:{command:"delete_page"}},[e._v(e._s(e.$t("delete_interface")))]):e._e()],1)],1)],1):e._e(),e._v(" "),e.show_op_bar?a("div",{staticClass:"op-bar"},[e.item_info.is_login?e._e():a("span",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("index_login_or_register"),placement:"top"}},[a("router-link",{attrs:{to:"/user/login"}},[a("i",{staticClass:"el-icon-user"})])],1),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("history_version"),placement:"top"}},[a("i",{staticClass:"el-icon-goods",on:{click:e.ShowHistoryVersion}})]),e._v(" "),"zh-cn"==e.lang?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("about_showdoc"),placement:"top"}},[a("a",{attrs:{href:"https://www.showdoc.cc/help",target:"_blank"}},[a("i",{staticClass:"el-icon-arrow-right"})])]):e._e()],1),e._v(" "),e.item_info.is_login?a("span",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("goback"),placement:"left"}},[a("router-link",{attrs:{to:"/item/index"}},[a("i",{staticClass:"el-icon-back"})])],1),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("share"),placement:"top"}},[a("i",{staticClass:"el-icon-share",on:{click:e.share_page}})]),e._v(" "),e.item_info.ItemPermn?e._e():a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("detail"),placement:"top"}},[a("i",{staticClass:"el-icon-info",on:{click:e.show_page_info}})])],1):e._e(),e._v(" "),e.item_info.ItemPermn?a("span",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("new_page"),placement:"top"}},[a("i",{staticClass:"el-icon-plus",on:{click:e.new_page}})]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("new_catalog"),placement:"left"}},[a("i",{staticClass:"el-icon-folder",on:{click:e.mamage_catalog}})]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("edit_page"),placement:"top"}},[a("i",{staticClass:"el-icon-edit",on:{click:e.edit_page}})]),e._v(" "),a("el-tooltip",{directives:[{name:"show",rawName:"v-show",value:!e.showMore,expression:"!showMore"}],staticClass:"item",attrs:{effect:"dark",content:e.$t("more"),placement:"top"}},[a("i",{staticClass:"el-icon-caret-top",on:{click:e.showMoreAction}})]),e._v(" "),a("el-tooltip",{directives:[{name:"show",rawName:"v-show",value:e.showMore,expression:"showMore"}],staticClass:"item",attrs:{effect:"dark",content:e.$t("more"),placement:"top"}},[a("i",{staticClass:"el-icon-caret-bottom",on:{click:e.hideMoreAction}})]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:e.showMore,expression:"showMore"}]},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("copy"),placement:"left"}},[a("router-link",{attrs:{to:"/page/edit/"+e.item_id+"/0?copy_page_id="+e.page_id}},[a("i",{staticClass:"el-icon-document"})])],1),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("history_version"),placement:"top"}},[a("i",{staticClass:"el-icon-goods",on:{click:e.ShowHistoryVersion}})]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("detail"),placement:"top"}},[a("i",{staticClass:"el-icon-info",on:{click:e.show_page_info}})]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("export"),placement:"left"}},[e.item_info.ItemPermn?a("router-link",{attrs:{to:"/item/export/"+e.item_info.item_id}},[a("i",{staticClass:"el-icon-download"})]):e._e()],1),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("delete_interface"),placement:"top"}},[a("i",{staticClass:"el-icon-delete",on:{click:e.delete_page}})]),e._v(" "),e.item_info.ItemCreator?a("span",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("item_setting"),placement:"top"}},[e.item_info.ItemCreator?a("router-link",{attrs:{to:"/item/setting/"+e.item_info.item_id}},[a("i",{staticClass:"el-icon-setting"})]):e._e()],1)],1):e._e()],1)],1):e._e()]):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.$t("share_page"),visible:e.dialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("p",[e._v("\n "+e._s(e.$t("item_page_address"))+" :\n "),a("code",[e._v(e._s(e.share_page_link))]),e._v(" "),a("i",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.share_page_link,expression:"share_page_link",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"}],staticClass:"el-icon-document-copy"})]),e._v(" "),e._e(),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.item_info.ItemPermn,expression:"item_info.ItemPermn"}]},[a("el-checkbox",{on:{change:e.checkCreateSiglePage},model:{value:e.isCreateSiglePage,callback:function(t){e.isCreateSiglePage=t},expression:"isCreateSiglePage"}},[e._v(e._s(e.$t("create_sigle_page")))]),e._v(" "),e.isCreateSiglePage?a("p",[e._v("\n "+e._s(e.$t("single_page_address"))+" :\n "),a("code",[e._v(e._s(e.share_single_link))]),e._v(" "),a("i",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.share_single_link,expression:"share_single_link",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"}],staticClass:"el-icon-document-copy"})]):e._e(),e._v(" "),a("p"),e._v(" "),a("p",[e._v(e._s(e.$t("create_sigle_page_tips")))])],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible=!1}}},[e._v(e._s(e.$t("confirm")))])],1)]),e._v(" "),a("HistoryVersion",{ref:"HistoryVersion",attrs:{page_id:e.page_id,is_show_recover_btn:!1,is_modal:!1,callback:"insertValue"}})],1)},staticRenderFns:[]};var he=a("VU/8")(ue,fe,!1,function(e){a("aVn+")},"data-v-69443d87",null).exports,ge={props:{callback:"",page_id:"",item_id:"",manage:!0},data:function(){return{dialogTableVisible:!1,page:1,count:5,display_name:"",username:"",dataList:[],total:0,positive_type:"1",attachment_type:"-1",used:0,used_flow:0,uploadUrl:DocConfig.server+"/api/page/upload"}},components:{},computed:{uploadData:function(){return{page_id:this.page_id,item_id:this.item_id}}},methods:{getList:function(){var e=this;this.request("/api/attachment/getMyList",{page:this.page,count:this.count,attachment_type:this.attachment_type,display_name:this.display_name,username:this.username}).then(function(t){var a=t.data;e.dataList=a.list,e.total=parseInt(a.total),e.used=a.used_m,e.used_flow=a.used_flow_m})},show:function(){this.dialogTableVisible=!0,this.getList()},handleCurrentChange:function(e){this.page=e,this.getList()},onSubmit:function(){this.page=1,this.getList()},visit:function(e){window.open(e.url)},delete_row:function(e){var t=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){t.request("/api/attachment/deleteMyAttachment",{file_id:e.file_id}).then(function(e){t.$message.success(t.$t("op_success")),t.getList()})})},uploadCallback:function(e){e.error_message&&this.$alert(e.error_message),this.$refs.uploadFile.clearFiles(),this.getList()},select:function(e){var t=this;this.request("/api/attachment/bindingPage",{file_id:e.file_id,page_id:this.page_id}).then(function(e){t.dialogTableVisible=!1,t.callback()})}},mounted:function(){}},ve={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",{staticClass:"container-narrow"},[a("el-dialog",{attrs:{title:e.$t("file_gub"),visible:e.dialogTableVisible,"close-on-click-modal":!1,width:"65%"},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:e.$t("display_name")},model:{value:e.display_name,callback:function(t){e.display_name=t},expression:"display_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-select",{attrs:{placeholder:""},model:{value:e.attachment_type,callback:function(t){e.attachment_type=t},expression:"attachment_type"}},[a("el-option",{attrs:{label:e.$t("all_attachment_type"),value:"-1"}}),e._v(" "),a("el-option",{attrs:{label:e.$t("image"),value:"1"}}),e._v(" "),a("el-option",{attrs:{label:e.$t("general_attachment"),value:"2"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{on:{click:e.onSubmit}},[e._v(e._s(e.$t("search")))])],1),e._v(" "),a("el-form-item",[a("el-upload",{ref:"uploadFile",staticClass:"upload-file",attrs:{action:e.uploadUrl,"on-success":e.uploadCallback,"on-error":e.uploadCallback}},[a("el-button",[e._v(e._s(e.$t("upload")))])],1)],1)],1),e._v(" "),a("P",[e._v(e._s(e.$t("accumulated_used_sapce"))+" "+e._s(e.used)+"M , "+e._s(e.$t("month_flow"))+" "+e._s(e.used_flow)+"M")]),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.dataList}},[a("el-table-column",{attrs:{prop:"file_id",label:e.$t("file_id")}}),e._v(" "),a("el-table-column",{attrs:{prop:"display_name",label:e.$t("display_name")}}),e._v(" "),a("el-table-column",{attrs:{prop:"file_type",label:e.$t("file_type"),width:"160"}}),e._v(" "),a("el-table-column",{attrs:{prop:"file_size_m",label:e.$t("file_size_m"),width:"160"}}),e._v(" "),a("el-table-column",{attrs:{prop:"visit_times",label:e.$t("visit_times")}}),e._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:e.$t("add_time"),width:"160"}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:e.$t("operation")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.select(t.row)}}},[e._v(e._s(e.$t("select")))]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.visit(t.row)}}},[e._v(e._s(e.$t("visit")))]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.delete_row(t.row)}}},[e._v(e._s(e.$t("delete")))])]}}])})],1),e._v(" "),a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"}),e._v(" "),a("el-pagination",{attrs:{"page-size":e.count,layout:"total, prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1)],1)],1),e._v(" "),a("Footer"),e._v(" "),a("div",{})],1)},staticRenderFns:[]};var be={props:{callback:"",page_id:"",item_id:"",manage:!0},data:function(){return{currentDate:new Date,content:[],dialogTableVisible:!1,uploadUrl:DocConfig.server+"/api/page/upload"}},components:{filehub:a("VU/8")(ge,ve,!1,function(e){a("fRrX")},null,null).exports},computed:{uploadData:function(){return{page_id:this.page_id,item_id:this.item_id}}},methods:{get_content:function(){var e=this,t=DocConfig.server+"/api/page/uploadList",a=new URLSearchParams;a.append("page_id",this.page_id),e.axios.post(t,a).then(function(t){0===t.data.error_code?(e.dialogTableVisible=!0,e.content=t.data.data):(e.dialogTableVisible=!1,e.$alert(t.data.error_message))})},show:function(){this.get_content()},downloadFile:function(e){var t=e.url;window.open(t)},deleteFile:function(e){var t=this;this.$confirm(this.$t("comfirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){var a=e.file_id,i=t,o=DocConfig.server+"/api/page/deleteUploadFile",n=new URLSearchParams;n.append("file_id",a),n.append("page_id",i.page_id),i.axios.post(o,n).then(function(e){0===e.data.error_code?i.get_content():i.$alert(e.data.error_message)})})},clearFiles:function(){this.$refs.uploadFile.clearFiles(),this.get_content()},insertFile:function(e){var t="["+e.display_name+"]("+e.url+' "['+e.display_name+'")';this.callback(t),this.dialogTableVisible=!1},uploadCallback:function(e){e.error_message&&this.$alert(e.error_message),this.$refs.uploadFile.clearFiles(),this.get_content()},showFilehub:function(){this.$refs.filehub.show()}},mounted:function(){}},we={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",{staticClass:"container-narrow"},[a("el-dialog",{attrs:{title:e.$t("attachment"),visible:e.dialogTableVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[a("el-form-item",[a("el-button",{on:{click:e.showFilehub}},[e._v(e._s(e.$t("from_file_gub")))])],1),e._v(" "),a("el-form-item",[e.manage?a("el-upload",{ref:"uploadFile",staticClass:"upload-file",attrs:{action:e.uploadUrl,"on-success":e.uploadCallback,"on-error":e.uploadCallback,data:e.uploadData}},[a("el-button",[e._v(e._s(e.$t("upload")))]),e._v(" "),a("small",[e._v(" "+e._s(e.$t("file_size_tips")))])],1):e._e()],1)],1),e._v(" "),a("el-table",{attrs:{data:e.content}},[a("el-table-column",{attrs:{property:"addtime",label:e.$t("add_time"),width:"170"}}),e._v(" "),a("el-table-column",{attrs:{property:"display_name",label:e.$t("file_name")}}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("operation"),width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.downloadFile(t.row)}}},[e._v(e._s(e.$t("download")))]),e._v(" "),e.manage?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.insertFile(t.row)}}},[e._v(e._s(e.$t("insert")))]):e._e(),e._v(" "),e.manage?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.deleteFile(t.row)}}},[e._v(e._s(e.$t("delete")))]):e._e()]}}])})],1)],1)],1),e._v(" "),a("filehub",{ref:"filehub",attrs:{callback:e.get_content,item_id:e.item_id,page_id:e.page_id}}),e._v(" "),a("Footer"),e._v(" "),a("div",{})],1)},staticRenderFns:[]};var ye=a("VU/8")(be,we,!1,function(e){a("fSLA")},null,null).exports,ke=function(e){return e.replace(/&|<|>|'|"/g,function(e){return{"&":"&","<":"<",">":">","'":"'",""":'"'}[e]||e})},$e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=void 0;e=ke(e);try{a=JSON.parse(e)}catch(e){}if(!a||!a.info||!a.info.url)return e;t&&("get"==a.info.method&&t.query&&t.query[0]&&t.query[0].name&&t.query.map(function(e){a.request.params[a.request.params.mode].unshift(e)}),"get"!=a.info.method&&"json"!=a.request.params.mode&&t.body&&t.body[0]&&t.body[0].name&&t.body.map(function(e){a.request.params[a.request.params.mode].unshift(e)}),t.header&&t.header[0]&&t.header[0].name&&t.header.map(function(e){a.request.headers.unshift(e)}));var i="\n[TOC]\n\n##### 简要描述\n - "+(a.info.description?a.info.description:"无")+"\n\n##### 请求URL\n\n - ` "+a.info.url+" `\n\n##### 请求方式\n - "+a.info.method+"\n ";a.request.headers&&a.request.headers[0]&&a.request.headers[0].name&&(i+="\n##### Header\n\n|header|必选|类型|说明|\n|:----- |:-----|-----|\n",a.request.headers.map(function(e){!e.name||e.disable&&e.disable>=1||(i+="|"+e.name+" |"+(e.require>0?"是":"否")+" |"+e.type+" |"+(e.remark?e.remark:"无")+" |\n")}));var o=a.request.params[a.request.params.mode];o&&o[0]&&o[0].name&&(i+="\n##### 请求参数\n\n|参数名|必选|类型|说明|\n|:----- |:-----|-----|\n",o.map(function(e){!e.name||e.disable&&e.disable>=1||(i+="|"+e.name+" |"+(e.require>0?"是":"否")+" |"+e.type+" |"+(e.remark?e.remark:"无")+" |\n")})),"json"==a.request.params.mode&&o&&(i+="\n##### 请求参数示例\n```\n"+o+"\n```\n\n");var n=a.request.params.jsonDesc;("json"==a.request.params.mode&&n&&n[0]&&n[0].name&&(i+="\n##### json字段说明\n\n|字段名|必选|类型|说明|\n|:----- |:-----|-----|\n",n.map(function(e){e.name&&(i+="|"+e.name+" |"+(e.require>0?"是":"否")+" |"+e.type+" |"+(e.remark?e.remark:"无")+" |\n")})),a.response.responseExample&&(i+="\n##### 返回示例\n```\n"+a.response.responseExample+"\n ```\n "),a.response.responseParamsDesc&&a.response.responseParamsDesc[0]&&a.response.responseParamsDesc[0].name)&&(i+="\n##### 返回参数说明\n\n|参数名|类型|说明|\n|:----- |:-----|-----|\n",a.response.responseParamsDesc.map(function(e){e.name&&(i+="|"+e.name+" |"+e.type+" |"+(e.remark?e.remark:"无")+" |\n")}));return i+="\n##### 备注\n\n "+a.info.remark+"\n\n"},xe={props:{item_info:"",search_item:"",keyword:""},data:function(){return{content:"###正在加载...",page_id:"",page_title:"",dialogVisible:!1,share_item_link:"",qr_item_link:"",page_info:"",copyText:"",attachment_count:"",fullPage:!1,showfullPageBtn:!1,showToc:!0,showComp:!0}},components:{Editormd:ee,LeftMenu:de,OpBar:he,BackToTop:ie,Toc:se,AttachmentList:ye},methods:{get_page_content:function(e){if(!(e<=0)){this.adaptScreen();var t=this;this.request("/api/page/info",{page_id:e},"post",!1).then(function(a){0===a.error_code&&(t.content=$e(a.data.page_content,t.$store.state.item_info.global_param),t.page_title=a.data.page_title,t.page_info=a.data,t.attachment_count=a.data.attachment_count>0?a.data.attachment_count:"",t.page_id=0,t.item_info.default_page_id=e,t.$nextTick(function(){t.page_id=e,document.body.scrollTop=document.documentElement.scrollTop=0,document.title=t.page_title+"--欧轩智能场馆"}))})}},adaptToMobile:function(){this.$refs.leftMenu.hide_menu(),this.show_page_bar=!1;var e=document.getElementById("doc-container");e.style.width="95%",e.style.padding="5px",document.getElementById("header").style.height="10px",document.getElementById("doc-title-box").style.marginTop="40px",this.showToc=!1},adaptToSmallpc:function(){var e=document.getElementById("doc-container");e.style.width="calc( 95% - 300px )",e.style.marginLeft="300px",e.style.padding="20px",document.getElementById("header").style.height="20px",document.getElementById("doc-title-box").style.marginTop="30px"},adaptScreen:function(){var e=this;this.$nextTick(function(){(e.isMobile()||window.innerWidth<1300)&&(window.innerWidth<1300&&window.innerWidth>1100?e.adaptToSmallpc():e.adaptToMobile())})},onCopy:function(){this.$message(this.$t("copy_success"))},ShowAttachment:function(){this.$refs.AttachmentList.show()},clickFullPage:function(){var e=this;if(this.fullPage)this.showComp=!1,this.$nextTick(function(){e.showComp=!0});else{this.adaptToMobile();var t=this.page_id;this.page_id=0,this.$nextTick(function(){e.page_id=t,setTimeout(function(){$(".editormd-html-preview").css("font-size","16px")},200)}),$("#left-side").hide(),$(".op-bar").hide()}this.fullPage=!this.fullPage}},mounted:function(){this.adaptScreen(),this.set_bg_grey()}},Ce={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.showComp?a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("div",{attrs:{id:"header"}}),e._v(" "),a("div",{staticClass:"container doc-container",attrs:{id:"doc-container"}},[a("div",{attrs:{id:"left-side"}},[e.item_info?a("LeftMenu",{ref:"leftMenu",attrs:{get_page_content:e.get_page_content,keyword:e.keyword,item_info:e.item_info,search_item:e.search_item}}):e._e()],1),e._v(" "),a("div",{attrs:{id:"right-side"}},[a("div",{attrs:{id:"p-content"},on:{mouseenter:function(t){e.showfullPageBtn=!0},mouseleave:function(t){e.showfullPageBtn=!1}}},[a("div",{staticClass:"doc-title-box",attrs:{id:"doc-title-box"}},[a("span",{staticClass:"dn",attrs:{id:"doc-title-span"}}),e._v(" "),a("h2",{attrs:{id:"doc-title"}},[e._v(e._s(e.page_title))]),e._v(" "),a("i",{directives:[{name:"show",rawName:"v-show",value:e.showfullPageBtn,expression:"showfullPageBtn"}],staticClass:"el-icon-full-screen",attrs:{id:"full-page"},on:{click:e.clickFullPage}}),e._v(" "),e.attachment_count?a("i",{staticClass:"el-icon-upload item",attrs:{id:"attachment"},on:{click:e.ShowAttachment}}):e._e()]),e._v(" "),a("div",{attrs:{id:"doc-body"}},[a("div",{staticClass:"page_content_main",attrs:{id:"page_md_content"}},[e.page_id?a("Editormd",{attrs:{content:e.content,type:"html",keyword:e.keyword}}):e._e()],1)])]),e._v(" "),a("OpBar",{attrs:{page_id:e.page_id,item_id:e.item_info.item_id,item_info:e.item_info,page_info:e.page_info}})],1)]),e._v(" "),a("BackToTop"),e._v(" "),e.page_id&&e.showToc?a("Toc"):e._e(),e._v(" "),a("AttachmentList",{ref:"AttachmentList",attrs:{callback:"",item_id:e.page_info.item_id,manage:!1,page_id:e.page_info.page_id}}),e._v(" "),a("Footer")],1):e._e()},staticRenderFns:[]};var Fe=a("VU/8")(xe,Ce,!1,function(e){a("0tRY")},"data-v-fc6429ce",null).exports,Se={data:function(){return{}},mounted:function(){var e=this,t=setInterval(function(){try{void 0!=$&&(clearInterval(t),e.toc_main_script())}catch(e){}},200)},methods:{toc_main_script:function(){$(document).on("click",".markdown-toc-list a[href]",function(e){e.preventDefault();var t=$(this).attr("href").substring(1),a=$('[name="'+t+'"]').offset().top;$("html, body").animate({scrollTop:a},300)}),$(document).on("click",".markdown-toc",function(e){$(e.target).is("a")||$(".markdown-toc").toggleClass("open-list")}),$(window).scroll(function(e){var t="";$(".markdown-toc-list a[href]").each(function(e,a){var i=$(a).attr("href").substring(1);if(!($('[name="'+i+'"]').offset().top-$(window).scrollTop()<1))return!1;t=i}),$(".markdown-toc-list a").removeClass("current"),$('.markdown-toc-list a[href="#'+t+'"]').addClass("current")}),!this.isMobile()&&window.screen.width>1e3&&this.$nextTick(function(){setTimeout(function(){$(".markdown-toc").click()},500)})}},destroyed:function(){$(document).off("click",".markdown-toc-list a[href]"),$(document).off("click",".markdown-toc"),$(".markdown-toc").remove()}},Le={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var Te=a("VU/8")(Se,Le,!1,function(e){a("zaO8")},null,null).exports,Pe={props:{item_info:""},data:function(){return{menu:"",content:"",page_title:"",page_id:"",dialogVisible:!1,share_item_link:"",qr_item_link:"",copyText:""}},components:{Editormd:ee,BackToTop:ie,Toc:Te},methods:{get_page_content:function(e){var t=this,a=DocConfig.server+"/api/page/info";e||(e=t.page_id);var i=new URLSearchParams;i.append("page_id",e),t.axios.post(a,i).then(function(e){0===e.data.error_code?(t.content=e.data.data.page_content,t.page_title=e.data.data.page_title):t.$alert(e.data.error_message)}).catch(function(e){console.log(e)})},edit_page:function(){var e=this.page_id>0?this.page_id:0,t="/page/edit/"+this.item_info.item_id+"/"+e;this.$router.push({path: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,this.copyText=this.item_info.item_name+" -- 欧轩智能场馆 \r\n"+this.share_item_link},AdaptToMobile:function(){var e=document.getElementById("doc-container");e.style.width="95%",e.style.padding="5px",document.getElementById("header").style.height="10px"},onCopy:function(){this.$message(this.$t("copy_success"))}},mounted:function(){var e=this;this.menu=this.item_info.menu,this.page_id=this.menu.pages[0].page_id,this.get_page_content(),(this.isMobile()||window.screen.width<1e3)&&this.$nextTick(function(){e.AdaptToMobile()})}},Ie={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello grey-bg"},[a("Header"),e._v(" "),a("div",{attrs:{id:"header"}}),e._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"}}),e._v(" "),a("h2",{attrs:{id:"doc-title"}},[e._v(e._s(e.page_title))]),e._v(" "),a("div",{staticClass:"tool-bar pull-right"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("share"),placement:"top"}},[a("i",{staticClass:"el-icon-share",on:{click:e.share_item}})]),e._v(" "),e.item_info.ItemPermn&&e.item_info.is_archived<1?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("edit_page"),placement:"top"}},[a("i",{staticClass:"el-icon-edit",on:{click:e.edit_page}})]):e._e(),e._v(" "),a("el-dropdown",[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-caret-bottom el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.item_info.ItemPermn?a("router-link",{attrs:{to:"/item/export/"+e.item_info.item_id}},[a("el-dropdown-item",[e._v(e._s(e.$t("export")))])],1):e._e(),e._v(" "),e.item_info.ItemCreator?a("router-link",{attrs:{to:"/item/setting/"+e.item_info.item_id}},[a("el-dropdown-item",[e._v(e._s(e.$t("item_setting")))])],1):e._e(),e._v(" "),a("router-link",{attrs:{to:"/item/index"}},[a("el-dropdown-item",[e._v(e._s(e.$t("goback")))])],1)],1)],1)],1)]),e._v(" "),a("div",{attrs:{id:"doc-body"}},[a("div",{staticClass:"page_content_main",attrs:{id:"page_md_content"}},[e.content?a("Editormd",{attrs:{content:e.content,type:"html"}}):e._e()],1)])]),e._v(" "),a("el-dialog",{staticClass:"text-center",attrs:{title:e.$t("share"),visible:e.dialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("p",[e._v("\n "+e._s(e.$t("item_address"))+" :\n "),a("code",[e._v(e._s(e.share_item_link))])]),e._v(" "),a("p",[a("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copyhttplist",value:e.copyText,expression:"copyText",arg:"copyhttplist"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"}],staticClass:"home-phone-butt",attrs:{href:"javascript:;"}},[e._v(e._s(e.$t("copy_link")))])]),e._v(" "),a("p",{staticStyle:{"border-bottom":"1px solid #eee"}},[a("img",{staticStyle:{width:"114px",height:"114px"},attrs:{id:"",src:e.qr_item_link}})]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible=!1}}},[e._v(e._s(e.$t("confirm")))])],1)]),e._v(" "),a("BackToTop"),e._v(" "),a("Footer"),e._v(" "),a("div",{})],1)},staticRenderFns:[]};var De=a("VU/8")(Pe,Ie,!1,function(e){a("7t6a")},"data-v-249d9da9",null).exports,Me=a("fZjL"),Ve=a.n(Me);if("undefined"!=typeof window)var Ue=a("zhAq");var Re={props:{item_info:""},data:function(){return{menu:"",content:"",page_title:"",page_id:"",dialogVisible:!1,share_item_link:"",qr_item_link:"",copyText:"",spreadsheetObj:{},spreadsheetData:{},isLock:0,isEditable:0,intervalId:0,importDialogVisible:!1}},components:{},methods:{getPageContent:function(e){var t=this;e||(e=this.page_id),this.request("/api/page/info",{page_id:e}).then(function(e){if(e.data.page_content){var a=void 0;try{a=JSON.parse(e.data.page_content.replace(/&|<|>|'|"/g,function(e){return{"&":"&","<":"<",">":">","'":"'",""":'"'}[e]||e}))}catch(e){a={}}t.spreadsheetData=a,t.initSheet(),t.item_info.ItemPermn&&t.draft()}})},initSheet:function(){if(!x_spreadsheet)return!1;var e=this.isEditable?"edit":"read";document.getElementById("table-item").innerHTML="",this.spreadsheetObj=null,this.spreadsheetObj=x_spreadsheet("#table-item",{mode:e,showToolbar:!0,row:{len:500,height:25}}).loadData(this.spreadsheetData)},shareItem:function(){var e=this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id;this.share_item_link=this.getRootPath()+"#/"+e,this.qr_item_link=DocConfig.server+"/api/common/qrcode&size=3&url="+encodeURIComponent(this.share_item_link),this.dialogVisible=!0,this.copyText=this.item_info.item_name+" -- 欧轩智能场馆 \r\n"+this.share_item_link},onCopy:function(){this.$message(this.$t("copy_success"))},save:function(){var e=this;this.request("/api/page/save",{page_id:this.page_id,page_title:this.item_info.item_name,item_id:this.item_info.item_id,is_urlencode:1,page_content:encodeURIComponent(p()(this.spreadsheetObj.getData()))}).then(function(t){e.$message({showClose:!0,message:"保存成功",type:"success"}),e.deleteDraft()})},goback:function(){this.$router.push({path:"/item/index"}),setTimeout(function(){window.location.reload()},200)},dropdownCallback:function(e){e&&e()},draft:function(){var e=this,t="page_content_"+this.page_id;setInterval(function(){var a=p()(e.spreadsheetObj.getData());localStorage.setItem(t,a)},3e4);var a=JSON.parse(localStorage.getItem(t));a&&a.length>0&&localStorage.getItem(t)!=p()(this.spreadsheetObj.getData())&&(localStorage.removeItem(t),this.$confirm(this.$t("draft_tips"),"",{showClose:!1}).then(function(){e.spreadsheetData=a,e.initSheet(),localStorage.removeItem(t)}).catch(function(){localStorage.removeItem(t)}))},deleteDraft:function(){for(var e=0;e<localStorage.length;e++){var t=localStorage.key(e);t.indexOf("page_content_")>-1&&localStorage.removeItem(t)}},setLock:function(){var e=this;this.page_id>0&&this.request("/api/page/setLock",{page_id:this.page_id,item_id:this.item_info.item_id}).then(function(){e.isLock=1})},unlock:function(){var e=this;this.isLock&&this.request("/api/page/setLock",{page_id:this.page_id,item_id:this.item_info.item_id,lock_to:1e3}).then(function(){e.isLock=0})},heartBeatLock:function(){var e=this;this.intervalId=setInterval(function(){e.isLock&&e.setLock()},18e4)},remoteIsLock:function(){var e=this;this.request("/api/page/isLock",{page_id:this.page_id}).then(function(t){t.data.lock>0?t.data.is_cur_user>0?(e.isLock=1,e.isEditable=1,e.initSheet(),e.heartBeatLock()):(e.$alert(e.$t("locking")+t.data.lock_username),e.item_info.ItemPermn=!1,clearInterval(e.intervalId),e.deleteDraft()):(e.setLock(),e.isEditable=1,e.initSheet(),e.heartBeatLock())})},exportFile:function(){var e,t,a=(e=this.spreadsheetObj.getData(),t=XLSX.utils.book_new(),e.forEach(function(e){for(var a=[[]],i=e.rows,o=0;o<i.len;++o){var n=i[o];n&&(a[o]=[],Ve()(n.cells).forEach(function(e){var t=+e;isNaN(t)||(a[o][t]=n.cells[e].text)}))}var s=XLSX.utils.aoa_to_sheet(a);XLSX.utils.book_append_sheet(t,s,e.name)}),t);XLSX.writeFile(a,"showdoc.xlsx")},improtFile:function(e){var t=this,a=e[0],i=new FileReader;i.onload=function(e){var a,i,o=e.target.result,n=(a=XLSX.read(o,{type:"array"}),i=[],a.SheetNames.forEach(function(e){var t={name:e,rows:{}},o=a.Sheets[e];XLSX.utils.sheet_to_json(o,{raw:!1,header:1}).forEach(function(e,a){var i={};e.forEach(function(e,t){i[t]={text:e}}),t.rows[a]={cells:i}}),i.push(t)}),i);n&&(t.spreadsheetObj.loadData(n),t.importDialogVisible=!1)},i.readAsArrayBuffer(a)}},mounted:function(){var e=this;this.menu=this.item_info.menu,this.page_id=this.menu.pages[0].page_id,Ue(["static/xspreadsheet/xspreadsheet.js"],function(){Ue(["static/xspreadsheet/locale/zh-cn.js","static/xspreadsheet/locale/en.js"],function(){"en"==DocConfig.lang?x_spreadsheet.locale("en"):x_spreadsheet.locale("zh-cn"),e.getPageContent(),e.item_info.ItemPermn&&e.remoteIsLock()}),Ue(["static/xspreadsheet/xlsx.full.min.js"])})},beforeDestroy:function(){this.$message.closeAll(),clearInterval(this.intervalId),this.unlock()}},Ae={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("link",{attrs:{href:"static/xspreadsheet/xspreadsheet.css",rel:"stylesheet"}}),e._v(" "),a("div",{attrs:{id:"header"}}),e._v(" "),e.item_info.ItemPermn?a("div",{staticClass:"edit-bar"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.save}},[e._v(e._s(e.$t("save")))]),e._v(" "),a("el-dropdown",{on:{command:e.dropdownCallback}},[a("el-button",{attrs:{size:"mini"}},[e._v("\n "+e._s(e.$t("more"))+"\n "),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:e.shareItem}},[e._v(e._s(e.$t("share")))]),e._v(" "),e.item_info.ItemCreator?a("router-link",{attrs:{to:"/item/setting/"+e.item_info.item_id}},[a("el-dropdown-item",[e._v(e._s(e.$t("item_setting")))])],1):e._e(),e._v(" "),a("el-dropdown-item",{attrs:{command:function(){e.importDialogVisible=!0}}},[e._v(e._s(e.$t("import_file")))]),e._v(" "),a("el-dropdown-item",{attrs:{command:e.exportFile}},[e._v(e._s(e.$t("export")))]),e._v(" "),a("el-dropdown-item",{attrs:{command:e.goback}},[e._v(e._s(e.$t("goback")))])],1)],1)],1):e._e(),e._v(" "),e.item_info.ItemPermn?e._e():a("div",{staticClass:"edit-bar"},[a("el-button",{attrs:{size:"mini"},on:{click:e.goback}},[e._v(e._s(e.$t("goback")))])],1),e._v(" "),a("div",{attrs:{id:"table-item"}}),e._v(" "),a("el-dialog",{staticClass:"text-center",attrs:{title:e.$t("share"),visible:e.dialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("p",[e._v("\n "+e._s(e.$t("item_address"))+" :\n "),a("code",[e._v(e._s(e.share_item_link))])]),e._v(" "),a("p",[a("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copyhttplist",value:e.copyText,expression:"copyText",arg:"copyhttplist"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"}],staticClass:"home-phone-butt",attrs:{href:"javascript:;"}},[e._v(e._s(e.$t("copy_link")))])]),e._v(" "),a("p",{staticStyle:{"border-bottom":"1px solid #eee"}},[a("img",{staticStyle:{width:"114px",height:"114px"},attrs:{id:"",src:e.qr_item_link}})]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible=!1}}},[e._v(e._s(e.$t("confirm")))])],1)]),e._v(" "),a("el-dialog",{staticClass:"text-center",attrs:{title:e.$t("import_excel"),visible:e.importDialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.importDialogVisible=t}}},[a("p",[a("input",{attrs:{type:"file",name:"xlfile",id:"xlf"},on:{change:function(t){e.improtFile(t.target.files)}}})]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.importDialogVisible=!1}}},[e._v(e._s(e.$t("confirm")))])],1)])],1)},staticRenderFns:[]};var Ee={data:function(){return{item_info:"",keyword:""}},components:{ShowRegularItem:Fe,ShowSinglePageItem:De,ShowTableItem:a("VU/8")(Re,Ae,!1,function(e){a("RwAp")},"data-v-51f6b46e",null).exports},methods:{get_item_menu:function(e){e||(e="");var t=this,a=t.$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={item_id:i,keyword:e};e||(n.default_page_id=o),this.request("/api/item/info",n,"post",!1).then(function(e){if(a.close(),0===e.error_code){var n=e.data;n.default_page_id<=0&&n.menu.pages[0]&&(n.default_page_id=n.menu.pages[0].page_id),3==n.item_type&&(n.ItemCreator=n.ItemPermn=!1),t.item_info=n,t.$store.dispatch("changeItemInfo",n),document.title=t.item_info.item_name+"--欧轩智能场馆",n.unread_count>0&&t.$message({showClose:!0,duration:1e4,dangerouslyUseHTMLString:!0,message:'<a href="#/notice/index">你有新的未读消息,点击查看</a>'})}else 10307===e.error_code||10303===e.error_code?t.$router.replace({path:"/item/password/"+i,query:{page_id:o,redirect:t.$router.currentRoute.fullPath}}):t.$alert(e.error_message)}),setTimeout(function(){a.close()},2e4)},search_item:function(e){this.item_info="",this.$store.dispatch("changeItemInfo",""),this.keyword=e,this.get_item_menu(e)},checkDb:function(){var e=DocConfig.server+"/api/update/checkDb";this.axios.get(e)}},mounted:function(){this.checkDb(),this.get_item_menu()},beforeDestroy:function(){this.$message.closeAll(),document.title="欧轩智能场馆"}},je={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),!e.item_info||1!=e.item_info.item_type&&3!=e.item_info.item_type&&"0"!==e.item_info.item_type&&0!==e.item_info.item_type?e._e():a("ShowRegularItem",{attrs:{item_info:e.item_info,search_item:e.search_item,keyword:e.keyword}}),e._v(" "),e.item_info&&2==e.item_info.item_type?a("ShowSinglePageItem",{attrs:{item_info:e.item_info}}):e._e(),e._v(" "),e.item_info&&4==e.item_info.item_type?a("ShowTableItem",{attrs:{item_info:e.item_info}}):e._e(),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var Oe=a("VU/8")(Ee,je,!1,function(e){a("DgpF")},"data-v-76120115",null).exports,qe={name:"Login",components:{},data:function(){return{catalogs:[],cat_id:"",export_type:"1",item_id:0,export_format:"word",pages:[{page_id:"0",page_title:this.$t("all_pages")}],page_id:"0"}},computed:{computed_catalogs:function(){for(var e=this.catalogs.slice(0),t=[],a=0;a<e.length;a++){t.push(e[a]);var i=e[a].sub;if(i.length>0)for(var o=0;o<i.length;o++){t.push({cat_id:i[o].cat_id,cat_name:e[a].cat_name+" / "+i[o].cat_name});var n=i[o].sub;if(n.length>0)for(var s=0;s<n.length;s++)t.push({cat_id:n[s].cat_id,cat_name:e[a].cat_name+" / "+i[o].cat_name+" / "+n[s].cat_name})}}var r={cat_id:"",cat_name:this.$t("none")};return t.unshift(r),t}},methods:{get_catalog:function(e){var t=this,a=DocConfig.server+"/api/catalog/catListGroup",i=new URLSearchParams;i.append("item_id",e),t.axios.post(a,i).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(e){console.log(e)})},onSubmit:function(){1==this.export_type&&(this.cat_id="");var e=DocConfig.server+"/api/export/word&item_id="+this.item_id+"&cat_id="+this.cat_id+"&page_id="+this.page_id;"markdown"==this.export_format&&(e=DocConfig.server+"/api/export/markdown&item_id="+this.item_id),window.location.href=e},goback:function(){this.$router.go(-1)},get_pages:function(e){var t=this,a=DocConfig.server+"/api/catalog/getPagesBycat",i=new URLSearchParams;i.append("item_id",this.item_id),i.append("cat_id",e),t.axios.post(a,i).then(function(e){if(0===e.data.error_code){var a=e.data.data;a.unshift({page_id:"0",page_title:t.$t("all_pages")}),t.pages=a,t.page_id="0"}else t.$alert(e.data.error_message)})}},mounted:function(){this.get_catalog(this.$route.params.item_id),this.item_id=this.$route.params.item_id},beforeDestroy:function(){}},Be={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-form",{staticClass:"demo-ruleForm",attrs:{"status-icon":"","label-width":"0px"}},[a("h2"),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-radio-group",{model:{value:e.export_format,callback:function(t){e.export_format=t},expression:"export_format"}},[a("el-radio-button",{attrs:{label:"word"}},[e._v(e._s(e.$t("export_format_word")))]),e._v(" "),a("el-radio-button",{attrs:{label:"markdown"}},[e._v(e._s(e.$t("export_format_markdown")))])],1)],1),e._v(" "),"word"==e.export_format?a("el-form-item",{attrs:{label:""}},[a("el-radio",{attrs:{label:"1"},model:{value:e.export_type,callback:function(t){e.export_type=t},expression:"export_type"}},[e._v(e._s(e.$t("export_all")))]),e._v(" "),a("el-radio",{attrs:{label:"2"},model:{value:e.export_type,callback:function(t){e.export_type=t},expression:"export_type"}},[e._v(e._s(e.$t("export_cat")))])],1):e._e(),e._v(" "),"markdown"==e.export_format?a("el-form-item",{attrs:{label:""}},[a("p",{staticClass:"markdown-tips"},[e._v(e._s(e.$t("export_markdown_tips")))])]):e._e(),e._v(" "),"word"==e.export_format&&2==e.export_type?a("el-form-item",{attrs:{label:""}},[e.computed_catalogs?a("el-select",{staticClass:"cat",attrs:{placeholder:e.$t("catalog")},on:{change:e.get_pages},model:{value:e.cat_id,callback:function(t){e.cat_id=t},expression:"cat_id"}},e._l(e.computed_catalogs,function(e){return a("el-option",{key:e.cat_name,attrs:{label:e.cat_name,value:e.cat_id}})}),1):e._e()],1):e._e(),e._v(" "),"word"==e.export_format&&2==e.export_type?a("el-form-item",{attrs:{label:""}},[e.pages?a("el-select",{staticClass:"cat",model:{value:e.page_id,callback:function(t){e.page_id=t},expression:"page_id"}},e._l(e.pages,function(e){return a("el-option",{key:e.page_title,attrs:{label:e.page_title,value:e.page_id}})}),1):e._e()],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$t("begin_export")))])],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:e.goback}},[e._v(e._s(e.$t("goback")))])],1)],1)],1)],1),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var ze=a("VU/8")(qe,Be,!1,function(e){a("hHMT")},"data-v-58ea74a4",null).exports,He={name:"Login",components:{},data:function(){return{infoForm:{},isOpenItem:!0}},methods:{get_item_info:function(){var e=this,t=DocConfig.server+"/api/item/detail",a=new URLSearchParams;a.append("item_id",e.$route.params.item_id),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;a.password&&(e.isOpenItem=!1),e.infoForm=a}else e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})},FormSubmit:function(){var e=this,t=DocConfig.server+"/api/item/update";if(!this.isOpenItem&&!this.infoForm.password)return e.$alert(e.$t("private_item_passwrod")),!1;this.isOpenItem&&(this.infoForm.password="");var a=new URLSearchParams;a.append("item_id",e.$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),e.axios.post(t,a).then(function(t){0===t.data.error_code?e.$message.success(e.$t("modify_success")):e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})}},mounted:function(){this.get_item_info()}},Ne={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("el-form",{staticClass:"infoForm",attrs:{"status-icon":"","label-width":"100px"},model:{value:e.infoForm,callback:function(t){e.infoForm=t},expression:"infoForm"}},[a("el-form-item",[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:""},model:{value:e.infoForm.item_name,callback:function(t){e.$set(e.infoForm,"item_name",t)},expression:"infoForm.item_name"}})],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:e.$t("item_description")},model:{value:e.infoForm.item_description,callback:function(t){e.$set(e.infoForm,"item_description",t)},expression:"infoForm.item_description"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-radio",{attrs:{label:!0},model:{value:e.isOpenItem,callback:function(t){e.isOpenItem=t},expression:"isOpenItem"}},[e._v(e._s(e.$t("Open_item")))]),e._v(" "),a("el-radio",{attrs:{label:!1},model:{value:e.isOpenItem,callback:function(t){e.isOpenItem=t},expression:"isOpenItem"}},[e._v(e._s(e.$t("private_item")))])],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.isOpenItem,expression:"!isOpenItem"}]},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:e.$t("visit_password")},model:{value:e.infoForm.password,callback:function(t){e.$set(e.infoForm,"password",t)},expression:"infoForm.password"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.FormSubmit}},[e._v(e._s(e.$t("submit")))])],1)],1)],1)},staticRenderFns:[]};var Je={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"}],memberOptions:[]}},methods:{get_members:function(){var e=this,t=DocConfig.server+"/api/member/getList",a=new URLSearchParams;a.append("item_id",e.$route.params.item_id),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.members=a,e.getAllUser()}else e.$alert(t.data.error_message)})},get_teams:function(){var e=this,t=DocConfig.server+"/api/team/getList",a=new URLSearchParams;e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.teams=a}else e.$alert(t.data.error_message)})},getTeamItem:function(){var e=this,t=DocConfig.server+"/api/teamItem/getList",a=new URLSearchParams;a.append("item_id",e.$route.params.item_id),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.teamItems=a}else e.$alert(t.data.error_message)})},getTeamItemMember:function(e){var t=this;this.dialogFormTeamMemberVisible=!0;var a=DocConfig.server+"/api/teamItemMember/getList",i=new URLSearchParams;i.append("item_id",t.$route.params.item_id),i.append("team_id",e),t.axios.post(a,i).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.teamItemMembers=a}else t.$alert(e.data.error_message)})},MyFormSubmit:function(){var e=this,t=DocConfig.server+"/api/member/save",a=new URLSearchParams;a.append("item_id",e.$route.params.item_id),a.append("username",this.MyForm.username),a.append("cat_id",this.MyForm.cat_id);var i=1;this.MyForm.is_readonly&&(i=0),a.append("member_group_id",i),e.axios.post(t,a).then(function(t){0===t.data.error_code?(e.dialogFormVisible=!1,e.get_members(),e.MyForm.username="",e.MyForm.is_readonly=!1):e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})},addTeam:function(){var e=this,t=DocConfig.server+"/api/teamItem/save",a=new URLSearchParams;a.append("item_id",e.$route.params.item_id),a.append("team_id",this.MyForm2.team_id),e.axios.post(t,a).then(function(t){0===t.data.error_code?(e.dialogFormTeamVisible=!1,e.getTeamItem(),e.MyForm.team_id=""):e.$alert(t.data.error_message)})},delete_member:function(e){var t=this,a=DocConfig.server+"/api/member/delete";this.$confirm(t.$t("confirm_delete")," ",{confirmButtonText:t.$t("confirm"),cancelButtonText:t.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("item_id",t.$route.params.item_id),i.append("item_member_id",e),t.axios.post(a,i).then(function(e){0===e.data.error_code?t.get_members():t.$alert(e.data.error_message)})})},deleteTeam:function(e){var t=this,a=DocConfig.server+"/api/teamItem/delete";this.$confirm(t.$t("confirm_delete")," ",{confirmButtonText:t.$t("confirm"),cancelButtonText:t.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("id",e),t.axios.post(a,i).then(function(e){0===e.data.error_code?t.getTeamItem():t.$alert(e.data.error_message)})})},changeTeamItemMemberGroup:function(e,t){var a=this,i=DocConfig.server+"/api/teamItemMember/save",o=new URLSearchParams;o.append("member_group_id",e),o.append("id",t),a.axios.post(i,o).then(function(e){0===e.data.error_code?a.$message(a.$t("auth_success")):a.$alert(e.data.error_message)})},getAllUser:function(e,t){var a=this,i=DocConfig.server+"/api/user/allUser",o=new URLSearchParams;e||(e=""),o.append("username",e),a.axios.post(i,o).then(function(e){if(0===e.data.error_code){for(var i=e.data.data,o=[],n=0;n<i.length;n++){a.isMember(i[n].value)||o.push(i[n])}a.memberOptions=[];for(var s=0;s<o.length;s++)a.memberOptions.push({value:o[s].value,label:o[s].value,key:o[s].value});t(i)}else a.$alert(e.data.error_message)})},isMember:function(e){for(var t=this.members,a=0;a<t.length;a++)if(t[a].username==e)return!0;return!1},get_catalog:function(){var e=this,t=DocConfig.server+"/api/catalog/catListGroup",a=new URLSearchParams;a.append("item_id",e.$route.params.item_id),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;a.unshift({cat_id:"0",cat_name:e.$t("all_cat")}),e.catalogs=a}else e.$alert(t.data.error_message)})},changeTeamItemMemberCat:function(e,t){var a=this,i=DocConfig.server+"/api/teamItemMember/save",o=new URLSearchParams;o.append("cat_id",e),o.append("id",t),a.axios.post(i,o).then(function(e){0===e.data.error_code?a.$message(a.$t("cat_success")):a.$alert(e.data.error_message)})}},mounted:function(){this.get_members(),this.get_teams(),this.getTeamItem(),this.getAllUser(),this.get_catalog()}},Ye={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("el-button",{staticClass:"add-member",attrs:{type:"text"},on:{click:function(t){e.dialogFormVisible=!0}}},[e._v(e._s(e.$t("add_member")))]),e._v(" "),a("el-button",{staticClass:"add-member",attrs:{type:"text"},on:{click:function(t){e.dialogFormTeamVisible=!0}}},[e._v(e._s(e.$t("add_team")))]),e._v(" "),e.members.length>0?a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left",data:e.members,height:"200"}},[a("el-table-column",{attrs:{prop:"username",label:e.$t("member_username"),width:"100"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:e.$t("name")}}),e._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:e.$t("add_time"),width:"100"}}),e._v(" "),a("el-table-column",{attrs:{prop:"member_group",label:e.$t("authority")}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:e.$t("operation")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.delete_member(t.row.item_member_id)}}},[e._v(e._s(e.$t("delete")))])]}}],null,!1,1670770248)})],1):e._e(),e._v(" "),e.teamItems.length>0?a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left",data:e.teamItems,height:"200"}},[a("el-table-column",{attrs:{prop:"team_name",label:e.$t("team_name")}}),e._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:e.$t("add_time")}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:e.$t("operation")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.getTeamItemMember(t.row.team_id)}}},[e._v(e._s(e.$t("member_authority")))]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.deleteTeam(t.row.id)}}},[e._v(e._s(e.$t("delete")))])]}}],null,!1,2799852319)})],1):e._e(),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogFormVisible,modal:!1,top:"10vh","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",[a("el-form-item",{attrs:{label:""}},[a("el-select",{attrs:{multiple:"",filterable:"","reserve-keyword":"",placeholder:"",loading:e.loading},model:{value:e.MyForm.username,callback:function(t){e.$set(e.MyForm,"username",t)},expression:"MyForm.username"}},e._l(e.memberOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("el-form-item",{staticClass:"readonly-checkbox",attrs:{label:""}},[a("el-checkbox",{model:{value:e.MyForm.is_readonly,callback:function(t){e.$set(e.MyForm,"is_readonly",t)},expression:"MyForm.is_readonly"}},[e._v(e._s(e.$t("readonly")))])],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-select",{attrs:{placeholder:e.$t("all_cat2")},model:{value:e.MyForm.cat_id,callback:function(t){e.$set(e.MyForm,"cat_id",t)},expression:"MyForm.cat_id"}},e._l(e.catalogs,function(e){return a("el-option",{key:e.cat_id,attrs:{label:e.cat_name,value:e.cat_id}})}),1)],1)],1),e._v(" "),a("p",{staticClass:"tips"},[e._v(e._s(e.$t("member_authority_tips")))]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.MyFormSubmit}},[e._v(e._s(e.$t("confirm")))])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogFormTeamVisible,modal:!1,top:"10vh","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormTeamVisible=t}}},[a("el-form",[a("el-form-item",{attrs:{label:"选择团队"}},[a("el-select",{model:{value:e.MyForm2.team_id,callback:function(t){e.$set(e.MyForm2,"team_id",t)},expression:"MyForm2.team_id"}},e._l(e.teams,function(e){return a("el-option",{key:e.team_name,attrs:{label:e.team_name,value:e.id}})}),1)],1),e._v(" "),a("router-link",{attrs:{to:"/team/index",target:"_blank"}},[e._v(e._s(e.$t("go_to_new_an_team")))])],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormTeamVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.addTeam}},[e._v(e._s(e.$t("confirm")))])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogFormTeamMemberVisible,modal:!1,top:"10vh",title:e.$t("adjust_member_authority"),width:"90%","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormTeamMemberVisible=t}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left","empty-text":e.$t("team_member_empty_tips"),data:e.teamItemMembers}},[a("el-table-column",{attrs:{prop:"member_username",label:e.$t("username")}}),e._v(" "),a("el-table-column",{attrs:{prop:"member_group_id",label:e.$t("authority"),width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{size:"mini",placeholder:e.$t("please_choose")},on:{change:function(a){return e.changeTeamItemMemberGroup(a,t.row.id)}},model:{value:t.row.member_group_id,callback:function(a){e.$set(t.row,"member_group_id",a)},expression:"scope.row.member_group_id"}},e._l(e.authorityOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"cat_id",label:e.$t("catalog"),width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{size:"mini",placeholder:e.$t("please_choose")},on:{change:function(a){return e.changeTeamItemMemberCat(a,t.row.id)}},model:{value:t.row.cat_id,callback:function(a){e.$set(t.row,"cat_id",a)},expression:"scope.row.cat_id"}},e._l(e.catalogs,function(e){return a("el-option",{key:e.cat_id,attrs:{label:e.cat_name,value:e.cat_id}})}),1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:e.$t("add_time")}})],1),e._v(" "),a("br"),e._v(" "),a("p",{staticClass:"tips"},[e._v(e._s(e.$t("team_member_authority_tips")))]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormTeamMemberVisible=!1}}},[e._v(e._s(e.$t("close")))])],1)],1)],1)},staticRenderFns:[]};var We={name:"Login",components:{},data:function(){return{dialogAttornVisible:!1,dialogArchiveVisible:!1,dialogDeleteVisible:!1,attornForm:{username:"",password:""},archiveForm:{password:""},deleteForm:{password:""}}},methods:{deleteItem:function(){var e=this,t=DocConfig.server+"/api/item/delete",a=new URLSearchParams;a.append("item_id",e.$route.params.item_id),a.append("password",this.deleteForm.password),e.axios.post(t,a).then(function(t){0===t.data.error_code?(e.dialogDeleteVisible=!1,e.$message.success(e.$t("success_jump")),setTimeout(function(){e.$router.push({path:"/item/index"})},2e3)):e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})},archive:function(){var e=this,t=DocConfig.server+"/api/item/archive",a=new URLSearchParams;a.append("item_id",e.$route.params.item_id),a.append("password",this.archiveForm.password),e.axios.post(t,a).then(function(t){0===t.data.error_code?(e.dialogArchiveVisible=!1,e.$message.success(e.$t("success_jump")),setTimeout(function(){e.$router.push({path:"/item/index"})},2e3)):e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})},attorn:function(){var e=this,t=DocConfig.server+"/api/item/attorn",a=new URLSearchParams;a.append("item_id",e.$route.params.item_id),a.append("username",this.attornForm.username),a.append("password",this.attornForm.password),e.axios.post(t,a).then(function(t){0===t.data.error_code?(e.dialogAttornVisible=!1,e.$message.success(e.$t("success_jump")),setTimeout(function(){e.$router.push({path:"/item/index"})},2e3)):e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})}},mounted:function(){}},Ge={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("p",{staticStyle:{height:"40px"}}),e._v(" "),a("p",[a("el-tooltip",{attrs:{content:e.$t("attorn_tips"),placement:"top-start"}},[a("el-button",{staticClass:"a_button",on:{click:function(t){e.dialogAttornVisible=!0}}},[e._v(e._s(e.$t("attorn")))])],1)],1),e._v(" "),a("p",[a("el-tooltip",{attrs:{content:e.$t("archive_tips"),placement:"top-start"}},[a("el-button",{staticClass:"a_button",on:{click:function(t){e.dialogArchiveVisible=!0}}},[e._v(e._s(e.$t("archive")))])],1)],1),e._v(" "),a("p",[a("el-tooltip",{attrs:{content:e.$t("delete_tips"),placement:"top-start"}},[a("el-button",{staticClass:"a_button",on:{click:function(t){e.dialogDeleteVisible=!0}}},[e._v(e._s(e.$t("delete")))])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogAttornVisible,modal:!1,width:"300px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogAttornVisible=t}}},[a("el-form",[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:e.$t("attorn_username")},model:{value:e.attornForm.username,callback:function(t){e.$set(e.attornForm,"username",t)},expression:"attornForm.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password",placeholder:e.$t("input_login_password")},model:{value:e.attornForm.password,callback:function(t){e.$set(e.attornForm,"password",t)},expression:"attornForm.password"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogAttornVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.attorn}},[e._v(e._s(e.$t("attorn")))])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogArchiveVisible,modal:!1,width:"300px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogArchiveVisible=t}}},[a("el-form",[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password",placeholder:e.$t("input_login_password")},model:{value:e.archiveForm.password,callback:function(t){e.$set(e.archiveForm,"password",t)},expression:"archiveForm.password"}})],1)],1),e._v(" "),a("p",{staticClass:"tips"},[e._v(e._s(e.$t("archive_tips2")))]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogArchiveVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.archive}},[e._v(e._s(e.$t("archive")))])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogDeleteVisible,modal:!1,width:"300px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogDeleteVisible=t}}},[a("el-form",[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password",placeholder:e.$t("input_login_password")},model:{value:e.deleteForm.password,callback:function(t){e.$set(e.deleteForm,"password",t)},expression:"deleteForm.password"}},[e._v(">")])],1)],1),e._v(" "),a("p",{staticClass:"tips"},[a("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$t("delete_tips")))])],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogDeleteVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.deleteItem}},[e._v(e._s(e.$t("delete")))])],1)],1)],1)},staticRenderFns:[]};var Ke={name:"Login",components:{},data:function(){return{api_key:"",api_token:""}},methods:{get_key_info:function(){var e=this,t=DocConfig.server+"/api/item/getKey",a=new URLSearchParams;a.append("item_id",e.$route.params.item_id),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.api_key=a.api_key,e.api_token=a.api_token}else e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})},resetKey:function(){var e=this,t=DocConfig.server+"/api/item/resetKey",a=new URLSearchParams;a.append("item_id",e.$route.params.item_id),e.axios.post(t,a).then(function(t){0===t.data.error_code?e.get_key_info():e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})}},mounted:function(){this.get_key_info()}},Xe={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;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:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"api_token"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",readonly:!0,placeholder:""},model:{value:e.api_token,callback:function(t){e.api_token=t},expression:"api_token"}})],1),e._v(" "),a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.resetKey}},[e._v(e._s(e.$t("reset_token")))])],1),e._v(" "),a("p",[a("span",{domProps:{innerHTML:e._s(e.$t("open_api_tips1"))}})]),e._v(" "),a("p",[a("span",{domProps:{innerHTML:e._s(e.$t("open_api_tips2"))}})]),e._v(" "),a("p",[a("span",{domProps:{innerHTML:e._s(e.$t("open_api_tips3"))}})]),e._v(" "),a("p",[a("span",{domProps:{innerHTML:e._s(e.$t("open_api_tips4"))}})])],1)},staticRenderFns:[]};var Ze={name:"Login",components:{},data:function(){return{MyForm:{username:"",is_readonly:!1},MyForm2:{team_id:""},lists:[]}},methods:{get_list:function(){var e=this,t=DocConfig.server+"/api/recycle/getList",a=new URLSearchParams;a.append("item_id",e.$route.params.item_id),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.lists=a}else e.$alert(t.data.error_message)})},recover:function(e){var t=this,a=DocConfig.server+"/api/recycle/recover";this.$confirm(this.$t("recover_tips")," ",{confirmButtonText:t.$t("confirm"),cancelButtonText:t.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("item_id",t.$route.params.item_id),i.append("page_id",e),t.axios.post(a,i).then(function(e){0===e.data.error_code?t.get_list():t.$alert(e.data.error_message)})})}},mounted:function(){this.get_list()}},Qe={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("p",{staticClass:"tips"},[e._v(e._s(e.$t("recycle_tips")))]),e._v(" "),e.lists.length>0?a("el-table",{staticClass:"recycle-table",staticStyle:{width:"100%"},attrs:{align:"left",data:e.lists}},[a("el-table-column",{attrs:{prop:"page_title",label:e.$t("page_title")}}),e._v(" "),a("el-table-column",{attrs:{prop:"del_by_username",label:e.$t("deleter")}}),e._v(" "),a("el-table-column",{attrs:{prop:"del_time",label:e.$t("del_time")}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:e.$t("operation")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.recover(t.row.page_id)}}},[e._v(e._s(e.$t("recover")))])]}}],null,!1,2213832654)})],1):e._e()],1)},staticRenderFns:[]};var et={name:"Login",components:{Info:a("VU/8")(He,Ne,!1,function(e){a("dCOX")},"data-v-03a893a2",null).exports,Member:a("VU/8")(Je,Ye,!1,function(e){a("EtTO")},"data-v-94fbedae",null).exports,Advanced:a("VU/8")(We,Ge,!1,function(e){a("tNbj")},"data-v-756a8545",null).exports,OpenApi:a("VU/8")(Ke,Xe,!1,function(e){a("SgRK")},"data-v-7887d052",null).exports,Recycle:a("VU/8")(Ze,Qe,!1,function(e){a("HMj1")},"data-v-1b8a60b9",null).exports},data:function(){return{userInfo:{}}},methods:{get_item_info:function(){var e=this,t=DocConfig.server+"/api/item/detail",a=new URLSearchParams;a.append("item_id",e.$route.params.item_id),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.infoForm=a}else e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})},goback:function(){this.$router.go(-1)}},mounted:function(){},beforeDestroy:function(){}},tt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[[a("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:e.goback}},[a("i",{staticClass:"el-icon-back"})]),e._v(" "),a("el-tabs",{attrs:{value:"first",type:"card"}},[a("el-tab-pane",{attrs:{label:e.$t("base_info"),name:"first"}},[a("Info")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("member_manage"),name:"second"}},[a("Member")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("advance_setting"),name:"third"}},[a("Advanced")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("open_api"),name:"four"}},[a("OpenApi")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("recycle"),name:"five"}},[a("Recycle")],1)],1)]],2)],1),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var at=a("VU/8")(et,tt,!1,function(e){a("sAIR")},"data-v-4f7e248f",null).exports,it={data:function(){return{currentDate:new Date,itemList:{},content:"",page_title:"",page_id:0}},components:{Editormd:ee,BackToTop:ie,Toc:Te},methods:{get_page_content:function(){var e,t=this,a=t.$route.params.page_id,i=t.$route.params.unique_key;e=i?DocConfig.server+"/api/page/infoByKey":DocConfig.server+"/api/page/info";var o=new URLSearchParams;o.append("page_id",a),o.append("unique_key",i),t.axios.post(e,o).then(function(e){0===e.data.error_code?(t.content=e.data.data.page_content,t.page_title=e.data.data.page_title,t.page_id=e.data.data.page_id):10307===e.data.error_code||10303===e.data.error_code?t.$router.replace({path:"/item/password/0",query:{page_id:a,redirect:t.$router.currentRoute.fullPath}}):t.$alert(e.data.error_message)})},AdaptToMobile:function(){var e=document.getElementById("doc-container");e.style.width="95%",e.style.padding="5px",document.getElementById("header").style.height="10px"}},mounted:function(){var e=this;this.get_page_content(),(this.isMobile()||window.screen.width<1e3)&&this.$nextTick(function(){e.AdaptToMobile()})},beforeDestroy:function(){}},ot={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("div",{attrs:{id:"header"}}),e._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"}}),e._v(" "),a("h2",{attrs:{id:"doc-title"}},[e._v(e._s(e.page_title))])]),e._v(" "),a("div",{attrs:{id:"doc-body"}},[a("div",{staticClass:"page_content_main",attrs:{id:"page_md_content"}},[e.content?a("Editormd",{attrs:{content:e.content,type:"html"}}):e._e()],1)])]),e._v(" "),a("BackToTop"),e._v(" "),e.page_id?a("Toc"):e._e(),e._v(" "),a("Footer"),e._v(" "),a("div",{})],1)},staticRenderFns:[]};var nt=a("VU/8")(it,ot,!1,function(e){a("0EG5")},"data-v-72864d08",null).exports,st=a("pFYg"),rt=a.n(st),lt={name:"JsonToTable",props:{formLabelWidth:"120px",callback:""},data:function(){return{content:"",json_table_data:"",dialogFormVisible:!1}},methods:{transform:function(){try{var e=JSON.parse(this.content);this.json_table_data="|参数|类型|描述|\n|:-------|:-------|:-------|\n",this.Change(e),this.callback(this.json_table_data)}catch(e){this.$alert("Json解析失败")}this.dialogFormVisible=!1},Change:function(e){var t="- ";if(arguments.length>1){var a;a=arguments[1]>0?arguments[1]:1;for(var i=0;i<a;i++)t+="- "}for(var o in e){var n=e[o],s=void 0===n?"undefined":rt()(n);if("object"==s){if(this.json_table_data+="| "+t+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"}}}},ct={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:e.$t("json_to_table"),visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",[a("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:e.$t("json_to_table_description"),rows:10},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.transform}},[e._v(e._s(e.$t("confirm")))])],1)],1)],1)},staticRenderFns:[]};var dt=a("VU/8")(lt,ct,!1,function(e){a("aCj9")},"data-v-7bd07bc6",null).exports,mt={name:"JsonBeautify",props:{formLabelWidth:"120px",callback:""},data:function(){return{content:"",json_table_data:"",dialogFormVisible:!1}},methods:{transform:function(){var e=this.content;try{var t="\n ``` \n "+p()(JSON.parse(e),null,2)+" \n\n ```\n\n";this.callback(t)}catch(t){this.callback(e)}this.dialogFormVisible=!1}}},_t={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:e.$t("beautify_json"),visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",[a("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:e.$t("beautify_json_description"),rows:10},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.transform}},[e._v(e._s(e.$t("confirm")))])],1)],1)],1)},staticRenderFns:[]};var pt=a("VU/8")(mt,_t,!1,function(e){a("4Lec")},"data-v-6371d672",null).exports,ut={name:"JsonBeautify",props:{formLabelWidth:"120px",callback:"",page_id:""},data:function(){return{content:"",json_table_data:"",mock_url:""}},methods:{add:function(){var e=this;this.request("/api/mock/add",{page_id:this.page_id,template:this.content}).then(function(t){e.$message({showClose:!0,message:"保存成功",type:"success"}),e.mock_url=e.getUrl(t.data.unique_key)})},infoByPageId:function(){var e=this;if(this.page_id<=0)return this.$alert("请先保存页面"),void this.callback();this.request("/api/mock/infoByPageId",{page_id:this.page_id}).then(function(t){t.data&&t.data.unique_key&&t.data.template&&(e.mock_url=e.getUrl(t.data.unique_key),e.content=ke(t.data.template))})},getUrl:function(e){if(DocConfig.server.indexOf("web")>-1){var t=window.location.protocol+"//"+window.location.host+window.location.pathname+"index.php?s=";return(t=t.replace(/\/web/g,"/server"))+"/mock-data/"+e}return window.location.protocol+"//"+window.location.host+"/server/index.php?s=/mock-data/"+e},handleClick:function(){this.add()},beautifyJson:function(){this.content=this.formatJson(this.content)},onCopy:function(){this.$message(this.$t("copy_success"))}},mounted:function(){this.infoByPageId()}},ft={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"Mock",visible:!0,"close-on-click-modal":!1},on:{close:function(t){return e.callback()}}},[a("el-form",[e.mock_url?a("p",{staticStyle:{"margin-bottom":"20px","font-size":"16px"}},[e._v("\n Mock地址 :\n "),a("code",[e._v(e._s(e.mock_url))]),e._v(" "),a("i",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.mock_url,expression:"mock_url",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"}],staticClass:"el-icon-document-copy"}),e._v("\n \n "),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.callback(e.mock_url)}}},[e._v("把地址插入文档中")])],1):e._e(),e._v(" "),a("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:"这里填写的是Mock接口的返回结果。你可以直接编辑/粘贴一段json字符串,支持使用MockJs语法(关于MockJs语法,可以查看下方的帮助说明按钮)。输入完毕后,点击保存,就会自动生成Mock地址",rows:20},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}}),e._v(" "),a("p",[a("el-button",{attrs:{type:"primary"},on:{click:e.handleClick}},[e._v(e._s(e.$t("save")))]),e._v(" \n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"假如上面填写的是一段符合json语法的字符串,点此按钮可以对json字符串进行快速格式化(美化)",placement:"top"}},[a("el-button",{on:{click:e.beautifyJson}},[e._v("json快速美化")])],1),e._v(" \n \n "),a("a",{attrs:{href:"https://www.showdoc.com.cn/p/d952ed6b7b5fb454df13dce74d1b41f8",target:"_blank"}},[e._v("帮助说明")])],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.callback()}}},[e._v(e._s(e.$t("goback")))])],1)],1)],1)},staticRenderFns:[]};var ht=a("VU/8")(ut,ft,!1,function(e){a("pF1U")},"data-v-0da73dd4",null).exports,gt={props:{callback:""},data:function(){return{currentDate:new Date,content:[],dialogTableVisible:!1}},components:{},methods:{get_content:function(){var e=this,t=DocConfig.server+"/api/template/getList",a=new URLSearchParams;e.axios.post(t,a).then(function(t){0===t.data.error_code?t.data.data.length>0?(e.content=t.data.data,e.dialogTableVisible=!0):(e.dialogTableVisible=!1,e.$alert(e.$t("no_templ_text"))):(e.dialogTableVisible=!1,e.$alert(t.data.error_message))}).catch(function(e){console.log(e)})},show:function(){this.get_content()},insertTemplate:function(e){this.callback(e.template_content),this.dialogTableVisible=!1},deleteTemplate:function(e){var t=e.id,a=this,i=DocConfig.server+"/api/template/delete",o=new URLSearchParams;o.append("id",t),a.axios.post(i,o).then(function(e){0===e.data.error_code?a.get_content():a.$alert(e.data.error_message)}).catch(function(e){console.log(e)})}},mounted:function(){}},vt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",{staticClass:"container-narrow"},[a("el-dialog",{attrs:{title:e.$t("templ_list"),visible:e.dialogTableVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("el-table",{attrs:{data:e.content}},[a("el-table-column",{attrs:{property:"addtime",label:e.$t("save_time"),width:"170"}}),e._v(" "),a("el-table-column",{attrs:{property:"template_title",label:e.$t("templ_title")}}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("operation"),width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.insertTemplate(t.row)}}},[e._v(e._s(e.$t("insert_templ")))]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.deleteTemplate(t.row)}}},[e._v(e._s(e.$t("delete_templ")))])]}}])})],1)],1)],1),e._v(" "),a("Footer"),e._v(" "),a("div",{})],1)},staticRenderFns:[]};var bt=a("VU/8")(gt,vt,!1,function(e){a("WNtS")},null,null).exports,wt=a("BO1k"),yt=a.n(wt),kt=a("d7EF"),$t=a.n(kt),xt={props:{callback:"",page_id:"",is_modal:!0,is_show_recover_btn:!0},data:function(){return{currentDate:new Date,content:"",dialogFormVisible:!1}},components:{},methods:{transform:function(){var e=this.content,t="\n\n",a=!0,i=!1,o=void 0;try{for(var n,s=yt()(e.split("\n").entries());!(a=(n=s.next()).done);a=!0){var r=n.value,l=$t()(r,2),c=l[0],d=l[1].split("\t");if(t+="| "+d.join(" | ")+" |\n",0==c){for(var m=0;m<d.length;m++)t+="|:--- ";t+=" |\n"}}}catch(e){i=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw o}}this.callback(t+"\n\n"),this.dialogFormVisible=!1}},mounted:function(){}},Ct={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",{staticClass:"container-narrow"},[a("el-dialog",{attrs:{title:e.$t("paste_insert_table"),modal:e.is_modal,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",[a("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:e.$t("paste_insert_table_tips"),rows:10},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.transform}},[e._v(e._s(e.$t("confirm")))])],1)],1)],1),e._v(" "),a("Footer"),e._v(" "),a("div",{})],1)},staticRenderFns:[]};var Ft=a("VU/8")(xt,Ct,!1,function(e){a("DhOl")},null,null).exports,St={props:{callback:"",page_id:"",item_id:"",is_modal:!0,belong_to_catalogs:[],cat_id:""},data:function(){return{currentDate:new Date,dialogTableVisible:!1,pages:[]}},components:{draggable:I.a},methods:{show:function(){this.dialogTableVisible=!0},get_pages:function(){var e=this,t=DocConfig.server+"/api/catalog/getPagesBycat",a=new URLSearchParams;a.append("item_id",this.item_id),a.append("cat_id",this.cat_id),e.axios.post(t,a).then(function(t){0===t.data.error_code?e.pages=t.data.data:e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})},endMove:function(e){for(var t={},a=0;a<this.pages.length;a++){t[this.pages[a].page_id]=a+1}this.sort_page(t)},sort_page:function(e){var t=this,a=DocConfig.server+"/api/page/sort",i=new URLSearchParams;i.append("pages",p()(e)),i.append("item_id",this.item_id),t.axios.post(a,i).then(function(e){0===e.data.error_code?t.get_pages():t.$alert(e.data.error_message,"",{callback:function(){window.location.reload()}})})}},watch:{cat_id:function(){this.get_pages()},dialogTableVisible:function(){this.get_pages()}},mounted:function(){}},Lt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",{staticClass:"container-narrow"},[a("el-dialog",{attrs:{title:e.$t("sort_pages"),modal:e.is_modal,visible:e.dialogTableVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("div",{staticClass:"dialog-body"},[a("p",{staticClass:"tips"},[e._v(e._s(e.$t("sort_pages_tips")))]),e._v(" "),e.belong_to_catalogs?a("el-select",{staticClass:"select-cat",attrs:{placeholder:e.$t("optional")},model:{value:e.cat_id,callback:function(t){e.cat_id=t},expression:"cat_id"}},e._l(e.belong_to_catalogs,function(e){return a("el-option",{key:e.cat_name,attrs:{label:e.cat_name,value:e.cat_id}})}),1):e._e(),e._v(" "),a("draggable",{attrs:{tag:"div",group:"page"},on:{end:e.endMove},model:{value:e.pages,callback:function(t){e.pages=t},expression:"pages"}},e._l(e.pages,function(t){return a("div",{key:t.page_id,staticClass:"page-box"},[a("span",{staticClass:"page-name"},[e._v(e._s(t.page_title))])])}),0)],1)])],1),e._v(" "),a("Footer"),e._v(" "),a("div",{})],1)},staticRenderFns:[]};var Tt=a("VU/8")(St,Lt,!1,function(e){a("lgXi")},"data-v-2f82e15d",null).exports,Pt=(a("xrTZ"),{data:function(){return{currentDate:new Date,itemList:{},content:"",title:"",item_id:0,cat_id:"",s_number:"",page_id:"",copy_page_id:"",attachment_count:"",catalogs:[],isLock:0,intervalId:0,saving:!1,showMockDialog:!1,lang:""}},computed:{belong_to_catalogs:function(){if(!this.catalogs||this.catalogs.length<=0)return[];for(var e=this.catalogs.slice(0),t=[],a=function e(a,i){if(a.length>0)for(var o=0;o<a.length;o++){var n=i+" / "+a[o].cat_name;t.push({cat_id:a[o].cat_id,cat_name:n}),a[o].sub&&a[o].sub.length>0&&e(a[o].sub,n)}},i=0;i<e.length;i++)t.push(e[i]),a(e[i].sub,e[i].cat_name);var o={cat_id:0,cat_name:this.$t("none")};return t.push(o),t}},components:{Editormd:ee,JsonToTable:dt,JsonBeautify:pt,TemplateList:bt,HistoryVersion:pe,AttachmentList:ye,PasteTable:Ft,SortPage:Tt,Mock:ht},methods:{get_page_content:function(e){e||(e=this.page_id);var t=this,a=DocConfig.server+"/api/page/info",i=new URLSearchParams;i.append("page_id",e),t.axios.post(a,i).then(function(e){0===e.data.error_code?(t.content=$e(e.data.data.page_content),setTimeout(function(){t.insertValue(t.content,1),document.body.scrollTop=document.documentElement.scrollTop=0},500),setTimeout(function(){t.content.length>3e3?t.editor_unwatch():t.editor_watch(),t.draft()},1e3),t.title=e.data.data.page_title,t.item_id=e.data.data.item_id,t.s_number=e.data.data.s_number,t.attachment_count=e.data.data.attachment_count>0?"...":""):t.$alert(e.data.error_message)}).catch(function(e){console.log(e)})},get_catalog:function(e){var t=this,a=DocConfig.server+"/api/catalog/catListGroup",i=new URLSearchParams;i.append("item_id",e),t.axios.post(a,i).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.catalogs=a,t.get_default_cat()}else t.$alert(e.data.error_message)}).catch(function(e){console.log(e)})},get_default_cat:function(){var e=this,t=DocConfig.server+"/api/catalog/getDefaultCat",a=new URLSearchParams;a.append("page_id",this.page_id),a.append("item_id",e.$route.params.item_id),a.append("copy_page_id",this.copy_page_id),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.cat_id=a.default_cat_id}else e.$alert(t.data.error_message)})},insertValue:function(e,t){if(e){var a=this.$refs.Editormd;t&&a.clear(),a.insertValue(e)}},insert_api_template:function(){var e;e="zh-cn"==DocConfig.lang?'\n\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\n':'\n \n##### Brief description\n\n- User Registration Interface\n\n\n##### Request URL\n- ` http://xx.com/api/user/register `\n \n##### Method\n- POST \n\n##### Parameter\n\n|Parameter name|Required|Type|Explain|\n|:---- |:---|:----- |----- |\n|username |Yes |string |Your username |\n|password |Yes |string | Your password |\n|name |No |string | Your name |\n\n##### Return example \n\n``` \n {\n "error_code": 0,\n "data": {\n "uid": "1",\n "username": "12154545",\n "name": "harry",\n "groupid": 2 ,\n "reg_time": "1436864169",\n "last_login_time": "0",\n }\n }\n```\n\n##### Return parameter description \n\n|Parameter name|Type|Explain|\n|:----- |:-----|----- |\n|groupid |int | .|\n\n##### Remark \n\n- For more error code returns, see the error code description on the home page\n\n\n',this.insertValue(e)},insert_database_template:function(){var e;e="zh-cn"==DocConfig.lang?"\n\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 \n- User table , to store user information\n\n\n|Field|Type|Empty|Default|Explain|\n|:---- |:------- |:--- |-- -|------ |\n|uid |int(10) |No | | |\n|username |varchar(20) |No | | |\n|password |varchar(50) |No | | |\n|name |varchar(15) |No | | |\n|reg_time |int(11) |No | 0 | . |\n\n- Remark : none\n\n\n",this.insertValue(e)},editor_unwatch:function(){this.$refs.Editormd.editor_unwatch(),sessionStorage.getItem("page_id_unwatch_"+this.page_id)||(this.$alert(this.$t("long_page_tips")),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()},ShowPasteTable:function(){this.$refs.PasteTable.dialogFormVisible=!0},ShowHistoryVersion:function(){this.$refs.HistoryVersion.show()},ShowSortPage:function(){var e=this;this.save(function(){e.$refs.SortPage.show()})},save:function(e){var t=this;if(this.saving)return!1;this.saving=!0;var a=t.$loading(),i=this.$refs.Editormd.getMarkdown(),o=this.cat_id,n=t.$route.params.item_id,s=t.$route.params.page_id,r=DocConfig.server+"/api/page/save",l=new URLSearchParams;l.append("page_id",s),l.append("item_id",n),l.append("page_title",t.title),l.append("page_content",encodeURIComponent(i)),l.append("is_urlencode",1),l.append("cat_id",o),t.axios.post(r,l).then(function(i){a.close(),t.saving=!1,0===i.data.error_code?("function"==typeof e?e():t.$message({showClose:!0,message:t.$t("save_success"),type:"success"}),t.deleteDraft(),s<=0&&(t.$router.push({path:"/page/edit/"+n+"/"+i.data.data.page_id}),t.page_id=i.data.data.page_id)):t.$alert(i.data.error_message)}),setTimeout(function(){a.close(),t.saving=!1},2e4)},goback:function(){var e="/"+this.$route.params.item_id;this.$router.push({path:e,query:{page_id:this.$route.params.page_id}})},dropdown_callback:function(e){e&&e()},save_to_template:function(){var e=this,t=this.$refs.Editormd.getMarkdown();this.$prompt(e.$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",t),e.axios.post(i,o).then(function(t){0===t.data.error_code?e.$alert(e.$t("save_templ_text")):e.$alert(t.data.error_message)})})},ShowAttachment:function(){this.$refs.AttachmentList.show()},upload_paste_img:function(e){for(var t=this,a=DocConfig.server+"/api/page/uploadImg",i=e.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(e,a){switch(e=e||"before"){case"before":l=t.$loading();break;case"error":l.close(),t.$alert("图片上传失败");break;case"success":if(l.close(),1==a.success){var i="![]("+a.url+")";t.insertValue(i)}else t.$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(e){c("success",e)}}),e.preventDefault()}},draft:function(){var e=this,t="page_content_"+this.page_id,a=this.$refs.Editormd;setInterval(function(){var e=a.getMarkdown();localStorage.setItem(t,e)},3e4);var i=localStorage.getItem(t);i&&i.length>0&&i!=a.getMarkdown()&&a.getMarkdown()&&a.getMarkdown().length>10&&(localStorage.removeItem(t),e.$confirm(e.$t("draft_tips"),"",{showClose:!1}).then(function(){e.insertValue(i,!0),localStorage.removeItem(t)}).catch(function(){localStorage.removeItem(t)}))},deleteDraft:function(){for(var e=0;e<localStorage.length;e++){var t=localStorage.key(e);t.indexOf("page_content_")>-1&&localStorage.removeItem(t)}},setLock:function(){var e=this;this.page_id>0&&this.request("/api/page/setLock",{page_id:this.page_id,item_id:this.item_id}).then(function(){e.isLock=1})},unlock:function(){var e=this;this.isLock&&this.request("/api/page/setLock",{page_id:this.page_id,item_id:this.item_id,lock_to:1e3}).then(function(){e.isLock=0})},heartBeatLock:function(){var e=this;this.intervalId=setInterval(function(){e.isLock&&e.setLock()},18e4)},remoteIsLock:function(){var e=this;this.request("/api/page/isLock",{page_id:this.page_id}).then(function(t){t.data.lock>0?t.data.is_cur_user>0?e.isLock=1:(e.$alert(e.$t("locking")+t.data.lock_username),e.goback()):e.setLock()})}},mounted:function(){this.page_id=this.$route.params.page_id,this.item_id=this.$route.params.item_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.content=this.$t("welcome_use_showdoc"),this.get_catalog(this.$route.params.item_id),this.heartBeatLock(),this.remoteIsLock(),document.addEventListener("paste",this.upload_paste_img),this.lang=DocConfig.lang},beforeDestroy:function(){document.removeEventListener("paste",this.upload_paste_img),this.$message.closeAll(),clearInterval(this.intervalId),this.unlock()}}),It={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello",on:{keydown:[function(t){return(t.type.indexOf("key")||83===t.keyCode)&&t.ctrlKey?(t.preventDefault(),e.save(t)):null},function(t){return(t.type.indexOf("key")||83===t.keyCode)&&t.metaKey?(t.preventDefault(),e.save(t)):null}]}},[a("Header"),e._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:e.$t("title")+" : "}},[a("el-input",{attrs:{placeholder:""},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("catalog")+" : "}},[e.belong_to_catalogs?a("el-select",{staticClass:"cat",attrs:{placeholder:e.$t("optional")},model:{value:e.cat_id,callback:function(t){e.cat_id=t},expression:"cat_id"}},e._l(e.belong_to_catalogs,function(e){return a("el-option",{key:e.cat_name,attrs:{label:e.cat_name,value:e.cat_id}})}),1):e._e()],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"text"},on:{click:e.ShowSortPage}},[e._v(e._s(e.$t("sort_pages")))])],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"text"},on:{click:e.ShowHistoryVersion}},[e._v(e._s(e.$t("history_version")))])],1),e._v(" "),a("el-form-item",{staticClass:"pull-right"},[a("el-dropdown",{attrs:{"split-button":"",type:"primary",size:"medium",title:"Ctrl + S",trigger:"click"},on:{command:e.dropdown_callback,click:e.save}},[a("span",{attrs:{id:"save-page"}},[e._v(e._s(e.$t("save")))]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:e.save_to_template}},[e._v(e._s(e.$t("save_to_templ")))]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("lock_edit_tips"),placement:"left"}},[e.isLock?e._e():a("el-dropdown-item",{attrs:{command:e.setLock}},[e._v(e._s(e.$t("lock_edit")))])],1),e._v(" "),e.isLock?a("el-dropdown-item",{attrs:{command:e.unlock}},[e._v(e._s(e.$t("cacel_lock")))]):e._e()],1)],1),e._v(" "),a("el-button",{attrs:{type:"",size:"medium"},on:{click:e.goback}},[e._v(e._s(e.$t("goback")))])],1)],1),e._v(" "),a("el-row",{staticClass:"fun-btn-group"},[a("el-button",{attrs:{type:"",size:"medium"},on:{click:e.insert_api_template}},[e._v(e._s(e.$t("insert_apidoc_template")))]),e._v(" "),a("el-button",{attrs:{type:"",size:"medium"},on:{click:e.insert_database_template}},[e._v(e._s(e.$t("insert_database_doc_template")))]),e._v(" "),a("el-button",{attrs:{type:"",size:"medium"},nativeOn:{click:function(t){return e.ShowTemplateList(t)}}},[e._v(e._s(e.$t("more_templ")))]),e._v(" "),a("el-dropdown",{staticStyle:{"margin-left":"100px"},attrs:{"split-button":"",type:"",size:"medium",trigger:"hover"}},[e._v("\n "+e._s(e.$t("format_tools"))+"\n "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.ShowJsonToTable(t)}}},[e._v(e._s(e.$t("json_to_table")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){return e.ShowJsonBeautify(t)}}},[e._v(e._s(e.$t("beautify_json")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){return e.ShowPasteTable(t)}}},[e._v(e._s(e.$t("paste_insert_table")))])],1)],1),e._v(" "),"zh-cn"==e.lang?a("el-button",{attrs:{type:"",size:"medium"},on:{click:function(t){e.showMockDialog=!0}}},[e._v("Mock")]):e._e(),e._v(" "),"zh-cn"==e.lang?a("el-button",{attrs:{type:"",size:"medium"},on:{click:e.ShowRunApi}},[e._v(e._s(e.$t("http_test_api")))]):e._e(),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.attachment_count}},[a("el-button",{attrs:{type:"",size:"medium"},on:{click:e.ShowAttachment}},[e._v(e._s(e.$t("attachment")))])],1)],1),e._v(" "),e.content?a("Editormd",{ref:"Editormd",attrs:{content:e.content,type:"editor"}}):e._e()],1),e._v(" "),a("TemplateList",{ref:"TemplateList",attrs:{callback:e.insertValue}}),e._v(" "),a("HistoryVersion",{ref:"HistoryVersion",attrs:{callback:e.insertValue,is_show_recover_btn:!0}}),e._v(" "),a("JsonToTable",{ref:"JsonToTable",attrs:{callback:e.insertValue}}),e._v(" "),a("JsonBeautify",{ref:"JsonBeautify",attrs:{callback:e.insertValue}}),e._v(" "),a("AttachmentList",{ref:"AttachmentList",attrs:{callback:e.insertValue,item_id:e.item_id,manage:!0,page_id:e.page_id}}),e._v(" "),a("PasteTable",{ref:"PasteTable",attrs:{callback:e.insertValue,item_id:e.item_id,manage:!0,page_id:e.page_id}}),e._v(" "),a("SortPage",{ref:"SortPage",attrs:{callback:e.insertValue,belong_to_catalogs:e.belong_to_catalogs,item_id:e.item_id,page_id:e.page_id,cat_id:e.cat_id}}),e._v(" "),e.showMockDialog?a("Mock",{ref:"Mock",attrs:{page_id:e.page_id,callback:function(t){t&&e.insertValue(t),e.showMockDialog=!1}}}):e._e()],1),e._v(" "),a("Footer"),e._v(" "),a("div",{})],1)},staticRenderFns:[]};var Dt=a("VU/8")(Pt,It,!1,function(e){a("sYP/")},"data-v-7b9319d6",null).exports;if("undefined"!=typeof window)var Mt=a("zhAq");var Vt={props:{callback:""},data:function(){return{content:"",historyContent:""}},components:{},methods:{get_content:function(){var e=this,t=DocConfig.server+"/api/page/diff",a=new URLSearchParams;a.append("page_id",e.$route.params.page_id),a.append("page_history_id",e.$route.params.page_history_id),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.content=a.page.page_content,e.historyContent=a.history_page.page_content,e.$nextTick(function(){e.diffUsingJS(0)})}else e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})},diffUsingJS:function(e){var t=function(e){return document.getElementById(e)},a=difflib.stringAsLines(t("baseText").value),i=difflib.stringAsLines(t("newText").value),o=new difflib.SequenceMatcher(a,i).get_opcodes(),n=t("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:e}))}},mounted:function(){var e=this;Mt(["static/diff/difflib.js","static/diff/diffview.js"],function(){e.get_content()})},beforeDestroy:function(){}},Ut={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("link",{attrs:{href:"static/diff/diffview.css",rel:"stylesheet"}}),e._v(" "),a("el-container",{staticClass:"container-narrow"},[a("div",{staticClass:"textInput"},[a("textarea",{staticStyle:{display:"none"},attrs:{id:"baseText"},domProps:{innerHTML:e._s(e.content)}})]),e._v(" "),a("div",{staticClass:"textInput spacer"},[a("textarea",{staticStyle:{display:"none"},attrs:{id:"newText"},domProps:{innerHTML:e._s(e.historyContent)}})]),e._v(" "),a("div",{attrs:{id:"diffoutput"}})]),e._v(" "),a("Footer"),e._v(" "),a("div",{})],1)},staticRenderFns:[]};var Rt=a("VU/8")(Vt,Ut,!1,function(e){a("h/6b")},"data-v-4b517963",null).exports,At={name:"Login",components:{SortPage:Tt},data:function(){return{MyForm:{cat_id:0,parent_cat_id:"",cat_name:"",s_number:""},catalogs:[],dialogFormVisible:!1,treeData:[],defaultProps:{children:"children",label:"label"},item_id:"",curl_cat_id:""}},computed:{belong_to_catalogs:function(){if(!this.catalogs||this.catalogs.length<=0)return[];for(var e=this.catalogs.slice(0),t=[],a=function e(a,i){if(a.length>0)for(var o=0;o<a.length;o++){var n=i+" / "+a[o].cat_name;t.push({cat_id:a[o].cat_id,cat_name:n}),a[o].sub&&a[o].sub.length>0&&e(a[o].sub,n)}},i=0;i<e.length;i++)t.push(e[i]),a(e[i].sub,e[i].cat_name);var o={cat_id:0,cat_name:this.$t("none")};return t.push(o),t}},methods:{get_catalog:function(){var e=this;this.request("/api/catalog/catListGroup",{item_id:this.$route.params.item_id}).then(function(t){var a=t.data;e.catalogs=a,e.treeData=[];e.treeData=function e(t){for(var a=[],i=0;i<t.length;i++){var o={children:[]};o.id=t[i].cat_id,o.label=t[i].cat_name,t[i].sub.length>0&&(o.children=e(t[i].sub)),a.push(o)}return a}(a)})},MyFormSubmit:function(){var e=this;this.request("/api/catalog/save",{item_id:this.$route.params.item_id,cat_id:this.MyForm.cat_id,parent_cat_id:this.MyForm.parent_cat_id,cat_name:this.MyForm.cat_name}).then(function(t){e.dialogFormVisible=!1,e.get_catalog(),e.MyForm=[]})},edit:function(e,t){this.MyForm={cat_id:t.id,parent_cat_id:e.parent.data.id,cat_name:t.label},this.dialogFormVisible=!0},delete_cat:function(e,t){var a=this,i=t.id;this.$confirm(this.$t("confirm_cat_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){a.request("/api/catalog/delete",{item_id:a.$route.params.item_id,cat_id:i}).then(function(e){a.get_catalog()})})},resetForm:function(){this.MyForm={cat_id:0,parent_cat_id:"",cat_name:"",s_number:""}},add_cat:function(e,t){e&&t.id?this.MyForm={cat_id:"",parent_cat_id:t.id,cat_name:""}:this.resetForm(),this.dialogFormVisible=!0},goback:function(){var e="/"+this.$route.params.item_id;this.$router.push({path:e})},handleDragEnd:function(e,t,a,i){var o=this.dimensionReduction(this.treeData);this.request("/api/catalog/batUpdate",{item_id:this.$route.params.item_id,cats:p()(o)})},dimensionReduction:function(e){for(var t=[],a=function e(a,i,o,n){if(t.push({cat_id:a.id,cat_name:a.label,parent_cat_id:i,level:o,s_number:n+1}),a.hasOwnProperty("children"))for(var s=0;s<a.children.length;s++)e(a.children[s],a.id,o+1,s)},i=0;i<e.length;i++)a(e[i],0,2,i);return t},showSortPage:function(e,t){this.curl_cat_id=t.id,this.$refs.SortPage.show()}},mounted:function(){this.get_catalog(),this.item_id=this.$route.params.item_id},beforeDestroy:function(){}},Et={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-row",[a("el-button",{staticClass:"add-cat",attrs:{type:"text"},on:{click:function(t){return e.add_cat()}}},[e._v(e._s(e.$t("add_cat")))]),e._v(" "),a("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:e.goback}},[e._v(e._s(e.$t("goback")))])],1),e._v(" "),e.treeData.length>1?a("p",{staticClass:"tips"},[e._v(e._s(e.$t("cat_tips")))]):e._e(),e._v(" "),a("el-tree",{staticClass:"tree-node",attrs:{data:e.treeData,"node-key":"id","default-expand-all":"",draggable:""},on:{"node-drag-end":e.handleDragEnd},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,o=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",[e._v(e._s(i.label))]),e._v(" "),a("span",{staticClass:"right-bar"},[a("el-button",{staticClass:"el-icon-edit",attrs:{type:"text",size:"mini"},on:{click:function(t){return t.stopPropagation(),e.edit(i,o)}}}),e._v(" "),a("el-button",{staticClass:"el-icon-plus",attrs:{type:"text",size:"mini"},on:{click:function(t){return t.stopPropagation(),e.add_cat(i,o)}}}),e._v(" "),a("el-button",{staticClass:"el-icon-document",attrs:{type:"text",size:"mini"},on:{click:function(t){return t.stopPropagation(),e.showSortPage(i,o)}}}),e._v(" "),a("el-button",{staticClass:"el-icon-delete",attrs:{type:"text",size:"mini"},on:{click:function(t){return t.stopPropagation(),e.delete_cat(i,o)}}})],1)])}}])})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogFormVisible,width:"300px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",[a("el-form-item",{attrs:{label:e.$t("cat_name")+" : "}},[a("el-input",{attrs:{placeholder:e.$t("input_cat_name")},model:{value:e.MyForm.cat_name,callback:function(t){e.$set(e.MyForm,"cat_name",t)},expression:"MyForm.cat_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("parent_cat_name")+" : "}},[a("el-select",{attrs:{placeholder:e.$t("none")},model:{value:e.MyForm.parent_cat_id,callback:function(t){e.$set(e.MyForm,"parent_cat_id",t)},expression:"MyForm.parent_cat_id"}},e._l(e.belong_to_catalogs,function(e){return a("el-option",{key:e.cat_id,attrs:{label:e.cat_name,value:e.cat_id}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.MyFormSubmit}},[e._v(e._s(e.$t("confirm")))])],1)],1)],1),e._v(" "),a("SortPage",{ref:"SortPage",attrs:{callback:e.insertValue,belong_to_catalogs:e.belong_to_catalogs,item_id:e.item_id,cat_id:e.curl_cat_id}}),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var jt=a("VU/8")(At,Et,!1,function(e){a("84Br")},"data-v-0995d0ca",null).exports,Ot={name:"Login",components:{},data:function(){return{unreadList:[],allList:[]}},methods:{getList:function(e){e||(e="all");var t=this,a=DocConfig.server+"/api/notice/getList",i=new URLSearchParams;i.append("notice_type",e),t.axios.post(a,i).then(function(a){if(0===a.data.error_code){var i=a.data.data;"unread"==e?t.unreadList=i:t.allList=i}else t.$alert(a.data.error_message)})},show_notice:function(e){var t=e.notice_id;e.is_read=1;var a=this;a.$alert(e.notice_content,"",{dangerouslyUseHTMLString:!0});var i=DocConfig.server+"/api/notice/setRead",o=new URLSearchParams;o.append("notice_id",t),a.axios.post(i,o).then(function(e){0===e.data.error_code||a.$alert(e.data.error_message)})},delete_notice:function(e){var t=e.notice_id,a=this,i=DocConfig.server+"/api/notice/delete";this.$confirm("确认删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e=new URLSearchParams;e.append("notice_id",t),a.axios.post(i,e).then(function(e){0===e.data.error_code?a.getList():a.$alert(e.data.error_message)})})},feedback:function(){this.$alert("对showdoc.cc的任何疑问、建议都可以反馈到 xing7th@gmail.com")}},mounted:function(){this.getList()},beforeCreate:function(){},beforeDestroy:function(){}},qt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[[a("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:e.feedback}},[a("span",{staticClass:"feedback"},[e._v("反馈")])]),e._v(" "),a("router-link",{attrs:{to:"/item/index"}},[e._v("返回")]),e._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:e.allList,height:"350","default-expand-all":!1}},[a("el-table-column",{attrs:{prop:"notice_title",label:"标题"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{domProps:{innerHTML:e._s(t.row.notice_title)}}),e._v(" "),0==t.row.is_read?a("el-badge",{staticClass:"mark",attrs:{value:"未读"}}):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"from_name",label:"发送人"}}),e._v(" "),a("el-table-column",{attrs:{prop:"notice_time",label:"时间",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.show_notice(t.row)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.delete_notice(t.row)}}},[e._v("删除")])]}}])})],1)],1)],1)]],2)],1),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var Bt=a("VU/8")(Ot,qt,!1,function(e){a("+nIW")},"data-v-635a8e03",null).exports,zt={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 e=this,t=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),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.itemList=a.items,e.total=a.total}else e.$alert(t.data.error_message)})},formatPrivacy:function(e,t){if(e)return e.password.length>0?this.$t("private"):this.$t("public")},jump_to_item:function(e){var t="#/"+e.item_id;window.open(t)},handleCurrentChange:function(e){this.page=e,this.get_item_list()},onSubmit:function(){this.page=1,this.get_item_list()},delete_item:function(e){var t=this,a=DocConfig.server+"/api/adminItem/deleteItem";this.$confirm(t.$t("confirm_delete")," ",{confirmButtonText:t.$t("confirm"),cancelButtonText:t.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("item_id",e.item_id),t.axios.post(a,i).then(function(e){0===e.data.error_code?(t.$message.success("删除成功"),t.get_item_list()):t.$alert(e.data.error_message)})})},click_attorn_item:function(e){this.dialogAttornVisible=!0,this.attorn_item_id=e.item_id},attorn:function(){var e=this,t=DocConfig.server+"/api/adminItem/attorn",a=new URLSearchParams;a.append("item_id",e.attorn_item_id),a.append("username",this.attornForm.username),e.axios.post(t,a).then(function(t){0===t.data.error_code?(e.dialogAttornVisible=!1,e.$message.success(e.$t("success")),e.get_item_list()):e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})}},mounted:function(){this.get_item_list()},beforeDestroy:function(){this.$message.closeAll()}},Ht={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;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:e.$t("item_name")},model:{value:e.item_name,callback:function(t){e.item_name=t},expression:"item_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:e.$t("owner")},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}})],1),e._v(" "),a("el-form-item",[a("el-button",{on:{click:e.onSubmit}},[e._v(e._s(e.$t("search")))])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.itemList}},[a("el-table-column",{attrs:{prop:"item_name",label:e.$t("item_name"),width:"140"}}),e._v(" "),a("el-table-column",{attrs:{prop:"item_description",label:e.$t("item_description"),width:"140"}}),e._v(" "),a("el-table-column",{attrs:{prop:"password",label:e.$t("privacy"),formatter:e.formatPrivacy,width:"80"}}),e._v(" "),a("el-table-column",{attrs:{prop:"item_id",label:e.$t("link"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.jump_to_item(t.row)}}},[e._v(e._s(e.$t("link")))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"username",label:e.$t("owner"),width:"160"}}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("memberCount"),width:"80"}}),e._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:e.$t("add_time"),width:"160"}}),e._v(" "),a("el-table-column",{attrs:{prop:"item_domain",label:e.$t("operation")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.click_attorn_item(t.row)}}},[e._v(e._s(e.$t("attorn")))]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.delete_item(t.row)}}},[e._v(e._s(e.$t("delete")))])]}}])})],1),e._v(" "),a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"}),e._v(" "),a("el-pagination",{attrs:{"page-size":e.count,layout:"total, prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogAttornVisible,"close-on-click-modal":!1,width:"300px"},on:{"update:visible":function(t){e.dialogAttornVisible=t}}},[a("el-form",[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:e.$t("attorn_username")},model:{value:e.attornForm.username,callback:function(t){e.$set(e.attornForm,"username",t)},expression:"attornForm.username"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogAttornVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.attorn}},[e._v(e._s(e.$t("attorn")))])],1)],1)],1)},staticRenderFns:[]};var Nt={data:function(){return{itemList:[],username:"",page:1,count:7,total:0,addForm:{username:"",password:"",uid:0,name:""},dialogAddVisible:!1}},methods:{get_user_list:function(){var e=this,t=DocConfig.server+"/api/adminUser/getList",a=new URLSearchParams;a.append("username",this.username),a.append("page",this.page),a.append("count",this.count),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.itemList=a.users,e.total=a.total}else e.$alert(t.data.error_message)})},formatGroup:function(e,t){if(e)return 1==e.groupid?this.$t("administrator"):2==e.groupid?this.$t("ordinary_users"):""},jump_to_item:function(e){var t="#/"+e.item_id;window.open(t)},handleCurrentChange:function(e){this.page=e,this.get_user_list()},onSubmit:function(){this.page=1,this.get_user_list()},delete_user:function(e){var t=this,a=DocConfig.server+"/api/adminUser/deleteUser";this.$confirm(t.$t("confirm_delete")," ",{confirmButtonText:t.$t("confirm"),cancelButtonText:t.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("uid",e.uid),t.axios.post(a,i).then(function(e){0===e.data.error_code?(t.$message.success("success"),t.get_user_list(),t.username=""):t.$alert(e.data.error_message)})})},click_edit:function(e){this.dialogAddVisible=!0,this.addForm={uid:e.uid,name:e.name,username:e.username,password:""}},add_user:function(){var e=this,t=DocConfig.server+"/api/adminUser/addUser",a=new URLSearchParams;a.append("username",e.addForm.username),a.append("password",this.addForm.password),a.append("uid",this.addForm.uid),a.append("name",this.addForm.name),e.axios.post(t,a).then(function(t){0===t.data.error_code?(e.dialogAddVisible=!1,e.addForm.password="",e.addForm.username="",e.addForm.uid=0,e.addForm.name="",e.$message.success(e.$t("success")),e.get_user_list()):e.$alert(t.data.error_message)}).catch(function(e){console.log(e)})},resetForm:function(){this.addForm={uid:0,name:"",username:"",password:""},this.dialogAddVisible=!1}},mounted:function(){this.get_user_list()},beforeDestroy:function(){this.$message.closeAll()}},Jt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;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:e.username,callback:function(t){e.username=t},expression:"username"}})],1),e._v(" "),a("el-form-item",[a("el-button",{on:{click:e.onSubmit}},[e._v(e._s(e.$t("search")))])],1)],1),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogAddVisible=!0}}},[e._v(e._s(e.$t("add_user")))]),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.itemList}},[a("el-table-column",{attrs:{prop:"username",label:e.$t("username"),width:"200"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:e.$t("name")}}),e._v(" "),a("el-table-column",{attrs:{prop:"groupid",label:e.$t("userrole"),formatter:e.formatGroup,width:"150"}}),e._v(" "),a("el-table-column",{attrs:{prop:"reg_time",label:e.$t("reg_time"),width:"160"}}),e._v(" "),a("el-table-column",{attrs:{prop:"last_login_time",label:e.$t("last_login_time"),width:"160"}}),e._v(" "),a("el-table-column",{attrs:{prop:"item_domain",label:e.$t("operation")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.click_edit(t.row)}}},[e._v(e._s(e.$t("edit")))]),e._v(" "),1!=t.row.groupid?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.delete_user(t.row)}}},[e._v(e._s(e.$t("delete")))]):e._e()]}}])})],1),e._v(" "),a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"}),e._v(" "),a("el-pagination",{attrs:{"page-size":e.count,layout:"total, prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogAddVisible,"before-close":e.resetForm,"close-on-click-modal":!1,width:"300px"},on:{"update:visible":function(t){e.dialogAddVisible=t}}},[a("el-form",[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text",placeholder:e.$t("username"),readonly:e.addForm.uid>0},model:{value:e.addForm.username,callback:function(t){e.$set(e.addForm,"username",t)},expression:"addForm.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"text",placeholder:e.$t("name")},model:{value:e.addForm.name,callback:function(t){e.$set(e.addForm,"name",t)},expression:"addForm.name"}})],1),e._v(" "),e.addForm.uid<=0?a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password",placeholder:e.$t("password")},model:{value:e.addForm.password,callback:function(t){e.$set(e.addForm,"password",t)},expression:"addForm.password"}})],1):e._e(),e._v(" "),e.addForm.uid>0?a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password",placeholder:e.$t("update_pwd_tips")},model:{value:e.addForm.password,callback:function(t){e.$set(e.addForm,"password",t)},expression:"addForm.password"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.resetForm}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.add_user}},[e._v(e._s(e.$t("confirm")))])],1)],1)],1)},staticRenderFns:[]};var Yt={data:function(){return{form:{register_open:!0,ldap_open:!1,home_page:"1",ldap_form:{host:"",port:"389",version:"3",base_dn:"",bind_dn:"",bind_password:"",user_field:""},home_item:"",oss_open:!1,oss_setting:{oss_type:"tencent",key:"",secret:"",endpoint:"",bucket:"",protocol:"http",domain:""}},itemList:[]}},methods:{onSubmit:function(){var e=this,t=DocConfig.server+"/api/adminSetting/saveConfig";this.axios.post(t,this.form).then(function(t){0===t.data.error_code?e.$alert(e.$t("success")):e.$alert(t.data.error_message)})},loadConfig:function(){var e=this,t=DocConfig.server+"/api/adminSetting/loadConfig";this.axios.post(t,this.form).then(function(t){if(0===t.data.error_code){if(0===t.data.data.length)return;e.form.register_open=t.data.data.register_open>0,e.form.oss_open=t.data.data.oss_open>0,e.form.ldap_open=t.data.data.ldap_open>0,e.form.home_page=t.data.data.home_page>0?t.data.data.home_page:1,e.form.home_item=t.data.data.home_item>0?t.data.data.home_item:"",e.form.ldap_form=t.data.data.ldap_form?t.data.data.ldap_form:e.form.ldap_form,e.form.oss_setting=t.data.data.oss_setting?t.data.data.oss_setting:e.form.oss_setting}else e.$alert(t.data.error_message)})},get_item_list:function(){var e=this,t=DocConfig.server+"/api/adminItem/getList",a=new URLSearchParams;a.append("page",1),a.append("count",1e3),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.itemList=a.items}else e.$alert(t.data.error_message)})}},mounted:function(){this.get_item_list(),this.loadConfig()},beforeDestroy:function(){this.$message.closeAll()}},Wt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"150px"}},[a("el-form-item",{attrs:{label:e.$t("register_open")}},[a("el-switch",{model:{value:e.form.register_open,callback:function(t){e.$set(e.form,"register_open",t)},expression:"form.register_open"}})],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("home_page")}},[a("el-select",{attrs:{placeholder:e.$t("please_choose")},model:{value:e.form.home_page,callback:function(t){e.$set(e.form,"home_page",t)},expression:"form.home_page"}},[a("el-option",{attrs:{label:e.$t("full_page"),value:"1"}}),e._v(" "),a("el-option",{attrs:{label:e.$t("login_page"),value:"2"}}),e._v(" "),a("el-option",{attrs:{label:e.$t("jump_to_an_item"),value:"3"}})],1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3==e.form.home_page,expression:"form.home_page == 3"}],attrs:{label:e.$t("jump_to_item")}},[a("el-select",{attrs:{placeholder:e.$t("please_choose")},model:{value:e.form.home_item,callback:function(t){e.$set(e.form,"home_item",t)},expression:"form.home_item"}},e._l(e.itemList,function(e){return a("el-option",{key:e.item_id,attrs:{label:e.item_name,value:e.item_id}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("ldap_open_label")}},[a("el-switch",{model:{value:e.form.ldap_open,callback:function(t){e.$set(e.form,"ldap_open",t)},expression:"form.ldap_open"}})],1),e._v(" "),e.form.ldap_open?a("div",{staticStyle:{"margin-left":"50px"}},[a("el-form-item",{attrs:{label:"ldap host"}},[a("el-input",{staticClass:"form-el",model:{value:e.form.ldap_form.host,callback:function(t){e.$set(e.form.ldap_form,"host",t)},expression:"form.ldap_form.host"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"ldap port"}},[a("el-input",{staticStyle:{width:"90px"},model:{value:e.form.ldap_form.port,callback:function(t){e.$set(e.form.ldap_form,"port",t)},expression:"form.ldap_form.port"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"ldap base dn "}},[a("el-input",{staticClass:"form-el",attrs:{placeholder:"例如 dc=showdoc,dc=com"},model:{value:e.form.ldap_form.base_dn,callback:function(t){e.$set(e.form.ldap_form,"base_dn",t)},expression:"form.ldap_form.base_dn"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"ldap bind dn "}},[a("el-input",{staticClass:"form-el",attrs:{placeholder:"cn=admin,dc=showdoc,dc=com"},model:{value:e.form.ldap_form.bind_dn,callback:function(t){e.$set(e.form.ldap_form,"bind_dn",t)},expression:"form.ldap_form.bind_dn"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"ldap bind password "}},[a("el-input",{staticClass:"form-el",attrs:{placeholder:"例如 123456"},model:{value:e.form.ldap_form.bind_password,callback:function(t){e.$set(e.form.ldap_form,"bind_password",t)},expression:"form.ldap_form.bind_password"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"ldap version"}},[a("el-select",{staticClass:"form-el",model:{value:e.form.ldap_form.version,callback:function(t){e.$set(e.form.ldap_form,"version",t)},expression:"form.ldap_form.version"}},[a("el-option",{attrs:{label:"3",value:"3"}}),e._v(" "),a("el-option",{attrs:{label:"2",value:"2"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"ldap user filed"}},[a("el-input",{staticClass:"form-el",attrs:{placeholder:"例如 cn 或者 sAMAccountName"},model:{value:e.form.ldap_form.user_field,callback:function(t){e.$set(e.form.ldap_form,"user_field",t)},expression:"form.ldap_form.user_field"}})],1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:e.$t("oss_open")}},[a("el-switch",{model:{value:e.form.oss_open,callback:function(t){e.$set(e.form,"oss_open",t)},expression:"form.oss_open"}})],1),e._v(" "),e.form.oss_open?a("div",{staticStyle:{"margin-left":"50px"}},[a("el-form-item",{attrs:{label:e.$t("oss_server")}},[a("el-select",{model:{value:e.form.oss_setting.oss_type,callback:function(t){e.$set(e.form.oss_setting,"oss_type",t)},expression:"form.oss_setting.oss_type"}},[a("el-option",{attrs:{label:e.$t("tencent"),value:"tencent"}}),e._v(" "),a("el-option",{attrs:{label:e.$t("aliyun"),value:"aliyun"}}),e._v(" "),a("el-option",{attrs:{label:e.$t("qiniu"),value:"qiniu"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"key"}},[a("el-input",{staticClass:"form-el",model:{value:e.form.oss_setting.key,callback:function(t){e.$set(e.form.oss_setting,"key",t)},expression:"form.oss_setting.key"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"secret"}},[a("el-input",{staticClass:"form-el",model:{value:e.form.oss_setting.secret,callback:function(t){e.$set(e.form.oss_setting,"secret",t)},expression:"form.oss_setting.secret"}})],1),e._v(" "),"tencent"==e.form.oss_setting.oss_type?a("el-form-item",{attrs:{label:"region"}},[a("el-input",{staticClass:"form-el",model:{value:e.form.oss_setting.region,callback:function(t){e.$set(e.form.oss_setting,"region",t)},expression:"form.oss_setting.region"}})],1):e._e(),e._v(" "),"aliyun"==e.form.oss_setting.oss_type?a("el-form-item",{attrs:{label:"endpoint"}},[a("el-input",{staticClass:"form-el",model:{value:e.form.oss_setting.endpoint,callback:function(t){e.$set(e.form.oss_setting,"endpoint",t)},expression:"form.oss_setting.endpoint"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"bucket"}},[a("el-input",{staticClass:"form-el",model:{value:e.form.oss_setting.bucket,callback:function(t){e.$set(e.form.oss_setting,"bucket",t)},expression:"form.oss_setting.bucket"}})],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("oss_domain")}},[a("el-select",{staticStyle:{width:"100px"},model:{value:e.form.oss_setting.protocol,callback:function(t){e.$set(e.form.oss_setting,"protocol",t)},expression:"form.oss_setting.protocol"}},[a("el-option",{attrs:{label:"http://",value:"http"}}),e._v(" "),a("el-option",{attrs:{label:"https://",value:"https"}})],1),e._v(" "),a("el-input",{staticClass:"form-el",model:{value:e.form.oss_setting.domain,callback:function(t){e.$set(e.form.oss_setting,"domain",t)},expression:"form.oss_setting.domain"}})],1)],1):e._e(),e._v(" "),a("br"),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$t("save")))]),e._v(" "),a("el-button",[e._v(e._s(e.$t("cancel")))])],1)],1)],1)},staticRenderFns:[]};var Gt={data:function(){return{page:1,count:7,display_name:"",username:"",dataList:[],total:0,positive_type:"1",attachment_type:"-1",used:0}},methods:{getList:function(){var e=this;this.request("/api/attachment/getAllList",{page:this.page,count:this.count,attachment_type:this.attachment_type,display_name:this.display_name,username:this.username}).then(function(t){var a=t.data;e.dataList=a.list,e.total=parseInt(a.total),e.used=a.used_m})},jump_to_item:function(e){var t="/"+e.item_id;window.open(t)},handleCurrentChange:function(e){this.page=e,this.getList()},onSubmit:function(){this.page=1,this.getList()},visit:function(e){window.open(e.url)},delete_row:function(e){var t=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){t.request("/api/attachment/deleteAttachment",{file_id:e.file_id}).then(function(e){t.$message.success(t.$t("op_success")),t.getList()})})}},mounted:function(){this.getList()},beforeDestroy:function(){this.$message.closeAll()}},Kt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;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:e.$t("display_name")},model:{value:e.display_name,callback:function(t){e.display_name=t},expression:"display_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-select",{attrs:{placeholder:""},model:{value:e.attachment_type,callback:function(t){e.attachment_type=t},expression:"attachment_type"}},[a("el-option",{attrs:{label:e.$t("all_attachment_type"),value:"-1"}}),e._v(" "),a("el-option",{attrs:{label:e.$t("image"),value:"1"}}),e._v(" "),a("el-option",{attrs:{label:e.$t("general_attachment"),value:"2"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:e.$t("uploader")},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}})],1),e._v(" "),a("el-form-item",[a("el-button",{on:{click:e.onSubmit}},[e._v(e._s(e.$t("search")))])],1)],1),e._v(" "),a("P",[e._v("累计已使用 "+e._s(e.used)+"M 空间")]),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.dataList}},[a("el-table-column",{attrs:{prop:"file_id",label:e.$t("file_id")}}),e._v(" "),a("el-table-column",{attrs:{prop:"display_name",label:e.$t("display_name")}}),e._v(" "),a("el-table-column",{attrs:{prop:"file_type",label:e.$t("file_type"),width:"140"}}),e._v(" "),a("el-table-column",{attrs:{prop:"file_size_m",label:e.$t("file_size_m"),width:"140"}}),e._v(" "),a("el-table-column",{attrs:{prop:"visit_times",label:e.$t("visit_times")}}),e._v(" "),a("el-table-column",{attrs:{prop:"username",label:e.$t("uploader")}}),e._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:e.$t("add_time"),width:"160"}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:e.$t("operation")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.visit(t.row)}}},[e._v(e._s(e.$t("visit")))]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.delete_row(t.row)}}},[e._v(e._s(e.$t("delete")))])]}}])})],1),e._v(" "),a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"}),e._v(" "),a("el-pagination",{attrs:{"page-size":e.count,layout:"total, prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1)],1)},staticRenderFns:[]};var Xt={data:function(){return{open_menu_index:1}},components:{Item:a("VU/8")(zt,Ht,!1,function(e){a("T7kL")},"data-v-3d1cfd5c",null).exports,User:a("VU/8")(Nt,Jt,!1,function(e){a("T/7R")},"data-v-95e57e58",null).exports,Setting:a("VU/8")(Yt,Wt,!1,function(e){a("qQd4")},"data-v-fc93f92e",null).exports,Attachment:a("VU/8")(Gt,Kt,!1,function(e){a("TKjw")},"data-v-6a9bede0",null).exports},methods:{select_menu:function(e,t){var a=this;this.open_menu_index=0,this.$nextTick(function(){a.open_menu_index=e})},check_upadte:function(){var e=this,t=DocConfig.server+"/api/adminUser/checkUpdate",a=new URLSearchParams;e.axios.post(t,a).then(function(t){t&&t.data&&t.data.data&&t.data.data.url&&e.$message({showClose:!0,duration:1e4,dangerouslyUseHTMLString:!0,message:'<a target="_blank" href="'+t.data.data.url+'">'+t.data.data.title+"</a>"})})}},mounted:function(){this.check_upadte(),this.unset_bg_grey()},beforeDestroy:function(){this.$message.closeAll(),this.set_bg_grey()}},Zt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("el-container",[a("el-header",[a("div",{staticClass:"header_title"},[e._v("helpoxzn")]),e._v(" "),a("router-link",{staticClass:"goback",attrs:{to:"/item/index"}},[e._v(e._s(e.$t("goback")))])],1),e._v(" "),a("el-container",[a("el-aside",{attrs:{width:"150px"}},[a("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":"1","background-color":"#545c64","text-color":"#fff","active-text-color":"#ffd04b"},on:{select:e.select_menu}},[a("el-menu-item",{attrs:{index:"1"}},[a("i",{staticClass:"el-icon-info"}),e._v(" "),a("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("user_manage")))])]),e._v(" "),a("el-menu-item",{attrs:{index:"2"}},[a("i",{staticClass:"el-icon-tickets"}),e._v(" "),a("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("item_manage")))])]),e._v(" "),a("el-menu-item",{attrs:{index:"5"}},[a("i",{staticClass:"el-icon-tickets"}),e._v(" "),a("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("attachment_manage")))])]),e._v(" "),a("el-menu-item",{attrs:{index:"3"}},[a("i",{staticClass:"el-icon-tickets"}),e._v(" "),a("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("web_setting")))])])],1)],1),e._v(" "),a("el-container",[a("el-main",[1==e.open_menu_index?a("User"):e._e(),e._v(" "),2==e.open_menu_index?a("Item"):e._e(),e._v(" "),3==e.open_menu_index?a("Setting"):e._e(),e._v(" "),5==e.open_menu_index?a("Attachment"):e._e()],1),e._v(" "),a("el-footer")],1)],1)],1)],1)},staticRenderFns:[]};var Qt=a("VU/8")(Xt,Zt,!1,function(e){a("qvaw")},"data-v-6afb9ed0",null).exports,ea={components:{},data:function(){return{MyForm:{id:"",team_name:""},list:[],dialogFormVisible:!1,dialogMemberVisible:!1,dialogAttornVisible:!1,attornForm:{team_id:"",username:"",password:""}}},methods:{geList:function(){var e=this,t=DocConfig.server+"/api/team/getList",a=new URLSearchParams;e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.list=a}else e.$alert(t.data.error_message)})},MyFormSubmit:function(){var e=this,t=DocConfig.server+"/api/team/save",a=new URLSearchParams;a.append("id",this.MyForm.id),a.append("team_name",this.MyForm.team_name),e.axios.post(t,a).then(function(t){0===t.data.error_code?(e.dialogFormVisible=!1,e.geList(),e.MyForm={id:"",team_name:""}):e.$alert(t.data.error_message)})},edit:function(e){this.MyForm.id=e.id,this.MyForm.team_name=e.team_name,this.dialogFormVisible=!0},deleteTeam:function(e){var t=this,a=DocConfig.server+"/api/team/delete";this.$confirm(t.$t("confirm_delete")," ",{confirmButtonText:t.$t("confirm"),cancelButtonText:t.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("id",e),t.axios.post(a,i).then(function(e){0===e.data.error_code?t.geList():t.$alert(e.data.error_message)})})},addTeam:function(){this.MyForm={id:"",team_name:""},this.dialogFormVisible=!0},goback:function(){this.$router.push({path:"/item/index"})},attornDialog:function(e){this.attornForm.team_id=e.id,this.dialogAttornVisible=!0},attorn:function(){var e=this,t=DocConfig.server+"/api/team/attorn",a=new URLSearchParams;a.append("team_id",this.attornForm.team_id),a.append("username",this.attornForm.username),a.append("password",this.attornForm.password),e.axios.post(t,a).then(function(t){0===t.data.error_code?(e.dialogAttornVisible=!1,e.geList()):e.$alert(t.data.error_message)})}},mounted:function(){this.geList()},beforeDestroy:function(){}},ta={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-button",{staticClass:"add-cat",attrs:{type:"text"},on:{click:e.addTeam}},[e._v(e._s(e.$t("add_team")))]),e._v(" "),a("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:e.goback}},[e._v(e._s(e.$t("goback")))]),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left","empty-text":e.$t("empty_team_tips"),data:e.list,height:"400"}},[a("el-table-column",{attrs:{prop:"team_name",label:e.$t("team_name")}}),e._v(" "),a("el-table-column",{attrs:{prop:"memberCount",label:e.$t("memberCount")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("router-link",{attrs:{to:"/team/member/"+t.row.id}},[e._v(e._s(t.row.memberCount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"itemCount",label:e.$t("itemCount")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("router-link",{attrs:{to:"/team/item/"+t.row.id}},[e._v(e._s(t.row.itemCount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:e.$t("operation")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.$router.push({path:"/team/member/"+t.row.id})}}},[e._v(e._s(e.$t("member")))]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.$router.push({path:"/team/item/"+t.row.id})}}},[e._v(e._s(e.$t("team_item")))]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.edit(t.row)}}},[e._v(e._s(e.$t("edit")))]),e._v(" "),a("br"),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.attornDialog(t.row)}}},[e._v(e._s(e.$t("attorn")))]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.deleteTeam(t.row.id)}}},[e._v(e._s(e.$t("delete")))])]}}])})],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogFormVisible,width:"300px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",[a("el-form-item",{attrs:{label:e.$t("team_name")+":"}},[a("el-input",{model:{value:e.MyForm.team_name,callback:function(t){e.$set(e.MyForm,"team_name",t)},expression:"MyForm.team_name"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.MyFormSubmit}},[e._v(e._s(e.$t("confirm")))])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogAttornVisible,modal:!1,width:"300px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogAttornVisible=t}}},[a("el-form",[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:e.$t("attorn_username"),"auto-complete":"new-password"},model:{value:e.attornForm.username,callback:function(t){e.$set(e.attornForm,"username",t)},expression:"attornForm.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{type:"password","auto-complete":"new-password",placeholder:e.$t("input_login_password")},model:{value:e.attornForm.password,callback:function(t){e.$set(e.attornForm,"password",t)},expression:"attornForm.password"}})],1)],1),e._v(" "),a("p",{staticClass:"tips"},[e._v(e._s(e.$t("attornTeamTips")))]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogAttornVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.attorn}},[e._v(e._s(e.$t("attorn")))])],1)],1)],1),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var aa=a("VU/8")(ea,ta,!1,function(e){a("6xgM"),a("SaYI")},"data-v-0e7a3899",null).exports,ia={components:{},data:function(){return{MyForm:{id:"",member_username:""},list:[],dialogFormVisible:!1,team_id:"",memberOptions:[]}},methods:{geList:function(){var e=this,t=DocConfig.server+"/api/teamMember/getList",a=new URLSearchParams;a.append("team_id",this.team_id),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.list=a,e.getAllUser()}else e.$alert(t.data.error_message)})},MyFormSubmit:function(){var e=this,t=DocConfig.server+"/api/teamMember/save",a=new URLSearchParams;a.append("team_id",this.team_id),a.append("member_username",this.MyForm.member_username),e.axios.post(t,a).then(function(t){0===t.data.error_code?(e.dialogFormVisible=!1,e.geList(),e.MyForm={}):e.$alert(t.data.error_message)})},deleteTeamMember:function(e){var t=this,a=DocConfig.server+"/api/teamMember/delete";this.$confirm(t.$t("confirm_delete")," ",{confirmButtonText:t.$t("confirm"),cancelButtonText:t.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("id",e),t.axios.post(a,i).then(function(e){0===e.data.error_code?t.geList():t.$alert(e.data.error_message)})})},addTeamMember:function(){this.MyForm=[],this.dialogFormVisible=!0},goback:function(){this.$router.push({path:"/team/index"})},getAllUser:function(){var e=this,t=DocConfig.server+"/api/user/allUser",a=new URLSearchParams;a.append("username",""),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){for(var a=t.data.data,i=[],o=0;o<a.length;o++){e.isMember(a[o].value)||i.push(a[o])}e.memberOptions=[];for(var n=0;n<i.length;n++)e.memberOptions.push({value:i[n].value,label:i[n].value,key:i[n].value})}else e.$alert(t.data.error_message)})},isMember:function(e){for(var t=this.list,a=0;a<t.length;a++)if(t[a].member_username==e)return!0;return!1}},mounted:function(){this.team_id=this.$route.params.team_id,this.geList(),this.getAllUser()}},oa={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-button",{staticClass:"add-cat",attrs:{type:"text"},on:{click:e.addTeamMember}},[e._v(e._s(e.$t("add_member")))]),e._v(" "),a("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:e.goback}},[e._v(e._s(e.$t("back_to_team")))]),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left",data:e.list,height:"400"}},[a("el-table-column",{attrs:{prop:"member_username",label:e.$t("member_username")}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:e.$t("name")}}),e._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:e.$t("addtime")}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:e.$t("operation")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.deleteTeamMember(t.row.id)}}},[e._v(e._s(e.$t("delete")))])]}}])})],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogFormVisible,width:"300px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",[a("el-form-item",{attrs:{label:e.$t("member_username")+":"}},[a("el-select",{attrs:{multiple:"",filterable:"","reserve-keyword":"",placeholder:"",loading:e.loading},model:{value:e.MyForm.member_username,callback:function(t){e.$set(e.MyForm,"member_username",t)},expression:"MyForm.member_username"}},e._l(e.memberOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.MyFormSubmit}},[e._v(e._s(e.$t("confirm")))])],1)],1)],1),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var na=a("VU/8")(ia,oa,!1,function(e){a("cYDf"),a("W3gx")},"data-v-7bc3a158",null).exports,sa={components:{},data:function(){return{MyForm:{item_id:""},list:[],dialogFormVisible:!1,team_id:"",itemList:[],teamItemMembers:[],dialogFormTeamMemberVisible:!1,authorityOptions:[{label:"编辑",value:"1"},{label:"只读",value:"0"}],catalogs:[]}},methods:{geList:function(){var e=this,t=DocConfig.server+"/api/teamItem/getListByTeam",a=new URLSearchParams;a.append("team_id",this.team_id),e.axios.post(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.list=a}else e.$alert(t.data.error_message)})},getItemList:function(){var e=this,t=DocConfig.server+"/api/item/myList",a=new URLSearchParams;e.axios.get(t,a).then(function(t){if(0===t.data.error_code){var a=t.data.data;e.itemList=a}else e.$alert(t.data.error_message)})},MyFormSubmit:function(){var e=this,t=DocConfig.server+"/api/teamItem/save",a=new URLSearchParams;a.append("team_id",this.team_id),a.append("item_id",this.MyForm.item_id),e.axios.post(t,a).then(function(t){0===t.data.error_code?(e.dialogFormVisible=!1,e.geList(),e.MyForm={}):e.$alert(t.data.error_message)})},deleteTeamItem:function(e){var t=this,a=DocConfig.server+"/api/teamItem/delete";this.$confirm(t.$t("confirm_unassign")," ",{confirmButtonText:t.$t("confirm"),cancelButtonText:t.$t("cancel"),type:"warning"}).then(function(){var i=new URLSearchParams;i.append("id",e),t.axios.post(a,i).then(function(e){0===e.data.error_code?t.geList():t.$alert(e.data.error_message)})})},addTeamItem:function(){this.MyForm=[],this.dialogFormVisible=!0},goback:function(){this.$router.push({path:"/team/index"})},getTeamItemMember:function(e){var t=this;this.dialogFormTeamMemberVisible=!0,this.get_catalog(e);var a=DocConfig.server+"/api/teamItemMember/getList",i=new URLSearchParams;i.append("item_id",e),i.append("team_id",this.team_id),t.axios.post(a,i).then(function(e){if(0===e.data.error_code){var a=e.data.data;t.teamItemMembers=a}else t.$alert(e.data.error_message)})},changeTeamItemMemberGroup:function(e,t){var a=this,i=DocConfig.server+"/api/teamItemMember/save",o=new URLSearchParams;o.append("member_group_id",e),o.append("id",t),a.axios.post(i,o).then(function(e){0===e.data.error_code?a.$message("权限保存成功"):a.$alert(e.data.error_message)})},changeTeamItemMemberCat:function(e,t){var a=this,i=DocConfig.server+"/api/teamItemMember/save",o=new URLSearchParams;o.append("cat_id",e),o.append("id",t),a.axios.post(i,o).then(function(e){0===e.data.error_code?a.$message(a.$t("cat_success")):a.$alert(e.data.error_message)})},get_catalog:function(e){var t=this,a=DocConfig.server+"/api/catalog/catListGroup",i=new URLSearchParams;i.append("item_id",e),t.axios.post(a,i).then(function(e){if(0===e.data.error_code){var a=e.data.data;a.unshift({cat_id:"0",cat_name:t.$t("all_cat")}),t.catalogs=a}else t.$alert(e.data.error_message)})}},mounted:function(){this.team_id=this.$route.params.team_id,this.geList(),this.getItemList()}},ra={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",[a("el-card",{staticClass:"center-card"},[a("el-button",{staticClass:"add-cat",attrs:{type:"text"},on:{click:e.addTeamItem}},[e._v(e._s(e.$t("distribution_to_team")))]),e._v(" "),a("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:e.goback}},[e._v(e._s(e.$t("back_to_team")))]),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left",data:e.list,height:"400"}},[a("el-table-column",{attrs:{prop:"item_name",label:e.$t("item_name")}}),e._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:e.$t("Join_time")}}),e._v(" "),a("el-table-column",{attrs:{prop:"",width:"210",label:e.$t("operation")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("router-link",{attrs:{to:"/"+t.row.item_id,target:"_blank"}},[e._v(e._s(e.$t("check_item")))]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.getTeamItemMember(t.row.item_id)}}},[e._v(e._s(e.$t("member_authority")))]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.deleteTeamItem(t.row.id)}}},[e._v(e._s(e.$t("unassign")))])]}}])})],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogFormVisible,width:"300px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",[a("el-select",{attrs:{multiple:"",placeholder:e.$t("please_choose")},model:{value:e.MyForm.item_id,callback:function(t){e.$set(e.MyForm,"item_id",t)},expression:"MyForm.item_id"}},e._l(e.itemList,function(e){return a("el-option",{key:e.item_id,attrs:{label:e.item_name,value:e.item_id}})}),1)],1),e._v(" "),a("br"),e._v(" "),a("router-link",{attrs:{to:"/item/index",target:"_blank"}},[e._v(e._s(e.$t("go_to_new_an_item")))]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(e._s(e.$t("cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.MyFormSubmit}},[e._v(e._s(e.$t("confirm")))])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogFormTeamMemberVisible,top:"10vh",title:e.$t("adjust_member_authority"),"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormTeamMemberVisible=t}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{align:"left","empty-text":e.$t("team_member_empty_tips"),data:e.teamItemMembers}},[a("el-table-column",{attrs:{prop:"member_username",label:e.$t("username")}}),e._v(" "),a("el-table-column",{attrs:{prop:"member_group_id",label:e.$t("authority"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{size:"mini",placeholder:e.$t("please_choose")},on:{change:function(a){return e.changeTeamItemMemberGroup(a,t.row.id)}},model:{value:t.row.member_group_id,callback:function(a){e.$set(t.row,"member_group_id",a)},expression:"scope.row.member_group_id"}},e._l(e.authorityOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"cat_id",label:e.$t("catalog"),width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{size:"mini",placeholder:e.$t("please_choose")},on:{change:function(a){return e.changeTeamItemMemberCat(a,t.row.id)}},model:{value:t.row.cat_id,callback:function(a){e.$set(t.row,"cat_id",a)},expression:"scope.row.cat_id"}},e._l(e.catalogs,function(e){return a("el-option",{key:e.cat_id,attrs:{label:e.cat_name,value:e.cat_id}})}),1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:e.$t("add_time")}})],1),e._v(" "),a("br"),e._v(" "),a("p",{staticClass:"tips"},[e._v(e._s(e.$t("team_member_authority_tips")))]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormTeamMemberVisible=!1}}},[e._v(e._s(e.$t("close")))])],1)],1)],1),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var la=a("VU/8")(sa,ra,!1,function(e){a("HLMm"),a("1Jp5")},"data-v-4da953cf",null).exports,ca={name:"",components:{},data:function(){return{page:1,count:6,display_name:"",username:"",dataList:[],total:0,positive_type:"1",attachment_type:"-1",used:0,used_flow:0,uploadUrl:DocConfig.server+"/api/page/upload"}},methods:{getList:function(){var e=this;this.request("/api/attachment/getMyList",{page:this.page,count:this.count,attachment_type:this.attachment_type,display_name:this.display_name,username:this.username}).then(function(t){var a=t.data;e.dataList=a.list,e.total=parseInt(a.total),e.used=a.used_m,e.used_flow=a.used_flow_m})},jump_to_item:function(e){var t="/"+e.item_id;window.open(t)},handleCurrentChange:function(e){this.page=e,this.getList()},onSubmit:function(){this.page=1,this.getList()},visit:function(e){window.open(e.url)},delete_row:function(e){var t=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){t.request("/api/attachment/deleteMyAttachment",{file_id:e.file_id}).then(function(e){t.$message.success(t.$t("op_success")),t.getList()})})},goback:function(){this.$router.push({path:"/item/index"})},uploadCallback:function(e){e.error_message&&this.$alert(e.error_message),this.$refs.uploadFile.clearFiles(),this.getList()}},mounted:function(){this.getList()},beforeDestroy:function(){}},da={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hello"},[a("Header"),e._v(" "),a("el-container",[a("el-card",{staticClass:"hor-center-card"},[a("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:e.goback}},[a("i",{staticClass:"el-icon-back"})]),e._v(" "),a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:e.$t("display_name")},model:{value:e.display_name,callback:function(t){e.display_name=t},expression:"display_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-select",{attrs:{placeholder:""},model:{value:e.attachment_type,callback:function(t){e.attachment_type=t},expression:"attachment_type"}},[a("el-option",{attrs:{label:e.$t("all_attachment_type"),value:"-1"}}),e._v(" "),a("el-option",{attrs:{label:e.$t("image"),value:"1"}}),e._v(" "),a("el-option",{attrs:{label:e.$t("general_attachment"),value:"2"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{on:{click:e.onSubmit}},[e._v(e._s(e.$t("search")))])],1),e._v(" "),a("el-form-item",[a("el-upload",{ref:"uploadFile",staticClass:"upload-file",attrs:{action:e.uploadUrl,"on-success":e.uploadCallback,"on-error":e.uploadCallback}},[a("el-button",[e._v(e._s(e.$t("upload")))])],1)],1)],1),e._v(" "),a("P",[e._v(e._s(e.$t("accumulated_used_sapce"))+" "+e._s(e.used)+"M , "+e._s(e.$t("month_flow"))+" "+e._s(e.used_flow)+"M")]),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.dataList}},[a("el-table-column",{attrs:{prop:"file_id",label:e.$t("file_id")}}),e._v(" "),a("el-table-column",{attrs:{prop:"display_name",label:e.$t("display_name")}}),e._v(" "),a("el-table-column",{attrs:{prop:"file_type",label:e.$t("file_type"),width:"160"}}),e._v(" "),a("el-table-column",{attrs:{prop:"file_size_m",label:e.$t("file_size_m"),width:"160"}}),e._v(" "),a("el-table-column",{attrs:{prop:"visit_times",label:e.$t("visit_times")}}),e._v(" "),a("el-table-column",{attrs:{prop:"addtime",label:e.$t("add_time"),width:"160"}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:e.$t("operation")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.visit(t.row)}}},[e._v(e._s(e.$t("visit")))]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.delete_row(t.row)}}},[e._v(e._s(e.$t("delete")))])]}}])})],1),e._v(" "),a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"}),e._v(" "),a("el-pagination",{attrs:{"page-size":e.count,layout:"total, prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1)],1)],1),e._v(" "),a("Footer")],1)},staticRenderFns:[]};var ma=a("VU/8")(ca,da,!1,function(e){a("l4LT")},"data-v-1e0aa83c",null).exports;n.default.use(l.a);var _a=new l.a({routes:[{path:"/",name:"Index",component:m},{path:"/user/login",name:"UserLogin",component:h},{path:"/user/setting",name:"UserSetting",component:b},{path:"/user/register",name:"UserRegister",component:k},{path:"/user/resetPassword",name:"UserResetPassword",component:F},{path:"/user/ResetPasswordByUrl",name:"ResetPasswordByUrl",component:T},{path:"/item/index",name:"ItemIndex",component:U},{path:"/item/add",name:"ItemAdd",component:N},{path:"/item/password/:item_id",name:"ItemPassword",component:W},{path:"/:item_id",name:"ItemShow",component:Oe},{path:"/item/export/:item_id",name:"ItemExport",component:ze},{path:"/item/setting/:item_id",name:"ItemSetting",component:at},{path:"/page/:page_id",name:"PageIndex",component:nt},{path:"/p/:unique_key",name:"PageIndex",component:nt},{path:"/page/edit/:item_id/:page_id",name:"PageEdit",component:Dt},{path:"/page/diff/:page_id/:page_history_id",name:"PageDiff",component:Rt},{path:"/catalog/:item_id",name:"Catalog",component:jt},{path:"/notice/index",name:"Notice",component:Bt},{path:"/admin/index",name:"Admin",component:Qt},{path:"/team/index",name:"Team",component:aa},{path:"/team/member/:team_id",name:"TeamMember",component:na},{path:"/team/item/:team_id",name:"TeamItem",component:la},{path:"/attachment/index",name:"Attachment",component:ma}]}),pa=a("zL8q"),ua=a.n(pa),fa=(a("tvR6"),{render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]});var ha=a("VU/8")({name:"Header",data:function(){return{msg:"头部"}}},fa,!1,function(e){a("z/Rs")},"data-v-800204f4",null).exports,ga={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var va=a("VU/8")({name:"Footer",data:function(){return{msg:"尾部"}}},ga,!1,function(e){a("8QMZ")},"data-v-08ace61f",null).exports,ba={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"contactBox"},[a("div",{staticClass:"wrapperBox"},[a("div",{staticClass:"leftBox"},[a("div",{staticClass:"enText"},[e._v("\n GET IN TOUCH\n ")]),e._v(" "),a("div",{staticClass:"desc"},[e._v("\n 联系电话: 020-22102214 "),a("br"),e._v("\n 广州地址:广州市白云区学山塘街66号世联空间D2栋5楼"),a("br"),e._v("\n 深圳地址:深圳市南山区蛇街道科苑南路三湘海尚E座10D"),a("br"),e._v("\n 上海地址:上海市虹区汶水东路29号榕辉大厦802室"),a("br")])]),e._v(" "),a("div",{staticClass:"rightBox"},[a("div",{staticClass:"enText"},[e._v("\n FOLLOW US\n ")]),e._v(" "),a("div",{staticClass:"item"},[a("img",{attrs:{src:"static/images/code.png",alt:""}}),e._v(" 体验公众号\n ")]),e._v(" "),a("div",{staticClass:"item"},[a("img",{attrs:{src:"static/images/mini.png",alt:""}}),e._v(" 体验小程序\n ")])])])]),e._v(" "),a("div",{staticClass:"linksBox"},[a("div",{staticClass:"wrapperBox"},[a("div",{staticClass:"links"},[a("div",{staticClass:"leftBox"},[a("h3",[e._v("快速入口")]),e._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"javascript:;"}},[e._v("申请试用")])]),e._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"}},[e._v("产品介绍")])]),e._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"}},[e._v("帮助中心")])]),e._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"}},[e._v("登录注册")])]),e._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"}},[e._v("合作伙伴")])])])]),e._v(" "),a("div",{staticClass:"rightBox"},[a("h3",[e._v("合作产品")]),e._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"javascript:;"}},[e._v("欧轩互动")])]),e._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"}},[e._v("晓法AI")])])])])]),e._v(" "),a("div",{staticClass:"linksBtm"},[a("a",{attrs:{href:"javascript:;"}},[e._v("智能羽毛球馆")]),e._v(" "),a("a",{attrs:{href:"javascript:;"}},[e._v("智能体育馆")]),e._v(" "),a("a",{attrs:{href:"javascript:;"}},[e._v("无人体育馆")])]),e._v(" "),a("img",{staticClass:"rlogo",attrs:{src:"static/images/logo_b.png",alt:""}})])]),e._v(" "),a("div",{staticClass:"footer"},[a("div",{staticClass:"copyright"},[a("a",{attrs:{href:"javascript:;",target:"_blank"}},[e._v("欧轩智能场馆")]),e._v(" "),a("span",[e._v("广州欧轩网络科技有限公司版权所有")]),e._v(" "),a("a",{attrs:{href:"https://beian.miit.gov.cn/",target:"_blank"}},[e._v("粤ICP备13086082号")])])])])}]};var wa=a("VU/8")({name:"oxFooter",data:function(){return{msg:"尾部"}}},ba,!1,function(e){a("M4ay")},"data-v-be370ba2",null).exports,ya={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"header"},[a("div",{staticClass:"header-wrap"},[a("div",{staticClass:"logo"},[a("a",{attrs:{href:"/"}},[a("img",{attrs:{src:"static/images/logo.png"}})])]),e._v(" "),a("input",{attrs:{type:"checkbox",name:"",id:"mobile-menu-toggle",value:""}}),e._v(" "),a("label",{staticClass:"gh",attrs:{for:"mobile-menu-toggle"}},[a("span")]),e._v(" "),a("div",{staticClass:"nav"},[a("ul",[a("li",[a("a",{attrs:{href:"http://www.ouxuanzhineng.cn/"}},[e._v("首页")])]),e._v(" "),a("li",[a("a",{attrs:{href:"http://www.ouxuanzhineng.cn/product"}},[e._v("产品介绍")])]),e._v(" "),a("li",[a("a",{attrs:{href:"http://www.ouxuanzhineng.cn/case"}},[e._v("案例展示")])]),e._v(" "),a("li",[a("a",{attrs:{href:"http://www.ouxuanzhineng.cn/cooperation"}},[e._v("合作伙伴")])]),e._v(" "),a("li",[a("a",{attrs:{href:"http://www.ouxuanzhineng.cn/news"}},[e._v("新闻资讯")])]),e._v(" "),a("li",{staticClass:"active"},[a("a",[e._v("帮助中心")])]),e._v(" "),a("li",[a("a",{attrs:{href:"http://www.ouxuanzhineng.cn/solution"}},[e._v("解决方案")])]),e._v(" "),a("li",[a("a",{attrs:{href:"http://www.ouxuanzhineng.cn/login"}},[e._v("登录 / 注册")])])])])])])}]};var ka=a("VU/8")({name:"OxHeader",data:function(){return{}}},ya,!1,function(e){a("LOCQ")},"data-v-93c85184",null).exports,$a={install:function(e,t){e.prototype.getData=function(){console.log("我是插件中的方法")},e.prototype.request=function(){},e.prototype.getRootPath=function(){return window.location.protocol+"//"+window.location.host+window.location.pathname},e.prototype.isMobile=function(){return!!navigator.userAgent.match(/iPhone|iPad|iPod|Android|android|BlackBerry|IEMobile/i)},e.prototype.get_user_info=function(e){var t=DocConfig.server+"/api/user/info",a=new URLSearchParams;a.append("redirect_login",!1),this.axios.post(t,a).then(function(t){e&&e(t)})},e.prototype.get_notice=function(e){var t=DocConfig.server+"/api/notice/getList",a=new URLSearchParams;a.append("notice_type","unread"),a.append("count","1"),this.axios.post(t,a).then(function(t){e&&e(t)})},e.prototype.set_bg_grey=function(){document.getElementsByTagName("body")[0].className="grey-bg"},e.prototype.unset_bg_grey=function(){document.body.removeAttribute("class","grey-bg")},e.prototype.formatJson=function(e){if(!1===(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))try{return"string"==typeof e&&(e=JSON.parse(e)),p()(e,null,2)}catch(t){return e}try{var t=JSON.parse(e);return p()(t)}catch(t){return e}}}},xa=a("//Fk"),Ca=a.n(xa),Fa=a("mtWM"),Sa=a.n(Fa);Sa.a.defaults.timeout=2e4,Sa.a.defaults.baseURL=DocConfig.server,Sa.a.interceptors.request.use(function(e){return e},function(e){return Ca.a.reject(e)}),Sa.a.interceptors.response.use(function(e){return e.config.data&&e.config.data.indexOf("redirect_login=false")>-1||10102===e.data.error_code&&_a.replace({path:"/user/login",query:{redirect:_a.currentRoute.fullPath}}),e},function(e){return Ca.a.reject(e.response)});var La=Sa.a,Ta=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"post",i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=new URLSearchParams(t),n=DocConfig.server+e;return new Ca.a(function(e,t){La({url:n,method:a,data:o,headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(a){if(10102===a.data.error_code&&-1===a.config.data.indexOf("redirect_login=false")&&(_a.replace({path:"/user/login",query:{redirect:_a.currentRoute.fullPath}}),t(new Error("登录态无效"))),i&&a.data&&0!==a.data.error_code)return pa.MessageBox.alert(a.data.error_message),t(new Error("业务级别的错误"));e(a.data)},function(e){e.Cancel?console.log(e):t(e)}).catch(function(e){t(e)})})},Pa=a("xO72"),Ia=a.n(Pa),Da=a("wUZ8"),Ma=a.n(Da),Va=a("Vi3T"),Ua=a.n(Va),Ra=a("J71k"),Aa=a.n(Ra),Ea=a("AQny"),ja=a.n(Ea),Oa=(a("9Z4o"),a("j1ja"),a("wvfG")),qa=a.n(Oa),Ba=a("NYxO"),za=a("bOdI"),Ha=a.n(za)()({increment:function(e,t){e.count++},changeItemInfo:function(e,t){e.item_info=t}},"SOME_MUTATION",function(e){}),Na={incrementAsync:function(e){var t=e.commit;setTimeout(function(){t("increment")},1e3)},changeItemInfo:function(e,t){e.commit("changeItemInfo",t)}},Ja={count:"1",item_info:{}};n.default.use(Ba.a);var Ya=new Ba.a.Store({state:Ja,actions:Na,mutations:Ha});n.default.use($a),n.default.config.productionTip=!1,n.default.component("Header",ha),n.default.component("Footer",va),n.default.component("OxFooter",wa),n.default.component("OxHeader",ka),n.default.use(ua.a),n.default.use(Ia.a),n.default.use(qa.a);var Wa=o()(Ua.a,Aa.a),Ga=o()(Ma.a,ja.a);n.default.config.lang=DocConfig.lang,n.default.locale("zh-cn",Wa),n.default.locale("en",Ga),n.default.prototype.axios=La,n.default.prototype.request=Ta,new n.default({el:"#app",router:_a,store:Ya,template:"<App/>",components:{App:r}})},P1Jq:function(e,t){},PDcD:function(e,t){},"RU/w":function(e,t){},RwAp:function(e,t){},SaYI:function(e,t){},SgRK:function(e,t){},"T/7R":function(e,t){},T7kL:function(e,t){},TKjw:function(e,t){},W3gx:function(e,t){},WNtS:function(e,t){},"Y+qT":function(e,t){},aCj9:function(e,t){},"aVn+":function(e,t){},bv2D:function(e,t){},cYDf:function(e,t){},dCOX:function(e,t){},fRrX:function(e,t){},fSLA:function(e,t){},gfD7:function(e,t){},"h/6b":function(e,t){},hHMT:function(e,t){},j3By:function(e,t){},l4LT:function(e,t){},lgXi:function(e,t){},lkmy:function(e,t){},oFiZ:function(e,t){},pF1U:function(e,t){},pt9Z:function(e,t){},qHHh:function(e,t){},qQd4:function(e,t){},qvaw:function(e,t){},sAIR:function(e,t){},"sYP/":function(e,t){},tNbj:function(e,t){},tvR6:function(e,t){},yUSZ:function(e,t){},"z/Rs":function(e,t){},zaO8:function(e,t){}},["NHnr"]);
|