AMIS的组件学习使用

部分代码片段

{"id": "filterForm","className": " xysd-zbkb-pubquery","labelWidth": 130,"body": [{"type": "grid","className": "xysd-grid-query-input","columns": [{"md": 8,"body": [{"type": "input-group","className": "xysd-pubquery-searchKeyWords","body": [{"label": "","name": "keyWords","type": "input-text","placeholder": "请输入信息标题、内容相关的关键字检索。多关键词,、;隔开"},{"label": "查询","type": "button","icon": "fa fa-search","level": "primary","align": "right","size": "lg","onEvent": {"click": {"actions": [{"actionType": "submit","componentId": "filterForm"}]}}}]}]},{"md": 4,"body": [{"type": "tpl","tpl": "<div class='xysd-pubquery-moreQuery-btn' οnclick='handleCollapse(`xysd-pubquery-moreQuery`,`xysd-pubquery-moreQuery-ss`)'>更多查询</div>"}]}]},{"type": "wrapper","className": "xysd-pubquery-moreQuery xysd-pubquery-moreQuery-ss","body": [{"type": "group","mode": "horizontal","body": [{"type": "input-date-range","name": "reportTime","label": "首报时间","columnRatio": 3,"format": "YYYY-MM-DD"},{"initiallyOpen": false,"label": "首报单位","columnRatio": 3,"multiple": true,"name": "firstReportOrgIds","onlyLeaf": true,"searchable": true,"selectMode": "tree","showOutline": true,"hideNodePathLabel": true,"source": {"method": "get","url": "/zbxxgl/api/sysdatas/getptv/tree/open?ptvType=zbxtbsdw"},"type": "tree-select","hideNodePathLabel": true,"initiallyOpen": false,"unfoldedLevel": 1,"onlyChildren": true},{"label": "报送形式","columnRatio": 3,"type": "select","clearable": true,"name": "reportType","options": [{"label": "快报","value": "kb"},{"label": "短信","value": "dx"}]},{"format": "YYYY-MM-DD","label": "事发/接警时间","columnRatio": 3,"name": "incidentTime","type": "input-date-range","value": "${YEAR(NOW())}-1-1,${YEAR(NOW())}-12-31"}]},{"type": "group","mode": "horizontal","body": [{"label": "事件类型","columnRatio": 3,"multiple": true,"checkAll": true,"name": "eventTypeIds","source": {"method": "get","url": "/zbxxgl/api/sysdatas/get?dataKeys=dicZbxtKbSjlxList"},"type": "select"},{"columnRatio": 2,"initiallyOpen": false,"label": "事发地点","className": "xysd-grid-scroll-select","multiple": true,"name": "siteTypeIds","searchable": true,"selectMode": "tree","showOutline": true,"source": {"method": "get","url": "/zbxxgl/api/sysdatas/getdict/tree/bytype?dictType=zbxtshudi&hidden=0"},"type": "tree-select","unfoldedLevel": 2},{"label": "","columnRatio": 1,"name": "detailedSite","type": "input-text","className": "hiddenLabel"},{"label": "受伤人数","columnRatio": 2,"type": "select","clearable": true,"name": "injuredNumWay","options": [{"label": ">","value": ">"},{"label": "<","value": "<"},{"label": "=","value": "="},{"label": ">=","value": ">="},{"label": "<=","value": "<="}]},{"label": "","columnRatio": 1,"name": "injuredNum","type": "input-number","className": "hiddenLabel"},{"label": "亡人数","columnRatio": 2,"type": "select","clearable": true,"name": "deathNumWay","options": [{"label": ">","value": ">"},{"label": "<","value": "<"},{"label": "=","value": "="},{"label": ">=","value": ">="},{"label": "<=","value": "<="}]},{"label": "","columnRatio": 1,"name": "deathNum","type": "input-number","className": "hiddenLabel"}]},{"type": "group","mode": "horizontal","body": [{"label": "提出就医需求数","columnRatio": 2,"type": "select","clearable": true,"name": "medicineNumWay","options": [{"label": ">","value": ">"},{"label": "<","value": "<"},{"label": "=","value": "="},{"label": ">=","value": ">="},{"label": "<=","value": "<="}]},{"label": "","columnRatio": 1,"name": "medicineNum","type": "input-number","className": "hiddenLabel"},{"label": "涉事人数","columnRatio": 2,"type": "select","clearable": true,"name": "involveNumWay","options": [{"label": ">","value": ">"},{"label": "<","value": "<"},{"label": "=","value": "="},{"label": ">=","value": ">="},{"label": "<=","value": "<="}]},{"label": "","columnRatio": 1,"name": "involveNum","type": "input-number","className": "hiddenLabel"},{"label": "敏感身份","columnRatio": 3,"multiple": true,"checkAll": true,"name": "identityTypeIds","source": {"method": "get","url": "/zbxxgl/api/sysdatas/getdict/bytype?dictType=zbxtmgsf"},"type": "select"},{"initiallyOpen": false,"label": "报送单位","columnRatio": 3,"multiple": true,"name": "reportOrgIds","joinValues": true,"onlyLeaf": true,"searchable": true,"selectMode": "tree","showOutline": true,"hideNodePathLabel": true,"source": {"method": "get","url": "/zbxxgl/api/sysdatas/getptv/tree/open?ptvType=zbxtbsdw"},"type": "tree-select","unfoldedLevel": 1,"onlyChildren": true},{"type": "hidden","name": "ids","id": "ids"}]}]}],"title": "","submitText": "","actions": []
}

最终效果图

Wrapper

是一个包裹容器组件,相当于div。可以自定义样式

//项目种一般使用className
//样式单独定义在一个css文件,在html页面使用link标签引入即可
//当然如果是非常简单的样式,也可以使用style,两者选择其一即可
//建议项目中使用className
{"type": "wrapper","body": "内容","className": "xysd-pubquery-moreQuery xysd-pubquery-moreQuery-ss","style": {"color": "red","fontSize": "30px"}}

在这里插入图片描述

group

Group 组件用于在一行展示多个表单项

//同样支持className
{"type": "group","mode": "horizontal",//让label和后面的组件在同一行"body": [{"type": "input-date-range","name": "reportTime","label": "首报时间","columnRatio": 3,"format": "YYYY-MM-DD"},{"initiallyOpen": false,"label": "首报单位","columnRatio": 3,"multiple": true,"name": "firstReportOrgIds","onlyLeaf": true,"searchable": true,"selectMode": "tree","showOutline": true,"hideNodePathLabel": true,"source": {"method": "get","url": "/zbxxgl/api/sysdatas/getptv/tree/open?ptvType=zbxtbsdw"},"type": "tree-select","hideNodePathLabel": true,"initiallyOpen": false,"unfoldedLevel": 1,"onlyChildren": true},{"label": "报送形式","columnRatio": 3,"type": "select","clearable": true,"name": "reportType","options": [{"label": "快报","value": "kb"},{"label": "短信","value": "dx"}]},{"format": "YYYY-MM-DD","label": "事发/接警时间","columnRatio": 3,"name": "incidentTime","type": "input-date-range","value": "${YEAR(NOW())}-1-1,${YEAR(NOW())}-12-31"}]
}

tree-select

树形选择器

{"columnRatio": 2,//这个配置可以将当前行平分为12格(Group组件)"initiallyOpen": false,//默认是否展开所有子节点(InputTree)"label": "事发地点","className": "xysd-grid-scroll-select","multiple": true,//多选"name": "siteTypeIds",//这是后端接口参数名"searchable": true,//支持搜索,这里的搜索只是在后端返回值的基础上进行数据的查找,不会走后端接口(Select组件)"selectMode": "tree",//搜索之后下拉项按照属性结构展示(Select组件)"showOutline": true,//控制是否显示展开线(InputTree组件)"source": {//配置后端接口"method": "get","url": "/zbxxgl/api/sysdatas/getdict/tree/bytype?dictType=zbxtshudi&hidden=0"},"type": "tree-select","unfoldedLevel": 2,//层级比较多,可以指定展开指定的层级(InputTree组件)"hideNodePathLabel": true,//这个可以控制选中的节点是否已全层级的方式显示,true为只显示所选当前节点"onlyLeaf": true,//只能选择子节点"onlyChildren": true//只会显示最末层级节点
}
//其他一些通用属性参考InputTree组件

Select

选择器

{"label": "敏感身份","columnRatio": 3,"multiple": true,//多选"checkAll": true,//全选"name": "identityTypeIds",//后端接口参数"source": {//后端接口"method": "get","url": "/zbxxgl/api/sysdatas/getdict/bytype?dictType=zbxtmgsf"},"type": "select","selectMode":"tree",//下拉项展示格式tree是树形格式,group 分组形式,table表格格式"clearable":true//单选模式下是否可以清空
}{"label": "受伤人数","columnRatio": 2,"type": "select","clearable": true,"name": "injuredNumWay",//也可以通过options属性指定下拉项"options": [{"label": ">","value": ">"},{"label": "<","value": "<"},{"label": "=","value": "="},{"label": ">=","value": ">="},{"label": "<=","value": "<="}]
}

其他属性参考
属性表

InputDateRange

日期范围选择器

{"type": "input-date-range","name": "reportTime","label": "首报时间","columnRatio": 3,"format": "YYYY-MM-DD",//传参数据格式"displayFormat":"YYYY-MM-DD"//日期显示格式"placeholder":"请选择日期"//占位符
}
{"format": "YYYY-MM-DD","label": "事发/接警时间","columnRatio": 3,"name": "incidentTime","type": "input-date-range","value": "${YEAR(NOW())}-1-1,${YEAR(NOW())}-12-31"//value可以设置默认值,也可以通过函数设置默认值
}

属性表

inputGroup

输入框组合

{"type": "input-group","className": "xysd-pubquery-searchKeyWords","body": [{"label": "","name": "keyWords","type": "input-text","placeholder": "请输入信息标题、内容相关的关键字检索。多关键词,、;隔开"},{"label": "查询","type": "button","icon": "fa fa-search","level": "primary","align": "right","size": "lg","onEvent": {"click": {"actions": [{"actionType": "submit","componentId": "filterForm"}]}}}]
}

Grid

水平分栏
这里主要就是使用分栏 md 属性

{"type": "grid","className": "xysd-grid-query-input","columns": [{"md": 8,"body": [{"type": "input-group","className": "xysd-pubquery-searchKeyWords","body": [{"label": "","name": "keyWords","type": "input-text","placeholder": "请输入信息标题、内容相关的关键字检索。多关键词,、;隔开"},{"label": "查询","type": "button","icon": "fa fa-search","level": "primary","align": "right","size": "lg","onEvent": {"click": {"actions": [{"actionType": "submit","componentId": "filterForm"}]}}}]}]},{"md": 4,"body": [{"type": "tpl","tpl": "<div class='xysd-pubquery-moreQuery-btn' οnclick='handleCollapse(`xysd-pubquery-moreQuery`,`xysd-pubquery-moreQuery-ss`)'>更多查询</div>"}]}]
}

Page

Page 组件是 amis 页面 JSON 配置中顶级容器组件,是整个页面配置的入口组件

{"type": "page","title": "离京报备登记",//标题,在页面的左上角"body": {"type": "service",//引用外部的一个json文件"schemaApi": {"url": "/zbxxgl/amis/fetchSchema","data": {"path": "#/pc/html/ljbb/dj"},"method": "post"}},"id": "u:88fac01c5570","asideResizor": false,//页面的边栏区域宽度是否可调整"pullRefresh": {//下拉刷新配置(仅用于移动端)"disabled": true},"regions": [//定义页面整体分布 头,身体,底部"body","header","toolbar"],"toolbar": [//往页面的右上角加内容,需要注意的是,当有 title 时,该区域在右上角,没有时该区域在顶部{//这个是报备记录查询"label": "","type": "button","className": "btn-bbjlcx","icon": "","iconClassName": "text-white text-xl","onEvent": {"click": {"weight": 0,"actions": [{"args": {"url": "/zbxxgl/pc/index.html#/pc/html/ljbb/bsdw_ljcx"},"actionType": "url","blank": false}]}}},{//这个是点击跳转首页"label": "","type": "button","className": "btn-backhome","icon": "fa fa-times-circle","iconClassName": "text-white text-xl","onEvent": {"click": {"weight": 0,"actions": [{"args": {"url": "/zbxxgl/pc/index.html#/pc/bsdw/portal"},"actionType": "url","blank": false}]}}}]
}

效果图

在这里插入图片描述

Service 功能型容器

Service组件就是专门为该类组件而生,它的功能是:配置初始化接口,进行数据域的初始化,然后在Service内容器中配置子组件,这些子组件通过数据链的方法,获取Service所拉取到的数据

//这是在一个页面中嵌入service组件的定义
{"type": "service","schemaApi": {//用来获取远程 Schema 接口地址"url": "/zbxxgl/amis/fetchSchema","data": {"path": "#/pc/html/ljbb/dj"},"method": "post"}
}
//这个是上面service组件的实现
{"type": "service","api": {//初始化数据域接口地址"method": "get","url": "/zbxxgl/api/leaveStation/getCurrentIsSldParty"},"body": []
}

Form

主要作用是提交或者展示表单数据

{"type": "form","panelClassName": "form-dj","debug": false,//调试"id": "myForm","title": "","initApi": {//初始化数据"method": "get","url": "/zbxxgl/api/leaveStation/get?id=${id}"},"body": [{"type": "service","api": "/zbxxgl/api/leaveStation/getInfo?dataKeys=leaveUser","body": [{"type": "hidden","id": "sccg","name": "sccg","value": false},{"type": "grid","columns": [{"md": 4,"body": []},{"body": []}]}]}],"mode": "horizontal",//表单显示方式 normal inline horizontal"actions": [//表单行为 按钮{"type": "button","label": "上报","size": "lg","block": false,"actionType": "submit","api": {"url": "/zbxxgl/api/leaveStation/report","method": "post","messages": {"success": "成功","failed": "失败"}},"level": "primary","visibleOn": "${ privilegeDTO.report}","confirmText": "是否确认上报?上报后信息无法删除!"}]
}

属性表

Hidden

对于隐藏的字段同时又希望提交表单的时候带过去,可以使用 hidden 组件

{"type": "service","api": "/zbxxgl/api/leaveStation/getInfo?dataKeys=leaveUser","body": [{"type": "hidden","id": "sccg","name": "sccg","value": false}]
}

Tpl 模板

{"type": "tpl","className": "method-title-sub","tpl": "方式一:智能填写"
}{"type": "tpl","className": "method-content","style": {"margin-bottom": "10px"},"tpl": "填写电子版离京外出审批表(模板可通过本系统下载),履行线下请假审批程序,领导签批后,将已填写的电子版审批表上传至系统,系统自动识别表格内容至右侧在线表单,核对修改完善表单信息后,在审批信息处注明“X月X日由XX领导批准”(无需提交离京报备表及审批证明材料扫描件),提交上报。"
}

divider 分割线

{"type": "divider","title": "Text","titlePosition": "left","color": "red","lineStyle": "dashed","direction": "vertical"
}{"type": "divider","title": "Text","titlePosition": "center","color": "blue","lineStyle": "solid","direction": "horizontal","style": {"margin": "0px"}
}

在这里插入图片描述

button 按钮

button 实际上是 action 的别名,更多用法见 action

"actions":[{"type": "button","label": "导出审批表","hiddenOn": "${sccg}","visibleOn": "${oneIdentyQuery==1 || privilegeDTO.isDcztZBS}","id": "dcsb_button","size": "lg","level": "primary","actionType": "download","required": [],"api": {"method": "post","url": "/zbxxgl/api/leaveStation/export?orgIdentityTypeId=${oneOrgIdentityTypeId}","messages": {"success": "成功","failed": "失败"}}},{"type": "button","label": "导出审批表","visibleOn": "${oneIdentyQuery==0 && !privilegeDTO.isDcztZBS}","size": "lg","level": "primary","onEvent": {"click": {"actions": [{"actionType": "dialog","args": {"dialog": {"type": "dialog","id": "dialogSubmit","title": "请选择审批表模板","className": "xysd-dialog-padding","actions": [],"body": [{"type": "form","id": "mergeForm","body": [{"type": "select","name": "orgIdentityTypeId","source": "/zbxxgl/api/leaveStation/getMoreIdentity","required": true,"label": false},{"type": "wrapper","className": "flex justify-end xysd-handle-btn-margin","body": [{"type": "button","label": "确认","level": "primary","onEvent": {"click": {"actions": [{"actionType": "custom","script": "window.amisScoped.getComponentById('mergeForm').validate().then(function(res){if(res){console.log(event.data);doAction([{\t\"actionType\": \"download\",\t\"args\": {\"api\": {\t\"method\": \"post\",\t\"url\": \"/zbxxgl/api/leaveStation/export\",\t\"messages\": {\t\t\"success\": \"成功\",\t\t\"failed\": \"失败\"\t},\t\"data\": {\t\t...event.data.__super.__super\t,\t\t\"orgIdentityTypeId\": event.data.orgIdentityTypeId}}}},{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"actionType\": \"cancel\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"componentId\": \"dialogSubmit\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}])}})"}]}}},{"type": "button","label": "取消","onEvent": {"click": {"actions": [{"actionType": "cancel","componentId": "dialogSubmit"}]}}}]}]}]}}}]}}},{"type": "submit","label": "${privilegeDTO.isDcztZBS ? '保存': '暂存'}","size": "lg","visibleOn": "${ privilegeDTO.save}","api": {"url": "/zbxxgl/api/leaveStation/save","method": "post","dataType": "json","messages": {"success": "成功","failed": "失败"}},"level": "primary"},{"type": "button","label": "上报","size": "lg","block": false,"actionType": "submit","api": {"url": "/zbxxgl/api/leaveStation/report","method": "post","messages": {"success": "成功","failed": "失败"}},"level": "primary","visibleOn": "${ privilegeDTO.report}","confirmText": "是否确认上报?上报后信息无法删除!"}
]

Action 行为按钮

一般type都设置为button,所以这里就已type是button为例

{"type": "button","columnRatio": 12,"className": "method-btn","level":"success",//如果对于按钮的样式没有特别要求可以使用level 取值 primary secondary info success warning danger light"label": "下载离京外出审批表模板","icon": "fas fa-arrow-down",//图标"style": {//样式"margin-bottom": "15px"},"actionType": "download",//按钮行为  这里是下载"api": {//后端接口"url": "/zbxxgl/api/leaveStation/template","method": "get"}
}{"label": "","type": "button","className": "btn-backhome","icon": "fa fa-times-circle","iconClassName": "text-white text-xl","onEvent": {//click事件 可以跳转到首页 指定的页面"click": {"weight": 0,"actions": [{"args": {"url": "/zbxxgl/pc/index.html#/pc/bsdw/portal"},"actionType": "url","blank": false}]}}
}

更多操作

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/644414.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

第12章_集合框架(Collection接口,Iterator接口,List,Set,Map,Collections工具类)

文章目录 第12章_集合框架本章专题与脉络1. 集合框架概述1.1 生活中的容器1.2 数组的特点与弊端1.3 Java集合框架体系1.4 集合的使用场景 2. Collection接口及方法2.1 添加2.2 判断2.3 删除2.4 其它 3. Iterator(迭代器)接口3.1 Iterator接口3.2 迭代器的执行原理3.3 foreach循…

dolphinscheduler节点二次开发需要改动的部分

dolphinscheduler节点二次开发需要改动的部分 前端 在dolphinscheduler-ui/public/images/task-icons/目录下新增两个节点的logo图片&#xff0c;一个为激活状态的一个为非激活状态的&#xff0c;如下。 修改文件dolphinscheduler-ui/src/views/projects/task/constants/task…

实战:加密传输数据解密

前言 下面将分享一些实际的渗透测试经验&#xff0c;帮助你应对在测试中遇到的数据包内容加密的情况。我们将以实战为主&#xff0c;技巧为辅&#xff0c;进入逆向的大门。 技巧 开局先讲一下技巧&#xff0c;掌握好了技巧&#xff0c;方便逆向的时候可以更加快速的找到关键…

HCIE之BGP基础概念(一)

BGP 一、BGP的基本概述二、BGP分类三、BGP的工作原理BGP报文类型&#xff1a;BGP状态机&#xff1a; 四、BGP对等体之间的交互原则解决BGP路由黑洞方法&#xff1a; 五、路由反射器路由反射规则路由反射器下防环联邦 六、BGP属性特点优选协议首选值&#xff08;PrefVal&#xf…

PHP编程实践:实际商品价格数据采集

引言 在电子商务领域&#xff0c;对商品价格进行数据采集和对比是一项常见的需求。本文将介绍如何使用PHP编程语言实现对1688和淘宝商品价格数据的采集和对比&#xff0c;帮助读者了解实际的编程实践过程。 一、数据采集原理 数据采集是指从互联网上获取数据的过程&#xff…

【前端web入门第一天】01 开发环境、HTML基本语法文本标签

文章目录: 1. 准备开发环境 1.1 vs Code基本使用 2.HTML文本标签 2.1 标签语法2.2 HTML基本骨架2.3 标签的关系2.4 注释2.5 标题标签2.6 段落标签2.7 换行与水平线标签2.8 文本格式化标签 1. 准备开发环境 VSCode与谷歌浏览器离线版,安装包评论区自提. VSCode默认安装位置:C…

3、非数值型的分类变量

非数值型的分类变量 有很多非数字的数据,这里介绍如何使用它来进行机器学习。 在本教程中,您将了解什么是分类变量,以及处理此类数据的三种方法。 本课程所需数据集夸克网盘下载链接:https://pan.quark.cn/s/9b4e9a1246b2 提取码:uDzP 文章目录 1、简介2、三种方法的使用1…

书生·浦语大模型实战营-学习笔记5

LMDeploy 大模型量化部署实践 大模型部署背景 LMDeploy简介 轻量化、推理引擎、服务 核心功能-量化 显存消耗变少了 大语言模型是典型的访存密集型任务&#xff0c;因为它是decoder-by-decoder 先把数据量化为INT4存起来&#xff0c;算的时候会反量化为FP16 AWQ算法&a…

Angular组件(一) 分割面板ShrinkSplitter

Angular组件(一) 分割面板ShrinkSplitter 前言 分割面板在日常开发中经常使用&#xff0c;可将一片区域&#xff0c;分割为可以拖拽整宽度或高度的两部分区域。模仿iview的分割面板组件&#xff0c;用angular实现该功能&#xff0c;支持拖拽和[(ngModel)]双向绑定的方式控制区…

Docker容器引擎(2)

目录 一.批量删除镜像&#xff0c;容器 二.Docker 网络实现原理 随机映射端口&#xff08;从32768开始&#xff09; 访问自己&#xff1a; 在10服务器上配置路由转发&#xff1a; 指定映射端口&#xff1a; 查看容器的输出和日志信息&#xff1a; 将宿主机目标|文件挂载…

RabbitMQ中交换机的应用及原理,案例的实现

目录 一、介绍 1. 概述 2. 作用及优势 3. 工作原理 二、交换机Exchange 1. Direct 2. Topic 3. Fanout 三、代码案例 消费者代码 1. 直连direct 生产者代码 测试 2. 主题topic 生产者代码 测试 3. 扇形fanout 生产者代码 测试 每篇一获 一、介绍 1. …

Vue的生命周期方法

beforeCreate 在实例初始化之后&#xff0c;数据观测&#xff08;data observe&#xff09;和 event/watcher 事件配置之前被调用。在当前阶段 data、methods、computed 以及 watch 上的数据和方法都不能被访问。 created 实例已经创建完成之后被调用。在这一步&#xff0c;实…

【JavaEE进阶】 MyBatis使用注解实现增删改查

文章目录 &#x1f343;前言&#x1f334;传递参数&#x1f38b;增(Insert)&#x1f6a9;返回主键 &#x1f384;删(Delete)&#x1f332;改(Update)&#x1f333;查(Select)&#x1f6a9;起别名&#x1f6a9;结果映射&#x1f6a9;开启驼峰命名(推荐使用) ⭕总结 &#x1f343…

[UI5 常用控件] 01.Text

文章目录 前言1. 普通文本2. 长文本&#xff1a;3. 设置最大显示行数 ( maxLines3 )4. 单行显示 ( wrappingfalse )5. 显示空白符 ( renderWhitespacetrue )6. 使用 - 连接单词:只适用于英文 ( wrappingTypeHyphenated )7. 空白时使用 - 代替 ( emptyIndicatorModeOn )8. JSON数…

2024年需要重点关注的15种计算机病毒

2024年&#xff0c;计算机病毒威胁变得愈发多元化和复杂化。涉及勒索病毒、二维码病毒、挖矿木马等15种类型&#xff0c;这些病毒从数据勒索到系统入侵&#xff0c;对全球网络安全构成严峻挑战。 2024年&#xff0c;计算机病毒威胁变得愈发多元化和复杂化。涉及勒索病毒、二维码…

【网络安全】常见的网络威胁有哪些?

随着互联网的快速发展&#xff0c;网络安全问题日益凸显。常见的网络威胁包括病毒、木马、恶意软件等。这些威胁不仅会影响计算机的安全运行&#xff0c;还会窃取用户的个人信息&#xff0c;造成巨大的损失。因此&#xff0c;我们需要采取一些措施来保护自己的网络安全。 常见的…

android 图片添加水印

android 图片添加水印 本文主要讲下android 中如何给图片添加水印. 在Android中给图片添加水印可以使用Bitmap、Matrix和Canvas类的方法来实现. private Bitmap addWater() {// 加载原始图片Bitmap sourceBitmap BitmapFactory.decodeResource(getResources(), R.mipmap.sou…

Vue+OpenLayers7:OpenLayers7地图初始化时如何设置默认缩放级别、设置默认地图中心点、最大缩放级别和最小缩放级别以及默认坐标系

返回《Vue+OpenLayers7》专栏目录:Vue+OpenLayers7 本章讲解OpenLayers7地图初始化时如何设置默认缩放级别、设置默认地图中心点、最大缩放级别和最小缩放级别以及默认坐标系等配置。 前言 OpenLayers7地图初始化时如何设置默认缩放级别、初始化时设置默认地图中心点、设置…

启动mitmproxy报错 ImportError: cannot import name ‘url_quote‘ from ‘werkzeug.urls‘

报错截图 ImportError: cannot import name url_quote from werkzeug.urls (d:\soft\python\python38\lib\site-packages\werkzeug\urls.py) 原因是Werkzeug版本不兼容导致 解决方法 pip install Werkzeug2.2.2

大数据学习之Flink算子、了解(Source)源算子(基础篇二)

Source源算子&#xff08;基础篇二&#xff09; 目录 Source源算子&#xff08;基础篇二&#xff09; 二、源算子&#xff08;source&#xff09; 1. 准备工作 2.从集合中读取数据 可以使用代码中的fromCollection()方法直接读取列表 也可以使用代码中的fromElements()方…