当前位置: 首页 > news >正文

甘肃城乡建设厅网站首页免费个人网站搭建

甘肃城乡建设厅网站首页,免费个人网站搭建,怎样设计自己的网站,凡科小程序商城随着企业数字化转型加速#xff0c;安全可控的文档协作环境成为客户服务的核心需求。通过ONLYOFFICE JavaScript SDK#xff0c;开发者可为每位客户创建独立结构化协作房间。 关于 ONLYOFFICE 协作空间 ONLYOFFICE 协作空间是一个文档编辑与协作平台#xff0c;自带文档编辑…随着企业数字化转型加速安全可控的文档协作环境成为客户服务的核心需求。通过ONLYOFFICE JavaScript SDK开发者可为每位客户创建独立结构化协作房间。 关于 ONLYOFFICE 协作空间 ONLYOFFICE 协作空间是一个文档编辑与协作平台自带文档编辑器提供一整套用于文档储存、共享和协作的工具。可以高效地与同事、客户、业务合作伙伴、承包商及第三方进行文档协作。 关于房间类型 协作空间可设置灵活的访问权限通过创建房间、邀请他人加入、协作和沟通完成工作支持以下房间类型 公共房间无需注册即可共享文档以供查看、编辑、评论或审阅。还可以将此房间嵌入到任何网页界面中。表单填写房间将 PDF 表单上传至房间。邀请成员和访客填写 PDF 表单。查看已完成的表单并分析电子表格中自动收集的数据。协作房间与团队就一个或多个文档进行协作虚拟数据房间在逐步填写和签署文档时实现高级文件安全性和透明度。设置水印自动索引并跟踪所有内容限制下载和复制操作。自定义房间根据不同目的和用途对房间进行自定义设置根据模板创建房间使用模板创建房间将套用房间模板中的所有设置、文件夹和文件。 对于企业来说保证安全且高效的办公协作至关重要。因此许多企业会选择本地部署或将 ONLYOFFICE 协作空间进行商业开发集成到更多的平台或系统中。 关于 ONLYOFFICE JavaScript SDK ONLYOFFICE JavaScript SDK 是一套用于在网页应用中集成文档编辑功能的开发工具包允许开发者通过 JavaScript 与 ONLYOFFICE 文档编辑器进行深度交互。 如何使用JavaScript SDK为每个客户创建结构化房间 此示例演示了如何使用协作空间 JavaScript SDK 为每个新客户端创建结构化工作区。当用户添加客户端时系统 创建具有 clients 名称的共享房间在该房间内自动生成一组预定义文件夹将特定文档模板DOCX、XLSX、PDF插入到相应的文件夹中 这允许客户快速加入标准化的工作空间环境。 准备工作 请确保您使用服务器环境运行 HTML 文件因为 JavaScript SDK 必须在服务器上启动。 您需要将服务器根目录的 URL 添加到 DocSpace 的 Developer Tools 部分。 脚本执行步骤 1. 定义模板并初始化 SDK const templates {instructions: {PUBLIC_DOCX_ID},priceList: {PUBLIC_XLSX_ID},contract: {PUBLIC_PDF_ID} };function onAppReady() {document.getElementById(add).removeAttribute(disabled)document.getElementById(ds-frame).style.display none }docSpace DocSpace.SDK.initManager({frameId: ds-frame,events: { onAppReady } }); 模板 ID 指向用作基本模板的公共 DocSpace 文档SDK 已初始化并隐藏 并在准备就绪后激活 UI iframe 2. 添加客户端并创建具有文件夹结构的房间 async function addClient() {const input document.getElementById(clientInput)const clientName input.value.trim()if (!clientName) returnconst list document.getElementById(clientList)const li document.createElement(li)li.textContent clientNamelist.appendChild(li)const room await docSpace.createRoom(clientName, 2)if (room.status room.status ! 200) {alert(Failed to create room: ${room.status})return}input.value const roomId room.id// Create folder: Instructionsconst instructionsFolder await docSpace.createFolder(roomId, Instructions)if (instructionsFolder.status instructionsFolder.status ! 200) {alert(Failed to create Instructions folder)return}const docxFile await docSpace.createFile(instructionsFolder.id,Instructions.docx,templates.instructions)if (docxFile.status docxFile.status ! 200) {alert(Failed to insert Instructions.docx)return}// Create folder: Price Listconst priceListFolder await docSpace.createFolder(roomId, Price List)if (priceListFolder.status priceListFolder.status ! 200) {alert(Failed to create Price List folder)return}const xlsxFile await docSpace.createFile(priceListFolder.id,Price List.xlsx,templates.priceList)if (xlsxFile.status xlsxFile.status ! 200) {alert(Failed to insert Price List.xlsx)return}// Create folder: Contractsconst contractsFolder await docSpace.createFolder(roomId, Contracts)if (contractsFolder.status contractsFolder.status ! 200) {alert(Failed to create Contracts folder)return}const pdfFile await docSpace.createFile(contractsFolder.id,Contract template.pdf,templates.contract)if (pdfFile.status pdfFile.status ! 200) {alert(Failed to insert Contract template.pdf)return}// Create folder: Invoices for payment (no files)const invoicesFolder await docSpace.createFolder(roomId, Invoices for payment)if (invoicesFolder.status invoicesFolder.status ! 200) {alert(Failed to create Invoices for payment folder)return} } 为客户创建共享聊天室添加四个文件夹更新界面中的客户端列表 3. 处理 Enter key 提交 document.getElementById(clientInput).addEventListener(keypress, function (e) {if (e.key Enter) {addClient()} }); 允许用户按 Enter 键触发房间和文件夹的创建 完整示例 !-- Step 1: HTML Setup -- !DOCTYPE html html langenheadmeta charsetUTF-8meta nameviewport contentwidthdevice-width, initial-scale1.0titleClient Manager/title!-- Replace with your actual portal URL --script src{PORTAL_SRC}/static/scripts/sdk/1.0.1/api.js/scriptstyle/* Full CSS omitted for brevity *//style/headbody!-- Step 2: Client input form --div classcontainerinput typetext idclientInput placeholderEnter client namebutton idadd disabled onclickaddClient()Add Client/button/div!-- Step 3: Client list display --ul idclientList/ul!-- Step 4: SDK iframe (hidden) --iframe idds-frame styledisplay: none;/iframe!-- Step 5: JavaScript SDK Logic --scriptlet docSpace;// Step 5: Template file IDs (replace with real ones)const templates {instructions: {PUBLIC_DOCX_ID},priceList: {PUBLIC_XLSX_ID},contract: {PUBLIC_PDF_ID}};// Step 6: Enable Add Client button when SDK is readyfunction onAppReady() {document.getElementById(add).removeAttribute(disabled)document.getElementById(ds-frame).style.display none}// Step 7: Init DocSpace SDKdocSpace DocSpace.SDK.initManager({frameId: ds-frame,events: { onAppReady }})// Step 8: Add client and create room with folder structureasync function addClient() {const input document.getElementById(clientInput)const clientName input.value.trim()if (!clientName) returnconst list document.getElementById(clientList)const li document.createElement(li)li.textContent clientNamelist.appendChild(li)const room await docSpace.createRoom(clientName, 2)if (room.status room.status ! 200) {alert(Failed to create room: ${room.status})return}input.value const roomId room.id// Create folder: Instructionsconst instructionsFolder await docSpace.createFolder(roomId, Instructions)if (instructionsFolder.status instructionsFolder.status ! 200) {alert(Failed to create Instructions folder)return}const docxFile await docSpace.createFile(instructionsFolder.id,Instructions.docx,templates.instructions)if (docxFile.status docxFile.status ! 200) {alert(Failed to insert Instructions.docx)return}// Create folder: Price Listconst priceListFolder await docSpace.createFolder(roomId, Price List)if (priceListFolder.status priceListFolder.status ! 200) {alert(Failed to create Price List folder)return}const xlsxFile await docSpace.createFile(priceListFolder.id,Price List.xlsx,templates.priceList)if (xlsxFile.status xlsxFile.status ! 200) {alert(Failed to insert Price List.xlsx)return}// Create folder: Contractsconst contractsFolder await docSpace.createFolder(roomId, Contracts)if (contractsFolder.status contractsFolder.status ! 200) {alert(Failed to create Contracts folder)return}const pdfFile await docSpace.createFile(contractsFolder.id,Contract template.pdf,templates.contract)if (pdfFile.status pdfFile.status ! 200) {alert(Failed to insert Contract template.pdf)return}// Create folder: Invoices for payment (no files)const invoicesFolder await docSpace.createFolder(roomId, Invoices for payment)if (invoicesFolder.status invoicesFolder.status ! 200) {alert(Failed to create Invoices for payment folder)return}}// Step 9: Submit on Enterdocument.getElementById(clientInput).addEventListener(keypress, function (e) {if (e.key Enter) {addClient()}});/script/body /html 希望以上示例对您有帮助欢迎尝试用 ONLYOFFICE JavaScript SDK为构建客户中心化协作生态提供了强大基石。 相关链接 API 文档 获取ONLYOFFICE协作空间服务器 / 云端
http://www.w-s-a.com/news/657246/

相关文章:

  • 设计电子商务网站建设方案微信如何开发自己的小程序
  • 建设网站公司哪里好相关的热搜问题解决方案做网站要看什么书
  • 网站建设重要性黄岐建网站
  • 做网站电销《电子商务网站建设》精品课
  • 地方商城网站海外网站推广方法
  • 乐山 网站建设安阳给商家做网站推广
  • 网站空间一般多大邢台网站建设有哪些
  • h5网站开发工具有哪些wordpress清空post表
  • 公司开网站干嘛怎么制作一个免费的网站模板
  • 群晖wordpress搭建网站网站建设及管理
  • 中山企业网站建设公司抖音代运营合作模式
  • 南通营销网站开发做网站页面多少钱
  • 桂林生活网官方网站云主机和云电脑的区别
  • 内部网络网站怎么做vue做单页面网站
  • 如何建立网站教程wordpress粘帖图片
  • 广东网站备案要多久网站开发 pdf 文字版
  • 学校网站方案帮别人做钓鱼网站吗
  • 如何加强网站建设和信息宣传wordpress 搜索提示
  • 灰色网站怎么做php yaf 网站开发框架
  • 浙江建设网站首页提供做网站公司有哪些
  • 建公司网站报价公司seo是什么级别
  • 可信赖的武进网站建设中山网站建设方案
  • 网站设计方面有什么公司运动鞋网站建设目的
  • 学校门户网站流程建设方案找人做网站 多少钱
  • 网站域名更换相应内容网站策划 要求
  • 百盛联合建设集团网站开发网站的步骤
  • php做网站评价网络公司经营范围可以加技
  • 网站积分的作用保定专业网站建设
  • 莆田做网站公司电话如何提升网站访问速度
  • 网站开发流程步骤 口袋网页访问wordpress