diff --git a/package.json b/package.json index 7a9dddb..e7147e5 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "babel-polyfill": "^6.26.0", "classlist-polyfill": "^1.2.0", "crypto-js": "^4.0.0", + "echarts": "^5.4.1", "element-ui": "^2.15.6", "js-base64": "^2.5.1", "js-cookie": "^2.2.0", diff --git a/src/api/maintenance/database.js b/src/api/maintenance/database.js new file mode 100644 index 0000000..ed216d2 --- /dev/null +++ b/src/api/maintenance/database.js @@ -0,0 +1,26 @@ +import request from '@/router/axios'; +const prefix = '/api/blade-workflow/database' +// 查询 +export const getList = (query) => { + return request({ + url: `${prefix}/list`, + method: 'get', + params:query + }) +} +// 下载模板 +export const dowmLoadTemplate = () => { + return request({ + url: `${prefix}/exportTemplate`, + method: 'get', + responseType: 'blob' + }) +} + +// 数据库类型 +export const getDatabaseType = () => { + return request({ + url: "/api/blade-system/dict-biz/dictionary?code=database_type", + method: "get", + }) +} \ No newline at end of file diff --git a/src/assets/img/wel/1.png b/src/assets/img/wel/1.png new file mode 100644 index 0000000..cf8b978 Binary files /dev/null and b/src/assets/img/wel/1.png differ diff --git a/src/assets/img/wel/2.png b/src/assets/img/wel/2.png new file mode 100644 index 0000000..fded551 Binary files /dev/null and b/src/assets/img/wel/2.png differ diff --git a/src/assets/img/wel/3.png b/src/assets/img/wel/3.png new file mode 100644 index 0000000..5032aac Binary files /dev/null and b/src/assets/img/wel/3.png differ diff --git a/src/assets/img/wel/4.png b/src/assets/img/wel/4.png new file mode 100644 index 0000000..1a22547 Binary files /dev/null and b/src/assets/img/wel/4.png differ diff --git a/src/const/maintenance/database.js b/src/const/maintenance/database.js new file mode 100644 index 0000000..c8133a5 --- /dev/null +++ b/src/const/maintenance/database.js @@ -0,0 +1,93 @@ +export const tableOption = { + index: true, + indexLabel: "序号", + indexWidth: 120, + labelPosition: "top", + selection: false, + border: false, + headerAlign: "left", + align: "left", + menuAlign: "left", + menuHeaderAlign: "left", + menuBtn: true, + editBtn: false, + delBtn: false, + addBtn: false, + tip: false, + searchMenuSpan: 3, //控制搜索按钮 + columnBtn: false, + refreshBtn: false, + header: false, + menuWidth: 220, + dialogCustomClass: "custom", + menu: false, + column: [ + + { + label: "IP地址", + prop: "dataBaseIp", + type: "input", + align: "left", + }, + { + label: "端口号", + prop: "dataBasePort", + type: "input", + align: "left", + }, + { + label: "数据库实例", + prop: "dataBaseName", + type: "input", + align: "left", + }, + { + label: "数据库类型", + prop: "dataBaseType", + type: "input", + align: "left", + }, + { + label: "数据库中文名", + prop: "dataBaseAlias", + type: "input", + align: "left", + }, + { + label: "系统名称", + prop: "systemName", + type: "input", + align: "left", + }, + { + label: "模块名称", + prop: "systemModuleName", + type: "input", + align: "left", + }, + { + label: "管理部门", + prop: "deptName", + type: "input", + align: "left", + }, + { + label: "运维公司", + prop: "companyName", + type: "input", + align: "left", + }, + { + label: "表名", + prop: "dataTableName", + type: "input", + align: "left", + }, + { + label: "中文表别名", + prop: "dataTableAlias", + type: "input", + align: "left", + }, + ], +}; diff --git a/src/main.js b/src/main.js index 3182e06..342ea04 100644 --- a/src/main.js +++ b/src/main.js @@ -25,7 +25,8 @@ import website from '@/config/website'; import crudCommon from '@/mixins/crud'; // 业务组件 import tenantPackage from './views/system/tenantpackage'; - +import * as echarts from 'echarts'; +Vue.prototype.$echarts = echarts // 注册全局crud驱动 window.$crudCommon = crudCommon; // 加载Vue拓展 diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue index 6ca2d88..358b526 100644 --- a/src/page/index/top/index.vue +++ b/src/page/index/top/index.vue @@ -1,6 +1,6 @@ - -