From ae2615df1758e181c1a264af81a6b4d8bd804ea1 Mon Sep 17 00:00:00 2001 From: bqy_fe <1743369777@qq.com> Date: Wed, 22 Dec 2021 11:16:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/api/system/task/index.ts | 80 ++ src/api/system/task/model.d.ts | 57 + src/components/JSON-schema-form/types/form.ts | 26 +- src/components/iconfont/icon-font.tsx | 16 +- src/components/icons-select/icons.json | 1269 +++++++++++++++++ src/components/icons-select/icons.ts | 190 --- src/components/icons-select/index.vue | 16 +- src/views/system/permission/user/columns.tsx | 1 - src/views/system/schedule/task/columns.tsx | 105 ++ src/views/system/schedule/task/formSchemas.ts | 129 ++ src/views/system/schedule/task/index.vue | 178 ++- yarn.lock | 40 +- 13 files changed, 1877 insertions(+), 232 deletions(-) create mode 100644 src/api/system/task/index.ts create mode 100644 src/api/system/task/model.d.ts create mode 100644 src/components/icons-select/icons.json delete mode 100644 src/components/icons-select/icons.ts create mode 100644 src/views/system/schedule/task/columns.tsx create mode 100644 src/views/system/schedule/task/formSchemas.ts diff --git a/package.json b/package.json index 24b868c05..7f2a8b846 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "path-browserify": "^1.0.1", "postcss-html": "^1.3.0", "prettier": "^2.5.1", - "stylelint": "^14.1.0", + "stylelint": "^14.2.0", "stylelint-config-html": "^1.0.0", "stylelint-config-prettier": "^9.0.3", "stylelint-config-recommended": "^6.0.0", diff --git a/src/api/system/task/index.ts b/src/api/system/task/index.ts new file mode 100644 index 000000000..f9b9fde6a --- /dev/null +++ b/src/api/system/task/index.ts @@ -0,0 +1,80 @@ +import { request } from '@/utils/request'; +import Api from '@/core/permission/modules/sys/task'; + +type CommonParams = { + id: number; +}; + +export function getSysTaskList(params?: API.PageParams) { + return request>({ + url: Api.page, + method: 'get', + params, + }); +} + +export function getSysTaskInfo(params: CommonParams) { + return request({ + url: Api.info, + method: 'get', + params, + }); +} + +export function sysTaskAdd(data?: API.PageParams) { + return request( + { + url: Api.add, + method: 'post', + data, + }, + { + successMsg: '添加成功', + }, + ); +} + +export function sysTaskDelete(data?: API.PageParams) { + return request({ + url: Api.delete, + method: 'post', + data, + }); +} + +export function sysTaskUpdate(data?: API.PageParams) { + return request( + { + url: Api.update, + method: 'post', + data, + }, + { + successMsg: '修改成功', + }, + ); +} + +export function sysTaskOnce(data: CommonParams) { + return request({ + url: Api.once, + method: 'post', + data, + }); +} + +export function sysTaskStart(data: CommonParams) { + return request({ + url: Api.start, + method: 'post', + data, + }); +} + +export function sysTaskStop(data: CommonParams) { + return request({ + url: Api.stop, + method: 'post', + data, + }); +} diff --git a/src/api/system/task/model.d.ts b/src/api/system/task/model.d.ts new file mode 100644 index 000000000..1c4f86bce --- /dev/null +++ b/src/api/system/task/model.d.ts @@ -0,0 +1,57 @@ +declare namespace API { + /** 任务列表项 */ + export type SysTaskListItem = { + createdAt: string; + updatedAt: string; + id: number; + name: string; + service: string; + type: number; + status: number; + startTime: string; + endTime: string; + limit: number; + cron: string; + every: number; + data: string; + jobOpts: string; + remark: string; + }; + /** 添加任务参数 */ + export type SysTaskAddParams = { + name: string; + service: string; + type: number; + status: number; + startTime: string; + endTime: string; + limit: number; + cron: string; + every: number; + data: string; + remark: string; + }; + + /** 更新任务参数 */ + export type SysTaskUpdateParams = SysTaskAddParams & { + id: number; + }; + /** 获取任务详情返回结果 */ + export type SysTaskInfoResult = { + createdAt: string; + updatedAt: string; + id: number; + name: string; + service: string; + type: number; + status: number; + startTime: string; + endTime: string; + limit: number; + cron: string; + every: number; + data: string; + jobOpts: string; + remark: string; + }; +} diff --git a/src/components/JSON-schema-form/types/form.ts b/src/components/JSON-schema-form/types/form.ts index 19f22781f..522ebd198 100644 --- a/src/components/JSON-schema-form/types/form.ts +++ b/src/components/JSON-schema-form/types/form.ts @@ -16,10 +16,10 @@ export type Rule = RuleObject & { trigger?: 'blur' | 'change' | ['change', 'blur']; }; -export interface RenderCallbackParams { +export interface RenderCallbackParams { schemaItem: FormItemSchema; - formModel: Recordable; - field: string; + formModel: T extends string ? Recordable : T; + field: T extends string ? string : keyof T; } export interface ButtonProps { @@ -131,7 +131,7 @@ export interface FormItemSchema { helpMessage?: | string | string[] - | ((renderCallbackParams: RenderCallbackParams) => string | string[]); + | ((renderCallbackParams: RenderCallbackParams) => string | string[]); // BaseHelp component props helpComponentProps?: Partial; // Label width, if it is passed, the labelCol and WrapperCol configured by itemProps will be invalid @@ -150,15 +150,15 @@ export interface FormItemSchema { }) => ComponentProps); componentSlots?: - | ((renderCallbackParams: RenderCallbackParams) => Recordable<(...args) => any>) + | ((renderCallbackParams: RenderCallbackParams) => Recordable<(...args) => any>) | VNode | VNode[] | string | Recordable<(...args) => any>; // Required - required?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean); + required?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean); - suffix?: string | number | ((values: RenderCallbackParams) => string | number); + suffix?: string | number | ((values: RenderCallbackParams) => string | number); // Validation rules rules?: Rule[]; @@ -178,15 +178,15 @@ export interface FormItemSchema { // Matching details components span?: number; - vShow?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean); + vShow?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean); - vIf?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean); + vIf?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean); // Render the content in the form-item tag - render?: (renderCallbackParams: RenderCallbackParams) => VNode | VNode[] | string; + render?: (renderCallbackParams: RenderCallbackParams) => VNode | VNode[] | string; // Rendering col content requires outer wrapper form-item - renderColContent?: (renderCallbackParams: RenderCallbackParams) => VNode | VNode[] | string; + renderColContent?: (renderCallbackParams: RenderCallbackParams) => VNode | VNode[] | string; // Custom slot, in from-item slot?: string; @@ -194,9 +194,9 @@ export interface FormItemSchema { // Custom slot, similar to renderColContent colSlot?: string; - dynamicDisabled?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean); + dynamicDisabled?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean); - dynamicRules?: (renderCallbackParams: RenderCallbackParams) => Rule[]; + dynamicRules?: (renderCallbackParams: RenderCallbackParams) => Rule[]; } export interface HelpComponentProps { maxWidth: string; diff --git a/src/components/iconfont/icon-font.tsx b/src/components/iconfont/icon-font.tsx index 2974473a7..824dbc0ed 100644 --- a/src/components/iconfont/icon-font.tsx +++ b/src/components/iconfont/icon-font.tsx @@ -16,6 +16,10 @@ export default defineComponent({ type: String as PropType, default: '', }, + prefix: { + type: String, + default: 'icon-', + }, color: { type: String as PropType, default: 'unset', @@ -49,6 +53,16 @@ export default defineComponent({ }; }); - return () => ; + return () => { + const { type, prefix } = props; + + return type ? ( + + ) : null; + }; }, }); diff --git a/src/components/icons-select/icons.json b/src/components/icons-select/icons.json new file mode 100644 index 000000000..4234c3ff2 --- /dev/null +++ b/src/components/icons-select/icons.json @@ -0,0 +1,1269 @@ +{ + "id": "2184398", + "name": "vue3-antd", + "font_family": "iconfont", + "css_prefix_text": "icon-", + "description": "", + "glyphs": [ + { + "icon_id": "1059047", + "name": "读取数据库", + "font_class": "duqushujuku", + "unicode": "e67f", + "unicode_decimal": 59007 + }, + { + "icon_id": "4347599", + "name": "icon_使用文档", + "font_class": "icon_shiyongwendang", + "unicode": "eb91", + "unicode_decimal": 60305 + }, + { + "icon_id": "7239613", + "name": "ant-design", + "font_class": "ant-design", + "unicode": "e74d", + "unicode_decimal": 59213 + }, + { + "icon_id": "10166326", + "name": "guide", + "font_class": "guide", + "unicode": "e630", + "unicode_decimal": 58928 + }, + { + "icon_id": "12717509", + "name": "定时任务管理", + "font_class": "dingshirenwuguanli", + "unicode": "e611", + "unicode_decimal": 58897 + }, + { + "icon_id": "11371039", + "name": "监控", + "font_class": "jiankong1", + "unicode": "e74c", + "unicode_decimal": 59212 + }, + { + "icon_id": "17426976", + "name": "在线用户监控", + "font_class": "zaixianyonghujiankong", + "unicode": "e60a", + "unicode_decimal": 58890 + }, + { + "icon_id": "20104510", + "name": "日志", + "font_class": "rizhi1", + "unicode": "e617", + "unicode_decimal": 58903 + }, + { + "icon_id": "8605740", + "name": "角色权限", + "font_class": "jiaosequanxian", + "unicode": "e666", + "unicode_decimal": 58982 + }, + { + "icon_id": "15992243", + "name": "链接", + "font_class": "externa-link", + "unicode": "e620", + "unicode_decimal": 58912 + }, + { + "icon_id": "17606379", + "name": "柱状图", + "font_class": "zhuzhuangtu", + "unicode": "e6f5", + "unicode_decimal": 59125 + }, + { + "icon_id": "17606380", + "name": "烛型图", + "font_class": "zhuxingtu", + "unicode": "e6f6", + "unicode_decimal": 59126 + }, + { + "icon_id": "17606381", + "name": "BUG", + "font_class": "BUG", + "unicode": "e6f7", + "unicode_decimal": 59127 + }, + { + "icon_id": "17606382", + "name": "桌面", + "font_class": "zhuomian", + "unicode": "e6f8", + "unicode_decimal": 59128 + }, + { + "icon_id": "17606383", + "name": "组件使用", + "font_class": "zujianshiyong", + "unicode": "e6f9", + "unicode_decimal": 59129 + }, + { + "icon_id": "17606384", + "name": "资源", + "font_class": "ziyuan", + "unicode": "e6fa", + "unicode_decimal": 59130 + }, + { + "icon_id": "17606385", + "name": "字段管理", + "font_class": "ziduanguanli", + "unicode": "e6fb", + "unicode_decimal": 59131 + }, + { + "icon_id": "17606386", + "name": "云", + "font_class": "yun", + "unicode": "e6fc", + "unicode_decimal": 59132 + }, + { + "icon_id": "17606395", + "name": "分享", + "font_class": "fenxiang", + "unicode": "e6fd", + "unicode_decimal": 59133 + }, + { + "icon_id": "17606397", + "name": "计算", + "font_class": "jisuan", + "unicode": "e6fe", + "unicode_decimal": 59134 + }, + { + "icon_id": "17606398", + "name": "客户管理", + "font_class": "kehuguanli", + "unicode": "e6ff", + "unicode_decimal": 59135 + }, + { + "icon_id": "17606399", + "name": "决策引擎", + "font_class": "jueceyinqing", + "unicode": "e700", + "unicode_decimal": 59136 + }, + { + "icon_id": "17606400", + "name": "流程", + "font_class": "liucheng1", + "unicode": "e701", + "unicode_decimal": 59137 + }, + { + "icon_id": "17606401", + "name": "脚本", + "font_class": "jiaoben", + "unicode": "e702", + "unicode_decimal": 59138 + }, + { + "icon_id": "17606402", + "name": "工程", + "font_class": "gongcheng", + "unicode": "e703", + "unicode_decimal": 59139 + }, + { + "icon_id": "17606403", + "name": "刷子-2", + "font_class": "shuazi-2", + "unicode": "e704", + "unicode_decimal": 59140 + }, + { + "icon_id": "17606404", + "name": "权限", + "font_class": "quanxian", + "unicode": "e705", + "unicode_decimal": 59141 + }, + { + "icon_id": "17606405", + "name": "刷子-1", + "font_class": "shuazi-1", + "unicode": "e706", + "unicode_decimal": 59142 + }, + { + "icon_id": "17606406", + "name": "文件", + "font_class": "wenjian", + "unicode": "e707", + "unicode_decimal": 59143 + }, + { + "icon_id": "17606407", + "name": "文件-增", + "font_class": "wenjian-zeng", + "unicode": "e708", + "unicode_decimal": 59144 + }, + { + "icon_id": "17606408", + "name": "文件-展开", + "font_class": "wenjian-zhankai", + "unicode": "e709", + "unicode_decimal": 59145 + }, + { + "icon_id": "17606409", + "name": "推送", + "font_class": "tuisong", + "unicode": "e70a", + "unicode_decimal": 59146 + }, + { + "icon_id": "17606410", + "name": "纸箱", + "font_class": "zhixiang", + "unicode": "e70b", + "unicode_decimal": 59147 + }, + { + "icon_id": "17606411", + "name": "运维", + "font_class": "yunwei", + "unicode": "e70c", + "unicode_decimal": 59148 + }, + { + "icon_id": "17606412", + "name": "数据库", + "font_class": "shujuku1", + "unicode": "e70d", + "unicode_decimal": 59149 + }, + { + "icon_id": "17606413", + "name": "文件-展现", + "font_class": "wenjian-zhanxian", + "unicode": "e70e", + "unicode_decimal": 59150 + }, + { + "icon_id": "17606415", + "name": "文档", + "font_class": "wendang", + "unicode": "e70f", + "unicode_decimal": 59151 + }, + { + "icon_id": "17606797", + "name": "复制", + "font_class": "fuzhi", + "unicode": "e710", + "unicode_decimal": 59152 + }, + { + "icon_id": "17606798", + "name": "用户", + "font_class": "yonghu1", + "unicode": "e711", + "unicode_decimal": 59153 + }, + { + "icon_id": "17606799", + "name": "放大", + "font_class": "fangda", + "unicode": "e712", + "unicode_decimal": 59154 + }, + { + "icon_id": "17606800", + "name": "减少", + "font_class": "jianshao", + "unicode": "e713", + "unicode_decimal": 59155 + }, + { + "icon_id": "17606801", + "name": "编辑", + "font_class": "bianji", + "unicode": "e714", + "unicode_decimal": 59156 + }, + { + "icon_id": "17606802", + "name": "缩小", + "font_class": "suoxiao", + "unicode": "e715", + "unicode_decimal": 59157 + }, + { + "icon_id": "17606803", + "name": "删除", + "font_class": "shanchu", + "unicode": "e716", + "unicode_decimal": 59158 + }, + { + "icon_id": "17606881", + "name": "矩形-错误", + "font_class": "juxing-cuowu", + "unicode": "e717", + "unicode_decimal": 59159 + }, + { + "icon_id": "17606882", + "name": "矩形-减", + "font_class": "juxing-jian", + "unicode": "e718", + "unicode_decimal": 59160 + }, + { + "icon_id": "17606883", + "name": "矩形-更多", + "font_class": "juxing-gengduo", + "unicode": "e719", + "unicode_decimal": 59161 + }, + { + "icon_id": "17606884", + "name": "矩形-增", + "font_class": "juxing-zeng", + "unicode": "e71a", + "unicode_decimal": 59162 + }, + { + "icon_id": "17606885", + "name": "矩形-右", + "font_class": "juxing-you", + "unicode": "e71b", + "unicode_decimal": 59163 + }, + { + "icon_id": "17606886", + "name": "矩形-文本", + "font_class": "juxing-wenben", + "unicode": "e71c", + "unicode_decimal": 59164 + }, + { + "icon_id": "17606887", + "name": "矩形-通过", + "font_class": "juxing-tongguo", + "unicode": "e71d", + "unicode_decimal": 59165 + }, + { + "icon_id": "17606888", + "name": "圆环-更多", + "font_class": "yuanhuan-gengduo", + "unicode": "e71e", + "unicode_decimal": 59166 + }, + { + "icon_id": "17606889", + "name": "圆环-确认", + "font_class": "yuanhuan-queren", + "unicode": "e71f", + "unicode_decimal": 59167 + }, + { + "icon_id": "17606890", + "name": "圆环-关闭", + "font_class": "yuanhuan-guanbi", + "unicode": "e720", + "unicode_decimal": 59168 + }, + { + "icon_id": "17606891", + "name": "圆环-减", + "font_class": "yuanhuan-jian", + "unicode": "e721", + "unicode_decimal": 59169 + }, + { + "icon_id": "17606892", + "name": "圆环-消息", + "font_class": "yuanhuan-xiaoxi", + "unicode": "e722", + "unicode_decimal": 59170 + }, + { + "icon_id": "17606893", + "name": "圆环-增", + "font_class": "yuanhuan-zeng", + "unicode": "e723", + "unicode_decimal": 59171 + }, + { + "icon_id": "17606894", + "name": "圆环-暂停", + "font_class": "yuanhuan-zanting", + "unicode": "e724", + "unicode_decimal": 59172 + }, + { + "icon_id": "17606895", + "name": "圆环-左", + "font_class": "yuanhuan-zuo", + "unicode": "e725", + "unicode_decimal": 59173 + }, + { + "icon_id": "17606896", + "name": "矩形-左", + "font_class": "juxing-zuo", + "unicode": "e726", + "unicode_decimal": 59174 + }, + { + "icon_id": "17606897", + "name": "圆环-时间", + "font_class": "yuanhuan-shijian", + "unicode": "e727", + "unicode_decimal": 59175 + }, + { + "icon_id": "17606898", + "name": "圆环-疑问", + "font_class": "yuanhuan-yiwen", + "unicode": "e728", + "unicode_decimal": 59176 + }, + { + "icon_id": "17606899", + "name": "圆环-右", + "font_class": "yuanhuan-you", + "unicode": "e729", + "unicode_decimal": 59177 + }, + { + "icon_id": "17606931", + "name": "圆环-减", + "font_class": "yuanhuan-jian1", + "unicode": "e72a", + "unicode_decimal": 59178 + }, + { + "icon_id": "17606932", + "name": "矩形-右", + "font_class": "juxing-you1", + "unicode": "e72b", + "unicode_decimal": 59179 + }, + { + "icon_id": "17606933", + "name": "矩形-通过", + "font_class": "juxing-tongguo1", + "unicode": "e72c", + "unicode_decimal": 59180 + }, + { + "icon_id": "17606934", + "name": "矩形-错误", + "font_class": "juxing-cuowu1", + "unicode": "e72d", + "unicode_decimal": 59181 + }, + { + "icon_id": "17606935", + "name": "矩形-减", + "font_class": "juxing-jian1", + "unicode": "e72e", + "unicode_decimal": 59182 + }, + { + "icon_id": "17606936", + "name": "矩形-增", + "font_class": "juxing-zeng1", + "unicode": "e72f", + "unicode_decimal": 59183 + }, + { + "icon_id": "17606937", + "name": "圆环-增", + "font_class": "yuanhuan-zeng1", + "unicode": "e730", + "unicode_decimal": 59184 + }, + { + "icon_id": "17606938", + "name": "圆环-左", + "font_class": "yuanhuan-zuo1", + "unicode": "e731", + "unicode_decimal": 59185 + }, + { + "icon_id": "17606939", + "name": "圆环-右", + "font_class": "yuanhuan-you1", + "unicode": "e732", + "unicode_decimal": 59186 + }, + { + "icon_id": "17606940", + "name": "圆环-关闭", + "font_class": "yuanhuan-guanbi1", + "unicode": "e733", + "unicode_decimal": 59187 + }, + { + "icon_id": "17606941", + "name": "矩形-左", + "font_class": "juxing-zuo1", + "unicode": "e734", + "unicode_decimal": 59188 + }, + { + "icon_id": "17606942", + "name": "圆环-确认", + "font_class": "yuanhuan-queren1", + "unicode": "e735", + "unicode_decimal": 59189 + }, + { + "icon_id": "17606943", + "name": "圆环-暂停", + "font_class": "yuanhuan-zanting1", + "unicode": "e736", + "unicode_decimal": 59190 + }, + { + "icon_id": "17606972", + "name": "后退", + "font_class": "houtui", + "unicode": "e737", + "unicode_decimal": 59191 + }, + { + "icon_id": "17606973", + "name": "方向上", + "font_class": "fangxiangshang", + "unicode": "e738", + "unicode_decimal": 59192 + }, + { + "icon_id": "17606974", + "name": "方向右", + "font_class": "fangxiangyou", + "unicode": "e739", + "unicode_decimal": 59193 + }, + { + "icon_id": "17606975", + "name": "方向下", + "font_class": "fangxiangxia", + "unicode": "e73a", + "unicode_decimal": 59194 + }, + { + "icon_id": "17606976", + "name": "菜单左", + "font_class": "caidanzuo", + "unicode": "e73b", + "unicode_decimal": 59195 + }, + { + "icon_id": "17606977", + "name": "快进", + "font_class": "kuaijin", + "unicode": "e73c", + "unicode_decimal": 59196 + }, + { + "icon_id": "17606978", + "name": "上传", + "font_class": "shangchuan1", + "unicode": "e73d", + "unicode_decimal": 59197 + }, + { + "icon_id": "17606979", + "name": "下载", + "font_class": "xiazai1", + "unicode": "e73e", + "unicode_decimal": 59198 + }, + { + "icon_id": "17606980", + "name": "替换", + "font_class": "tihuan", + "unicode": "e73f", + "unicode_decimal": 59199 + }, + { + "icon_id": "17606981", + "name": "方向左", + "font_class": "fangxiangzuo", + "unicode": "e740", + "unicode_decimal": 59200 + }, + { + "icon_id": "17606982", + "name": "收缩", + "font_class": "shousuo", + "unicode": "e741", + "unicode_decimal": 59201 + }, + { + "icon_id": "17606983", + "name": "菜单右", + "font_class": "caidanyou", + "unicode": "e742", + "unicode_decimal": 59202 + }, + { + "icon_id": "17606984", + "name": "展开", + "font_class": "zhankai", + "unicode": "e743", + "unicode_decimal": 59203 + }, + { + "icon_id": "17607037", + "name": "警告", + "font_class": "jinggao", + "unicode": "e744", + "unicode_decimal": 59204 + }, + { + "icon_id": "17607038", + "name": "提醒-警告", + "font_class": "tixing-jinggao", + "unicode": "e745", + "unicode_decimal": 59205 + }, + { + "icon_id": "17607039", + "name": "错误", + "font_class": "cuowu", + "unicode": "e746", + "unicode_decimal": 59206 + }, + { + "icon_id": "17607040", + "name": "对话-警告", + "font_class": "duihua-jinggao", + "unicode": "e747", + "unicode_decimal": 59207 + }, + { + "icon_id": "17607506", + "name": "同盾", + "font_class": "tongdun", + "unicode": "e748", + "unicode_decimal": 59208 + }, + { + "icon_id": "17613521", + "name": "调用", + "font_class": "tiaoyong", + "unicode": "e749", + "unicode_decimal": 59209 + }, + { + "icon_id": "17651395", + "name": "日志", + "font_class": "rizhi", + "unicode": "e74a", + "unicode_decimal": 59210 + }, + { + "icon_id": "17651396", + "name": "日志-2", + "font_class": "rizhi-2", + "unicode": "e74b", + "unicode_decimal": 59211 + }, + { + "icon_id": "17606294", + "name": "饼图", + "font_class": "bingtu", + "unicode": "e6a2", + "unicode_decimal": 59042 + }, + { + "icon_id": "17606295", + "name": "案件管理", + "font_class": "anjianguanli", + "unicode": "e6a3", + "unicode_decimal": 59043 + }, + { + "icon_id": "17606296", + "name": "布局", + "font_class": "buju", + "unicode": "e6a4", + "unicode_decimal": 59044 + }, + { + "icon_id": "17606297", + "name": "保存", + "font_class": "baocun", + "unicode": "e6a5", + "unicode_decimal": 59045 + }, + { + "icon_id": "17606298", + "name": "定位", + "font_class": "dingwei", + "unicode": "e6a6", + "unicode_decimal": 59046 + }, + { + "icon_id": "17606299", + "name": "灯泡", + "font_class": "dengpao", + "unicode": "e6a7", + "unicode_decimal": 59047 + }, + { + "icon_id": "17606300", + "name": "短信保护", + "font_class": "duanxinbaohu", + "unicode": "e6a8", + "unicode_decimal": 59048 + }, + { + "icon_id": "17606301", + "name": "导出", + "font_class": "daochu", + "unicode": "e6a9", + "unicode_decimal": 59049 + }, + { + "icon_id": "17606302", + "name": "安全", + "font_class": "anquan", + "unicode": "e6aa", + "unicode_decimal": 59050 + }, + { + "icon_id": "17606303", + "name": "分组", + "font_class": "fenzu", + "unicode": "e6ab", + "unicode_decimal": 59051 + }, + { + "icon_id": "17606304", + "name": "购物", + "font_class": "gouwu", + "unicode": "e6ac", + "unicode_decimal": 59052 + }, + { + "icon_id": "17606305", + "name": "表格", + "font_class": "biaoge", + "unicode": "e6ad", + "unicode_decimal": 59053 + }, + { + "icon_id": "17606306", + "name": "导入", + "font_class": "daoru", + "unicode": "e6ae", + "unicode_decimal": 59054 + }, + { + "icon_id": "17606307", + "name": "公告", + "font_class": "gonggao", + "unicode": "e6af", + "unicode_decimal": 59055 + }, + { + "icon_id": "17606308", + "name": "对话-2", + "font_class": "duihua-2", + "unicode": "e6b0", + "unicode_decimal": 59056 + }, + { + "icon_id": "17606309", + "name": "关系图", + "font_class": "guanxitu", + "unicode": "e6b1", + "unicode_decimal": 59057 + }, + { + "icon_id": "17606310", + "name": "对话", + "font_class": "duihua", + "unicode": "e6b2", + "unicode_decimal": 59058 + }, + { + "icon_id": "17606311", + "name": "服务器", + "font_class": "fuwuqi", + "unicode": "e6b3", + "unicode_decimal": 59059 + }, + { + "icon_id": "17606312", + "name": "复杂网络", + "font_class": "fuzawangluo", + "unicode": "e6b4", + "unicode_decimal": 59060 + }, + { + "icon_id": "17606313", + "name": "标签", + "font_class": "biaoqian", + "unicode": "e6b5", + "unicode_decimal": 59061 + }, + { + "icon_id": "17606314", + "name": "工具", + "font_class": "gongju", + "unicode": "e6b6", + "unicode_decimal": 59062 + }, + { + "icon_id": "17606315", + "name": "建模-减", + "font_class": "jianmo-jian", + "unicode": "e6b7", + "unicode_decimal": 59063 + }, + { + "icon_id": "17606316", + "name": "监控", + "font_class": "jiankong", + "unicode": "e6b8", + "unicode_decimal": 59064 + }, + { + "icon_id": "17606317", + "name": "解锁", + "font_class": "jiesuo", + "unicode": "e6b9", + "unicode_decimal": 59065 + }, + { + "icon_id": "17606318", + "name": "建模", + "font_class": "jianmo", + "unicode": "e6ba", + "unicode_decimal": 59066 + }, + { + "icon_id": "17606319", + "name": "缓存", + "font_class": "huancun", + "unicode": "e6bb", + "unicode_decimal": 59067 + }, + { + "icon_id": "17606320", + "name": "尽调精灵", + "font_class": "jintiaojingling", + "unicode": "e6bc", + "unicode_decimal": 59068 + }, + { + "icon_id": "17606321", + "name": "建模-增", + "font_class": "jianmo-zeng", + "unicode": "e6bd", + "unicode_decimal": 59069 + }, + { + "icon_id": "17606322", + "name": "卡片", + "font_class": "kapian", + "unicode": "e6be", + "unicode_decimal": 59070 + }, + { + "icon_id": "17606323", + "name": "警报-2", + "font_class": "jingbao-2", + "unicode": "e6bf", + "unicode_decimal": 59071 + }, + { + "icon_id": "17606324", + "name": "流程", + "font_class": "liucheng", + "unicode": "e6c0", + "unicode_decimal": 59072 + }, + { + "icon_id": "17606325", + "name": "计费管理", + "font_class": "jifeiguanli", + "unicode": "e6c1", + "unicode_decimal": 59073 + }, + { + "icon_id": "17606326", + "name": "链接", + "font_class": "lianjie", + "unicode": "e6c2", + "unicode_decimal": 59074 + }, + { + "icon_id": "17606327", + "name": "接入管理", + "font_class": "jieruguanli", + "unicode": "e6c3", + "unicode_decimal": 59075 + }, + { + "icon_id": "17606328", + "name": "警报", + "font_class": "jingbao", + "unicode": "e6c4", + "unicode_decimal": 59076 + }, + { + "icon_id": "17606329", + "name": "录音", + "font_class": "luyin", + "unicode": "e6c5", + "unicode_decimal": 59077 + }, + { + "icon_id": "17606330", + "name": "雷达图", + "font_class": "leidatu", + "unicode": "e6c6", + "unicode_decimal": 59078 + }, + { + "icon_id": "17606331", + "name": "密码", + "font_class": "mima", + "unicode": "e6c7", + "unicode_decimal": 59079 + }, + { + "icon_id": "17606332", + "name": "流量", + "font_class": "liuliang", + "unicode": "e6c8", + "unicode_decimal": 59080 + }, + { + "icon_id": "17606333", + "name": "倒计时", + "font_class": "daojishi", + "unicode": "e6c9", + "unicode_decimal": 59081 + }, + { + "icon_id": "17606334", + "name": "回收", + "font_class": "huishou", + "unicode": "e6ca", + "unicode_decimal": 59082 + }, + { + "icon_id": "17606335", + "name": "任务", + "font_class": "renwu", + "unicode": "e6cb", + "unicode_decimal": 59083 + }, + { + "icon_id": "17606336", + "name": "日历", + "font_class": "rili", + "unicode": "e6cc", + "unicode_decimal": 59084 + }, + { + "icon_id": "17606338", + "name": "散点图", + "font_class": "sandiantu", + "unicode": "e6cd", + "unicode_decimal": 59085 + }, + { + "icon_id": "17606340", + "name": "内容安全", + "font_class": "neironganquan", + "unicode": "e6ce", + "unicode_decimal": 59086 + }, + { + "icon_id": "17606341", + "name": "漏斗图", + "font_class": "loudoutu", + "unicode": "e6cf", + "unicode_decimal": 59087 + }, + { + "icon_id": "17606342", + "name": "情报监控", + "font_class": "qingbaojiankong", + "unicode": "e6d0", + "unicode_decimal": 59088 + }, + { + "icon_id": "17606343", + "name": "模型管理", + "font_class": "moxingguanli", + "unicode": "e6d1", + "unicode_decimal": 59089 + }, + { + "icon_id": "17606344", + "name": "企智查", + "font_class": "qizhicha", + "unicode": "e6d2", + "unicode_decimal": 59090 + }, + { + "icon_id": "17606345", + "name": "上传", + "font_class": "shangchuan", + "unicode": "e6d3", + "unicode_decimal": 59091 + }, + { + "icon_id": "17606346", + "name": "书签", + "font_class": "shuqian", + "unicode": "e6d4", + "unicode_decimal": 59092 + }, + { + "icon_id": "17606347", + "name": "数据", + "font_class": "shuju", + "unicode": "e6d5", + "unicode_decimal": 59093 + }, + { + "icon_id": "17606348", + "name": "收藏", + "font_class": "shoucang", + "unicode": "e6d6", + "unicode_decimal": 59094 + }, + { + "icon_id": "17606349", + "name": "设置", + "font_class": "shezhi", + "unicode": "e6d7", + "unicode_decimal": 59095 + }, + { + "icon_id": "17606350", + "name": "视觉关闭", + "font_class": "shijueguanbi", + "unicode": "e6d8", + "unicode_decimal": 59096 + }, + { + "icon_id": "17606351", + "name": "视觉显示", + "font_class": "shijuexianshi", + "unicode": "e6d9", + "unicode_decimal": 59097 + }, + { + "icon_id": "17606352", + "name": "首页", + "font_class": "shouye", + "unicode": "e6da", + "unicode_decimal": 59098 + }, + { + "icon_id": "17606353", + "name": "提醒", + "font_class": "tixing", + "unicode": "e6db", + "unicode_decimal": 59099 + }, + { + "icon_id": "17606354", + "name": "刷新-2", + "font_class": "shuaxin-2", + "unicode": "e6dc", + "unicode_decimal": 59100 + }, + { + "icon_id": "17606355", + "name": "搜索", + "font_class": "sousuo", + "unicode": "e6dd", + "unicode_decimal": 59101 + }, + { + "icon_id": "17606356", + "name": "通道", + "font_class": "tongdao", + "unicode": "e6de", + "unicode_decimal": 59102 + }, + { + "icon_id": "17606357", + "name": "条形图", + "font_class": "tiaoxingtu", + "unicode": "e6df", + "unicode_decimal": 59103 + }, + { + "icon_id": "17606358", + "name": "刷新", + "font_class": "shuaxin", + "unicode": "e6e0", + "unicode_decimal": 59104 + }, + { + "icon_id": "17606359", + "name": "数据库", + "font_class": "shujuku", + "unicode": "e6e1", + "unicode_decimal": 59105 + }, + { + "icon_id": "17606360", + "name": "图像", + "font_class": "tuxiang", + "unicode": "e6e2", + "unicode_decimal": 59106 + }, + { + "icon_id": "17606361", + "name": "文件同步", + "font_class": "wenjiantongbu", + "unicode": "e6e3", + "unicode_decimal": 59107 + }, + { + "icon_id": "17606362", + "name": "相机", + "font_class": "xiangji", + "unicode": "e6e4", + "unicode_decimal": 59108 + }, + { + "icon_id": "17606363", + "name": "箱型图", + "font_class": "xiangxingtu", + "unicode": "e6e5", + "unicode_decimal": 59109 + }, + { + "icon_id": "17606364", + "name": "文件搜索", + "font_class": "wenjiansousuo", + "unicode": "e6e6", + "unicode_decimal": 59110 + }, + { + "icon_id": "17606365", + "name": "统计", + "font_class": "tongji", + "unicode": "e6e7", + "unicode_decimal": 59111 + }, + { + "icon_id": "17606366", + "name": "项目", + "font_class": "xiangmu", + "unicode": "e6e8", + "unicode_decimal": 59112 + }, + { + "icon_id": "17606367", + "name": "验证码", + "font_class": "yanzhengma", + "unicode": "e6e9", + "unicode_decimal": 59113 + }, + { + "icon_id": "17606368", + "name": "信息校验", + "font_class": "xinxixiaoyan", + "unicode": "e6ea", + "unicode_decimal": 59114 + }, + { + "icon_id": "17606369", + "name": "下载", + "font_class": "xiazai", + "unicode": "e6eb", + "unicode_decimal": 59115 + }, + { + "icon_id": "17606370", + "name": "移动端", + "font_class": "yidongduan", + "unicode": "e6ec", + "unicode_decimal": 59116 + }, + { + "icon_id": "17606371", + "name": "信贷服务", + "font_class": "xindaifuwu", + "unicode": "e6ed", + "unicode_decimal": 59117 + }, + { + "icon_id": "17606372", + "name": "邮件", + "font_class": "youjian", + "unicode": "e6ee", + "unicode_decimal": 59118 + }, + { + "icon_id": "17606373", + "name": "业务指标", + "font_class": "yewuzhibiao", + "unicode": "e6ef", + "unicode_decimal": 59119 + }, + { + "icon_id": "17606374", + "name": "用户", + "font_class": "yonghu", + "unicode": "e6f0", + "unicode_decimal": 59120 + }, + { + "icon_id": "17606375", + "name": "仪表盘", + "font_class": "yibiaopan", + "unicode": "e6f1", + "unicode_decimal": 59121 + }, + { + "icon_id": "17606376", + "name": "应用中心", + "font_class": "yingyongzhongxin", + "unicode": "e6f2", + "unicode_decimal": 59122 + }, + { + "icon_id": "17606377", + "name": "账户安全", + "font_class": "zhanghuanquan", + "unicode": "e6f3", + "unicode_decimal": 59123 + }, + { + "icon_id": "17606378", + "name": "折线图", + "font_class": "zhexiantu", + "unicode": "e6f4", + "unicode_decimal": 59124 + } + ] +} diff --git a/src/components/icons-select/icons.ts b/src/components/icons-select/icons.ts deleted file mode 100644 index 3d7b5fa80..000000000 --- a/src/components/icons-select/icons.ts +++ /dev/null @@ -1,190 +0,0 @@ -// 阿里图标库,浏览器控制台运行一下代码获取图标列表 -// const iconlist = document.querySelectorAll('.project-iconlist li') -// const icons = [...iconlist].map(item => ({ -// title: item.querySelector('.icon-name').textContent, -// code: item.querySelector('.icon-code-show').textContent, -// })) -// console.log(JSON.stringify(icons)) - -export default [ - { title: '读取数据库', code: 'icon-duqushujuku' }, - { title: 'icon_使用文档', code: 'icon-icon_shiyongwendang' }, - { title: 'ant-design', code: 'icon-ant-design' }, - { title: 'guide', code: 'icon-guide' }, - { title: '定时任务管理', code: 'icon-dingshirenwuguanli' }, - { title: '监控', code: 'icon-jiankong1' }, - { title: '在线用户监控', code: 'icon-zaixianyonghujiankong' }, - { title: '日志', code: 'icon-rizhi1' }, - { title: '角色权限', code: 'icon-jiaosequanxian' }, - { title: '链接', code: 'icon-externa-link' }, - { title: '柱状图', code: 'icon-zhuzhuangtu' }, - { title: '烛型图', code: 'icon-zhuxingtu' }, - { title: 'BUG', code: 'icon-BUG' }, - { title: '桌面', code: 'icon-zhuomian' }, - { title: '组件使用', code: 'icon-zujianshiyong' }, - { title: '资源', code: 'icon-ziyuan' }, - { title: '字段管理', code: 'icon-ziduanguanli' }, - { title: '云', code: 'icon-yun' }, - { title: '分享', code: 'icon-fenxiang' }, - { title: '计算', code: 'icon-jisuan' }, - { title: '客户管理', code: 'icon-kehuguanli' }, - { title: '决策引擎', code: 'icon-jueceyinqing' }, - { title: '流程', code: 'icon-liucheng1' }, - { title: '脚本', code: 'icon-jiaoben' }, - { title: '工程', code: 'icon-gongcheng' }, - { title: '刷子-2', code: 'icon-shuazi-2' }, - { title: '权限', code: 'icon-quanxian' }, - { title: '刷子-1', code: 'icon-shuazi-1' }, - { title: '文件', code: 'icon-wenjian' }, - { title: '文件-增', code: 'icon-wenjian-zeng' }, - { title: '文件-展开', code: 'icon-wenjian-zhankai' }, - { title: '推送', code: 'icon-tuisong' }, - { title: '纸箱', code: 'icon-zhixiang' }, - { title: '运维', code: 'icon-yunwei' }, - { title: '数据库', code: 'icon-shujuku1' }, - { title: '文件-展现', code: 'icon-wenjian-zhanxian' }, - { title: '文档', code: 'icon-wendang' }, - { title: '复制', code: 'icon-fuzhi' }, - { title: '用户', code: 'icon-yonghu1' }, - { title: '放大', code: 'icon-fangda' }, - { title: '减少', code: 'icon-jianshao' }, - { title: '编辑', code: 'icon-bianji' }, - { title: '缩小', code: 'icon-suoxiao' }, - { title: '删除', code: 'icon-shanchu' }, - { title: '矩形-错误', code: 'icon-juxing-cuowu' }, - { title: '矩形-减', code: 'icon-juxing-jian' }, - { title: '矩形-更多', code: 'icon-juxing-gengduo' }, - { title: '矩形-增', code: 'icon-juxing-zeng' }, - { title: '矩形-右', code: 'icon-juxing-you' }, - { title: '矩形-文本', code: 'icon-juxing-wenben' }, - { title: '矩形-通过', code: 'icon-juxing-tongguo' }, - { title: '圆环-更多', code: 'icon-yuanhuan-gengduo' }, - { title: '圆环-确认', code: 'icon-yuanhuan-queren' }, - { title: '圆环-关闭', code: 'icon-yuanhuan-guanbi' }, - { title: '圆环-减', code: 'icon-yuanhuan-jian' }, - { title: '圆环-消息', code: 'icon-yuanhuan-xiaoxi' }, - { title: '圆环-增', code: 'icon-yuanhuan-zeng' }, - { title: '圆环-暂停', code: 'icon-yuanhuan-zanting' }, - { title: '圆环-左', code: 'icon-yuanhuan-zuo' }, - { title: '矩形-左', code: 'icon-juxing-zuo' }, - { title: '圆环-时间', code: 'icon-yuanhuan-shijian' }, - { title: '圆环-疑问', code: 'icon-yuanhuan-yiwen' }, - { title: '圆环-右', code: 'icon-yuanhuan-you' }, - { title: '圆环-减', code: 'icon-yuanhuan-jian1' }, - { title: '矩形-右', code: 'icon-juxing-you1' }, - { title: '矩形-通过', code: 'icon-juxing-tongguo1' }, - { title: '矩形-错误', code: 'icon-juxing-cuowu1' }, - { title: '矩形-减', code: 'icon-juxing-jian1' }, - { title: '矩形-增', code: 'icon-juxing-zeng1' }, - { title: '圆环-增', code: 'icon-yuanhuan-zeng1' }, - { title: '圆环-左', code: 'icon-yuanhuan-zuo1' }, - { title: '圆环-右', code: 'icon-yuanhuan-you1' }, - { title: '圆环-关闭', code: 'icon-yuanhuan-guanbi1' }, - { title: '矩形-左', code: 'icon-juxing-zuo1' }, - { title: '圆环-确认', code: 'icon-yuanhuan-queren1' }, - { title: '圆环-暂停', code: 'icon-yuanhuan-zanting1' }, - { title: '后退', code: 'icon-houtui' }, - { title: '方向上', code: 'icon-fangxiangshang' }, - { title: '方向右', code: 'icon-fangxiangyou' }, - { title: '方向下', code: 'icon-fangxiangxia' }, - { title: '菜单左', code: 'icon-caidanzuo' }, - { title: '快进', code: 'icon-kuaijin' }, - { title: '上传', code: 'icon-shangchuan1' }, - { title: '下载', code: 'icon-xiazai1' }, - { title: '替换', code: 'icon-tihuan' }, - { title: '方向左', code: 'icon-fangxiangzuo' }, - { title: '收缩', code: 'icon-shousuo' }, - { title: '菜单右', code: 'icon-caidanyou' }, - { title: '展开', code: 'icon-zhankai' }, - { title: '警告', code: 'icon-jinggao' }, - { title: '提醒-警告', code: 'icon-tixing-jinggao' }, - { title: '错误', code: 'icon-cuowu' }, - { title: '对话-警告', code: 'icon-duihua-jinggao' }, - { title: '同盾', code: 'icon-tongdun' }, - { title: '调用', code: 'icon-tiaoyong' }, - { title: '日志', code: 'icon-rizhi' }, - { title: '日志-2', code: 'icon-rizhi-2' }, - { title: '饼图', code: 'icon-bingtu' }, - { title: '案件管理', code: 'icon-anjianguanli' }, - { title: '布局', code: 'icon-buju' }, - { title: '保存', code: 'icon-baocun' }, - { title: '定位', code: 'icon-dingwei' }, - { title: '灯泡', code: 'icon-dengpao' }, - { title: '短信保护', code: 'icon-duanxinbaohu' }, - { title: '导出', code: 'icon-daochu' }, - { title: '安全', code: 'icon-anquan' }, - { title: '分组', code: 'icon-fenzu' }, - { title: '购物', code: 'icon-gouwu' }, - { title: '表格', code: 'icon-biaoge' }, - { title: '导入', code: 'icon-daoru' }, - { title: '公告', code: 'icon-gonggao' }, - { title: '对话-2', code: 'icon-duihua-2' }, - { title: '关系图', code: 'icon-guanxitu' }, - { title: '对话', code: 'icon-duihua' }, - { title: '服务器', code: 'icon-fuwuqi' }, - { title: '复杂网络', code: 'icon-fuzawangluo' }, - { title: '标签', code: 'icon-biaoqian' }, - { title: '工具', code: 'icon-gongju' }, - { title: '建模-减', code: 'icon-jianmo-jian' }, - { title: '监控', code: 'icon-jiankong' }, - { title: '解锁', code: 'icon-jiesuo' }, - { title: '建模', code: 'icon-jianmo' }, - { title: '缓存', code: 'icon-huancun' }, - { title: '尽调精灵', code: 'icon-jintiaojingling' }, - { title: '建模-增', code: 'icon-jianmo-zeng' }, - { title: '卡片', code: 'icon-kapian' }, - { title: '警报-2', code: 'icon-jingbao-2' }, - { title: '流程', code: 'icon-liucheng' }, - { title: '计费管理', code: 'icon-jifeiguanli' }, - { title: '链接', code: 'icon-lianjie' }, - { title: '接入管理', code: 'icon-jieruguanli' }, - { title: '警报', code: 'icon-jingbao' }, - { title: '录音', code: 'icon-luyin' }, - { title: '雷达图', code: 'icon-leidatu' }, - { title: '密码', code: 'icon-mima' }, - { title: '流量', code: 'icon-liuliang' }, - { title: '倒计时', code: 'icon-daojishi' }, - { title: '回收', code: 'icon-huishou' }, - { title: '任务', code: 'icon-renwu' }, - { title: '日历', code: 'icon-rili' }, - { title: '散点图', code: 'icon-sandiantu' }, - { title: '内容安全', code: 'icon-neironganquan' }, - { title: '漏斗图', code: 'icon-loudoutu' }, - { title: '情报监控', code: 'icon-qingbaojiankong' }, - { title: '模型管理', code: 'icon-moxingguanli' }, - { title: '企智查', code: 'icon-qizhicha' }, - { title: '上传', code: 'icon-shangchuan' }, - { title: '书签', code: 'icon-shuqian' }, - { title: '数据', code: 'icon-shuju' }, - { title: '收藏', code: 'icon-shoucang' }, - { title: '设置', code: 'icon-shezhi' }, - { title: '视觉关闭', code: 'icon-shijueguanbi' }, - { title: '视觉显示', code: 'icon-shijuexianshi' }, - { title: '首页', code: 'icon-shouye' }, - { title: '提醒', code: 'icon-tixing' }, - { title: '刷新-2', code: 'icon-shuaxin-2' }, - { title: '搜索', code: 'icon-sousuo' }, - { title: '通道', code: 'icon-tongdao' }, - { title: '条形图', code: 'icon-tiaoxingtu' }, - { title: '刷新', code: 'icon-shuaxin' }, - { title: '数据库', code: 'icon-shujuku' }, - { title: '图像', code: 'icon-tuxiang' }, - { title: '文件同步', code: 'icon-wenjiantongbu' }, - { title: '相机', code: 'icon-xiangji' }, - { title: '箱型图', code: 'icon-xiangxingtu' }, - { title: '文件搜索', code: 'icon-wenjiansousuo' }, - { title: '统计', code: 'icon-tongji' }, - { title: '项目', code: 'icon-xiangmu' }, - { title: '验证码', code: 'icon-yanzhengma' }, - { title: '信息校验', code: 'icon-xinxixiaoyan' }, - { title: '下载', code: 'icon-xiazai' }, - { title: '移动端', code: 'icon-yidongduan' }, - { title: '信贷服务', code: 'icon-xindaifuwu' }, - { title: '邮件', code: 'icon-youjian' }, - { title: '业务指标', code: 'icon-yewuzhibiao' }, - { title: '用户', code: 'icon-yonghu' }, - { title: '仪表盘', code: 'icon-yibiaopan' }, - { title: '应用中心', code: 'icon-yingyongzhongxin' }, - { title: '账户安全', code: 'icon-zhanghuanquan' }, - { title: '折线图', code: 'icon-zhexiantu' }, -]; diff --git a/src/components/icons-select/index.vue b/src/components/icons-select/index.vue index 98d173ca3..7658c4da5 100644 --- a/src/components/icons-select/index.vue +++ b/src/components/icons-select/index.vue @@ -2,14 +2,14 @@