diff --git a/scaleph-dao/src/main/java/cn/sliew/scaleph/dao/entity/master/resource/ResourceJar.java b/scaleph-dao/src/main/java/cn/sliew/scaleph/dao/entity/master/resource/ResourceJar.java
index aa4a6e076..efb540509 100644
--- a/scaleph-dao/src/main/java/cn/sliew/scaleph/dao/entity/master/resource/ResourceJar.java
+++ b/scaleph-dao/src/main/java/cn/sliew/scaleph/dao/entity/master/resource/ResourceJar.java
@@ -36,9 +36,6 @@ public class ResourceJar extends BaseDO {
private static final long serialVersionUID = 1L;
- @TableField("`group`")
- private String group;
-
@TableField("file_name")
private String fileName;
diff --git a/scaleph-dao/src/main/resources/cn/sliew/scaleph/dao/mapper/master/resource/ResourceJarMapper.xml b/scaleph-dao/src/main/resources/cn/sliew/scaleph/dao/mapper/master/resource/ResourceJarMapper.xml
index 2364ba333..6e7d0f43b 100644
--- a/scaleph-dao/src/main/resources/cn/sliew/scaleph/dao/mapper/master/resource/ResourceJarMapper.xml
+++ b/scaleph-dao/src/main/resources/cn/sliew/scaleph/dao/mapper/master/resource/ResourceJarMapper.xml
@@ -26,7 +26,6 @@
-
@@ -35,7 +34,7 @@
id, creator, create_time, editor, update_time,
- `group`, file_name, `path`, remark
+ file_name, `path`, remark
diff --git a/scaleph-dao/src/main/resources/cn/sliew/scaleph/dao/mapper/master/security/SecUserRoleMapper.xml b/scaleph-dao/src/main/resources/cn/sliew/scaleph/dao/mapper/master/security/SecUserRoleMapper.xml
index 614cfd678..bad8979d4 100644
--- a/scaleph-dao/src/main/resources/cn/sliew/scaleph/dao/mapper/master/security/SecUserRoleMapper.xml
+++ b/scaleph-dao/src/main/resources/cn/sliew/scaleph/dao/mapper/master/security/SecUserRoleMapper.xml
@@ -37,7 +37,7 @@
sec_user t1
JOIN sec_user_role t2 ON t1.id = t2.user_id
WHERE
- t2.role_id = 1
+ t2.role_id = #{roleId}
AND t1.`status` = #{status}
diff --git a/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/convert/JarConvert.java b/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/convert/JarConvert.java
index f9926b77d..fe2133e56 100644
--- a/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/convert/JarConvert.java
+++ b/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/convert/JarConvert.java
@@ -35,8 +35,7 @@ public interface JarConvert extends BaseConvert {
default JarListParam convert(ResourceListParam param) {
JarListParam target = BeanUtil.copy(param, new JarListParam());
- target.setGroup(param.getLabel());
- target.setFileName(param.getName());
+ target.setFileName(param.getLabel());
return target;
}
diff --git a/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/impl/JarServiceImpl.java b/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/impl/JarServiceImpl.java
index 3d30430dc..675fa17c8 100644
--- a/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/impl/JarServiceImpl.java
+++ b/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/impl/JarServiceImpl.java
@@ -80,7 +80,6 @@ public Page list(JarListParam param) throws IOException {
final Page page = jarMapper.selectPage(
new Page<>(param.getCurrent(), param.getPageSize()),
Wrappers.lambdaQuery(ResourceJar.class)
- .eq(StringUtils.hasText(param.getGroup()), ResourceJar::getGroup, param.getGroup())
.like(StringUtils.hasText(param.getFileName()), ResourceJar::getFileName, param.getFileName()));
Page result =
new Page<>(page.getCurrent(), page.getSize(), page.getTotal());
@@ -101,7 +100,7 @@ public void upload(JarUploadParam param, MultipartFile file) throws IOException
String fileName = file.getOriginalFilename();
Path path = null;
try (InputStream inputStream = file.getInputStream()) {
- path = fileSystemService.upload(inputStream, getJarPath(param.getGroup(), fileName));
+ path = fileSystemService.upload(inputStream, getJarPath(fileName));
}
ResourceJar record = new ResourceJar();
BeanUtils.copyProperties(param, record);
@@ -134,11 +133,10 @@ public void delete(Long id) throws IOException {
jarMapper.deleteById(id);
}
- private String getJarPath(String group, String fileName) {
- return String.format("%s/%s/%s", getJarRootPath(), group, fileName);
+ private String getJarPath(String fileName) {
+ return String.format("%s/%s", getJarRootPath(), fileName);
}
-
private String getJarRootPath() {
return "jar";
}
diff --git a/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/param/JarListParam.java b/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/param/JarListParam.java
index 4ae6c32d8..27d553528 100644
--- a/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/param/JarListParam.java
+++ b/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/param/JarListParam.java
@@ -27,9 +27,6 @@
@EqualsAndHashCode(callSuper = true)
public class JarListParam extends PaginationParam {
- @Schema(description = "jar group")
- private String group;
-
@Schema(description = "文件名称。支持模糊匹配")
private String fileName;
diff --git a/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/param/JarUploadParam.java b/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/param/JarUploadParam.java
index 127599d71..11ec99ef2 100644
--- a/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/param/JarUploadParam.java
+++ b/scaleph-resource/src/main/java/cn/sliew/scaleph/resource/service/param/JarUploadParam.java
@@ -21,15 +21,9 @@
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
-import javax.validation.constraints.NotBlank;
-
@Data
public class JarUploadParam {
-
- @NotBlank
- @Schema(description = "jar group")
- private String group;
-
+
@Schema(description = "备注")
private String remark;
}
diff --git a/scaleph-ui-react/config/routes.ts b/scaleph-ui-react/config/routes.ts
index 1fcc0a931..a68cb2902 100644
--- a/scaleph-ui-react/config/routes.ts
+++ b/scaleph-ui-react/config/routes.ts
@@ -150,6 +150,13 @@ export default [
pCode: PRIVILEGE_CODE.workspaceClusterConfigShow,
access: 'normalRouteFilter'
},
+ {
+ path: '/workspace/flink/kubernetes/template/steps',
+ exact: true,
+ component: './Project/Workspace/Kubernetes/Template/Steps',
+ pCode: PRIVILEGE_CODE.workspaceClusterConfigShow,
+ access: 'normalRouteFilter'
+ },
{
path: '/workspace/flink/kubernetes/template/detail',
exact: true,
diff --git a/scaleph-ui-react/src/locales/zh-CN/pages/project.ts b/scaleph-ui-react/src/locales/zh-CN/pages/project.ts
index a6c40469c..d06611bde 100644
--- a/scaleph-ui-react/src/locales/zh-CN/pages/project.ts
+++ b/scaleph-ui-react/src/locales/zh-CN/pages/project.ts
@@ -818,11 +818,12 @@ export default {
// Sql
'pages.project.di.step.sql.query': 'SQL',
- 'pages.project.flink.kubernetes.deployment.template': 'Deployment Template',
- 'pages.project.flink.kubernetes.deployment.template.name': '名称',
- 'pages.project.flink.kubernetes.deployment.template.deploymentKind': '部署模式',
- 'pages.project.flink.kubernetes.deployment.template.namespace': 'Namespace',
- 'pages.project.flink.kubernetes.deployment.template.define': '模板定义',
+ 'pages.project.flink.kubernetes.template': 'Template',
+ 'pages.project.flink.kubernetes.template.name': '名称',
+ 'pages.project.flink.kubernetes.template.deploymentKind': '部署模式',
+ 'pages.project.flink.kubernetes.template.namespace': 'Namespace',
+ 'pages.project.flink.kubernetes.template.detail': '模板详情',
+ 'pages.project.flink.kubernetes.template.step.base': '基础信息',
'pages.project.flink.kubernetes.template.step.advanced.configOptions': 'ConfigOption',
'pages.project.flink.kubernetes.template.step.advanced.configOptions.key': 'Config',
'pages.project.flink.kubernetes.template.step.advanced.configOptions.value': 'Value',
diff --git a/scaleph-ui-react/src/locales/zh-CN/pages/resource.ts b/scaleph-ui-react/src/locales/zh-CN/pages/resource.ts
index 9ba8a5ad3..b1972973f 100644
--- a/scaleph-ui-react/src/locales/zh-CN/pages/resource.ts
+++ b/scaleph-ui-react/src/locales/zh-CN/pages/resource.ts
@@ -21,7 +21,6 @@ export default {
'YARN 上传 core-site.xml 和 hdfs-site.xml, ' +
'Kubernetes 上传 kubeconfig 文件',
'pages.resource.jar': '公共 Jar',
- 'pages.resource.jar.group': 'Group',
'pages.resource.jar.file': 'Jar',
'pages.resource.jar.fileName': '文件名',
'pages.resource.jar.path': '存储路径',
diff --git a/scaleph-ui-react/src/models/project/workspace/kubernetes/template/flinkKubernetesTemplateDetail.ts b/scaleph-ui-react/src/models/project/workspace/kubernetes/template/flinkKubernetesTemplateDetail.ts
new file mode 100644
index 000000000..552ea1cd0
--- /dev/null
+++ b/scaleph-ui-react/src/models/project/workspace/kubernetes/template/flinkKubernetesTemplateDetail.ts
@@ -0,0 +1,55 @@
+import {WsFlinkKubernetesTemplate} from "@/services/project/typings";
+import { Reducer, Effect } from "umi";
+import {WsFlinkKubernetesTemplateService} from "@/services/project/WsFlinkKubernetesTemplateService";
+import YAML from "yaml";
+
+export interface StateType {
+ template: WsFlinkKubernetesTemplate,
+ templateYaml: string
+ templateYamlWithDefault: string
+}
+
+export interface ModelType {
+ namespace: string;
+
+ state: StateType;
+
+ effects: {
+ queryTemplate: Effect;
+ };
+
+ reducers: {
+ updateTemplate: Reducer;
+ };
+}
+
+const model: ModelType = {
+ namespace: "flinkKubernetesTemplateDetail",
+
+ state: {
+ template: null,
+ templateYaml: null,
+ templateYamlWithDefault: null
+ },
+
+ effects: {
+ *editTemplate({ payload }, { call, put }) {
+ const { data } = yield call(WsFlinkKubernetesTemplateService.asYaml, payload);
+ const response = yield call(WsFlinkKubernetesTemplateService.asYamlWithDefault, payload);
+ yield put({ type: 'updateTemplate', payload: {template: payload, templateYaml: YAML.stringify(data), templateYamlWithDefault: YAML.stringify(response.data)} });
+ },
+ },
+
+ reducers: {
+ updateTemplate(state, { payload }) {
+ return {
+ ...state,
+ template: payload.template,
+ templateYaml: payload.templateYaml,
+ templateYamlWithDefault: payload.templateYamlWithDefault,
+ };
+ },
+ },
+};
+
+export default model;
diff --git a/scaleph-ui-react/src/models/project/workspace/kubernetes/template/flinkKubernetesTemplateSteps.ts b/scaleph-ui-react/src/models/project/workspace/kubernetes/template/flinkKubernetesTemplateSteps.ts
new file mode 100644
index 000000000..0e17e8ebd
--- /dev/null
+++ b/scaleph-ui-react/src/models/project/workspace/kubernetes/template/flinkKubernetesTemplateSteps.ts
@@ -0,0 +1,55 @@
+import {WsFlinkKubernetesTemplate} from "@/services/project/typings";
+import { Reducer, Effect } from "umi";
+import {WsFlinkKubernetesTemplateService} from "@/services/project/WsFlinkKubernetesTemplateService";
+import YAML from "yaml";
+
+export interface StateType {
+ template: WsFlinkKubernetesTemplate,
+ templateYaml: string
+ templateYamlWithDefault: string
+}
+
+export interface ModelType {
+ namespace: string;
+
+ state: StateType;
+
+ effects: {
+ queryTemplate: Effect;
+ };
+
+ reducers: {
+ updateTemplate: Reducer;
+ };
+}
+
+const model: ModelType = {
+ namespace: "flinkKubernetesTemplateSteps",
+
+ state: {
+ template: null,
+ templateYaml: null,
+ templateYamlWithDefault: null
+ },
+
+ effects: {
+ *editTemplate({ payload }, { call, put }) {
+ const { data } = yield call(WsFlinkKubernetesTemplateService.asYaml, payload);
+ const response = yield call(WsFlinkKubernetesTemplateService.asYamlWithDefault, payload);
+ yield put({ type: 'updateTemplate', payload: {template: payload, templateYaml: YAML.stringify(data), templateYamlWithDefault: YAML.stringify(response.data)} });
+ },
+ },
+
+ reducers: {
+ updateTemplate(state, { payload }) {
+ return {
+ ...state,
+ template: payload.template,
+ templateYaml: payload.templateYaml,
+ templateYamlWithDefault: payload.templateYamlWithDefault,
+ };
+ },
+ },
+};
+
+export default model;
diff --git a/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/DeploymentTemplateForm.tsx b/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/DeploymentTemplateForm.tsx
index 42719af7a..b4a73f8e6 100644
--- a/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/DeploymentTemplateForm.tsx
+++ b/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/DeploymentTemplateForm.tsx
@@ -1,21 +1,19 @@
import {useIntl} from "umi";
import React from "react";
import {Form, message, Modal} from "antd";
-import {ProForm, ProFormDigit, ProFormRadio, ProFormSelect, ProFormText} from "@ant-design/pro-components";
+import {ProForm, ProFormDigit, ProFormRadio, ProFormText, ProFormTextArea} from "@ant-design/pro-components";
import {ModalFormProps} from '@/app.d';
import {WsFlinkKubernetesTemplate} from "@/services/project/typings";
-import {
- WsFlinkKubernetesTemplateService
-} from "@/services/project/WsFlinkKubernetesTemplateService";
+import {WsFlinkKubernetesTemplateService} from "@/services/project/WsFlinkKubernetesTemplateService";
import {DICT_TYPE, WORKSPACE_CONF} from "@/constant";
import {DictDataService} from "@/services/admin/dictData.service";
const DeploymentTemplateForm: React.FC> = ({
- data,
- visible,
- onVisibleChange,
- onCancel
- }) => {
+ data,
+ visible,
+ onVisibleChange,
+ onCancel
+ }) => {
const intl = useIntl();
const [form] = Form.useForm();
const projectId = localStorage.getItem(WORKSPACE_CONF.projectId);
@@ -26,9 +24,9 @@ const DeploymentTemplateForm: React.FC
title={
data.id
? intl.formatMessage({id: 'app.common.operate.edit.label'}) +
- intl.formatMessage({id: 'pages.project.flink.kubernetes.deployment.template'})
+ intl.formatMessage({id: 'pages.project.flink.kubernetes.template'})
: intl.formatMessage({id: 'app.common.operate.new.label'}) +
- intl.formatMessage({id: 'pages.project.flink.kubernetes.deployment.template'})
+ intl.formatMessage({id: 'pages.project.flink.kubernetes.template'})
}
width={580}
destroyOnClose={true}
@@ -72,22 +70,22 @@ const DeploymentTemplateForm: React.FC
DictDataService.listDictDataByType2(DICT_TYPE.deploymentKind)}
/>
-
diff --git a/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/Detail/Advanced/AdvancedBasic.tsx b/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/Detail/Advanced/AdvancedBasic.tsx
index 36dc79780..cabab286d 100644
--- a/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/Detail/Advanced/AdvancedBasic.tsx
+++ b/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/Detail/Advanced/AdvancedBasic.tsx
@@ -26,7 +26,7 @@ const AdvancedBasic: React.FC = () => {
name="image"
label={'image'}
colProps={{span: 10, offset: 1}}
- initialValue={"flink:1.16"}
+ initialValue={"flink:1.18"}
/>
{
{label: 'YAML', key: 'yaml', children: },
]
return (
-
+
diff --git a/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/Steps/BaseStepForm.tsx b/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/Steps/BaseStepForm.tsx
new file mode 100644
index 000000000..6832b384f
--- /dev/null
+++ b/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/Steps/BaseStepForm.tsx
@@ -0,0 +1,37 @@
+import React from "react";
+import {ProCard, ProFormDigit, ProFormSelect, ProFormText, ProFormTextArea} from "@ant-design/pro-components";
+import {useIntl} from "umi";
+import {DICT_TYPE} from "@/constant";
+import {DictDataService} from "@/services/admin/dictData.service";
+
+const FlinkKubernetesTemplateBase: React.FC = () => {
+ const intl = useIntl();
+
+ return (
+
+
+
+ DictDataService.listDictDataByType2(DICT_TYPE.deploymentKind)}
+ />
+
+
+
+ );
+}
+
+export default FlinkKubernetesTemplateBase;
diff --git a/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/Steps/index.tsx b/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/Steps/index.tsx
new file mode 100644
index 000000000..1efb5c334
--- /dev/null
+++ b/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/Steps/index.tsx
@@ -0,0 +1,86 @@
+import {connect, history, useIntl} from "umi";
+import React, {useRef} from "react";
+import {ProCard, ProFormInstance, StepsForm} from "@ant-design/pro-components";
+import {WORKSPACE_CONF} from "@/constant";
+import {WsDorisTemplate, WsFlinkKubernetesTemplate} from "@/services/project/typings";
+import {WsDorisTemplateService} from "@/services/project/WsDorisTemplateService";
+import FlinkKubernetesTemplateBase from "@/pages/Project/Workspace/Kubernetes/Template/Steps/BaseStepForm";
+
+const FlinkKubernetesTemplateSteps: React.FC = (props: any) => {
+ const intl = useIntl();
+ const formRef = useRef();
+ const localProjectId = localStorage.getItem(WORKSPACE_CONF.projectId);
+
+ const onBaseStepFinish = (values: Record) => {
+ const template: WsFlinkKubernetesTemplate = {
+ projectId: localProjectId,
+ deploymentKind: values.deploymentKind,
+ name: values.name,
+ namespace: values.namespace,
+ remark: values.remark,
+ }
+ editDorisTemplate(template)
+ return Promise.resolve(true)
+ }
+
+ const onComponentStepFinish = (values: Record) => {
+ try {
+ const template: WsDorisTemplate = WsDorisTemplateService.formatData(props.dorisTemplateSteps.template, values)
+ editDorisTemplate(template)
+ } catch (unused) {
+ }
+ return Promise.resolve(true)
+ }
+
+ const editDorisTemplate = (template: WsDorisTemplate) => {
+ props.dispatch({
+ type: 'flinkKubernetesTemplateSteps/editTemplate',
+ payload: template
+ })
+ }
+
+ const onAllFinish = (values: Record) => {
+ return WsDorisTemplateService.add(props.dorisTemplateSteps.template).then((response) => {
+ if (response.success) {
+ history.back()
+ }
+ })
+ }
+
+ return (
+
+
+
+
+
+ {/**/}
+ {/* */}
+ {/**/}
+ {/**/}
+ {/* */}
+ {/**/}
+
+
+ )
+}
+
+const mapModelToProps = ({flinkKubernetesTemplateSteps}: any) => ({flinkKubernetesTemplateSteps})
+export default connect(mapModelToProps)(FlinkKubernetesTemplateSteps);
diff --git a/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/index.tsx b/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/index.tsx
index 50146b105..efd4d9623 100644
--- a/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/index.tsx
+++ b/scaleph-ui-react/src/pages/Project/Workspace/Kubernetes/Template/index.tsx
@@ -25,11 +25,11 @@ const FlinkKubernetesDeploymentTemplateWeb: React.FC = () => {
const tableColumns: ProColumns[] = [
{
- title: intl.formatMessage({id: 'pages.project.flink.kubernetes.deployment.template.name'}),
+ title: intl.formatMessage({id: 'pages.project.flink.kubernetes.template.name'}),
dataIndex: 'name'
},
{
- title: intl.formatMessage({id: 'pages.project.flink.kubernetes.deployment.template.deploymentKind'}),
+ title: intl.formatMessage({id: 'pages.project.flink.kubernetes.template.deploymentKind'}),
dataIndex: 'deploymentKind',
width: 150,
render: (dom, entity) => {
@@ -46,7 +46,7 @@ const FlinkKubernetesDeploymentTemplateWeb: React.FC = () => {
}
},
{
- title: intl.formatMessage({id: 'pages.project.flink.kubernetes.deployment.template.namespace'}),
+ title: intl.formatMessage({id: 'pages.project.flink.kubernetes.template.namespace'}),
dataIndex: 'namespace',
hideInSearch: true,
width: 150
@@ -90,7 +90,7 @@ const FlinkKubernetesDeploymentTemplateWeb: React.FC = () => {
)}
{access.canAccess(PRIVILEGE_CODE.datadevJobEdit) && (
-
+
),
],
}}
- pagination={{ showQuickJumper: true, showSizeChanger: true, defaultPageSize: 10 }}
+ pagination={{showQuickJumper: true, showSizeChanger: true, defaultPageSize: 10}}
rowSelection={{
fixed: true,
onChange(selectedRowKeys, selectedRows, info) {
@@ -171,10 +167,10 @@ const JarResource: React.FC = () => {
{
- setJarData({ visiable: false, data: {} });
+ setJarData({visiable: false, data: {}});
}}
onVisibleChange={(visiable) => {
- setJarData({ visiable: visiable, data: {} });
+ setJarData({visiable: visiable, data: {}});
actionRef.current?.reload();
}}
data={jarFormData.data}
diff --git a/scaleph-ui-react/src/services/resource/jar.service.ts b/scaleph-ui-react/src/services/resource/jar.service.ts
index 666505a39..b7e2b9dcf 100644
--- a/scaleph-ui-react/src/services/resource/jar.service.ts
+++ b/scaleph-ui-react/src/services/resource/jar.service.ts
@@ -29,7 +29,6 @@ export const ResourceJarService = {
upload: async (uploadParam: JarUploadParam) => {
const formData = new FormData();
- formData.append('group', uploadParam.group);
formData.append('file', uploadParam.file);
if (uploadParam.remark) {
formData.append('remark', uploadParam.remark);
diff --git a/scaleph-ui-react/src/services/resource/typings.d.ts b/scaleph-ui-react/src/services/resource/typings.d.ts
index 0a23ac0fb..9679e08ab 100644
--- a/scaleph-ui-react/src/services/resource/typings.d.ts
+++ b/scaleph-ui-react/src/services/resource/typings.d.ts
@@ -8,7 +8,6 @@ export type ResourceListParam = QueryParam & {
export type Jar = {
id?: number;
- group?: string;
fileName?: string;
path?: string;
remark?: string;
@@ -17,12 +16,10 @@ export type Jar = {
}
export type JarListParam = QueryParam & {
- group?: string;
fileName?: string;
}
export type JarUploadParam = QueryParam & {
- group?: string;
file: File;
remark?: String;
}
diff --git a/tools/docker/mysql/init.d/scaleph-master-mysql.sql b/tools/docker/mysql/init.d/scaleph-master-mysql.sql
index 3d737db09..ab47023ae 100644
--- a/tools/docker/mysql/init.d/scaleph-master-mysql.sql
+++ b/tools/docker/mysql/init.d/scaleph-master-mysql.sql
@@ -75,7 +75,6 @@ DROP TABLE IF EXISTS resource_jar;
CREATE TABLE resource_jar
(
id bigint NOT NULL AUTO_INCREMENT COMMENT '自增主键',
- `group` varchar(255) NOT NULL COMMENT 'jar group',
file_name varchar(255) NOT NULL COMMENT '文件名称',
path varchar(255) NOT NULL COMMENT '存储路径',
remark varchar(255) DEFAULT NULL COMMENT '备注',
diff --git a/tools/docker/mysql/init.d/scaleph-security-mysql.sql b/tools/docker/mysql/init.d/scaleph-security-mysql.sql
index aaba0a229..e07a9afef 100644
--- a/tools/docker/mysql/init.d/scaleph-security-mysql.sql
+++ b/tools/docker/mysql/init.d/scaleph-security-mysql.sql
@@ -571,6 +571,10 @@ INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`,
`creator`, `editor`)
VALUES (71, '2', 64, '', '/workspace/doris/instance/detail', NULL, NULL, NULL,
'./Project/Workspace/Doris/Instance/Detail', NULL, 'sys', 'sys');
+INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
+ `remark`, `creator`, `editor`)
+VALUES (72, '2', 21, NULL, '/workspace/flink/kubernetes/template/steps', NULL, NULL, NULL,
+ './Project/Workspace/Kubernetes/Template/Steps', NULL, 'sys', 'sys');
drop table if exists sec_resource_web_role;
create table sec_resource_web_role