调整结构&待办任务页面
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<router-view />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,52 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/region/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getLazyTree = (parentCode, params) => {
|
||||
return request({
|
||||
url: '/blade-system/region/lazy-tree',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
parentCode,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = code => {
|
||||
return request({
|
||||
url: '/blade-system/region/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
code,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = id => {
|
||||
return request({
|
||||
url: '/blade-system/region/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const submit = row => {
|
||||
return request({
|
||||
url: '/blade-system/region/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,15 @@
|
||||
import request from '@/axios';
|
||||
|
||||
/**
|
||||
* 文件流返回
|
||||
* @param url 接口地址
|
||||
* @param params 接口参数
|
||||
*/
|
||||
export const exportBlob = (url, params) => {
|
||||
return request({
|
||||
url: url,
|
||||
params: params,
|
||||
method: 'get',
|
||||
responseType: 'blob',
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,63 @@
|
||||
import request from '@/axios';
|
||||
|
||||
// 获取数据审计表列表
|
||||
export const getRecordList = (current, size, params = {}) => {
|
||||
return request({
|
||||
url: '/blade-system/record-data/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
current,
|
||||
size,
|
||||
...params,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
// 获取数据审计表详情
|
||||
export const getRecordDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/record-data/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
// 新增数据审计表记录
|
||||
export const addRecord = data => {
|
||||
return request({
|
||||
url: '/blade-system/record-data/save',
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
// 修改数据审计表记录
|
||||
export const updateRecord = data => {
|
||||
return request({
|
||||
url: '/blade-system/record-data/update',
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
// 新增或修改数据审计表记录
|
||||
export const submitRecord = data => {
|
||||
return request({
|
||||
url: '/blade-system/record-data/submit',
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
// 删除数据审计表记录
|
||||
export const removeRecord = ids => {
|
||||
return request({
|
||||
url: '/blade-system/record-data/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,59 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-desk/notice/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
cryptoToken: false,
|
||||
cryptoData: false,
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-desk/notice/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
cryptoToken: false,
|
||||
cryptoData: false,
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-desk/notice/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
cryptoToken: false,
|
||||
cryptoData: false,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-desk/notice/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
cryptoToken: false,
|
||||
cryptoData: false,
|
||||
});
|
||||
};
|
||||
|
||||
export const getNotice = id => {
|
||||
return request({
|
||||
url: '/blade-desk/notice/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
cryptoToken: false,
|
||||
cryptoData: false,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,122 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const modelList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-flow/model/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const managerList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-flow/manager/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const followList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-flow/follow/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const removeModel = ids => {
|
||||
return request({
|
||||
url: '/blade-flow/model/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const deployModel = params => {
|
||||
return request({
|
||||
url: '/blade-flow/model/deploy',
|
||||
method: 'post',
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
export const changeState = params => {
|
||||
return request({
|
||||
url: '/blade-flow/manager/change-state',
|
||||
method: 'post',
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
export const deployUpload = (category, tenantIds, files) => {
|
||||
const formData = new FormData();
|
||||
formData.append('category', category);
|
||||
formData.append('tenantIds', tenantIds);
|
||||
files.forEach(file => {
|
||||
formData.append('files', file);
|
||||
});
|
||||
return request({
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
url: '/blade-flow/manager/deploy-upload',
|
||||
method: 'post',
|
||||
data: formData,
|
||||
});
|
||||
};
|
||||
|
||||
export const deleteDeployment = deploymentIds => {
|
||||
return request({
|
||||
url: '/blade-flow/manager/delete-deployment',
|
||||
method: 'post',
|
||||
params: {
|
||||
deploymentIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const deleteProcessInstance = params => {
|
||||
return request({
|
||||
url: '/blade-flow/follow/delete-process-instance',
|
||||
method: 'post',
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
export const submitModel = data => {
|
||||
return request({
|
||||
url: '/blade-flow/model/submit',
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
export const detail = params => {
|
||||
return request({
|
||||
url: '/blade-flow/model/detail',
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
export const modelView = params => {
|
||||
return request({
|
||||
url: '/blade-flow/process/model-view',
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,78 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-job/job-info/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-job/job-info/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-job/job-info/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-job/job-info/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-job/job-info/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const change = row => {
|
||||
return request({
|
||||
url: '/blade-job/job-info/change',
|
||||
method: 'post',
|
||||
params: {
|
||||
id: row.id,
|
||||
enable: row.enable,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const run = row => {
|
||||
return request({
|
||||
url: '/blade-job/job-info/run',
|
||||
method: 'post',
|
||||
params: {
|
||||
id: row.id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const sync = row => {
|
||||
return request({
|
||||
url: '/blade-job/job-info/sync',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-job/job-server/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-job/job-server/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-job/job-server/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-job/job-server/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-job/job-server/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const sync = row => {
|
||||
return request({
|
||||
url: '/blade-job/job-server/sync',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,62 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getUsualList = (current, size) => {
|
||||
return request({
|
||||
url: '/blade-log/usual/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getApiList = (current, size) => {
|
||||
return request({
|
||||
url: '/blade-log/api/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getErrorList = (current, size) => {
|
||||
return request({
|
||||
url: '/blade-log/error/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getUsualLogs = id => {
|
||||
return request({
|
||||
url: '/blade-log/usual/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
export const getApiLogs = id => {
|
||||
return request({
|
||||
url: '/blade-log/api/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
export const getErrorLogs = id => {
|
||||
return request({
|
||||
url: '/blade-log/error/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,22 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-report/report/rest/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-report/report/rest/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,49 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-resource/attach/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-resource/attach/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-resource/attach/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-resource/attach/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-resource/attach/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,59 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-resource/oss/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-resource/oss/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-resource/oss/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-resource/oss/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-resource/oss/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const enable = id => {
|
||||
return request({
|
||||
url: '/blade-resource/oss/enable',
|
||||
method: 'post',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,71 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-resource/sms/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-resource/sms/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-resource/sms/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-resource/sms/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-resource/sms/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const enable = id => {
|
||||
return request({
|
||||
url: '/blade-resource/sms/enable',
|
||||
method: 'post',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const send = (code, phones, params) => {
|
||||
return request({
|
||||
url: '/blade-resource/sms/endpoint/send-message',
|
||||
method: 'post',
|
||||
params: {
|
||||
code,
|
||||
phones,
|
||||
params,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,77 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/save',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/update',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const submit = row => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const enable = ids => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/enable',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const disable = ids => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/disable',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,23 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/api-key-log/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/api-key-log/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,45 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getAuthLockPage = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/auth-lock/page',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getAuthLockDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/auth-lock/detail',
|
||||
method: 'get',
|
||||
params: { id },
|
||||
});
|
||||
};
|
||||
|
||||
export const authLockUnlock = (id, unlockReason) => {
|
||||
return request({
|
||||
url: '/blade-system/auth-lock/unlock',
|
||||
method: 'post',
|
||||
params: {
|
||||
id,
|
||||
unlockReason,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const lockUser = (userId, lockReason, lockBeginTime, lockEndTime) => {
|
||||
return request({
|
||||
url: '/blade-system/auth-lock/lock',
|
||||
method: 'post',
|
||||
params: {
|
||||
userId,
|
||||
lockReason,
|
||||
lockBeginTime,
|
||||
lockEndTime,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,21 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getAuthLogPage = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/auth-log/page',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getAuthLogDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/auth-log/detail',
|
||||
method: 'get',
|
||||
params: { id },
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,49 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/client/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/client/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/client/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/client/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/client/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,80 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dept/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getLazyList = (parentId, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dept/lazy-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
parentId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/dept/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/dept/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/dept/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getDept = id => {
|
||||
return request({
|
||||
url: '/blade-system/dept/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDeptTree = tenantId => {
|
||||
return request({
|
||||
url: '/blade-system/dept/tree',
|
||||
method: 'get',
|
||||
params: {
|
||||
tenantId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDeptLazyTree = parentId => {
|
||||
return request({
|
||||
url: '/blade-system/dept/lazy-tree',
|
||||
method: 'get',
|
||||
params: {
|
||||
parentId,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,88 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dict/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getParentList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dict/parent-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getChildList = (current, size, parentId, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dict/child-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
parentId: parentId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/dict/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/dict/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/dict/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getDict = id => {
|
||||
return request({
|
||||
url: '/blade-system/dict/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
export const getDictTree = () => {
|
||||
return request({
|
||||
url: '/blade-system/dict/tree?code=DICT',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
export const getDictionary = params => {
|
||||
return request({
|
||||
url: '/blade-system/dict/dictionary',
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,88 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getParentList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/parent-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getChildList = (current, size, parentId, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/child-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
parentId: parentId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getDict = id => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
export const getDictTree = () => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/tree?code=DICT',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
export const getDictionary = params => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/dictionary',
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,114 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/menu/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getLazyList = (parentId, params) => {
|
||||
return request({
|
||||
url: '/blade-system/menu/lazy-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
parentId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getLazyMenuList = (parentId, params) => {
|
||||
return request({
|
||||
url: '/blade-system/menu/lazy-menu-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
parentId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getMenuList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/menu/menu-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getMenuTree = tenantId => {
|
||||
return request({
|
||||
url: '/blade-system/menu/tree',
|
||||
method: 'get',
|
||||
params: {
|
||||
tenantId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/menu/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/menu/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/menu/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getMenu = id => {
|
||||
return request({
|
||||
url: '/blade-system/menu/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getTopMenu = () =>
|
||||
request({
|
||||
url: '/blade-system/menu/top-menu',
|
||||
method: 'get',
|
||||
});
|
||||
|
||||
export const getRoutes = topMenuId =>
|
||||
request({
|
||||
url: '/blade-system/menu/routes',
|
||||
method: 'get',
|
||||
params: {
|
||||
topMenuId,
|
||||
},
|
||||
});
|
||||
|
||||
export const getMainMenu = () =>
|
||||
request({
|
||||
url: '/blade-system/menu/main-menu',
|
||||
method: 'get',
|
||||
});
|
||||
@@ -0,0 +1,49 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/param/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/param/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/param/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/param/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/param/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,59 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/post/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getPostList = tenantId => {
|
||||
return request({
|
||||
url: '/blade-system/post/select',
|
||||
method: 'get',
|
||||
params: {
|
||||
tenantId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/post/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/post/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/post/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/post/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,96 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/role/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
export const grantTree = () => {
|
||||
return request({
|
||||
url: '/blade-system/menu/grant-tree',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
export const grant = (roleIds, menuIds, dataScopeIds, apiScopeIds) => {
|
||||
return request({
|
||||
url: '/blade-system/role/grant',
|
||||
method: 'post',
|
||||
data: {
|
||||
roleIds,
|
||||
menuIds,
|
||||
dataScopeIds,
|
||||
apiScopeIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/role/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/role/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/role/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getRole = roleIds => {
|
||||
return request({
|
||||
url: '/blade-system/menu/role-tree-keys',
|
||||
method: 'get',
|
||||
params: {
|
||||
roleIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getRoleTree = tenantId => {
|
||||
return request({
|
||||
url: '/blade-system/role/tree',
|
||||
method: 'get',
|
||||
params: {
|
||||
tenantId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getRoleTreeById = roleId => {
|
||||
return request({
|
||||
url: '/blade-system/role/tree-by-id',
|
||||
method: 'get',
|
||||
params: {
|
||||
roleId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getRoleAlias = () => {
|
||||
return request({
|
||||
url: '/blade-system/role/alias',
|
||||
method: 'get',
|
||||
params: {},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,97 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getListDataScope = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/data-scope/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const removeDataScope = ids => {
|
||||
return request({
|
||||
url: '/blade-system/data-scope/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const addDataScope = row => {
|
||||
return request({
|
||||
url: '/blade-system/data-scope/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const updateDataScope = row => {
|
||||
return request({
|
||||
url: '/blade-system/data-scope/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getMenuDataScope = id => {
|
||||
return request({
|
||||
url: '/blade-system/data-scope/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getListApiScope = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/api-scope/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const removeApiScope = ids => {
|
||||
return request({
|
||||
url: '/blade-system/api-scope/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const addApiScope = row => {
|
||||
return request({
|
||||
url: '/blade-system/api-scope/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const updateApiScope = row => {
|
||||
return request({
|
||||
url: '/blade-system/api-scope/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getMenuApiScope = id => {
|
||||
return request({
|
||||
url: '/blade-system/api-scope/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,122 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const setting = (ids, form) => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/setting',
|
||||
method: 'post',
|
||||
params: {
|
||||
...form,
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const datasource = (tenantId, datasourceId) => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/datasource',
|
||||
method: 'post',
|
||||
params: {
|
||||
tenantId,
|
||||
datasourceId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const info = domain => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/info',
|
||||
method: 'get',
|
||||
params: {
|
||||
domain,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const packageInfo = tenantId => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/package-detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
tenantId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const packageSetting = (tenantId, packageId) => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/package-setting',
|
||||
method: 'post',
|
||||
params: {
|
||||
tenantId,
|
||||
packageId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const recycle = ids => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/recycle',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const pass = ids => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/pass',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,49 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-datasource/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-datasource/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-datasource/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-datasource/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-datasource/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,49 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-package/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-package/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-package/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-package/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-package/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,87 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/topmenu/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/topmenu/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/topmenu/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/topmenu/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/topmenu/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const grantTree = () => {
|
||||
return request({
|
||||
url: '/blade-system/menu/grant-top-tree',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
export const getTopTree = topMenuIds => {
|
||||
return request({
|
||||
url: '/blade-system/menu/top-tree-keys',
|
||||
method: 'get',
|
||||
params: {
|
||||
topMenuIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const grant = (topMenuIds, menuIds) => {
|
||||
return request({
|
||||
url: '/blade-system/topmenu/grant',
|
||||
method: 'post',
|
||||
data: {
|
||||
topMenuIds,
|
||||
menuIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const enable = id => {
|
||||
return request({
|
||||
url: '/blade-system/topmenu/enable',
|
||||
method: 'post',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,175 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params, deptId) => {
|
||||
return request({
|
||||
url: '/blade-system/user/page',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
deptId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/user/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/user/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/user/update',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const updatePlatform = (userId, userType, userExt) => {
|
||||
return request({
|
||||
url: '/blade-system/user/update-platform',
|
||||
method: 'post',
|
||||
params: {
|
||||
userId,
|
||||
userType,
|
||||
userExt,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getUser = id => {
|
||||
return request({
|
||||
url: '/blade-system/user/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getUserPlatform = id => {
|
||||
return request({
|
||||
url: '/blade-system/user/platform-detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getUserInfo = () => {
|
||||
return request({
|
||||
url: '/blade-system/user/info',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
export const resetPassword = userIds => {
|
||||
return request({
|
||||
url: '/blade-system/user/reset-password',
|
||||
method: 'post',
|
||||
params: {
|
||||
userIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const updatePassword = (oldPassword, newPassword, newPassword1) => {
|
||||
return request({
|
||||
url: '/blade-system/user/update-password',
|
||||
method: 'post',
|
||||
params: {
|
||||
oldPassword,
|
||||
newPassword,
|
||||
newPassword1,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const updateInfo = row => {
|
||||
return request({
|
||||
url: '/blade-system/user/update-info',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const grant = (userIds, roleIds) => {
|
||||
return request({
|
||||
url: '/blade-system/user/grant',
|
||||
method: 'post',
|
||||
params: {
|
||||
userIds,
|
||||
roleIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const auditPass = userIds => {
|
||||
return request({
|
||||
url: '/blade-system/user/audit-pass',
|
||||
method: 'post',
|
||||
params: {
|
||||
userIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const auditRefuse = userIds => {
|
||||
return request({
|
||||
url: '/blade-system/user/audit-refuse',
|
||||
method: 'post',
|
||||
params: {
|
||||
userIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const setLeader = userId => {
|
||||
return request({
|
||||
url: '/blade-system/user/set-leader',
|
||||
method: 'post',
|
||||
params: {
|
||||
userId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getLeaderList = (tenantId, realName) => {
|
||||
return request({
|
||||
url: '/blade-system/user/leader-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
tenantId,
|
||||
realName,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getUserPage = (current, size, account, name) => {
|
||||
return request({
|
||||
url: '/blade-system/user/user-page',
|
||||
method: 'get',
|
||||
params: {
|
||||
current,
|
||||
size,
|
||||
account,
|
||||
name,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-develop/code/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const build = ids => {
|
||||
return request({
|
||||
url: '/blade-develop/code/gen-code',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
system: 'saber',
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const buildFast = form => {
|
||||
return request({
|
||||
url: '/blade-develop/code/gen-code-fast',
|
||||
method: 'post',
|
||||
data: form,
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-develop/code/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-develop/code/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-develop/code/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const copy = id => {
|
||||
return request({
|
||||
url: '/blade-develop/code/copy',
|
||||
method: 'post',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getCode = id => {
|
||||
return request({
|
||||
url: '/blade-develop/code/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,88 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const enable = id => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/enable',
|
||||
method: 'post',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getEnableDetail = () => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/enable-detail',
|
||||
method: 'get',
|
||||
params: {},
|
||||
});
|
||||
};
|
||||
|
||||
export const getTableForm = tableName => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/table-form',
|
||||
method: 'get',
|
||||
params: {
|
||||
tableName,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getTablePrototype = (tableName, datasourceId) => {
|
||||
return request({
|
||||
url: '/blade-develop/code-setting/table-prototype',
|
||||
method: 'get',
|
||||
params: {
|
||||
tableName,
|
||||
datasourceId,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,49 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-develop/datasource/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-develop/datasource/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-develop/datasource/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-develop/datasource/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-develop/datasource/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,110 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-develop/model/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-develop/model/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-develop/model/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-develop/model/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-develop/model/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getTableList = datasourceId => {
|
||||
return request({
|
||||
url: '/blade-develop/model/table-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
datasourceId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getTableInfo = (modelId, datasourceId) => {
|
||||
return request({
|
||||
url: '/blade-develop/model/table-info',
|
||||
method: 'get',
|
||||
params: {
|
||||
modelId,
|
||||
datasourceId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getTableInfoByName = (tableName, datasourceId) => {
|
||||
return request({
|
||||
url: '/blade-develop/model/table-info',
|
||||
method: 'get',
|
||||
params: {
|
||||
tableName,
|
||||
datasourceId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getModelPrototype = (modelId, datasourceId) => {
|
||||
return request({
|
||||
url: '/blade-develop/model/model-prototype',
|
||||
method: 'get',
|
||||
params: {
|
||||
modelId,
|
||||
datasourceId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const submitModelPrototype = row => {
|
||||
return request({
|
||||
url: '/blade-develop/model-prototype/submit-list',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const prototypeDetail = modelId => {
|
||||
return request({
|
||||
url: '/blade-develop/model-prototype/select',
|
||||
method: 'get',
|
||||
params: {
|
||||
modelId,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,174 @@
|
||||
import request from '@/axios';
|
||||
|
||||
import website from '@/config/website';
|
||||
import func from '@/utils/func';
|
||||
|
||||
export const loginByUsername = (tenantId, deptId, roleId, username, password, type, key, code) =>
|
||||
request({
|
||||
url: '/blade-auth/oauth/token',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Tenant-Id': tenantId,
|
||||
'Dept-Id': func.toStr(deptId),
|
||||
'Role-Id': func.toStr(roleId),
|
||||
'Captcha-Key': key,
|
||||
'Captcha-Code': code,
|
||||
},
|
||||
params: {
|
||||
tenantId,
|
||||
username,
|
||||
password,
|
||||
grant_type: website.captchaMode ? 'captcha' : 'password',
|
||||
scope: 'all',
|
||||
type,
|
||||
},
|
||||
});
|
||||
|
||||
export const loginBySocial = (tenantId, source, code, state) =>
|
||||
request({
|
||||
url: '/blade-auth/oauth/token',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Tenant-Id': tenantId,
|
||||
},
|
||||
params: {
|
||||
tenantId,
|
||||
source,
|
||||
code,
|
||||
state,
|
||||
grant_type: 'social',
|
||||
scope: 'all',
|
||||
},
|
||||
});
|
||||
|
||||
export const loginBySso = (state, code) =>
|
||||
request({
|
||||
url: '/blade-auth/oauth/token',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Tenant-Id': state,
|
||||
},
|
||||
params: {
|
||||
tenantId: state,
|
||||
code,
|
||||
grant_type: 'authorization_code',
|
||||
scope: 'all',
|
||||
redirect_uri: website.oauth2.redirectUri,
|
||||
},
|
||||
});
|
||||
|
||||
export const loginByPhone = (tenantId, phone, id, value) =>
|
||||
request({
|
||||
url: '/blade-auth/oauth/token',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Tenant-Id': tenantId,
|
||||
},
|
||||
params: {
|
||||
tenantId,
|
||||
phone,
|
||||
id,
|
||||
value,
|
||||
grant_type: 'sms_code',
|
||||
scope: 'all',
|
||||
},
|
||||
});
|
||||
|
||||
export const refreshToken = (refresh_token, tenantId, deptId, roleId) =>
|
||||
request({
|
||||
url: '/blade-auth/oauth/token',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Tenant-Id': tenantId,
|
||||
'Dept-Id': func.toStr(deptId),
|
||||
'Role-Id': func.toStr(roleId),
|
||||
},
|
||||
params: {
|
||||
tenantId,
|
||||
refresh_token,
|
||||
grant_type: 'refresh_token',
|
||||
scope: 'all',
|
||||
},
|
||||
});
|
||||
|
||||
export const registerUser = (tenantId, name, account, password, phone, email) =>
|
||||
request({
|
||||
url: '/blade-auth/oauth/token',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Tenant-Id': tenantId,
|
||||
},
|
||||
params: {
|
||||
name,
|
||||
username: account,
|
||||
account,
|
||||
password,
|
||||
phone,
|
||||
email,
|
||||
grant_type: 'register',
|
||||
scope: 'all',
|
||||
},
|
||||
});
|
||||
|
||||
export const registerGuest = (form, oauthId) =>
|
||||
request({
|
||||
url: '/blade-system/user/register-guest',
|
||||
method: 'post',
|
||||
params: {
|
||||
tenantId: form.tenantId,
|
||||
name: form.name,
|
||||
account: form.account,
|
||||
password: form.password,
|
||||
oauthId,
|
||||
},
|
||||
});
|
||||
|
||||
export const getButtons = () =>
|
||||
request({
|
||||
url: '/blade-system/menu/buttons',
|
||||
method: 'get',
|
||||
});
|
||||
|
||||
export const getCaptcha = () =>
|
||||
request({
|
||||
url: '/blade-auth/oauth/captcha',
|
||||
method: 'get',
|
||||
authorization: false,
|
||||
});
|
||||
|
||||
export const logout = () =>
|
||||
request({
|
||||
url: '/blade-auth/oauth/logout',
|
||||
method: 'get',
|
||||
authorization: false,
|
||||
});
|
||||
|
||||
export const getUserInfo = () =>
|
||||
request({
|
||||
url: '/blade-auth/oauth/user-info',
|
||||
method: 'get',
|
||||
});
|
||||
|
||||
export const sendLogs = list =>
|
||||
request({
|
||||
url: '/blade-auth/oauth/logout',
|
||||
method: 'post',
|
||||
data: list,
|
||||
});
|
||||
|
||||
export const clearCache = () =>
|
||||
request({
|
||||
url: '/blade-auth/oauth/clear-cache',
|
||||
method: 'get',
|
||||
authorization: false,
|
||||
});
|
||||
|
||||
export const sendSms = (tenantId, phone) =>
|
||||
request({
|
||||
url: '/blade-auth/oauth/sms/send-validate',
|
||||
method: 'post',
|
||||
params: {
|
||||
tenantId,
|
||||
phone,
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,33 @@
|
||||
import request from '@/axios';
|
||||
|
||||
// =====================参数===========================
|
||||
|
||||
export const historyFlowList = processInstanceId => {
|
||||
return request({
|
||||
url: '/blade-flow/process/history-flow-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
processInstanceId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
// =====================请假流程===========================
|
||||
|
||||
export const leaveProcess = data => {
|
||||
return request({
|
||||
url: '/blade-desk/process/leave/start-process',
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
export const leaveDetail = businessId => {
|
||||
return request({
|
||||
url: '/blade-desk/process/leave/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
businessId,
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,79 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const startList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-flow/work/start-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const claimList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-flow/work/claim-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const todoList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-flow/work/todo-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const sendList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-flow/work/send-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const doneList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-flow/work/done-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const claimTask = taskId => {
|
||||
return request({
|
||||
url: '/blade-flow/work/claim-task',
|
||||
method: 'post',
|
||||
params: {
|
||||
taskId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const completeTask = data => {
|
||||
return request({
|
||||
url: '/blade-flow/work/complete-task',
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,156 @@
|
||||
import request from '@/axios';
|
||||
|
||||
/**
|
||||
* 查询当前用户可发起的招采流程类型列表
|
||||
* 对应接口: GET /blade-zhaocai/zcProcess/initiateProcess
|
||||
*/
|
||||
export const getProcessTypes = () => {
|
||||
return request({
|
||||
url: '/blade-zhaocai/zcProcess/initiateProcess',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询我的待办列表
|
||||
* 对应接口: GET /blade-zhaocai/zcProcess/getPageList
|
||||
*/
|
||||
export const getTodoList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-zhaocai/zcProcess/getPageList',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
pageNo: current,
|
||||
pageSize: size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询我的已办列表
|
||||
* 对应接口: GET /blade-zhaocai/zcProcess/getDonePageList
|
||||
*/
|
||||
export const getDoneList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-zhaocai/zcProcess/getDonePageList',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
pageNo: current,
|
||||
pageSize: size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询我的申请列表
|
||||
* 对应接口: GET /blade-zhaocai/zcProcess/getAppliedPageList
|
||||
*/
|
||||
export const getMyList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-zhaocai/zcProcess/getAppliedPageList',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
pageNo: current,
|
||||
pageSize: size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 审批通过
|
||||
* 对应接口: POST /blade-zhaocai/zcProcess/approve (待后端补充)
|
||||
*/
|
||||
export const approve = data => {
|
||||
return request({
|
||||
url: '/blade-zhaocai/zcProcess/approve',
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 审批驳回
|
||||
* 对应接口: POST /blade-zhaocai/zcProcess/reject (待后端补充)
|
||||
*/
|
||||
export const reject = data => {
|
||||
return request({
|
||||
url: '/blade-zhaocai/zcProcess/reject',
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询流程详情
|
||||
* 对应接口: GET /blade-zhaocai/zcProcess/detail/{id} (待后端补充)
|
||||
*/
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: `/blade-zhaocai/zcProcess/detail/${id}`,
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询待办数量
|
||||
* 对应接口: GET /blade-zhaocai/zcProcess/todoCount (待后端补充)
|
||||
*/
|
||||
export const getTodoCount = () => {
|
||||
return request({
|
||||
url: '/blade-zhaocai/zcProcess/todoCount',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询流程统计
|
||||
* 对应接口: GET /blade-zhaocai/zcProcess/stats (待后端补充)
|
||||
*/
|
||||
export const getProcessStats = () => {
|
||||
return request({
|
||||
url: '/blade-zhaocai/zcProcess/stats',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询流程流转步骤(时间线数据)
|
||||
* 对应接口: GET /blade-zhaocai/zcProcess/trackSteps/{instanceCode} (待后端补充)
|
||||
*/
|
||||
export const getTrackSteps = instanceCode => {
|
||||
return request({
|
||||
url: `/blade-zhaocai/zcProcess/trackSteps/${instanceCode}`,
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除流程(仅待提交状态)
|
||||
* 对应接口: POST /blade-zhaocai/zcProcess/delete/{id} (待后端补充)
|
||||
*/
|
||||
export const deleteProcess = id => {
|
||||
return request({
|
||||
url: `/blade-zhaocai/zcProcess/delete/${id}`,
|
||||
method: 'post',
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询流程列表(统一视图)
|
||||
* 对应接口: GET /blade-zhaocai/zcProcess/getPageList (复用待办接口,参数区分)
|
||||
*/
|
||||
export const getProcessList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-zhaocai/zcProcess/getPageList',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
pageNo: current,
|
||||
pageSize: size,
|
||||
viewType: 'all',
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,223 @@
|
||||
/**
|
||||
* 全站http配置
|
||||
*
|
||||
* axios参数说明
|
||||
* isSerialize是否开启form表单提交
|
||||
* isToken是否需要token
|
||||
*/
|
||||
import axios from 'axios';
|
||||
import store from '@/store/';
|
||||
import router from '@/router/';
|
||||
import { serialize } from '@/utils/util';
|
||||
import { getToken, removeToken, removeRefreshToken } from '@/utils/auth';
|
||||
import { isURL, validatenull } from '@/utils/validate';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import website from '@/config/website';
|
||||
import NProgress from 'nprogress'; // progress bar
|
||||
import 'nprogress/nprogress.css'; // progress bar style
|
||||
import { Base64 } from 'js-base64';
|
||||
import { baseUrl } from '@/config/env';
|
||||
import crypto from '@/utils/crypto';
|
||||
|
||||
// 全局未授权错误提示状态,只提示一次
|
||||
let isErrorShown = false;
|
||||
// 全局锁机制相关变量
|
||||
let isRefreshing = false; // 标记当前是否正在刷新token
|
||||
let refreshTokenPromise = null; // 刷新token的Promise,避免重复请求
|
||||
|
||||
axios.defaults.timeout = 30000;
|
||||
//返回其他状态码
|
||||
axios.defaults.validateStatus = function (status) {
|
||||
return status >= 200 && status <= 500; // 默认的
|
||||
};
|
||||
//跨域请求,允许保存cookie
|
||||
axios.defaults.withCredentials = true;
|
||||
// NProgress Configuration
|
||||
NProgress.configure({
|
||||
showSpinner: false,
|
||||
});
|
||||
|
||||
//http request拦截
|
||||
axios.interceptors.request.use(
|
||||
config => {
|
||||
// start progress bar
|
||||
NProgress.start();
|
||||
// 初始化错误提示状态
|
||||
isErrorShown = false;
|
||||
//地址为已经配置状态则不添加前缀
|
||||
if (!isURL(config.url) && !config.url.startsWith(baseUrl)) {
|
||||
config.url = baseUrl + config.url;
|
||||
}
|
||||
//安全请求header
|
||||
config.headers['Blade-Requested-With'] = 'BladeHttpRequest';
|
||||
//设置语言请求头
|
||||
config.headers['Accept-Language'] = store.getters.language || 'zh-CN';
|
||||
//headers判断是否需要
|
||||
const authorization = config.authorization === false;
|
||||
if (!authorization) {
|
||||
config.headers['Authorization'] = `Basic ${Base64.encode(
|
||||
`${website.clientId}:${website.clientSecret}`
|
||||
)}`;
|
||||
}
|
||||
//headers判断请求是否携带token
|
||||
const meta = config.meta || {};
|
||||
const isToken = meta.isToken === false;
|
||||
//headers传递token是否加密
|
||||
const cryptoToken = config.cryptoToken === true;
|
||||
//判断传递数据是否加密
|
||||
const cryptoData = config.cryptoData === true;
|
||||
const token = getToken();
|
||||
if (token && !isToken) {
|
||||
config.headers[website.tokenHeader] = cryptoToken
|
||||
? 'crypto ' + crypto.encryptAES(token, crypto.cryptoKey)
|
||||
: 'bearer ' + token;
|
||||
}
|
||||
// 开启报文加密
|
||||
if (cryptoData) {
|
||||
if (config.params) {
|
||||
const data = crypto.encryptAES(JSON.stringify(config.params), crypto.aesKey);
|
||||
config.params = { data };
|
||||
}
|
||||
if (config.data) {
|
||||
config.text = true;
|
||||
config.data = crypto.encryptAES(JSON.stringify(config.data), crypto.aesKey);
|
||||
}
|
||||
}
|
||||
//headers中配置text请求
|
||||
if (config.text === true) {
|
||||
config.headers['Content-Type'] = 'text/plain';
|
||||
}
|
||||
//headers中配置serialize为true开启序列化
|
||||
if (config.method === 'post' && meta.isSerialize === true) {
|
||||
config.data = serialize(config.data);
|
||||
}
|
||||
return config;
|
||||
},
|
||||
error => {
|
||||
return Promise.reject(error);
|
||||
}
|
||||
);
|
||||
|
||||
//http response拦截
|
||||
axios.interceptors.response.use(
|
||||
res => {
|
||||
NProgress.done();
|
||||
//获取配置信息
|
||||
const config = res.config;
|
||||
const cryptoData = config.cryptoData === true;
|
||||
//解析加密报文
|
||||
if (cryptoData) {
|
||||
res.data = JSON.parse(crypto.decryptAES(res.data, crypto.aesKey));
|
||||
}
|
||||
//获取状态信息
|
||||
const status = res.data.error_code || res.data.code || res.status;
|
||||
const statusWhiteList = website.statusWhiteList || [];
|
||||
const message = res.data.msg || res.data.error_description || '系统错误';
|
||||
//如果在白名单里则自行catch逻辑处理
|
||||
if (statusWhiteList.includes(status)) return Promise.reject(res);
|
||||
|
||||
// 如果是401并且没有重试过,尝试刷新token
|
||||
if (status === 401 && !config._retry) {
|
||||
config._retry = true;
|
||||
|
||||
// 如果当前已经在刷新token,等待刷新完成
|
||||
if (isRefreshing) {
|
||||
return refreshTokenPromise.then(() => {
|
||||
const meta = config.meta || {};
|
||||
const isToken = meta.isToken === false;
|
||||
const cryptoToken = config.cryptoToken === true;
|
||||
const token = getToken();
|
||||
if (token && !isToken) {
|
||||
config.headers[website.tokenHeader] = cryptoToken
|
||||
? 'crypto ' + crypto.encryptAES(token, crypto.cryptoKey)
|
||||
: 'bearer ' + token;
|
||||
}
|
||||
return axios(config);
|
||||
});
|
||||
}
|
||||
|
||||
// 开始刷新token
|
||||
isRefreshing = true;
|
||||
|
||||
// 调用RefreshToken action来刷新token
|
||||
refreshTokenPromise = store
|
||||
.dispatch('RefreshToken')
|
||||
.then(() => {
|
||||
isRefreshing = false; // 重置刷新标志
|
||||
const meta = config.meta || {};
|
||||
const isToken = meta.isToken === false;
|
||||
const cryptoToken = config.cryptoToken === true;
|
||||
// 获取刷新后的token
|
||||
const token = getToken();
|
||||
if (token && !isToken) {
|
||||
config.headers[website.tokenHeader] = cryptoToken
|
||||
? 'crypto ' + crypto.encryptAES(token, crypto.cryptoKey)
|
||||
: 'bearer ' + token;
|
||||
}
|
||||
return axios(config);
|
||||
})
|
||||
.catch(() => {
|
||||
isRefreshing = false; // 重置刷新标志
|
||||
// 首次报错时提示
|
||||
if (!isErrorShown) {
|
||||
isErrorShown = true;
|
||||
ElMessage({
|
||||
message: '用户令牌不可用,请重新登录',
|
||||
type: 'error',
|
||||
});
|
||||
}
|
||||
// 清除token信息
|
||||
removeToken();
|
||||
removeRefreshToken();
|
||||
// 重定向到登录页
|
||||
store.dispatch('FedLogOut').then(() => router.push({ path: '/login' }));
|
||||
return Promise.reject(new Error(message));
|
||||
});
|
||||
|
||||
return refreshTokenPromise;
|
||||
}
|
||||
|
||||
// 如果是401并且已经重试过,直接跳转到登录页面
|
||||
if (status === 401 && config._retry) {
|
||||
if (!isErrorShown) {
|
||||
isErrorShown = true;
|
||||
ElMessage({
|
||||
message: '用户令牌不可用,请重新登录',
|
||||
type: 'error',
|
||||
});
|
||||
}
|
||||
removeToken();
|
||||
removeRefreshToken();
|
||||
store.dispatch('FedLogOut').then(() => router.push({ path: '/login' }));
|
||||
return Promise.reject(new Error(message));
|
||||
}
|
||||
|
||||
// 如果请求为oauth2错误码则首次报错时提示
|
||||
if (status > 2000 && !validatenull(res.data.error_description)) {
|
||||
if (!isErrorShown) {
|
||||
isErrorShown = true;
|
||||
ElMessage({
|
||||
message: message,
|
||||
type: 'error',
|
||||
});
|
||||
}
|
||||
return Promise.reject(new Error(message));
|
||||
}
|
||||
|
||||
// 如果请求为非200则默认统一处理
|
||||
if (status !== 200) {
|
||||
ElMessage({
|
||||
message: message,
|
||||
type: 'error',
|
||||
});
|
||||
return Promise.reject(new Error(message));
|
||||
}
|
||||
return res;
|
||||
},
|
||||
error => {
|
||||
NProgress.done();
|
||||
return Promise.reject(new Error(error));
|
||||
}
|
||||
);
|
||||
|
||||
export default axios;
|
||||
@@ -0,0 +1,128 @@
|
||||
<template>
|
||||
<div class="basic-block" :style="styleName">
|
||||
<div class="box" :style="boxStyleName">
|
||||
<router-link :to="to">
|
||||
<span v-text="text"></span>
|
||||
<p v-text="dept"></p>
|
||||
<i :class="icon"></i>
|
||||
</router-link>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'basicBlock',
|
||||
props: {
|
||||
icon: {
|
||||
type: String,
|
||||
},
|
||||
background: {
|
||||
type: String,
|
||||
},
|
||||
to: {
|
||||
type: Object,
|
||||
default: () => {
|
||||
return {};
|
||||
},
|
||||
},
|
||||
text: {
|
||||
type: String,
|
||||
},
|
||||
dept: {
|
||||
type: String,
|
||||
},
|
||||
time: {
|
||||
type: [Number, String],
|
||||
},
|
||||
gutter: {
|
||||
type: [Number, String],
|
||||
default: 5,
|
||||
},
|
||||
color: {
|
||||
type: String,
|
||||
},
|
||||
width: {
|
||||
type: [Number, String],
|
||||
},
|
||||
height: {
|
||||
type: [Number, String],
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
styleName() {
|
||||
return {
|
||||
animationDelay: `${this.time / 25}s`,
|
||||
width: `${this.width}px`,
|
||||
height: `${this.height}px`,
|
||||
margin: `${this.gutter}px`,
|
||||
};
|
||||
},
|
||||
boxStyleName() {
|
||||
return {
|
||||
backgroundColor: this.color,
|
||||
backgroundImage: `url('${this.background}')`,
|
||||
};
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.basic-block {
|
||||
opacity: 0;
|
||||
|
||||
box-sizing: border-box;
|
||||
color: #fff;
|
||||
animation: mymove 1s;
|
||||
animation-fill-mode: forwards;
|
||||
|
||||
.box {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
padding: 15px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transition: all 1s;
|
||||
background-size: cover;
|
||||
|
||||
&:hover {
|
||||
transform: rotateY(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
span {
|
||||
display: block;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
p {
|
||||
width: 80%;
|
||||
font-size: 10px;
|
||||
color: #eee;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
i {
|
||||
position: absolute;
|
||||
bottom: 15px;
|
||||
right: 15px;
|
||||
font-size: 50px !important;
|
||||
}
|
||||
|
||||
@keyframes mymove {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale(0);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,57 @@
|
||||
<template>
|
||||
<div class="basic-container" :style="styleName" :class="{ 'basic-container--block': block }">
|
||||
<el-card class="basic-container__card">
|
||||
<slot></slot>
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'basicContainer',
|
||||
props: {
|
||||
radius: {
|
||||
type: [String, Number],
|
||||
default: 10,
|
||||
},
|
||||
background: {
|
||||
type: String,
|
||||
},
|
||||
block: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
styleName() {
|
||||
return {
|
||||
borderRadius: `${this.radius}px`,
|
||||
background: this.background,
|
||||
};
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.basic-container {
|
||||
padding: 10px 6px;
|
||||
box-sizing: border-box;
|
||||
|
||||
&--block {
|
||||
height: 100%;
|
||||
|
||||
.basic-container__card {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&__card {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,140 @@
|
||||
<template>
|
||||
<div :style="styleName" class="basic-video">
|
||||
<div class="basic-video__border">
|
||||
<span :style="borderStyleName"></span>
|
||||
<span :style="borderStyleName"></span>
|
||||
<span :style="borderStyleName"></span>
|
||||
<span :style="borderStyleName"></span>
|
||||
</div>
|
||||
<img :style="imgStyleName" class="basic-video__img" :src="background" />
|
||||
<video class="basic-video__main" ref="main" autoplay muted></video>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import RecordVideo from './plugin';
|
||||
|
||||
export default {
|
||||
name: 'basic-video',
|
||||
props: {
|
||||
background: {
|
||||
type: String,
|
||||
},
|
||||
width: {
|
||||
type: [String, Number],
|
||||
default: 500,
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
styleName() {
|
||||
return {
|
||||
width: `${this.width}px`,
|
||||
};
|
||||
},
|
||||
imgStyleName() {
|
||||
return {
|
||||
width: `${this.width / 2}px`,
|
||||
};
|
||||
},
|
||||
borderStyleName() {
|
||||
return {
|
||||
width: `${this.width / 15}px`,
|
||||
height: `${this.width / 15}px`,
|
||||
borderWidth: `${5}px`,
|
||||
};
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
videoObj: null,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.init();
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
this.videoObj = new RecordVideo(this.$refs.main);
|
||||
const videoPromise = this.videoObj.init();
|
||||
videoPromise.then(() => {
|
||||
this.videoObj.mediaRecorder.addEventListener('stop', this.getData, false);
|
||||
});
|
||||
},
|
||||
startRecord() {
|
||||
this.videoObj.startRecord();
|
||||
},
|
||||
stopRecord() {
|
||||
this.videoObj.stopRecord();
|
||||
},
|
||||
getData() {
|
||||
const blob = new Blob(this.videoObj.chunks, {
|
||||
type: 'video/mp4',
|
||||
});
|
||||
const reader = new FileReader();
|
||||
reader.readAsDataURL(blob);
|
||||
reader.addEventListener('loadend', () => {
|
||||
var video_base64 = reader.result;
|
||||
this.$emit('data-change', video_base64);
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.basic-video {
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
&__border {
|
||||
span {
|
||||
position: absolute;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-width: 4px;
|
||||
color: #0073eb;
|
||||
border-style: solid;
|
||||
|
||||
&:nth-child(1) {
|
||||
left: 15px;
|
||||
top: 15px;
|
||||
border-right: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
&:nth-child(2) {
|
||||
right: 15px;
|
||||
top: 15px;
|
||||
border-left: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
&:nth-child(3) {
|
||||
bottom: 15px;
|
||||
left: 15px;
|
||||
border-right: 0;
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
&:nth-child(4) {
|
||||
bottom: 15px;
|
||||
right: 15px;
|
||||
border-left: 0;
|
||||
border-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__img {
|
||||
width: 100px;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
&__main {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,88 @@
|
||||
export default class RecordVideo {
|
||||
/**
|
||||
* 构造函数
|
||||
*
|
||||
* @param {Object} videoObj 视频对象
|
||||
*/
|
||||
constructor(videoObj) {
|
||||
this.video = videoObj;
|
||||
this.mediaRecorder = null;
|
||||
this.chunks = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化
|
||||
*
|
||||
* @return {Object} promise
|
||||
*/
|
||||
init() {
|
||||
// 返回Promise对象
|
||||
// resolve 正常处理
|
||||
// reject 处理异常情况
|
||||
return new Promise((resovle, reject) => {
|
||||
navigator.mediaDevices
|
||||
.getUserMedia({
|
||||
audio: true,
|
||||
video: true,
|
||||
// video: {
|
||||
// width: this.videoWidth,
|
||||
// height: this.videoHeight
|
||||
// }
|
||||
})
|
||||
// 返回一个媒体内容的流
|
||||
.then(stream => {
|
||||
// 检测是否支持 srcObject,该属性在新的浏览器支持
|
||||
if ('srcObject' in this.video) {
|
||||
this.video.srcObject = stream;
|
||||
} else {
|
||||
// 兼容旧的浏览器
|
||||
this.video.src = window.URL.createObjectURL(stream);
|
||||
}
|
||||
|
||||
// 当视频的元数据已经加载时触发
|
||||
this.video.addEventListener('loadmetadata', () => {
|
||||
this.video.play();
|
||||
});
|
||||
this.mediaRecorder = new MediaRecorder(stream);
|
||||
this.mediaRecorder.addEventListener('dataavailable', e => {
|
||||
this.chunks.push(e.data);
|
||||
});
|
||||
resovle();
|
||||
})
|
||||
// 异常抓取,包括用于禁用麦克风、摄像头
|
||||
.catch(error => {
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 视频开始录制
|
||||
*/
|
||||
startRecord() {
|
||||
if (this.mediaRecorder.state === 'inactive') {
|
||||
this.mediaRecorder.start();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 视频结束录制
|
||||
*/
|
||||
stopRecord() {
|
||||
if (this.mediaRecorder.state === 'recording') {
|
||||
this.mediaRecorder.stop();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 检测当前浏览器对否支持
|
||||
*
|
||||
* @return {boolean} 当前浏览器是否支持
|
||||
*/
|
||||
isSupport() {
|
||||
const flag = navigator.mediaDevices && navigator.mediaDevices.getUserMedia;
|
||||
if (flag) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
<template>
|
||||
<div class="code-editor">
|
||||
<textarea ref="textarea" v-show="false"></textarea>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import CodeMirror from 'codemirror';
|
||||
import 'codemirror/lib/codemirror.css';
|
||||
// 主题
|
||||
import 'codemirror/theme/idea.css';
|
||||
import 'codemirror/theme/nord.css';
|
||||
import 'codemirror/theme/xq-light.css';
|
||||
import 'codemirror/mode/clike/clike';
|
||||
import 'codemirror/mode/javascript/javascript';
|
||||
import 'codemirror/addon/display/autorefresh';
|
||||
// 搜索
|
||||
import 'codemirror/addon/scroll/annotatescrollbar.js';
|
||||
import 'codemirror/addon/search/matchesonscrollbar.js';
|
||||
import 'codemirror/addon/search/match-highlighter.js';
|
||||
import 'codemirror/addon/search/jump-to-line.js';
|
||||
import 'codemirror/addon/dialog/dialog.js';
|
||||
import 'codemirror/addon/dialog/dialog.css';
|
||||
import 'codemirror/addon/search/searchcursor.js';
|
||||
import 'codemirror/addon/search/search.js';
|
||||
// 折叠
|
||||
import 'codemirror/addon/fold/foldgutter.css';
|
||||
import 'codemirror/addon/fold/foldcode';
|
||||
import 'codemirror/addon/fold/foldgutter';
|
||||
import 'codemirror/addon/fold/brace-fold';
|
||||
import 'codemirror/addon/fold/comment-fold';
|
||||
// 格式化
|
||||
import formatter from '@/utils/formatter';
|
||||
import { validatejson, validatenull } from '@/utils/validate';
|
||||
|
||||
export default {
|
||||
name: 'CodeEditor',
|
||||
props: {
|
||||
modelValue: {
|
||||
type: String,
|
||||
required: true,
|
||||
default: '',
|
||||
},
|
||||
height: {
|
||||
type: String,
|
||||
required: true,
|
||||
default: '450px',
|
||||
},
|
||||
mode: {
|
||||
type: String,
|
||||
default: 'javascript',
|
||||
},
|
||||
theme: {
|
||||
type: String,
|
||||
default: 'idea',
|
||||
},
|
||||
readonly: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
json: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.editor = CodeMirror.fromTextArea(this.$refs.textarea, {
|
||||
mode: this.mode, // 默认设置为 'javascript' 或根据需要配置
|
||||
theme: this.theme, // 直接设置主题或根据需要配置
|
||||
readOnly: this.readonly,
|
||||
autoRefresh: true,
|
||||
lineNumbers: true,
|
||||
lineWrapping: true,
|
||||
tabSize: 2,
|
||||
foldGutter: true,
|
||||
gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter', 'CodeMirror-lint-markers'],
|
||||
extraKeys: {
|
||||
// 绑定快捷键 Ctrl-F / Cmd-F 开启搜索
|
||||
'Ctrl-F': 'findPersistent',
|
||||
'Cmd-F': 'findPersistent',
|
||||
// 如果需要,您还可以添加 "Ctrl-R"/"Cmd-R" 绑定替换功能
|
||||
'Ctrl-R': 'replace',
|
||||
'Cmd-R': 'replace',
|
||||
},
|
||||
});
|
||||
|
||||
// 设置高度
|
||||
this.editor.setSize('auto', this.height);
|
||||
|
||||
// 设置文本
|
||||
const editorValue = this.json ? formatter.prettyCode(this.modelValue) : this.modelValue;
|
||||
this.editor.setValue(editorValue);
|
||||
|
||||
this.editor.on('change', () => {
|
||||
this.$emit('update:modelValue', this.editor.getValue()); // 更新 modelValue
|
||||
});
|
||||
},
|
||||
watch: {
|
||||
modelValue(newVal) {
|
||||
if (newVal !== this.editor.getValue()) {
|
||||
const editorValue = this.json ? formatter.prettyCode(this.modelValue) : this.modelValue;
|
||||
this.editor.setValue(editorValue);
|
||||
}
|
||||
},
|
||||
height(newHeight) {
|
||||
this.editor.setSize('auto', newHeight);
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
prettyCode() {
|
||||
if (this.json) {
|
||||
const val = this.editor.getValue();
|
||||
if (validatenull(val)) {
|
||||
this.$message.warning('请先填写数据');
|
||||
return;
|
||||
}
|
||||
if (!validatejson(val)) {
|
||||
this.$message.warning('数据 JSON 格式错误');
|
||||
return;
|
||||
}
|
||||
this.editor.setValue(formatter.prettyCode(val));
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.code-editor {
|
||||
line-height: 1.2 !important;
|
||||
width: calc(100% - 4px);
|
||||
height: 100%;
|
||||
border: 1px solid #ccc; /* 添加边框样式 */
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,597 @@
|
||||
<template>
|
||||
<div class="cron-editor">
|
||||
<el-card shadow="never" class="cron-card">
|
||||
<div class="cron-mode-tabs">
|
||||
<el-radio-group v-model="cronMode" @change="handleModeChange" :disabled="disabled">
|
||||
<el-radio-button label="daily">每天</el-radio-button>
|
||||
<el-radio-button label="weekly">每周</el-radio-button>
|
||||
<el-radio-button label="monthly">每月</el-radio-button>
|
||||
<el-radio-button label="custom">自定义</el-radio-button>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
|
||||
<div class="cron-config-area">
|
||||
<!-- 每天模式 -->
|
||||
<div v-if="cronMode === 'daily'" class="mode-content">
|
||||
<el-form :model="dailyConfig" label-width="100px" size="default">
|
||||
<el-form-item label="执行时间">
|
||||
<el-time-picker
|
||||
v-model="dailyConfig.time"
|
||||
format="HH:mm:ss"
|
||||
value-format="HH:mm:ss"
|
||||
placeholder="选择时间"
|
||||
:disabled="disabled"
|
||||
@change="generateCron"
|
||||
/>
|
||||
<span class="tip-text">每天在指定时间执行</span>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
|
||||
<!-- 每周模式 -->
|
||||
<div v-if="cronMode === 'weekly'" class="mode-content">
|
||||
<el-form :model="weeklyConfig" label-width="100px" size="default">
|
||||
<el-form-item label="星期选择">
|
||||
<el-checkbox-group v-model="weeklyConfig.weekDays" @change="generateCron" :disabled="disabled">
|
||||
<el-checkbox label="1">周一</el-checkbox>
|
||||
<el-checkbox label="2">周二</el-checkbox>
|
||||
<el-checkbox label="3">周三</el-checkbox>
|
||||
<el-checkbox label="4">周四</el-checkbox>
|
||||
<el-checkbox label="5">周五</el-checkbox>
|
||||
<el-checkbox label="6">周六</el-checkbox>
|
||||
<el-checkbox label="7">周日</el-checkbox>
|
||||
</el-checkbox-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="执行时间">
|
||||
<el-time-picker
|
||||
v-model="weeklyConfig.time"
|
||||
format="HH:mm:ss"
|
||||
value-format="HH:mm:ss"
|
||||
placeholder="选择时间"
|
||||
:disabled="disabled"
|
||||
@change="generateCron"
|
||||
/>
|
||||
<span class="tip-text">在选定的星期几执行</span>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
|
||||
<!-- 每月模式 -->
|
||||
<div v-if="cronMode === 'monthly'" class="mode-content">
|
||||
<el-form :model="monthlyConfig" label-width="100px" size="default">
|
||||
<el-form-item label="日期选择">
|
||||
<el-select
|
||||
v-model="monthlyConfig.days"
|
||||
multiple
|
||||
placeholder="选择日期"
|
||||
:disabled="disabled"
|
||||
@change="generateCron"
|
||||
style="width: 400px"
|
||||
>
|
||||
<el-option
|
||||
v-for="day in 31"
|
||||
:key="day"
|
||||
:label="`${day} 号`"
|
||||
:value="day"
|
||||
/>
|
||||
</el-select>
|
||||
<span class="tip-text">每月的哪几天</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="执行时间">
|
||||
<el-time-picker
|
||||
v-model="monthlyConfig.time"
|
||||
format="HH:mm:ss"
|
||||
value-format="HH:mm:ss"
|
||||
placeholder="选择时间"
|
||||
:disabled="disabled"
|
||||
@change="generateCron"
|
||||
/>
|
||||
<span class="tip-text">在选定的日期执行</span>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
|
||||
<!-- 自定义模式 -->
|
||||
<div v-if="cronMode === 'custom'" class="mode-content">
|
||||
<el-form :model="customConfig" label-width="100px" size="default">
|
||||
<el-form-item label="秒">
|
||||
<el-input
|
||||
v-model="customConfig.second"
|
||||
placeholder="0-59 或 * 或 */5"
|
||||
:disabled="disabled"
|
||||
@input="generateCron"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="分">
|
||||
<el-input
|
||||
v-model="customConfig.minute"
|
||||
placeholder="0-59 或 * 或 */10"
|
||||
:disabled="disabled"
|
||||
@input="generateCron"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="时">
|
||||
<el-input
|
||||
v-model="customConfig.hour"
|
||||
placeholder="0-23 或 * 或 8-18"
|
||||
:disabled="disabled"
|
||||
@input="generateCron"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="日">
|
||||
<el-input
|
||||
v-model="customConfig.day"
|
||||
placeholder="1-31 或 * 或 ?"
|
||||
:disabled="disabled"
|
||||
@input="generateCron"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="月">
|
||||
<el-input
|
||||
v-model="customConfig.month"
|
||||
placeholder="1-12 或 * 或 JAN-DEC"
|
||||
:disabled="disabled"
|
||||
@input="generateCron"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="周">
|
||||
<el-input
|
||||
v-model="customConfig.week"
|
||||
placeholder="0-7 或 * 或 ? 或 MON-SUN"
|
||||
:disabled="disabled"
|
||||
@input="generateCron"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div class="cron-help">
|
||||
<div class="cron-help-title">
|
||||
<el-icon class="help-icon"><InfoFilled /></el-icon>
|
||||
<span>Cron 表达式说明</span>
|
||||
</div>
|
||||
<ul class="cron-help-list">
|
||||
<li><strong>*</strong> <span>表示所有值</span></li>
|
||||
<li><strong>?</strong> <span>表示不指定值(仅日和周可用)</span></li>
|
||||
<li><strong>-</strong> <span>表示范围,如:8-18</span></li>
|
||||
<li><strong>,</strong> <span>表示列举,如:1,3,5</span></li>
|
||||
<li><strong>/</strong> <span>表示增量,如:*/5 表示每5个单位</span></li>
|
||||
<li><strong>周</strong> <span>1-7 或 MON-SUN(1=周一,7=周日)</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cron-result">
|
||||
<el-form label-width="120px">
|
||||
<el-form-item label="Cron 表达式">
|
||||
<el-input
|
||||
v-model="cronExpression"
|
||||
readonly
|
||||
placeholder="自动生成的 Cron 表达式"
|
||||
class="cron-expression-input"
|
||||
>
|
||||
<template #append>
|
||||
<el-button
|
||||
v-clipboard:copy="cronExpression"
|
||||
v-clipboard:success="onCopySuccess"
|
||||
v-clipboard:error="onCopyError">
|
||||
复制
|
||||
</el-button>
|
||||
</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="执行说明" v-if="cronDescription" class="description-item">
|
||||
<el-tag type="primary" effect="plain" class="cron-description">{{ cronDescription }}</el-tag>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { InfoFilled } from '@element-plus/icons-vue';
|
||||
import { ElMessage } from 'element-plus';
|
||||
|
||||
export default {
|
||||
name: 'CronEditor',
|
||||
props: {
|
||||
modelValue: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
InfoFilled,
|
||||
cronMode: 'daily',
|
||||
cronExpression: '',
|
||||
cronDescription: '',
|
||||
|
||||
// 每天配置
|
||||
dailyConfig: {
|
||||
time: '00:00:00'
|
||||
},
|
||||
|
||||
// 每周配置
|
||||
weeklyConfig: {
|
||||
weekDays: ['1'],
|
||||
time: '00:00:00'
|
||||
},
|
||||
|
||||
// 每月配置
|
||||
monthlyConfig: {
|
||||
days: [1],
|
||||
time: '00:00:00'
|
||||
},
|
||||
|
||||
// 自定义配置
|
||||
customConfig: {
|
||||
second: '0',
|
||||
minute: '0',
|
||||
hour: '0',
|
||||
day: '*',
|
||||
month: '*',
|
||||
week: '?'
|
||||
}
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
modelValue: {
|
||||
handler(newVal) {
|
||||
if (newVal && newVal !== this.cronExpression) {
|
||||
this.parseCron(newVal);
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
cronExpression(newVal) {
|
||||
this.$emit('update:modelValue', newVal);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (!this.modelValue) {
|
||||
this.generateCron();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 切换模式时重置配置
|
||||
*/
|
||||
handleModeChange() {
|
||||
this.generateCron();
|
||||
},
|
||||
|
||||
/**
|
||||
* 生成 Cron 表达式
|
||||
*/
|
||||
generateCron() {
|
||||
let cron = '';
|
||||
let description = '';
|
||||
|
||||
switch (this.cronMode) {
|
||||
case 'daily':
|
||||
cron = this.generateDailyCron();
|
||||
description = `每天 ${this.dailyConfig.time} 执行`;
|
||||
break;
|
||||
case 'weekly':
|
||||
cron = this.generateWeeklyCron();
|
||||
description = this.getWeeklyDescription();
|
||||
break;
|
||||
case 'monthly':
|
||||
cron = this.generateMonthlyCron();
|
||||
description = this.getMonthlyDescription();
|
||||
break;
|
||||
case 'custom':
|
||||
cron = this.generateCustomCron();
|
||||
description = '自定义表达式';
|
||||
break;
|
||||
}
|
||||
|
||||
this.cronExpression = cron;
|
||||
this.cronDescription = description;
|
||||
},
|
||||
|
||||
/**
|
||||
* 生成每天的 Cron 表达式
|
||||
*/
|
||||
generateDailyCron() {
|
||||
const time = this.dailyConfig.time || '00:00:00';
|
||||
const [hour, minute, second] = time.split(':');
|
||||
return `${second} ${minute} ${hour} * * ?`;
|
||||
},
|
||||
|
||||
/**
|
||||
* 生成每周的 Cron 表达式
|
||||
*/
|
||||
generateWeeklyCron() {
|
||||
if (!this.weeklyConfig.weekDays || this.weeklyConfig.weekDays.length === 0) {
|
||||
return '0 0 0 ? * 1';
|
||||
}
|
||||
|
||||
const time = this.weeklyConfig.time || '00:00:00';
|
||||
const [hour, minute, second] = time.split(':');
|
||||
const weekDays = this.weeklyConfig.weekDays.sort((a, b) => a - b).join(',');
|
||||
|
||||
return `${second} ${minute} ${hour} ? * ${weekDays}`;
|
||||
},
|
||||
|
||||
/**
|
||||
* 生成每月的 Cron 表达式
|
||||
*/
|
||||
generateMonthlyCron() {
|
||||
if (!this.monthlyConfig.days || this.monthlyConfig.days.length === 0) {
|
||||
return '0 0 0 1 * ?';
|
||||
}
|
||||
|
||||
const time = this.monthlyConfig.time || '00:00:00';
|
||||
const [hour, minute, second] = time.split(':');
|
||||
const days = this.monthlyConfig.days.sort((a, b) => a - b).join(',');
|
||||
|
||||
return `${second} ${minute} ${hour} ${days} * ?`;
|
||||
},
|
||||
|
||||
/**
|
||||
* 生成自定义的 Cron 表达式
|
||||
*/
|
||||
generateCustomCron() {
|
||||
const { second, minute, hour, day, month, week } = this.customConfig;
|
||||
return `${second || '0'} ${minute || '0'} ${hour || '0'} ${day || '*'} ${month || '*'} ${week || '?'}`;
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取每周执行说明
|
||||
*/
|
||||
getWeeklyDescription() {
|
||||
const weekMap = {
|
||||
'1': '周一',
|
||||
'2': '周二',
|
||||
'3': '周三',
|
||||
'4': '周四',
|
||||
'5': '周五',
|
||||
'6': '周六',
|
||||
'7': '周日'
|
||||
};
|
||||
|
||||
const weekDays = this.weeklyConfig.weekDays.map(day => weekMap[day]).join('、');
|
||||
return `每周 ${weekDays} ${this.weeklyConfig.time} 执行`;
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取每月执行说明
|
||||
*/
|
||||
getMonthlyDescription() {
|
||||
const days = this.monthlyConfig.days.sort((a, b) => a - b).join('、');
|
||||
return `每月 ${days} 号 ${this.monthlyConfig.time} 执行`;
|
||||
},
|
||||
|
||||
/**
|
||||
* 解析 Cron 表达式(反向解析,用于回显)
|
||||
*/
|
||||
parseCron(cron) {
|
||||
if (!cron) return;
|
||||
|
||||
const parts = cron.trim().split(/\s+/);
|
||||
if (parts.length !== 6) {
|
||||
// 如果不是标准6位表达式,设置为自定义模式
|
||||
this.cronMode = 'custom';
|
||||
this.customConfig = {
|
||||
second: parts[0] || '0',
|
||||
minute: parts[1] || '0',
|
||||
hour: parts[2] || '0',
|
||||
day: parts[3] || '*',
|
||||
month: parts[4] || '*',
|
||||
week: parts[5] || '?'
|
||||
};
|
||||
this.cronExpression = cron;
|
||||
return;
|
||||
}
|
||||
|
||||
const [second, minute, hour, day, month, week] = parts;
|
||||
|
||||
// 尝试识别模式
|
||||
if (day === '*' && week === '?') {
|
||||
// 可能是每天
|
||||
this.cronMode = 'daily';
|
||||
this.dailyConfig.time = `${hour.padStart(2, '0')}:${minute.padStart(2, '0')}:${second.padStart(2, '0')}`;
|
||||
} else if (day === '?' && week !== '?' && week !== '*') {
|
||||
// 可能是每周
|
||||
this.cronMode = 'weekly';
|
||||
this.weeklyConfig.weekDays = week.split(',');
|
||||
this.weeklyConfig.time = `${hour.padStart(2, '0')}:${minute.padStart(2, '0')}:${second.padStart(2, '0')}`;
|
||||
} else if (day !== '*' && day !== '?' && week === '?') {
|
||||
// 可能是每月
|
||||
this.cronMode = 'monthly';
|
||||
this.monthlyConfig.days = day.split(',').map(d => parseInt(d));
|
||||
this.monthlyConfig.time = `${hour.padStart(2, '0')}:${minute.padStart(2, '0')}:${second.padStart(2, '0')}`;
|
||||
} else {
|
||||
// 自定义模式
|
||||
this.cronMode = 'custom';
|
||||
this.customConfig = { second, minute, hour, day, month, week };
|
||||
}
|
||||
|
||||
this.cronExpression = cron;
|
||||
this.generateCron();
|
||||
},
|
||||
|
||||
/**
|
||||
* 复制成功回调
|
||||
*/
|
||||
onCopySuccess() {
|
||||
ElMessage.success('Cron 表达式已复制到剪贴板');
|
||||
},
|
||||
|
||||
/**
|
||||
* 复制失败回调
|
||||
*/
|
||||
onCopyError() {
|
||||
ElMessage.error('复制失败,请手动复制');
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取当前 Cron 表达式(供父组件调用)
|
||||
*/
|
||||
getCronExpression() {
|
||||
return this.cronExpression;
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.cron-editor {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.cron-card {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.cron-mode-tabs {
|
||||
margin-bottom: 24px;
|
||||
padding-bottom: 16px;
|
||||
border-bottom: 1px solid #e4e7ed;
|
||||
}
|
||||
|
||||
.cron-mode-tabs :deep(.el-radio-button__inner) {
|
||||
padding: 10px 20px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.cron-config-area {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.mode-content {
|
||||
animation: fadeIn 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-10px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.tip-text {
|
||||
margin-left: 12px;
|
||||
color: #909399;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.cron-help {
|
||||
margin-top: 18px;
|
||||
padding: 16px;
|
||||
background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
|
||||
border: 1px solid #fde047;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 6px rgba(234, 179, 8, 0.1);
|
||||
}
|
||||
|
||||
.cron-help-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 12px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #854d0e;
|
||||
}
|
||||
|
||||
.help-icon {
|
||||
margin-right: 6px;
|
||||
font-size: 16px;
|
||||
color: #ca8a04;
|
||||
}
|
||||
|
||||
.cron-help-list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.cron-help-list li {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
line-height: 26px;
|
||||
color: #713f12;
|
||||
font-size: 13px;
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.cron-help-list li strong {
|
||||
display: inline-block;
|
||||
min-width: 36px;
|
||||
margin-right: 8px;
|
||||
padding: 2px 8px;
|
||||
background-color: #fef3c7;
|
||||
border: 1px solid #fde047;
|
||||
border-radius: 4px;
|
||||
color: #b45309;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cron-help-list li span {
|
||||
flex: 1;
|
||||
color: #78716c;
|
||||
}
|
||||
|
||||
.cron-result {
|
||||
margin-top: 25px;
|
||||
padding: 18px 20px;
|
||||
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
|
||||
border: 1px solid #bae6fd;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
|
||||
}
|
||||
|
||||
.cron-description {
|
||||
font-size: 14px;
|
||||
padding: 8px 16px;
|
||||
background-color: #f0f9ff;
|
||||
border-color: #bfdbfe;
|
||||
color: #3b82f6;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.cron-expression-input :deep(.el-input__inner) {
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #409eff;
|
||||
}
|
||||
|
||||
:deep(.el-checkbox) {
|
||||
margin-right: 20px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.mode-content :deep(.el-form-item) {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.mode-content :deep(.el-form-item:last-child) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
:deep(.el-select .el-input__inner) {
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
:deep(.el-time-picker) {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.description-item {
|
||||
margin-top: 16px;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div class="error-page">
|
||||
<div class="img" style="background-image: url('/img/403.svg')"></div>
|
||||
<div class="content">
|
||||
<h1>403</h1>
|
||||
<div class="desc">抱歉,你无权访问该页面</div>
|
||||
<div class="actions">
|
||||
<router-link :to="{ path: '/' }">
|
||||
<el-button type="primary">返回首页</el-button>
|
||||
</router-link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'error-403',
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@use './style.scss';
|
||||
</style>
|
||||
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div class="error-page">
|
||||
<div class="img" style="background-image: url('/img/404.svg')"></div>
|
||||
<div class="content">
|
||||
<h1>404</h1>
|
||||
<div class="desc">抱歉,你访问的页面不存在</div>
|
||||
<div class="actions">
|
||||
<router-link :to="{ path: '/' }">
|
||||
<el-button type="primary">返回首页</el-button>
|
||||
</router-link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'error-404',
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@use './style.scss';
|
||||
</style>
|
||||
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div class="error-page">
|
||||
<div class="img" style="background-image: url('/img/500.svg')"></div>
|
||||
<div class="content">
|
||||
<h1>500</h1>
|
||||
<div class="desc">抱歉,服务器出错了</div>
|
||||
<div class="actions">
|
||||
<router-link :to="{ path: '/' }">
|
||||
<el-button type="primary">返回首页</el-button>
|
||||
</router-link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'error-500',
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@use './style.scss';
|
||||
</style>
|
||||
@@ -0,0 +1,35 @@
|
||||
.error-page {
|
||||
background: #f0f2f5;
|
||||
margin-top: -30px;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.img {
|
||||
margin-right: 80px;
|
||||
height: 360px;
|
||||
width: 100%;
|
||||
max-width: 430px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: 50% 50%;
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
.content {
|
||||
h1 {
|
||||
color: #434e59;
|
||||
font-size: 72px;
|
||||
font-weight: 600;
|
||||
line-height: 72px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.desc {
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
font-size: 20px;
|
||||
line-height: 28px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
<template>
|
||||
<div v-if="componentLoaded">
|
||||
<el-dialog
|
||||
v-if="website.design.designMode"
|
||||
title="流程配置"
|
||||
append-to-body
|
||||
destroy-on-close
|
||||
v-model="visible"
|
||||
:close-on-press-escape="false"
|
||||
:fullscreen="true"
|
||||
:before-close="handleNutflowClose"
|
||||
class="nf-dialog"
|
||||
>
|
||||
<nf-design-base
|
||||
v-if="nutflowOption.step === 1"
|
||||
class="animated fadeIn"
|
||||
style="height: calc(100vh - 108px)"
|
||||
ref="nf-design"
|
||||
:options="nutflowOption.step1"
|
||||
></nf-design-base>
|
||||
<nf-design-base
|
||||
v-if="nutflowOption.step === 2"
|
||||
class="animated fadeIn"
|
||||
style="height: calc(100vh - 108px)"
|
||||
ref="nf-design-view"
|
||||
:options="nutflowOption.step2"
|
||||
></nf-design-base>
|
||||
<template #footer>
|
||||
<span class="avue-dialog__footer">
|
||||
<el-button @click="handleNutflowClose(() => {}, true)">取 消</el-button>
|
||||
<el-button v-if="nutflowOption.step === 1" type="success" @click="handleStep(1)"
|
||||
>下 一 步</el-button
|
||||
>
|
||||
<el-button v-if="nutflowOption.step === 2" type="success" @click="handleStep(-1)"
|
||||
>上 一 步</el-button
|
||||
>
|
||||
<el-button v-if="nutflowOption.step === 2" type="primary" @click="handleSubmitModel"
|
||||
>确 定</el-button
|
||||
>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { loadFlowModule } from '@/utils/module';
|
||||
import { submitModel } from '@/api/flow/flow';
|
||||
|
||||
export default {
|
||||
name: 'flowDesign',
|
||||
props: {
|
||||
isDisplay: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
componentLoaded: false,
|
||||
nutflowOption: {
|
||||
process: {},
|
||||
step: 1,
|
||||
step1: {
|
||||
toolbar: [
|
||||
'open',
|
||||
'create',
|
||||
'fit',
|
||||
'zoom-in',
|
||||
'zoom-out',
|
||||
'undo',
|
||||
'redo',
|
||||
'import',
|
||||
'preview',
|
||||
],
|
||||
},
|
||||
step2: {
|
||||
mode: 'view',
|
||||
simulation: true,
|
||||
minimap: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
// 懒加载流程设计器模块
|
||||
loadFlowModule(this.$app).then(() => {
|
||||
this.componentLoaded = true;
|
||||
});
|
||||
},
|
||||
watch: {
|
||||
isDisplay: {
|
||||
handler(val) {
|
||||
this.visible = val;
|
||||
},
|
||||
immediate: true,
|
||||
},
|
||||
visible: {
|
||||
handler(val) {
|
||||
this.$emit('update:is-display', val);
|
||||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
handleSubmitModel() {
|
||||
const registry = this.$refs['nf-design-view'].getElementRegistry().getAll();
|
||||
const { businessObject } = registry[0];
|
||||
const { id, name, documentation } = businessObject;
|
||||
const description = documentation && documentation.length > 0 ? documentation[0].text : null;
|
||||
const params = {
|
||||
...this.nutflowOption.process,
|
||||
modelKey: id,
|
||||
name,
|
||||
description,
|
||||
modelEditorXml: this.nutflowOption.process.xml,
|
||||
};
|
||||
submitModel(params).then(() => {
|
||||
this.$message.success('操作成功');
|
||||
this.handleNutflowClose();
|
||||
this.$emit('loadData');
|
||||
});
|
||||
},
|
||||
handleStep(step) {
|
||||
if (step === 1) {
|
||||
// 下一步
|
||||
this.$refs['nf-design'].getData('xml').then(data => {
|
||||
this.nutflowOption.step1.xml = data;
|
||||
this.nutflowOption.step2.xml = data;
|
||||
this.nutflowOption.process.xml = data;
|
||||
this.nutflowOption.step = 2;
|
||||
});
|
||||
} else this.nutflowOption.step = 1;
|
||||
},
|
||||
handleNutflowClose(done, flag) {
|
||||
const initOption = {
|
||||
process: {},
|
||||
step: 1,
|
||||
step1: {
|
||||
toolbar: [
|
||||
'open',
|
||||
'create',
|
||||
'fit',
|
||||
'zoom-in',
|
||||
'zoom-out',
|
||||
'undo',
|
||||
'redo',
|
||||
'import',
|
||||
'preview',
|
||||
],
|
||||
},
|
||||
step2: {
|
||||
mode: 'view',
|
||||
simulation: true,
|
||||
minimap: true,
|
||||
},
|
||||
};
|
||||
if (done || flag) {
|
||||
this.$confirm('确定要关闭吗?关闭未保存的修改都会丢失。', '警告', {
|
||||
type: 'warning',
|
||||
})
|
||||
.then(() => {
|
||||
this.nutflowOption = initOption;
|
||||
if (typeof done == 'function') done();
|
||||
this.visible = false;
|
||||
})
|
||||
.catch(() => {});
|
||||
} else {
|
||||
this.nutflowOption = initOption;
|
||||
this.visible = false;
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.flow-design-dialog {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0 !important;
|
||||
position: absolute;
|
||||
top: 40%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -40%);
|
||||
max-height: calc(100% - 30px);
|
||||
max-width: calc(100% - 30px);
|
||||
|
||||
.el-dialog__body {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,133 @@
|
||||
<template>
|
||||
<div v-if="componentLoaded">
|
||||
<el-dialog
|
||||
v-if="isDialog"
|
||||
v-model="visible"
|
||||
append-to-body
|
||||
destroy-on-close
|
||||
title="流程图展示"
|
||||
width="70%"
|
||||
class="flow-design-dialog"
|
||||
>
|
||||
<nf-design-base ref="bpmn" style="height: 60vh" :options="option"></nf-design-base>
|
||||
</el-dialog>
|
||||
<div v-else>
|
||||
<nf-design-base
|
||||
v-if="visible"
|
||||
ref="bpmn"
|
||||
style="height: 60vh"
|
||||
:options="option"
|
||||
></nf-design-base>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { loadFlowModule } from '@/utils/module';
|
||||
import { modelView } from '@/api/flow/flow';
|
||||
|
||||
export default {
|
||||
name: 'flowDesign',
|
||||
props: {
|
||||
isDialog: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
isDisplay: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
processInstanceId: String,
|
||||
processDefinitionId: String,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
componentLoaded: false,
|
||||
option: {
|
||||
mode: 'view',
|
||||
},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
// 懒加载流程设计器模块
|
||||
loadFlowModule(this.$app).then(() => {
|
||||
this.componentLoaded = true;
|
||||
});
|
||||
},
|
||||
watch: {
|
||||
isDisplay: {
|
||||
handler(val) {
|
||||
this.visible = val;
|
||||
},
|
||||
immediate: true,
|
||||
},
|
||||
visible: {
|
||||
handler(val) {
|
||||
this.$emit('update:is-display', val);
|
||||
},
|
||||
},
|
||||
processInstanceId: {
|
||||
handler(val) {
|
||||
if (!val) return;
|
||||
this.getDetail({ processInstanceId: this.processInstanceId });
|
||||
},
|
||||
immediate: true,
|
||||
},
|
||||
processDefinitionId: {
|
||||
handler(val) {
|
||||
if (!val) return;
|
||||
this.getDetail({ processDefinitionId: this.processDefinitionId });
|
||||
},
|
||||
immediate: true,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
getDetail(params) {
|
||||
modelView(params).then(res => {
|
||||
const data = res.data.data;
|
||||
const { xml, flow } = data;
|
||||
this.option.xml = xml;
|
||||
if (flow) {
|
||||
const flows = [];
|
||||
flow.forEach(f => {
|
||||
let { endTime } = f;
|
||||
|
||||
const ff = {
|
||||
id: f.historyActivityId,
|
||||
class: !endTime && f.historyActivityType !== 'candidate' ? 'nodePrimary' : '',
|
||||
};
|
||||
|
||||
if (f.historyActivityType === 'sequenceFlow') ff.class = 'lineWarn';
|
||||
else if (!ff.class && f.historyActivityType !== 'candidate') ff.class = 'nodeSuccess';
|
||||
|
||||
const index = flows.findIndex(fl => fl.id === f.historyActivityId);
|
||||
if (index !== -1) flows.splice(index, 1, ff);
|
||||
else flows.push(ff);
|
||||
});
|
||||
this.option.flows = flows;
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.flow-design-dialog {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0 !important;
|
||||
position: absolute;
|
||||
top: 40%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -40%);
|
||||
max-height: calc(100% - 30px);
|
||||
max-width: calc(100% - 30px);
|
||||
|
||||
.el-dialog__body {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,90 @@
|
||||
<template>
|
||||
<div class="code-block-container">
|
||||
<pre v-if="highlightedCode"><code v-html="highlightedCode" class="hljs"></code></pre>
|
||||
<button v-if="clipboard"
|
||||
v-clipboard:copy="this.code"
|
||||
v-clipboard:success="onCopySuccess"
|
||||
class="copy-btn">
|
||||
一键复制
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import hljs from 'highlight.js';
|
||||
import formatter from '@/utils/formatter';
|
||||
// 引入语言支持
|
||||
import json from 'highlight.js/lib/languages/json';
|
||||
import java from 'highlight.js/lib/languages/java';
|
||||
import javascript from 'highlight.js/lib/languages/javascript';
|
||||
import 'highlight.js/styles/github.css';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
code: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
language: {
|
||||
type: String,
|
||||
default: 'javascript'
|
||||
},
|
||||
clipboard: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
highlightedCode() {
|
||||
hljs.registerLanguage('json', json);
|
||||
hljs.registerLanguage('java', java);
|
||||
hljs.registerLanguage('javascript', javascript);
|
||||
let code = this.code;
|
||||
if (this.language === 'json') {
|
||||
code = formatter.prettyCode(this.code);
|
||||
}
|
||||
return hljs.highlight(code, {language: this.language, ignoreIllegals: true}).value;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onCopySuccess() {
|
||||
this.$message.success('复制成功');
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.code-block-container {
|
||||
position: relative;
|
||||
background-color: #f0f0f0;
|
||||
width: 100%;
|
||||
overflow-y: auto; /* 只显示纵向滚动条 */
|
||||
overflow-x: hidden; /* 隐藏横向滚动条 */
|
||||
white-space: pre-wrap; /* 防止内容溢出 */
|
||||
word-wrap: break-word; /* 自动换行 */
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 0.5em;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.copy-btn {
|
||||
position: absolute;
|
||||
top: 0.5em;
|
||||
right: 0.5em;
|
||||
padding: 0.25em 0.5em;
|
||||
font-size: 0.75em;
|
||||
color: #fff;
|
||||
background-color: #606266;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.copy-btn:hover {
|
||||
background-color: #909399;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,82 @@
|
||||
<template>
|
||||
<basic-container>
|
||||
<iframe :src="src" class="iframe" ref="iframe" />
|
||||
</basic-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NProgress from 'nprogress'; // progress bar
|
||||
import 'nprogress/nprogress.css'; // progress bar style
|
||||
export default {
|
||||
name: 'AvueIframe',
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
created() {
|
||||
NProgress.configure({ showSpinner: false });
|
||||
},
|
||||
mounted() {
|
||||
this.load();
|
||||
},
|
||||
watch: {
|
||||
$route: function () {
|
||||
this.load();
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
src() {
|
||||
return this.$route.query.url.replace(/#/g, '&');
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
// 显示等待框
|
||||
show() {
|
||||
NProgress.start();
|
||||
},
|
||||
// 隐藏等待狂
|
||||
hide() {
|
||||
NProgress.done();
|
||||
},
|
||||
// 加载组件
|
||||
load() {
|
||||
this.show();
|
||||
//超时3s自动隐藏等待狂,加强用户体验
|
||||
let time = 3;
|
||||
const timeFunc = setInterval(() => {
|
||||
time--;
|
||||
if (time == 0) {
|
||||
this.hide();
|
||||
clearInterval(timeFunc);
|
||||
}
|
||||
}, 1000);
|
||||
this.iframeInit();
|
||||
},
|
||||
//iframe窗口初始化
|
||||
iframeInit() {
|
||||
const iframe = this.$refs.iframe;
|
||||
const clientHeight = document.documentElement.clientHeight - 150;
|
||||
if (!iframe) return;
|
||||
iframe.style.height = `${clientHeight}px`;
|
||||
if (iframe.attachEvent) {
|
||||
iframe.attachEvent('onload', () => {
|
||||
this.hide();
|
||||
});
|
||||
} else {
|
||||
iframe.onload = () => {
|
||||
this.hide();
|
||||
};
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 0;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,129 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
title="账号注册"
|
||||
append-to-body
|
||||
v-model="accountBox"
|
||||
:close-on-click-modal="false"
|
||||
:close-on-press-escape="false"
|
||||
:show-close="false"
|
||||
width="20%"
|
||||
>
|
||||
<el-form :model="form" ref="form" label-width="80px">
|
||||
<el-form-item v-if="tenantMode" label="租户编号">
|
||||
<el-input v-model="form.tenantId" placeholder="请输入租户编号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="用户姓名">
|
||||
<el-input v-model="form.name" placeholder="请输入用户姓名"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="账号名称">
|
||||
<el-input v-model="form.account" placeholder="请输入账号名称"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="账号密码">
|
||||
<el-input v-model="form.password" placeholder="请输入账号密码"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="确认密码">
|
||||
<el-input v-model="form.password2" placeholder="请输入确认密码"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button type="primary" :loading="loading" @click="handleRegister">确 定</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapGetters } from 'vuex';
|
||||
import { validatenull } from 'utils/validate';
|
||||
import { registerGuest } from '@/api/user';
|
||||
import { getTopUrl } from 'utils/util';
|
||||
import { info } from '@/api/system/tenant';
|
||||
import { resetRouter } from '@/router/index';
|
||||
|
||||
export default {
|
||||
name: 'thirdRegister',
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
tenantId: '',
|
||||
name: '',
|
||||
account: '',
|
||||
password: '',
|
||||
password2: '',
|
||||
},
|
||||
loading: false,
|
||||
tenantMode: true,
|
||||
accountBox: false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['userInfo']),
|
||||
},
|
||||
created() {
|
||||
this.getTenant();
|
||||
},
|
||||
mounted() {
|
||||
// 若未登录则弹出框进行绑定
|
||||
if (validatenull(this.userInfo.userId) || this.userInfo.userId < 0) {
|
||||
this.form.name = this.userInfo.userName;
|
||||
this.form.account = this.userInfo.account;
|
||||
this.accountBox = true;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleRegister() {
|
||||
if (this.form.tenantId === '') {
|
||||
this.$message.warning('请先输入租户编号');
|
||||
return;
|
||||
}
|
||||
if (this.form.account === '') {
|
||||
this.$message.warning('请先输入账号名称');
|
||||
return;
|
||||
}
|
||||
if (this.form.password === '' || this.form.password2 === '') {
|
||||
this.$message.warning('请先输入密码');
|
||||
return;
|
||||
}
|
||||
if (this.form.password !== this.form.password2) {
|
||||
this.$message.warning('两次密码输入不一致');
|
||||
return;
|
||||
}
|
||||
this.loading = true;
|
||||
registerGuest(this.form, this.userInfo.oauthId).then(
|
||||
res => {
|
||||
this.loading = false;
|
||||
const data = res.data;
|
||||
if (data.success) {
|
||||
this.accountBox = false;
|
||||
this.$alert('注册申请已提交,请耐心等待管理员通过!', '注册提示').then(() => {
|
||||
this.$store.dispatch('LogOut').then(() => {
|
||||
resetRouter();
|
||||
this.$router.push({ path: '/login' });
|
||||
});
|
||||
});
|
||||
} else {
|
||||
this.$message.error(data.msg || '提交失败');
|
||||
}
|
||||
},
|
||||
error => {
|
||||
window.console.log(error);
|
||||
this.loading = false;
|
||||
}
|
||||
);
|
||||
},
|
||||
getTenant() {
|
||||
let domain = getTopUrl();
|
||||
// 临时指定域名,方便测试
|
||||
//domain = "https://bladex.cn";
|
||||
info(domain).then(res => {
|
||||
const data = res.data;
|
||||
if (data.success && data.data.tenantId) {
|
||||
this.form.tenantId = data.data.tenantId;
|
||||
this.tenantMode = false;
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -0,0 +1,2 @@
|
||||
let baseUrl = import.meta.env.VITE_APP_API;
|
||||
export { baseUrl };
|
||||
@@ -0,0 +1,380 @@
|
||||
export default [
|
||||
{
|
||||
label: '通用图标',
|
||||
list: [
|
||||
'iconfont iconicon_roundadd',
|
||||
'iconfont iconicon_compile',
|
||||
'iconfont iconicon_glass',
|
||||
'iconfont iconicon_roundclose',
|
||||
'iconfont iconicon_roundreduce',
|
||||
'iconfont iconicon_delete',
|
||||
'iconfont iconicon_shakehands',
|
||||
'iconfont iconicon_task_done',
|
||||
'iconfont iconicon_voipphone',
|
||||
'iconfont iconicon_safety',
|
||||
'iconfont iconicon_work',
|
||||
'iconfont iconicon_study',
|
||||
'iconfont iconicon_task',
|
||||
'iconfont iconicon_subordinate',
|
||||
'iconfont iconicon_star',
|
||||
'iconfont iconicon_setting',
|
||||
'iconfont iconicon_sms',
|
||||
'iconfont iconicon_share',
|
||||
'iconfont iconicon_secret',
|
||||
'iconfont iconicon_scan_namecard',
|
||||
'iconfont iconicon_principal',
|
||||
'iconfont iconicon_group',
|
||||
'iconfont iconicon_send',
|
||||
'iconfont iconicon_scan',
|
||||
'iconfont iconicon_search',
|
||||
'iconfont iconicon_refresh',
|
||||
'iconfont iconicon_savememo',
|
||||
'iconfont iconicon_QRcode',
|
||||
'iconfont iconicon_im_keyboard',
|
||||
'iconfont iconicon_redpacket',
|
||||
'iconfont iconicon_photo',
|
||||
'iconfont iconicon_qq',
|
||||
'iconfont iconicon_wechat',
|
||||
'iconfont iconicon_phone',
|
||||
'iconfont iconicon_namecard',
|
||||
'iconfont iconicon_notice',
|
||||
'iconfont iconicon_next_arrow',
|
||||
'iconfont iconicon_left',
|
||||
'iconfont iconicon_more',
|
||||
'iconfont iconicon_details',
|
||||
'iconfont iconicon_message',
|
||||
'iconfont iconicon_mobilephone',
|
||||
'iconfont iconicon_im_voice',
|
||||
'iconfont iconicon_GPS',
|
||||
'iconfont iconicon_ding',
|
||||
'iconfont iconicon_exchange',
|
||||
'iconfont iconicon_cspace',
|
||||
'iconfont iconicon_doc',
|
||||
'iconfont iconicon_dispose',
|
||||
'iconfont iconicon_discovery',
|
||||
'iconfont iconicon_community_line',
|
||||
'iconfont iconicon_cloud_history',
|
||||
'iconfont iconicon_coinpurse_line',
|
||||
'iconfont iconicon_airplay',
|
||||
'iconfont iconicon_at',
|
||||
'iconfont iconicon_addressbook',
|
||||
'iconfont iconicon_boss',
|
||||
'iconfont iconicon_addperson',
|
||||
'iconfont iconicon_affiliations_li',
|
||||
'iconfont iconicon_addmessage',
|
||||
'iconfont iconicon_addresslist',
|
||||
'iconfont iconicon_add',
|
||||
'iconfont icongithub',
|
||||
'iconfont icongitee2',
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '系统图标',
|
||||
list: [
|
||||
'iconfont icon-zhongyingwen',
|
||||
'iconfont icon-caidan',
|
||||
'iconfont icon-rizhi1',
|
||||
'iconfont icon-zhuti',
|
||||
'iconfont icon-suoping',
|
||||
'iconfont icon-bug',
|
||||
'iconfont icon-qq1',
|
||||
'iconfont icon-weixin1',
|
||||
'iconfont icon-shouji',
|
||||
'iconfont icon-mima',
|
||||
'iconfont icon-yonghu',
|
||||
'iconfont icon-yanzhengma',
|
||||
'iconfont icon-canshu',
|
||||
'iconfont icon-dongtai',
|
||||
'iconfont icon-iconset0265',
|
||||
'iconfont icon-shujuzhanshi2',
|
||||
'iconfont icon-tuichuquanping',
|
||||
'iconfont icon-rizhi',
|
||||
'iconfont icon-cuowutishitubiao',
|
||||
'iconfont icon-debug',
|
||||
'iconfont icon-iconset0216',
|
||||
'iconfont icon-quanxian',
|
||||
'iconfont icon-quanxian',
|
||||
'iconfont icon-shuaxin',
|
||||
'iconfont icon-bofangqi-suoping',
|
||||
'iconfont icon-quanping',
|
||||
'iconfont icon-navicon',
|
||||
'iconfont icon-biaodan',
|
||||
'iconfont icon-liuliangyunpingtaitubiao08',
|
||||
'iconfont icon-caidanguanli',
|
||||
'iconfont icon-cuowu',
|
||||
'iconfont icon-wxbgongju',
|
||||
'iconfont icon-tuichu',
|
||||
'iconfont icon-daohanglanmoshi02',
|
||||
'iconfont icon-changyonglogo27',
|
||||
'iconfont icon-biaoge',
|
||||
'iconfont icon-baidu1',
|
||||
'iconfont icon-tubiao',
|
||||
'iconfont icon-souhu',
|
||||
'iconfont icon-msnui-360',
|
||||
'iconfont icon-iframe',
|
||||
'iconfont icon-huanyingye',
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '业务图标',
|
||||
list: [
|
||||
'iconfont icon-zidingyi',
|
||||
'iconfont icon-xiajiantou',
|
||||
'iconfont icon-shangjiantou',
|
||||
'iconfont icon-icon_loading',
|
||||
'iconfont icon-biaodanzujian-shurukuang',
|
||||
'iconfont icon-biaodanzujian-biaoge',
|
||||
'iconfont icon-biaodanzujian-xialakuang',
|
||||
'iconfont icon-tubiao-bingtu',
|
||||
'iconfont icon-biaodanzujian-anniu',
|
||||
'iconfont icon-gongyezujian-yibiaopan',
|
||||
'iconfont icon-tubiao-qiapian',
|
||||
'iconfont icon-gongyezujian-zhishideng',
|
||||
'iconfont icon-tubiao-zhexiantu',
|
||||
'iconfont icon-xingzhuang-juxing',
|
||||
'iconfont icon-xingzhuang-jianxing',
|
||||
'iconfont icon-gongyezujian-kaiguan',
|
||||
'iconfont icon-tubiao-zhuzhuangtu',
|
||||
'iconfont icon-xingzhuang-tupian',
|
||||
'iconfont icon-xingzhuang-wenzi',
|
||||
'iconfont icon-xingzhuang-tuoyuanxing',
|
||||
'iconfont icon-xingzhuang-sanjiaoxing',
|
||||
'iconfont icon-xingzhuang-xingxing',
|
||||
'iconfont icon-guize',
|
||||
'iconfont icon-shebeiguanli',
|
||||
'iconfont icon-gongnengdingyi1',
|
||||
'iconfont icon-jishufuwu1',
|
||||
'iconfont icon-yunyingzhongxin',
|
||||
'iconfont icon-yunyingguanli',
|
||||
'iconfont icon-zuzhixiaxia',
|
||||
'iconfont icon-zuzhizhankai',
|
||||
'iconfont icon-zuzhiqunzu',
|
||||
'iconfont icon-dakai',
|
||||
'iconfont icon-yingwen',
|
||||
'iconfont icon-zhongwen',
|
||||
'iconfont icon-miwen',
|
||||
'iconfont icon-xianhao',
|
||||
'iconfont icon-kongxinduigou',
|
||||
'iconfont icon-huixingzhen',
|
||||
'iconfont icon-duigou',
|
||||
'iconfont icon-xiayibu',
|
||||
'iconfont icon-shangyibu',
|
||||
'iconfont icon-kongjianxuanzhong',
|
||||
'iconfont icon-kongjianweixuan',
|
||||
'iconfont icon-kongjianyixuan',
|
||||
'iconfont icon--diangan',
|
||||
'iconfont icon-rongxuejirongjiechi',
|
||||
'iconfont icon-lubiantingchechang',
|
||||
'iconfont icon--lumingpai',
|
||||
'iconfont icon-jietouzuoyi',
|
||||
'iconfont icon--zhongdaweixian',
|
||||
'iconfont icon--jiaotongbiaozhipai',
|
||||
'iconfont icon-gongcezhishipai',
|
||||
'iconfont icon-fangkuai',
|
||||
'iconfont icon-fangkuai-',
|
||||
'iconfont icon-shuaxin',
|
||||
'iconfont icon-baocun',
|
||||
'iconfont icon-fabu',
|
||||
'iconfont icon-xiayibu1',
|
||||
'iconfont icon-shangyibu1',
|
||||
'iconfont icon-xiangxiazhanhang',
|
||||
'iconfont icon-xiangshangzhanhang',
|
||||
'iconfont icon-tupianjiazaishibai',
|
||||
'iconfont icon-fuwudiqiu',
|
||||
'iconfont icon-suoxiao',
|
||||
'iconfont icon-fangda',
|
||||
'iconfont icon-huanyuanhuabu',
|
||||
'iconfont icon-quanping',
|
||||
'iconfont icon-biaodanzujian-biaoge1',
|
||||
'iconfont icon-APIshuchu',
|
||||
'iconfont icon-APIjieru',
|
||||
'iconfont icon-wenjianjia',
|
||||
'iconfont icon-DOC',
|
||||
'iconfont icon-BMP',
|
||||
'iconfont icon-GIF',
|
||||
'iconfont icon-JPG',
|
||||
'iconfont icon-PNG',
|
||||
'iconfont icon-weizhigeshi',
|
||||
'iconfont icon-gengduo',
|
||||
'iconfont icon-yunduanxiazai',
|
||||
'iconfont icon-yunduanshangchuan',
|
||||
'iconfont icon-dian',
|
||||
'iconfont icon-mian',
|
||||
'iconfont icon-xian',
|
||||
'iconfont icon-shebeizhuangtai',
|
||||
'iconfont icon-fenzuguanli',
|
||||
'iconfont icon-kuaisubianpai',
|
||||
'iconfont icon-APPkaifa',
|
||||
'iconfont icon-wentijieda',
|
||||
'iconfont icon-kefu',
|
||||
'iconfont icon-ruanjiankaifabao',
|
||||
'iconfont icon-sousuobianxiao',
|
||||
'iconfont icon-sousuofangda',
|
||||
'iconfont icon-dingwei',
|
||||
'iconfont icon-wumoxing',
|
||||
'iconfont icon-gaojing',
|
||||
'iconfont icon-renwujincheng',
|
||||
'iconfont icon-xiaoxitongzhi',
|
||||
'iconfont icon-youhui',
|
||||
'iconfont icon-gaojing1',
|
||||
'iconfont icon-zhihangfankui',
|
||||
'iconfont icon-gongdanqueren',
|
||||
'iconfont icon-guangbo',
|
||||
'iconfont icon-gongdan',
|
||||
'iconfont icon-xiaoxi',
|
||||
'iconfont icon-xinhao',
|
||||
'iconfont icon-lanya',
|
||||
'iconfont icon-Wi-Fi',
|
||||
'iconfont icon-chaxun',
|
||||
'iconfont icon-dianbiao',
|
||||
'iconfont icon-anquan',
|
||||
'iconfont icon-daibanshixiang',
|
||||
'iconfont icon-bingxiang',
|
||||
'iconfont icon-fanshe',
|
||||
'iconfont icon-fengche',
|
||||
'iconfont icon-guandao',
|
||||
'iconfont icon-guize1',
|
||||
'iconfont icon-guizeyinqing',
|
||||
'iconfont icon-huowudui',
|
||||
'iconfont icon-jianceqi',
|
||||
'iconfont icon-jinggai',
|
||||
'iconfont icon-liujisuan',
|
||||
'iconfont icon-hanshu',
|
||||
'iconfont icon-lianjieliu',
|
||||
'iconfont icon-ludeng',
|
||||
'iconfont icon-shexiangji',
|
||||
'iconfont icon-rentijiance',
|
||||
'iconfont icon-moshubang',
|
||||
'iconfont icon-shujuwajue',
|
||||
'iconfont icon-wangguan',
|
||||
'iconfont icon-shenjing',
|
||||
'iconfont icon-chucun',
|
||||
'iconfont icon-wuguan',
|
||||
'iconfont icon-yunduanshuaxin',
|
||||
'iconfont icon-yunhang',
|
||||
'iconfont icon-luyouqi',
|
||||
'iconfont icon-bug',
|
||||
'iconfont icon-get',
|
||||
'iconfont icon-PIR',
|
||||
'iconfont icon-zhexiantu',
|
||||
'iconfont icon-shuibiao',
|
||||
'iconfont icon-js',
|
||||
'iconfont icon-zihangche',
|
||||
'iconfont icon-liebiao',
|
||||
'iconfont icon-qichedingwei',
|
||||
'iconfont icon-dici',
|
||||
'iconfont icon-mysql',
|
||||
'iconfont icon-qiche',
|
||||
'iconfont icon-shenjing1',
|
||||
'iconfont icon-chengshi',
|
||||
'iconfont icon-tixingshixin',
|
||||
'iconfont icon-menci',
|
||||
'iconfont icon-chazuo',
|
||||
'iconfont icon-ranqijianceqi',
|
||||
'iconfont icon-kaiguan',
|
||||
'iconfont icon-chatou',
|
||||
'iconfont icon-xiyiji',
|
||||
'iconfont icon-yijiankaiguan',
|
||||
'iconfont icon-yanwubaojingqi',
|
||||
'iconfont icon-wuxiandianbo',
|
||||
'iconfont icon-fuzhi',
|
||||
'iconfont icon-shanchu',
|
||||
'iconfont icon-bianjisekuai',
|
||||
'iconfont icon-ishipinshixiao',
|
||||
'iconfont icon-iframetianjia',
|
||||
'iconfont icon-tupiantianjia',
|
||||
'iconfont icon-liebiaomoshi_kuai',
|
||||
'iconfont icon-qiapianmoshi_kuai',
|
||||
'iconfont icon-fenlan',
|
||||
'iconfont icon-fengexian',
|
||||
'iconfont icon-dianzan',
|
||||
'iconfont icon-charulianjie',
|
||||
'iconfont icon-charutupian',
|
||||
'iconfont icon-quxiaolianjie',
|
||||
'iconfont icon-wuxupailie',
|
||||
'iconfont icon-juzhongduiqi',
|
||||
'iconfont icon-yinyong',
|
||||
'iconfont icon-youxupailie',
|
||||
'iconfont icon-youduiqi',
|
||||
'iconfont icon-zitidaima',
|
||||
'iconfont icon-xiaolian',
|
||||
'iconfont icon-zitijiacu',
|
||||
'iconfont icon-zitishanchuxian',
|
||||
'iconfont icon-zitishangbiao',
|
||||
'iconfont icon-zitibiaoti',
|
||||
'iconfont icon-zitixiahuaxian',
|
||||
'iconfont icon-zitixieti',
|
||||
'iconfont icon-zitiyanse',
|
||||
'iconfont icon-zuoduiqi',
|
||||
'iconfont icon-zitiyulan',
|
||||
'iconfont icon-zitixiabiao',
|
||||
'iconfont icon-zuoyouduiqi',
|
||||
'iconfont icon-tianxie',
|
||||
'iconfont icon-huowudui1',
|
||||
'iconfont icon-yingjian',
|
||||
'iconfont icon-shebeikaifa',
|
||||
'iconfont icon-dianzan_kuai',
|
||||
'iconfont icon-zhihuan',
|
||||
'iconfont icon-tuoguan',
|
||||
'iconfont icon-duigoux',
|
||||
'iconfont icon-guanbi1',
|
||||
'iconfont icon-aixin_shixin',
|
||||
'iconfont icon-ranqixieloubaojingqi',
|
||||
'iconfont icon-dianbiao_shiti',
|
||||
'iconfont icon-aixin',
|
||||
'iconfont icon-shuibiao_shiti',
|
||||
'iconfont icon-zhinengxiaofangshuan',
|
||||
'iconfont icon-ranqibiao_shiti',
|
||||
'iconfont icon-shexiangtou_shiti',
|
||||
'iconfont icon-shexiangtou_guanbi',
|
||||
'iconfont icon-shexiangtou',
|
||||
'iconfont icon-shengyin_shiti',
|
||||
'iconfont icon-shengyinkai',
|
||||
'iconfont icon-shoucang_shixin',
|
||||
'iconfont icon-shoucang',
|
||||
'iconfont icon-shengyinwu',
|
||||
'iconfont icon-shengyinjingyin',
|
||||
'iconfont icon-zhunbeiliangchan',
|
||||
'iconfont icon-shebeikaifa1',
|
||||
'iconfont icon-kongxinwenhao',
|
||||
'iconfont icon-cuowukongxin',
|
||||
'iconfont icon-fangkuai1',
|
||||
'iconfont icon-fangkuai2',
|
||||
'iconfont icon-kongjianxuanzhong1',
|
||||
'iconfont icon-kongxinduigou1',
|
||||
'iconfont icon-xinxikongxin',
|
||||
'iconfont icon-kongjian',
|
||||
'iconfont icon-gaojingkongxin',
|
||||
'iconfont icon-duigou_kuai',
|
||||
'iconfont icon-cuocha_kuai',
|
||||
'iconfont icon-jia_sekuai',
|
||||
'iconfont icon-jian_sekuai',
|
||||
'iconfont icon-tiaoshi',
|
||||
'iconfont icon-fenxiangfangshi',
|
||||
'iconfont icon-changjingguanli',
|
||||
'iconfont icon-bianji',
|
||||
'iconfont icon-guanlianshebei',
|
||||
'iconfont icon-guanfangbanben',
|
||||
'iconfont icon-gongnengdingyi',
|
||||
'iconfont icon-jichuguanli',
|
||||
'iconfont icon-jishufuwu',
|
||||
'iconfont icon-hezuohuobanmiyueguanli',
|
||||
'iconfont icon-ceshishenqing',
|
||||
'iconfont icon-jiedianguanli',
|
||||
'iconfont icon-jinggao',
|
||||
'iconfont icon-peiwangyindao',
|
||||
'iconfont icon-renjijiaohu',
|
||||
'iconfont icon-shiyongwendang',
|
||||
'iconfont icon-quanxianshenpi',
|
||||
'iconfont icon-yishouquan',
|
||||
'iconfont icon-tianshenpi',
|
||||
'iconfont icon-shujukanban',
|
||||
'iconfont icon-yingyongguanli',
|
||||
'iconfont icon-yibiaopan',
|
||||
'iconfont icon-zhanghaoquanxianguanli',
|
||||
'iconfont icon-yuanquyunwei',
|
||||
'iconfont icon-jizhanguanli',
|
||||
'iconfont icon-guanbi',
|
||||
],
|
||||
},
|
||||
];
|
||||
@@ -0,0 +1,81 @@
|
||||
/**
|
||||
* 全局配置文件
|
||||
*/
|
||||
export default {
|
||||
title: 'Saber',
|
||||
logo: 'X',
|
||||
key: 'saber', //配置主键,目前用于存储
|
||||
indexTitle: 'BladeX 微服务平台',
|
||||
clientId: 'saber3', // 客户端id
|
||||
clientSecret: 'saber3_secret', // 客户端密钥
|
||||
tenantMode: true, // 是否开启租户模式
|
||||
tenantId: '000000', // 管理组租户编号
|
||||
captchaMode: true, // 是否开启验证码模式
|
||||
switchMode: false, // 是否开启登录切换角色部门
|
||||
lockPage: '/lock', // 锁屏页面地址
|
||||
tokenTime: 3000, // 定时刷新token间隔(单位:毫秒)
|
||||
tokenHeader: 'Blade-Auth', // 请求头中携带的token名称
|
||||
tokenKey: 'saber3-access-token', // token存储的key(多个系统部署需要修改以免冲突)
|
||||
refreshTokenKey: 'saber3-refresh-token', // 刷新token存储的key(多个系统部署需要修改以免冲突)
|
||||
//HTTP状态码白名单
|
||||
statusWhiteList: [],
|
||||
//配置首页不可关闭
|
||||
setting: {
|
||||
sidebar: 'vertical',
|
||||
tag: true,
|
||||
debug: true,
|
||||
collapse: true,
|
||||
search: true,
|
||||
color: true,
|
||||
lock: true,
|
||||
screenshot: true,
|
||||
fullscreen: true,
|
||||
theme: true,
|
||||
menu: true,
|
||||
},
|
||||
//首页配置
|
||||
fistPage: {
|
||||
name: '首页',
|
||||
path: '/wel/index',
|
||||
},
|
||||
//配置菜单的属性
|
||||
menu: {
|
||||
iconDefault: 'icon-caidan',
|
||||
label: 'name',
|
||||
path: 'path',
|
||||
icon: 'source',
|
||||
children: 'children',
|
||||
query: 'query',
|
||||
href: 'path',
|
||||
meta: 'meta',
|
||||
},
|
||||
//水印配置
|
||||
watermark: {
|
||||
mode: false,
|
||||
text: 'BladeX',
|
||||
},
|
||||
//oauth2配置
|
||||
oauth2: {
|
||||
// 是否开启注册功能
|
||||
registerMode: true,
|
||||
// 使用后端工程 @org.springblade.test.Sm2KeyGenerator 获取
|
||||
publicKey: '04e5bc8a7bc483b6b2d26b5dc7cd104ebf2841f1f554620789556b128d87727ab4b25f85ec433ec2023348ea579208ac8385cfc2b5686996cd07ba346f9c49c22e',
|
||||
// 第三方系统授权地址
|
||||
authUrl: 'http://localhost/blade-auth/oauth/render',
|
||||
// 单点登录系统认证
|
||||
ssoMode: false, // 是否开启单点登录功能
|
||||
ssoBaseUrl: 'http://localhost:8100', // 单点登录系统地址(cloud端口为8100,boot端口为80)
|
||||
ssoAuthUrl: '/oauth/authorize?client_id=saber3&response_type=code&redirect_uri=', // 单点登录授权地址
|
||||
ssoLogoutUrl: '/oauth/authorize/logout?redirect_uri=', // 单点登录退出地址
|
||||
redirectUri: 'http://localhost:2888/login', // 单点登录回调地址(Saber服务的登录界面地址)
|
||||
},
|
||||
//设计器配置
|
||||
design: {
|
||||
// 流程设计器类型(true->nutflow,false->flowable)
|
||||
designMode: true,
|
||||
// 流程设计器地址(flowable模式)
|
||||
designUrl: 'http://localhost:9999',
|
||||
// 报表设计器地址(cloud端口为8108,boot端口为80)
|
||||
reportUrl: 'http://localhost:8108/ureport',
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,344 @@
|
||||
export const switchDic = [
|
||||
{
|
||||
label: '',
|
||||
value: 0,
|
||||
},
|
||||
{
|
||||
label: '',
|
||||
value: 1,
|
||||
},
|
||||
];
|
||||
|
||||
export const entityDic = [
|
||||
{
|
||||
label: 'String',
|
||||
value: 'java.lang.String',
|
||||
},
|
||||
{
|
||||
label: 'Integer',
|
||||
value: 'java.lang.Integer',
|
||||
},
|
||||
{
|
||||
label: 'Long',
|
||||
value: 'java.lang.Long',
|
||||
},
|
||||
{
|
||||
label: 'Double',
|
||||
value: 'java.lang.Double',
|
||||
},
|
||||
{
|
||||
label: 'BigDecimal',
|
||||
value: 'java.math.BigDecimal',
|
||||
},
|
||||
{
|
||||
label: 'Boolean',
|
||||
value: 'java.lang.Boolean',
|
||||
},
|
||||
{
|
||||
label: 'Date',
|
||||
value: 'java.util.Date',
|
||||
},
|
||||
];
|
||||
|
||||
export const componentDic = [
|
||||
{
|
||||
label: '单行文本',
|
||||
value: 'input',
|
||||
},
|
||||
{
|
||||
label: '多行文本',
|
||||
value: 'textarea',
|
||||
},
|
||||
{
|
||||
label: '富文本',
|
||||
value: 'editor',
|
||||
},
|
||||
{
|
||||
label: '下拉选项',
|
||||
value: 'select',
|
||||
},
|
||||
{
|
||||
label: '树形下拉选项',
|
||||
value: 'tree',
|
||||
},
|
||||
{
|
||||
label: '单选框',
|
||||
value: 'radio',
|
||||
},
|
||||
{
|
||||
label: '多选框',
|
||||
value: 'checkbox',
|
||||
},
|
||||
{
|
||||
label: '开关框',
|
||||
value: 'switch',
|
||||
},
|
||||
{
|
||||
label: '日期框',
|
||||
value: 'date',
|
||||
},
|
||||
];
|
||||
|
||||
export const queryDic = [
|
||||
{
|
||||
label: '等于',
|
||||
value: 'equal',
|
||||
},
|
||||
{
|
||||
label: '不等于',
|
||||
value: 'notequal',
|
||||
},
|
||||
{
|
||||
label: '大于',
|
||||
value: 'gt',
|
||||
},
|
||||
{
|
||||
label: '大于等于',
|
||||
value: 'ge',
|
||||
},
|
||||
{
|
||||
label: '小于',
|
||||
value: 'lt',
|
||||
},
|
||||
{
|
||||
label: '小于等于',
|
||||
value: 'le',
|
||||
},
|
||||
{
|
||||
label: '区间',
|
||||
value: 'between',
|
||||
},
|
||||
{
|
||||
label: '模糊',
|
||||
value: 'like',
|
||||
},
|
||||
{
|
||||
label: '左模糊',
|
||||
value: 'likeleft',
|
||||
},
|
||||
{
|
||||
label: '右模糊',
|
||||
value: 'likeright',
|
||||
},
|
||||
];
|
||||
|
||||
export const templateDic = [
|
||||
{
|
||||
label: '单表',
|
||||
value: 'crud',
|
||||
},
|
||||
{
|
||||
label: '主子表',
|
||||
value: 'sub',
|
||||
},
|
||||
{
|
||||
label: '树表',
|
||||
value: 'tree',
|
||||
},
|
||||
];
|
||||
|
||||
export const option = {
|
||||
height: 'auto',
|
||||
searchShow: true,
|
||||
searchMenuSpan: 6,
|
||||
tip: false,
|
||||
border: true,
|
||||
index: true,
|
||||
viewBtn: true,
|
||||
grid: true,
|
||||
selection: true,
|
||||
menuWidth: 250,
|
||||
column: [
|
||||
{
|
||||
label: '数据源',
|
||||
prop: 'datasourceId',
|
||||
search: true,
|
||||
span: 24,
|
||||
type: 'select',
|
||||
dicUrl: '/blade-develop/datasource/select',
|
||||
props: {
|
||||
label: 'name',
|
||||
value: 'id',
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择数据源',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '物理表名',
|
||||
prop: 'modelTable',
|
||||
type: 'tree',
|
||||
slot: true,
|
||||
filterable: true,
|
||||
dicData: [],
|
||||
props: {
|
||||
label: 'comment',
|
||||
value: 'name',
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: '请输入数据库表名',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '模型类名',
|
||||
prop: 'modelClass',
|
||||
addDisabled: true,
|
||||
editDisabled: true,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: '请输入模型类名',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '模型名称',
|
||||
prop: 'modelName',
|
||||
search: true,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: '请输入模型名称',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '模型编号',
|
||||
prop: 'modelCode',
|
||||
search: true,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: '请输入模型编号',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '模型备注',
|
||||
prop: 'modelRemark',
|
||||
hide: true,
|
||||
span: 24,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const optionModel = {
|
||||
border: true,
|
||||
index: true,
|
||||
addBtn: false,
|
||||
editBtn: false,
|
||||
addRowBtn: false,
|
||||
cellBtn: false,
|
||||
cancelBtn: false,
|
||||
tip: false,
|
||||
menu: false,
|
||||
selection: true,
|
||||
column: [
|
||||
{
|
||||
label: '物理列名',
|
||||
prop: 'jdbcName',
|
||||
},
|
||||
{
|
||||
label: '物理类型',
|
||||
prop: 'jdbcType',
|
||||
},
|
||||
{
|
||||
label: '实体列名',
|
||||
prop: 'propertyName',
|
||||
cell: true,
|
||||
},
|
||||
{
|
||||
label: '实体类型',
|
||||
prop: 'propertyEntity',
|
||||
type: 'select',
|
||||
dicData: entityDic,
|
||||
cell: true,
|
||||
},
|
||||
{
|
||||
label: '字段说明',
|
||||
prop: 'jdbcComment',
|
||||
cell: true,
|
||||
},
|
||||
{
|
||||
label: '列表显示',
|
||||
prop: 'isList',
|
||||
type: 'switch',
|
||||
dicData: switchDic,
|
||||
align: 'center',
|
||||
width: 60,
|
||||
cell: true,
|
||||
},
|
||||
{
|
||||
label: '表单显示',
|
||||
prop: 'isForm',
|
||||
type: 'switch',
|
||||
dicData: switchDic,
|
||||
align: 'center',
|
||||
width: 60,
|
||||
cell: true,
|
||||
},
|
||||
{
|
||||
label: '独占一行',
|
||||
prop: 'isRow',
|
||||
type: 'switch',
|
||||
dicData: switchDic,
|
||||
align: 'center',
|
||||
width: 60,
|
||||
cell: true,
|
||||
},
|
||||
{
|
||||
label: '必填',
|
||||
prop: 'isRequired',
|
||||
type: 'switch',
|
||||
dicData: switchDic,
|
||||
align: 'center',
|
||||
width: 60,
|
||||
cell: true,
|
||||
},
|
||||
{
|
||||
label: '组件类型',
|
||||
prop: 'componentType',
|
||||
type: 'select',
|
||||
dicData: componentDic,
|
||||
cell: true,
|
||||
},
|
||||
{
|
||||
label: '字典编码',
|
||||
prop: 'dictCode',
|
||||
type: 'select',
|
||||
dicUrl: '/blade-system/dict/select',
|
||||
props: {
|
||||
label: 'dictValue',
|
||||
value: 'code',
|
||||
},
|
||||
cell: true,
|
||||
},
|
||||
{
|
||||
label: '查询配置',
|
||||
prop: 'isQuery',
|
||||
type: 'switch',
|
||||
dicData: switchDic,
|
||||
align: 'center',
|
||||
width: 60,
|
||||
cell: true,
|
||||
},
|
||||
{
|
||||
label: '查询类型',
|
||||
prop: 'queryType',
|
||||
type: 'select',
|
||||
dicData: queryDic,
|
||||
cell: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -0,0 +1,50 @@
|
||||
import DisableDevtool from 'disable-devtool';
|
||||
import { ElMessageBox } from 'element-plus';
|
||||
|
||||
/**
|
||||
* 安全警告的HTML模板, 使用Tailwind CSS样式
|
||||
*/
|
||||
const SECURITY_WARNING_TEMPLATE = `
|
||||
<div class='flex flex-col items-center gap-4 p-2'>
|
||||
<div class='text-red-500 dark:text-red-400'>
|
||||
<i class='el-icon-warning text-2xl'></i>
|
||||
</div>
|
||||
<div class='text-center'>
|
||||
<p class='text-base font-medium text-gray-900 dark:text-gray-100'>
|
||||
不合规操作,系统将在5秒后自动关闭退出!
|
||||
</p>
|
||||
<p class='mt-2 text-sm text-gray-600 dark:text-gray-400'>
|
||||
如您频繁此类操作,系统将记录上报。
|
||||
</p>
|
||||
</div>
|
||||
</div>`;
|
||||
|
||||
/**
|
||||
* Element Plus 消息框配置选项
|
||||
*/
|
||||
const ALERT_OPTIONS = {
|
||||
type: 'error',
|
||||
showClose: false,
|
||||
center: true,
|
||||
closeOnClickModal: false,
|
||||
closeOnPressEscape: false,
|
||||
dangerouslyUseHTMLString: true,
|
||||
};
|
||||
|
||||
export default () => {
|
||||
if (import.meta.env.VITE_APP_DEBUG_SWITCH === 'false') return;
|
||||
|
||||
const debugKey = import.meta.env.VITE_APP_DEBUG_KEY;
|
||||
let flag = false;
|
||||
DisableDevtool({
|
||||
md5: DisableDevtool.md5(debugKey),
|
||||
disableMenu: false,
|
||||
ondevtoolopen: (type, next) => {
|
||||
if (!flag) ElMessageBox.alert(SECURITY_WARNING_TEMPLATE, '安全警告', ALERT_OPTIONS);
|
||||
flag = true;
|
||||
setTimeout(() => {
|
||||
next();
|
||||
}, 5000);
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
FROM nginx
|
||||
VOLUME /tmp
|
||||
ENV LANG en_US.UTF-8
|
||||
ADD ./dist/ /usr/share/nginx/html/
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
@@ -0,0 +1,25 @@
|
||||
import store from './store';
|
||||
|
||||
export default {
|
||||
install: app => {
|
||||
app.config.errorHandler = (err, vm, info) => {
|
||||
store.commit('ADD_LOGS', {
|
||||
type: 'error',
|
||||
message: err.message,
|
||||
stack: err.stack,
|
||||
info,
|
||||
});
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
console.group('>>>>>> 错误信息 >>>>>>');
|
||||
console.log(info);
|
||||
console.groupEnd();
|
||||
console.group('>>>>>> Vue 实例 >>>>>>');
|
||||
console.log(vm);
|
||||
console.groupEnd();
|
||||
console.group('>>>>>> Error >>>>>>');
|
||||
console.log(err);
|
||||
console.groupEnd();
|
||||
}
|
||||
};
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
.upload-tip[data-v-0bfd8c4b]{font-size:12px;color:#909399;margin-top:5px}.table-toolbar[data-v-0bfd8c4b]{margin-bottom:10px}[data-v-0bfd8c4b] .el-divider__text{font-weight:700;color:#409eff}[data-v-0bfd8c4b] .el-input-number{width:100%}[data-v-0bfd8c4b] .el-table .cell{padding:5px}[data-v-0bfd8c4b] .detail-upload .el-upload--picture-card,[data-v-0bfd8c4b] .detail-upload .el-upload-list--picture-card .el-upload-list__item{width:60px;height:60px}.table-toolbar[data-v-472428ff]{margin-bottom:10px}[data-v-472428ff] .el-divider__text{font-weight:700;color:#409eff}[data-v-472428ff] .el-table .cell{padding:5px}[data-v-472428ff] .el-input-number{width:100%}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.annual-procurement-plan-list[data-v-73d4f4d0]{padding:20px}.card-container[data-v-73d4f4d0]{margin-bottom:20px}.search-form[data-v-73d4f4d0]{margin-bottom:20px;padding:10px;background:#f8f9fa;border-radius:4px}.pagination-container[data-v-73d4f4d0]{margin-top:20px;text-align:right}.detail-header[data-v-73d4f4d0]{display:flex;gap:30px;padding:15px;background:#f8f9fa;border-radius:4px;margin-bottom:15px}.detail-header div[data-v-73d4f4d0]{flex:1}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{_ as M,U as R,o as c,c as h,e as l,f as a,E as b,j as s,k as v,g as V,h as p,t as f,a as C,q as S}from"./index-CsXfDo-r.js";import{a as G}from"./index-42ANG6Sg.js";const i=G.create({baseURL:"/api",timeout:1e4}),A={list:o=>i.get("/bidding/list",{params:o}),getById:o=>i.get(`/bidding/${o}`),save:o=>i.post("/bidding",o),publish:o=>i.put(`/bidding/${o}/publish`),delete:o=>i.delete(`/bidding/${o}`),portalNotices:o=>i.get("/bidding/portal/notices",{params:{supplierId:o}}),portalAwards:o=>i.get("/bidding/portal/awards",{params:{supplierId:o}}),portalEnroll:(o,r)=>i.post(`/bidding/portal/${o}/enroll`,r),updateEnrollmentFiles:(o,r)=>i.put(`/bidding/portal/enrollment/${o}/files`,r),submitAppeal:o=>i.post("/bidding/portal/appeal",o),listAppeals:()=>i.get("/bidding/portal/appeals"),handleAppeal:(o,r)=>i.put(`/bidding/portal/appeal/${o}/handle`,r)},J={class:"appeal-manage"},K={key:1,style:{color:"#c0c4cc"}},O={key:1,style:{color:"#909399","font-size":"12px"}},P={style:{"font-weight":"bold"}},Q={style:{color:"#606266"}},W={__name:"Appeal",setup(o){const r=v([]),k=async()=>{var n;try{const e=await A.listAppeals();r.value=((n=e.data)==null?void 0:n.data)||[]}catch{b.error("加载申诉列表失败")}};R(k);const $=n=>({0:"待处理",1:"已受理",2:"已驳回"})[n]??"—",N=n=>({0:"warning",1:"success",2:"info"})[n]??"",U=n=>n?n.replace("T"," ").substring(0,16):"—",u=v(!1),y=v(!1),_=v(null),d=S({status:1,adminComment:""}),z=n=>{_.value=n,d.status=1,d.adminComment="",u.value=!0},B=()=>{_.value=null},E=async()=>{if(!d.adminComment.trim()){b.warning("请填写处理意见");return}y.value=!0;try{await A.handleAppeal(_.value.id,{status:d.status,adminComment:d.adminComment.trim()}),b.success("处理成功"),u.value=!1,await k()}catch{b.error("处理失败")}finally{y.value=!1}};return(n,e)=>{const m=s("el-table-column"),T=s("el-link"),D=s("el-tag"),w=s("el-button"),H=s("el-table"),L=s("el-card"),g=s("el-form-item"),x=s("el-radio"),j=s("el-radio-group"),q=s("el-input"),F=s("el-form"),I=s("el-dialog");return c(),h("div",J,[l(L,null,{header:a(()=>[...e[4]||(e[4]=[C("span",{style:{"font-size":"16px","font-weight":"bold"}},"申诉管理",-1)])]),default:a(()=>[l(H,{data:r.value,border:"",stripe:""},{default:a(()=>[l(m,{prop:"projectName",label:"项目名称","min-width":"160"}),l(m,{prop:"supplierName",label:"申诉供应商","min-width":"160"}),l(m,{prop:"reason",label:"申诉理由","min-width":"200","show-overflow-tooltip":""}),l(m,{label:"申诉附件",width:"100",align:"center"},{default:a(({row:t})=>[t.appealDocUrl?(c(),V(T,{key:0,href:t.appealDocUrl,target:"_blank",type:"primary",size:"small"},{default:a(()=>[...e[5]||(e[5]=[p("查看附件",-1)])]),_:1},8,["href"])):(c(),h("span",K,"—"))]),_:1}),l(m,{label:"状态",width:"110",align:"center"},{default:a(({row:t})=>[l(D,{type:N(t.status),size:"small"},{default:a(()=>[p(f($(t.status)),1)]),_:2},1032,["type"])]),_:1}),l(m,{prop:"adminComment",label:"管理员回复","min-width":"160","show-overflow-tooltip":""},{default:a(({row:t})=>[p(f(t.adminComment||"—"),1)]),_:1}),l(m,{label:"申诉时间",width:"160",align:"center"},{default:a(({row:t})=>[p(f(U(t.createdTime)),1)]),_:1}),l(m,{label:"操作",width:"100",align:"center",fixed:"right"},{default:a(({row:t})=>[t.status===0?(c(),V(w,{key:0,size:"small",type:"primary",onClick:X=>z(t)},{default:a(()=>[...e[6]||(e[6]=[p("处理",-1)])]),_:1},8,["onClick"])):(c(),h("span",O,"已处理"))]),_:1})]),_:1},8,["data"])]),_:1}),l(I,{modelValue:u.value,"onUpdate:modelValue":e[3]||(e[3]=t=>u.value=t),title:"处理申诉",width:"480px",onClose:B},{footer:a(()=>[l(w,{onClick:e[2]||(e[2]=t=>u.value=!1)},{default:a(()=>[...e[9]||(e[9]=[p("取消",-1)])]),_:1}),l(w,{type:"primary",loading:y.value,onClick:E},{default:a(()=>[...e[10]||(e[10]=[p("确认提交",-1)])]),_:1},8,["loading"])]),default:a(()=>[l(F,{"label-width":"90px"},{default:a(()=>[l(g,{label:"申诉供应商"},{default:a(()=>{var t;return[C("span",P,f((t=_.value)==null?void 0:t.supplierName),1)]}),_:1}),l(g,{label:"申诉理由"},{default:a(()=>{var t;return[C("span",Q,f((t=_.value)==null?void 0:t.reason),1)]}),_:1}),l(g,{label:"处理结果"},{default:a(()=>[l(j,{modelValue:d.status,"onUpdate:modelValue":e[0]||(e[0]=t=>d.status=t)},{default:a(()=>[l(x,{value:1},{default:a(()=>[...e[7]||(e[7]=[p("受理",-1)])]),_:1}),l(x,{value:2},{default:a(()=>[...e[8]||(e[8]=[p("驳回",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(g,{label:"回复意见"},{default:a(()=>[l(q,{modelValue:d.adminComment,"onUpdate:modelValue":e[1]||(e[1]=t=>d.adminComment=t),type:"textarea",rows:4,placeholder:"请填写处理意见...",maxlength:"300","show-word-limit":""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}},ee=M(W,[["__scopeId","data-v-a2059aff"]]);export{ee as default};
|
||||
@@ -0,0 +1 @@
|
||||
.appeal-manage[data-v-a2059aff]{padding:0}
|
||||
@@ -0,0 +1 @@
|
||||
import{_ as q,U as C,o as P,c as B,e,f as a,j as n,k as x,q as w,h as o,a as I,t as p}from"./index-CsXfDo-r.js";const O={class:"expert-archive"},U={__name:"Archive",setup(z){const u=x(!1),r=w({name:""}),s=w({expertName:"",category:"",totalProjects:0,avgScore:0,qualificationDate:"",lastAssessmentDate:"",projects:[],assessments:[]}),g=x([]),N=()=>[{id:1,expertName:"张伟",category:"临床医学",totalProjects:15,avgScore:92,qualificationDate:"2024-01-15",lastAssessmentDate:"2024-03-15"},{id:2,expertName:"李娜",category:"药学",totalProjects:12,avgScore:88,qualificationDate:"2024-01-20",lastAssessmentDate:"2024-03-18"},{id:3,expertName:"王强",category:"医疗器械",totalProjects:10,avgScore:90,qualificationDate:"2024-03-25",lastAssessmentDate:"2024-03-20"}],b=()=>{const c=localStorage.getItem("expertArchives");let t=c?JSON.parse(c):[];t.length===0&&(t=N(),localStorage.setItem("expertArchives",JSON.stringify(t)));let m=t;r.name&&(m=m.filter(_=>_.expertName.includes(r.name))),g.value=m};C(()=>{b()});const j=()=>{b()},y=()=>{r.name="",b()},h=c=>{Object.assign(s,c),s.projects=[{projectName:"医疗设备采购项目",date:"2024-01-20",role:"评审专家"},{projectName:"药品集中采购项目",date:"2024-02-15",role:"评审专家"}],s.assessments=[{date:"2024-03-15",score:95,level:"优秀",comment:"专业能力强,评审公正客观"}],u.value=!0};return(c,t)=>{const m=n("el-input"),_=n("el-form-item"),f=n("el-button"),S=n("el-form"),l=n("el-table-column"),v=n("el-table"),V=n("el-card"),i=n("el-descriptions-item"),A=n("el-descriptions"),D=n("el-divider"),k=n("el-dialog");return P(),B("div",O,[e(V,null,{header:a(()=>[...t[3]||(t[3]=[I("span",null,"专家档案归档",-1)])]),default:a(()=>[e(S,{inline:!0,model:r,class:"search-form"},{default:a(()=>[e(_,{label:"专家姓名"},{default:a(()=>[e(m,{modelValue:r.name,"onUpdate:modelValue":t[0]||(t[0]=d=>r.name=d),placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1}),e(_,null,{default:a(()=>[e(f,{type:"primary",onClick:j},{default:a(()=>[...t[4]||(t[4]=[o("查询",-1)])]),_:1}),e(f,{onClick:y},{default:a(()=>[...t[5]||(t[5]=[o("重置",-1)])]),_:1})]),_:1})]),_:1},8,["model"]),e(v,{data:g.value,border:""},{default:a(()=>[e(l,{prop:"expertName",label:"专家姓名",width:"100"}),e(l,{prop:"category",label:"专业分类",width:"120"}),e(l,{prop:"totalProjects",label:"参与项目数",width:"120"}),e(l,{prop:"avgScore",label:"平均考核分",width:"120"}),e(l,{prop:"qualificationDate",label:"资格获得日期",width:"130"}),e(l,{prop:"lastAssessmentDate",label:"最近考核日期",width:"130"}),e(l,{label:"操作",width:"150",fixed:"right"},{default:a(({row:d})=>[e(f,{link:"",type:"primary",onClick:F=>h(d)},{default:a(()=>[...t[6]||(t[6]=[o("查看档案",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1}),e(k,{modelValue:u.value,"onUpdate:modelValue":t[2]||(t[2]=d=>u.value=d),title:"专家档案详情",width:"800px"},{footer:a(()=>[e(f,{type:"primary",onClick:t[1]||(t[1]=d=>u.value=!1)},{default:a(()=>[...t[9]||(t[9]=[o("关闭",-1)])]),_:1})]),default:a(()=>[e(A,{column:2,border:""},{default:a(()=>[e(i,{label:"专家姓名"},{default:a(()=>[o(p(s.expertName),1)]),_:1}),e(i,{label:"专业分类"},{default:a(()=>[o(p(s.category),1)]),_:1}),e(i,{label:"参与项目数"},{default:a(()=>[o(p(s.totalProjects),1)]),_:1}),e(i,{label:"平均考核分"},{default:a(()=>[o(p(s.avgScore),1)]),_:1}),e(i,{label:"资格获得日期"},{default:a(()=>[o(p(s.qualificationDate),1)]),_:1}),e(i,{label:"最近考核日期"},{default:a(()=>[o(p(s.lastAssessmentDate),1)]),_:1})]),_:1}),e(D,{"content-position":"left"},{default:a(()=>[...t[7]||(t[7]=[o("参与项目记录",-1)])]),_:1}),e(v,{data:s.projects,border:"",size:"small"},{default:a(()=>[e(l,{prop:"projectName",label:"项目名称"}),e(l,{prop:"date",label:"参与日期",width:"110"}),e(l,{prop:"role",label:"角色",width:"100"})]),_:1},8,["data"]),e(D,{"content-position":"left"},{default:a(()=>[...t[8]||(t[8]=[o("考核记录",-1)])]),_:1}),e(v,{data:s.assessments,border:"",size:"small"},{default:a(()=>[e(l,{prop:"date",label:"考核日期",width:"110"}),e(l,{prop:"score",label:"得分",width:"80"}),e(l,{prop:"level",label:"等级",width:"80"}),e(l,{prop:"comment",label:"考核意见"})]),_:1},8,["data"])]),_:1},8,["modelValue"])])}}},$=q(U,[["__scopeId","data-v-aef74ba8"]]);export{$ as default};
|
||||
@@ -0,0 +1 @@
|
||||
.search-form[data-v-aef74ba8]{margin-bottom:20px}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.card-header[data-v-6ada22e8]{display:flex;justify-content:space-between;align-items:center}
|
||||
@@ -0,0 +1 @@
|
||||
.card-header[data-v-7ac78896]{display:flex;justify-content:space-between;align-items:center}.award-notice[data-v-7ac78896]{padding:0}.notice-card[data-v-7ac78896]{border:1px solid #e4e7ed;border-radius:6px;padding:16px 20px;margin-bottom:16px;transition:box-shadow .2s}.notice-card[data-v-7ac78896]:hover{box-shadow:0 2px 12px #00000014}.notice-card__header[data-v-7ac78896]{display:flex;align-items:center;gap:12px;margin-bottom:10px}.notice-card__title[data-v-7ac78896]{font-size:15px;font-weight:600;color:#303133;flex:1}.notice-card__body[data-v-7ac78896]{display:flex;gap:24px;flex-wrap:wrap;font-size:13px;color:#606266;margin-bottom:10px}.notice-card__winner[data-v-7ac78896]{font-size:13px;color:#606266;margin-bottom:8px}.notice-card__congrats[data-v-7ac78896]{display:flex;align-items:center;gap:6px;padding:8px 12px;background:linear-gradient(135deg,#fff7e6,#fff0e6);border:1px solid #ffd591;border-radius:4px;font-size:13px;color:#fa8c16;margin-bottom:12px}.congrats-icon[data-v-7ac78896]{font-size:16px}.notice-card__footer[data-v-7ac78896]{display:flex;gap:8px;align-items:center}.section-title[data-v-7ac78896]{font-size:14px;font-weight:700;color:#303133;padding:6px 0 10px 8px;border-left:3px solid #409EFF;margin-bottom:12px}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.card-header[data-v-de47985f]{display:flex;justify-content:space-between;align-items:center}.search-form[data-v-de47985f]{margin-bottom:20px}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{_ as y,U as B,a5 as P,k as m,o as S,c as x,e as o,f as n,j as f,a as e,t as c,h as u,B as C,g as R,d as T}from"./index-CsXfDo-r.js";const I={class:"bidding-management"},N={class:"card-header"},V={class:"project-info"},j={class:"info-item"},z={class:"value"},$={class:"info-item"},q={class:"value countdown"},E={class:"card-header"},U={__name:"BiddingManagement",setup(A){const D=m({name:"2024年度医疗设备采购项目"}),k=m(new Date(Date.now()+2*60*60*1e3)),_=m("");let g=null;const h=()=>{const p=Date.now(),t=k.value.getTime()-p;if(t<=0){_.value="已结束",clearInterval(g);return}const l=Math.floor(t/(1e3*60*60)),r=Math.floor(t%(1e3*60*60)/(1e3*60)),s=Math.floor(t%(1e3*60)/1e3);_.value=`${String(l).padStart(2,"0")}:${String(r).padStart(2,"0")}:${String(s).padStart(2,"0")}`};B(()=>{h(),g=setInterval(h,1e3)}),P(()=>{clearInterval(g)});const v=m((()=>{const p=["山东康泰医疗器械有限公司","北京联盛药业股份有限公司","上海瑞博生物科技集团有限公司","江苏恒信医药供应链管理有限公司","广东南新医用材料股份有限公司"],t=new Date,l=[],r=p.map((i,a)=>{const d=Math.floor(Math.random()*300)+a*60,L=new Date(t.getTime()-d*1e3),w=Math.floor(Math.random()*5e4)+15e4,b=Math.floor(w*(.88+Math.random()*.1)),M=b;return l.push(M),{time:L.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}),supplier:i,firstRoundPrice:w,secondRoundPrice:b,price:M,isLowest:!1}}),s=Math.min(...l);return r.forEach(i=>{i.price===s&&(i.isLowest=!0)}),r.sort((i,a)=>new Date(a.time)-new Date(i.time))})());return(p,t)=>{const l=f("el-tag"),r=f("el-card"),s=f("el-table-column"),i=f("el-table");return S(),x("div",I,[o(r,null,{header:n(()=>[e("div",N,[t[1]||(t[1]=e("span",null,"竞价管理",-1)),o(l,{type:"warning",effect:"dark"},{default:n(()=>[...t[0]||(t[0]=[u("进行中",-1)])]),_:1})])]),default:n(()=>[e("div",V,[e("div",j,[t[2]||(t[2]=e("span",{class:"label"},"项目名称:",-1)),e("span",z,c(D.value.name),1)]),t[4]||(t[4]=e("div",{class:"info-item"},[e("span",{class:"label"},"当前状态:"),e("span",{class:"value status-bidding"},"竞价中")],-1)),e("div",$,[t[3]||(t[3]=e("span",{class:"label"},"剩余时间:",-1)),e("span",q,c(_.value),1)])])]),_:1}),o(r,{class:"quote-card"},{header:n(()=>[e("div",E,[t[5]||(t[5]=e("span",null,"实时报价列表",-1)),o(l,{type:"info"},{default:n(()=>[u("共 "+c(v.value.length)+" 条",1)]),_:1})])]),default:n(()=>[o(i,{data:v.value,border:"",style:{width:"100%"}},{default:n(()=>[o(s,{prop:"time",label:"报价时间",width:"180"}),o(s,{prop:"supplier",label:"供应商",width:"200"}),o(s,{prop:"firstRoundPrice",label:"第一轮报价(元)",width:"140",align:"right"},{default:n(({row:a})=>{var d;return[u(c(((d=a.firstRoundPrice)==null?void 0:d.toLocaleString())||"0"),1)]}),_:1}),o(s,{prop:"secondRoundPrice",label:"第二轮报价(元)",width:"140",align:"right"},{default:n(({row:a})=>{var d;return[u(c(((d=a.secondRoundPrice)==null?void 0:d.toLocaleString())||"0"),1)]}),_:1}),o(s,{prop:"price",label:"报价金额(元)",align:"right"},{default:n(({row:a})=>[e("span",{class:C({"lowest-price":a.isLowest})},[u(c(a.price.toLocaleString())+" ",1),a.isLowest?(S(),R(l,{key:0,type:"danger",size:"small",effect:"dark"},{default:n(()=>[...t[6]||(t[6]=[u("最低",-1)])]),_:1})):T("",!0)],2)]),_:1})]),_:1},8,["data"])]),_:1})])}}},H=y(U,[["__scopeId","data-v-23ce40ee"]]);export{H as default};
|
||||
@@ -0,0 +1 @@
|
||||
.bidding-management[data-v-23ce40ee]{display:flex;flex-direction:column;gap:20px}.card-header[data-v-23ce40ee]{display:flex;justify-content:space-between;align-items:center}.project-info[data-v-23ce40ee]{display:flex;flex-wrap:wrap;gap:30px;padding:10px 0}.info-item[data-v-23ce40ee]{display:flex;align-items:center;gap:8px;font-size:15px}.label[data-v-23ce40ee]{color:#606266;font-weight:500}.value[data-v-23ce40ee]{color:#303133;font-weight:600}.status-bidding[data-v-23ce40ee]{color:#e6a23c}.countdown[data-v-23ce40ee]{color:#f56c6c;font-family:monospace;font-size:18px}.quote-card[data-v-23ce40ee]{margin-top:10px}.lowest-price[data-v-23ce40ee]{color:#f56c6c;font-weight:700;font-size:16px}
|
||||
@@ -0,0 +1 @@
|
||||
.card-header[data-v-4d607a51]{display:flex;justify-content:space-between;align-items:center}.search-form[data-v-4d607a51]{margin-bottom:20px}.content-section[data-v-4d607a51]{margin-top:20px}.content-section h4[data-v-4d607a51]{margin-bottom:10px;color:#333}.content-text[data-v-4d607a51]{padding:15px;background:#f5f7fa;border-radius:4px;min-height:100px;line-height:1.6;color:#666;white-space:pre-wrap}.attachments-section[data-v-4d607a51]{margin-top:20px}.attachments-section h4[data-v-4d607a51]{margin-bottom:10px;color:#333}
|
||||
@@ -0,0 +1 @@
|
||||
.card-header[data-v-9f9df976]{display:flex;justify-content:space-between;align-items:center}.bidding-notice[data-v-9f9df976]{padding:0}.notice-card[data-v-9f9df976]{border:1px solid #e4e7ed;border-radius:6px;padding:16px 20px;margin-bottom:16px;transition:box-shadow .2s}.notice-card[data-v-9f9df976]:hover{box-shadow:0 2px 12px #00000014}.notice-card__header[data-v-9f9df976]{display:flex;align-items:center;gap:12px;margin-bottom:10px}.notice-card__title[data-v-9f9df976]{font-size:15px;font-weight:600;color:#303133;flex:1}.notice-card__body[data-v-9f9df976]{display:flex;gap:24px;flex-wrap:wrap;font-size:13px;color:#606266;margin-bottom:8px}.notice-card__desc[data-v-9f9df976]{font-size:13px;color:#909399;margin-bottom:12px;line-height:1.6;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.notice-card__footer[data-v-9f9df976]{display:flex;gap:8px}.section-title[data-v-9f9df976]{font-size:14px;font-weight:700;color:#303133;padding:6px 0 10px 8px;border-left:3px solid #409EFF;margin-bottom:12px}.detail-content[data-v-9f9df976]{font-size:13px;color:#606266;line-height:1.8;padding:12px;background:#f5f7fa;border-radius:4px}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.card-header[data-v-1a450e9b]{display:flex;justify-content:space-between;align-items:center}.search-form[data-v-1a450e9b]{margin-bottom:20px}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{_ as A,U as h,o as B,c as E,e as t,f as l,j as s,k as m,h as u,a as y,S as J,E as C,q as U}from"./index-CsXfDo-r.js";const $={class:"expert-category"},j={class:"card-header"},q={__name:"Category",setup(M){const d=m(!1),f=m(""),p=m(null),a=U({name:"",description:""}),S={name:[{required:!0,message:"请输入分类名称",trigger:"blur"}],description:[{required:!0,message:"请输入分类说明",trigger:"blur"}]},x=m([]),k=()=>[{id:1,code:"CAT001",name:"药学",description:"药品研发、生产、质量控制、临床应用等领域",expertCount:3},{id:2,code:"CAT002",name:"医疗器械",description:"医疗设备、器械的研发、生产、质量管理等",expertCount:2},{id:3,code:"CAT003",name:"临床医学",description:"临床诊疗、疾病治疗、医疗技术等",expertCount:2},{id:4,code:"CAT004",name:"中医药",description:"中医诊疗、中药材、中成药等",expertCount:2},{id:5,code:"CAT005",name:"质量管理",description:"质量标准、检验检测、质量控制等",expertCount:1}],g=()=>{const n=localStorage.getItem("expertCategories");let e=n?JSON.parse(n):[];e.length===0&&(e=k(),localStorage.setItem("expertCategories",JSON.stringify(e))),x.value=e};h(()=>{g()});const V=()=>{f.value="新增分类",Object.keys(a).forEach(n=>a[n]=""),d.value=!0,p.value&&p.value.clearValidate()},w=n=>{f.value="编辑分类",Object.assign(a,n),d.value=!0},D=async n=>{try{await J.confirm("确定要删除该分类吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});const e=localStorage.getItem("expertCategories");let o=e?JSON.parse(e):[];o=o.filter(r=>r.id!==n.id),localStorage.setItem("expertCategories",JSON.stringify(o)),C.success("删除成功"),g()}catch(e){e!=="cancel"&&C.error("删除失败")}},T=()=>{p.value&&p.value.validate(n=>{if(n){const e=localStorage.getItem("expertCategories"),o=e?JSON.parse(e):[],r={...a,id:a.id||Date.now(),code:a.code||`CAT${String(o.length+1).padStart(3,"0")}`,expertCount:a.expertCount||0};if(a.id){const c=o.findIndex(_=>_.id===a.id);c!==-1&&(o[c]=r)}else o.push(r);localStorage.setItem("expertCategories",JSON.stringify(o)),C.success("保存成功"),d.value=!1,g()}})};return(n,e)=>{const o=s("el-button"),r=s("el-table-column"),c=s("el-table"),_=s("el-card"),v=s("el-input"),b=s("el-form-item"),N=s("el-form"),I=s("el-dialog");return B(),E("div",$,[t(_,null,{header:l(()=>[y("div",j,[e[5]||(e[5]=y("span",null,"专业分类管理",-1)),t(o,{type:"primary",onClick:V},{default:l(()=>[...e[4]||(e[4]=[u("新增分类",-1)])]),_:1})])]),default:l(()=>[t(c,{data:x.value,border:""},{default:l(()=>[t(r,{prop:"code",label:"分类编码",width:"120"}),t(r,{prop:"name",label:"分类名称",width:"150"}),t(r,{prop:"description",label:"分类说明","min-width":"200"}),t(r,{prop:"expertCount",label:"专家数量",width:"100"}),t(r,{label:"操作",width:"150",fixed:"right"},{default:l(({row:i})=>[t(o,{link:"",type:"primary",onClick:O=>w(i)},{default:l(()=>[...e[6]||(e[6]=[u("编辑",-1)])]),_:1},8,["onClick"]),t(o,{link:"",type:"danger",onClick:O=>D(i)},{default:l(()=>[...e[7]||(e[7]=[u("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1}),t(I,{modelValue:d.value,"onUpdate:modelValue":e[3]||(e[3]=i=>d.value=i),title:f.value,width:"600px"},{footer:l(()=>[t(o,{onClick:e[2]||(e[2]=i=>d.value=!1)},{default:l(()=>[...e[8]||(e[8]=[u("取消",-1)])]),_:1}),t(o,{type:"primary",onClick:T},{default:l(()=>[...e[9]||(e[9]=[u("提交",-1)])]),_:1})]),default:l(()=>[t(N,{model:a,rules:S,ref_key:"formRef",ref:p,"label-width":"100px"},{default:l(()=>[t(b,{label:"分类名称",prop:"name"},{default:l(()=>[t(v,{modelValue:a.name,"onUpdate:modelValue":e[0]||(e[0]=i=>a.name=i),placeholder:"请输入分类名称"},null,8,["modelValue"])]),_:1}),t(b,{label:"分类说明",prop:"description"},{default:l(()=>[t(v,{modelValue:a.description,"onUpdate:modelValue":e[1]||(e[1]=i=>a.description=i),type:"textarea",rows:3,placeholder:"请输入分类说明"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}},z=A(q,[["__scopeId","data-v-51f28a97"]]);export{z as default};
|
||||
@@ -0,0 +1 @@
|
||||
.card-header[data-v-51f28a97]{display:flex;justify-content:space-between;align-items:center}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.contract-supplier[data-v-c9d6f1f2]{padding:0}.card-header[data-v-c9d6f1f2]{display:flex;justify-content:space-between;align-items:center}.search-form[data-v-c9d6f1f2]{margin-bottom:16px}.batch-actions[data-v-c9d6f1f2]{margin-bottom:16px;display:flex;gap:10px}
|
||||
@@ -0,0 +1 @@
|
||||
.card-header[data-v-5b41e06a]{display:flex;justify-content:space-between;align-items:center}.search-form[data-v-5b41e06a]{margin-bottom:20px}[data-v-5b41e06a] .el-table th.el-table__cell{background-color:#f5f7fa}.table-toolbar[data-v-5b41e06a]{margin-bottom:10px}[data-v-5b41e06a] .el-divider__text{font-weight:700;color:#409eff}[data-v-5b41e06a] .el-input-number{width:100%}[data-v-5b41e06a] .el-table .cell{padding:5px}.dialog-footer[data-v-5b41e06a]{display:flex;justify-content:flex-end;gap:12px;padding:20px;border-top:1px solid #ebeef5;margin-top:20px}.dialog-footer .el-button[data-v-5b41e06a]{padding:8px 20px;border-radius:8px}.upload-tip[data-v-5b41e06a]{font-size:12px;color:#909399;margin-top:5px}.section[data-v-5b41e06a]{margin-bottom:40px}.section[data-v-5b41e06a]:last-child{margin-bottom:0}[data-v-5b41e06a] .el-dialog__body{padding:20px;max-height:80vh;overflow-y:auto}[data-v-5b41e06a] .el-dialog__footer{padding:20px;border-top:1px solid #ebeef5}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.enrollment-manage[data-v-06a6120f]{padding:0}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.inquiry-entry[data-v-517cc53d]{padding:20px}.page-header[data-v-517cc53d]{margin-bottom:20px}.page-header h2[data-v-517cc53d]{margin:0;font-size:20px;color:#333}.upload-tip[data-v-517cc53d]{font-size:12px;color:#909399;margin-top:5px}.table-toolbar[data-v-517cc53d]{margin-bottom:10px}.form-actions[data-v-517cc53d]{margin-top:20px;text-align:center}[data-v-517cc53d] .el-divider__text{font-weight:700;color:#409eff}[data-v-517cc53d] .el-input-number{width:100%}[data-v-517cc53d] .el-table .cell{padding:5px}[data-v-517cc53d] .el-tabs--border-card{box-shadow:0 2px 8px #0000001a}[data-v-517cc53d] .el-tab-pane{padding:20px}
|
||||
@@ -0,0 +1 @@
|
||||
.annual-plan-entry[data-v-8dc9a934]{padding:20px}.page-header[data-v-8dc9a934]{margin-bottom:20px}.page-header h2[data-v-8dc9a934]{margin:0;font-size:20px;color:#333}.table-toolbar[data-v-8dc9a934]{margin-bottom:10px}.form-actions[data-v-8dc9a934]{margin-top:20px;text-align:center}[data-v-8dc9a934] .el-input-number{width:100%}[data-v-8dc9a934] .el-divider__text{font-weight:700;color:#409eff}[data-v-8dc9a934] .el-table .cell{padding:5px}[data-v-8dc9a934] .el-tabs--border-card{box-shadow:0 2px 8px #0000001a}[data-v-8dc9a934] .el-tab-pane{padding:20px}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.pre-bid-entry[data-v-5b2106aa]{padding:20px}.page-header[data-v-5b2106aa]{margin-bottom:20px}.page-header h2[data-v-5b2106aa]{margin:0;font-size:20px;color:#333}.upload-tip[data-v-5b2106aa]{font-size:12px;color:#909399;margin-top:5px}.table-toolbar[data-v-5b2106aa]{margin-bottom:10px}.form-actions[data-v-5b2106aa]{margin-top:20px;text-align:center}[data-v-5b2106aa] .el-divider__text{font-weight:700;color:#409eff}[data-v-5b2106aa] .el-input-number{width:100%}[data-v-5b2106aa] .el-table .cell{padding:5px}[data-v-5b2106aa] .el-tabs--border-card{box-shadow:0 2px 8px #0000001a}[data-v-5b2106aa] .el-tab-pane{padding:20px}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.material-entry[data-v-c7711c81]{padding:20px}.page-header[data-v-c7711c81]{margin-bottom:20px}.page-header h2[data-v-c7711c81]{margin:0;font-size:20px;color:#333}.upload-tip[data-v-c7711c81]{font-size:12px;color:#909399;margin-top:5px}.table-toolbar[data-v-c7711c81]{margin-bottom:10px}.form-actions[data-v-c7711c81]{margin-top:20px;text-align:center}[data-v-c7711c81] .el-divider__text{font-weight:700;color:#409eff}[data-v-c7711c81] .el-input-number{width:100%}[data-v-c7711c81] .el-table .cell{padding:5px}[data-v-c7711c81] .detail-upload .el-upload--picture-card,[data-v-c7711c81] .detail-upload .el-upload-list--picture-card .el-upload-list__item{width:60px;height:60px}[data-v-c7711c81] .el-tabs--border-card{box-shadow:0 2px 8px #0000001a}[data-v-c7711c81] .el-tab-pane{padding:20px}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user