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

网站防注入怎么办棋牌游戏软件开发公司

网站防注入怎么办,棋牌游戏软件开发公司,扶贫基金会网站建设是哪家公司,合肥网站设计公司介绍 在一些任务计划、日程进度等场景中我们会使用到甘特图#xff0c;Dhtmlx Gantt 对于甘特图的实现支持很友好#xff0c;文档API介绍全面#xff0c;虽然增强版的收费#xff0c;但免费版的足以够用。 官网#xff1a;https://docs.dhtmlx.com/gantt/ 安装dhtml gannt…介绍 在一些任务计划、日程进度等场景中我们会使用到甘特图Dhtmlx Gantt 对于甘特图的实现支持很友好文档API介绍全面虽然增强版的收费但免费版的足以够用。 官网https://docs.dhtmlx.com/gantt/ 安装dhtml gannt插件 npm install dhtmlx-gantt引入插件 //页面引入如果多个页面使用可以全局引入 import { gantt } from dhtmlx-gantt; import dhtmlx-gantt/codebase/dhtmlxgantt.css;页面代码 templatediv classgantt-box refganttRef/div /templatescript setup import { gantt } from dhtmlx-gantt; import dhtmlx-gantt/codebase/dhtmlxgantt.css; import { onMounted, ref } from vue; const ganttRef ref(null); const data {data: [{id: 1,text: projectName,start_date: 01-04-2023,end_date: 05-12-2023,duration: 248,progress: 0.3,open: true,color: #b38989},{id: 2,text: 任务1,start_date: 02-04-2023,end_date: 11-07-2023,duration: 100,progress: 0.6,parent: 1},{id: 3,text: 任务2,start_date: 12-07-2023,end_date: 09-09-2023,duration: 59,progress: 0,parent: 1}],links: [{ id: 1, source: 1, target: 2, type: 1 },{ id: 2, source: 2, target: 3, type: 0 }] }; const columns [{ name: text, label: 项目名称, tree: true, min_width: 140 },{ name: start_date, label: 开始时间, min_width: 100 },{ name: end_date, label: 结束时间, min_width: 100 },{ name: duration, label: 计划工期 },{ name: add, label: } ]; const initGantt () {// 清空之前的配置gantt.clearAll();gantt.i18n.setLocale(cn); // 设置中文gantt.config.readonly true; // 设置为只读gantt.plugins({tooltip: true,quick_info: true // 快速信息框// multiselect: true,// 激活多任务选择});gantt.config.show_quick_info true;gantt.config.tooltip_offset_x 10;gantt.config.tooltip_offset_y 30;// gantt.config.open_split_tasks false;gantt.config.details_on_create true; // 创建新事件通过点击“”按钮打开灯箱gantt.config.autofit true; // 甘特图图表宽度自适应// gantt.config.resize_rows true; // 用户可以通过拖拽调整行高// 图表项目栏可以任意拖拽任意节点下)gantt.config.order_branch false;gantt.config.order_branch_free false;gantt.config.placeholder_task false; // 新增空白列后新增项目gantt.config.scale_height 50;gantt.config.show_links true; //是否显示依赖连线gantt.config.sort false; // 点击表头可排序gantt.config.row_height 40; //设置行高gantt.config.drag_project true;gantt.config.scales [// 设置时间刻度相关属性// 显示月日用这个// { unit: month, step: 1, format: %Y-%m },// { unit: day, step: 1, format: %Y-%m-%d }// 显示年月用这个{ unit: year, step: 1, format: %Y },{ unit: month, step: 1, format: %M }];// gantt.config.start_date new Date(// ${new Date().getFullYear() - 1},${new Date().getMonth()},${new Date().getDay()}// );// gantt.config.end_date new Date(${new Date().getFullYear() 1},${new Date().getMonth()},${new Date().getDay()});// gantt.config.show_tasks_outside_timescale true;gantt.config.auto_scheduling true;// 配置Gantt内置弹出框内容gantt.templates.lightbox_header function (start_date, end_date, task) {return b${task.text}/b;};gantt.config.lightbox.sections [{name: description,height: 36,map_to: text,type: textarea,focus: true},{ name: time, type: duration, map_to: auto },{name: Participants,height: 36,map_to: Participants,type: ParticipantsPlan,focus: true},{name: BgColor,height: 36,map_to: color,type: ParticipantsPlanColor,focus: true}];gantt.templates.tooltip_text function (start, end, task) {return (task.text br/span开始:/span gantt.templates.tooltip_date_format(start) br/span结束:/span gantt.templates.tooltip_date_format(end) br/span进度:/span Math.round(task.progress * 100) %);};gantt.config.bar_height 30;// 自定义信息弹窗classgantt.templates.quick_info_class function () {return default-quick-info;};// 自定义信息弹窗头部classgantt.templates.grid_header_class function () {return progress-header;};gantt.templates.quick_info_content function (start, end, task) {return div${task.text}br/计划开始 : ${gantt.templates.tooltip_date_format(start)}br/计划结束:${gantt.templates.tooltip_date_format(end)}br/进度 : ${Math.round(task.progress * 100) %}br/状态 :/div;};// 设置树形列的父项图标gantt.templates.grid_folder function () {return ;};// 设置树形列的子项图标gantt.templates.grid_file function () {return ;};// 自定义进度条上的文本gantt.templates.task_text function (start, end, task) {return span stylemargin-left:10px;color:white;${task.progress * 100}%/span;};// 自定义progress_text内容gantt.templates.progress_text function () {// return span styletext-align:left; Math.round(task.progress * 100) % /span;return ;};gantt.config.columns columns;// 初始化甘特图gantt.init(ganttRef.value);// 渲染数据gantt.parse(data); };onMounted(() {initGantt(); }); /scriptstyle langless scoped .gantt-box {width: 1000px;height: 400px; } // /deep/.default-quick-info { // background-color: aqua; // } /style 效果
http://www.hkea.cn/news/14520491/

相关文章:

  • 网站收录查询网做的比较好的货运网站
  • 网站打开文件按钮怎么做十大进销存管理软件
  • 网页设计网站制作视频教程校园网站网络文明建设
  • 洪湖网站建设1688精品货源网站入口
  • 网站建设亿玛酷技术徐州手机网站
  • 郑州网站建设设计怎么免费创建网址
  • 国外设计网站图片wordpress推荐形式模版
  • 高要区公路建设规划局网站工商注册网站
  • 陕西高速公路建设网站百度一下首页官网百度
  • 免费网站入口网站免费进ps软件lnmp一键包wordpress
  • 金华网站建设开发网站做电源
  • 龙岗义乌网站制作it培训班大概需要多少钱
  • 如何分析网站竞争对手山西公司网站建设效果
  • 网站内页301重定向西安建设工程信息网诚信平台
  • 网站开发成本评估网站没有收录原因
  • 哈尔滨网站建设策划方案网页标准化对网站开发维护的好处
  • 上海企业营销型网站建设4网站建设哪里好点
  • 系部网站建设需求分析运行需求中国建筑装饰网图片
  • 天津企业网站php网站开发速成
  • 青岛建站平台哪些软件可以做网站设计
  • 丹东市住房与城乡建设厅网站网站建设与优化推广方案内容
  • 做百度网站商标自动生成免费软件
  • 招聘网站可做哪些推广方案网站内容建设要求 age06
  • 建设cpa网站需要什么用单页做网站 文章直接写上去 百度收录关键词吗
  • 广东省门户网站建设的现状网店推广新趋势
  • 宁夏建网站报价企业搜索平台
  • 做电影网站哪个服务器好如何创建目录wordpress
  • 中国交通建设集团官网seo网站优化策划书
  • 门户网站开发需求文档北京装修公司排名电话
  • 在本地服务器上建设网站的步骤网络营销策略存在的问题