init
This commit is contained in:
52
src/api/base/region.js
Normal file
52
src/api/base/region.js
Normal file
@@ -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,
|
||||||
|
});
|
||||||
|
};
|
||||||
15
src/api/common.js
Normal file
15
src/api/common.js
Normal file
@@ -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',
|
||||||
|
});
|
||||||
|
};
|
||||||
63
src/api/data/record.js
Normal file
63
src/api/data/record.js
Normal file
@@ -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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
59
src/api/desk/notice.js
Normal file
59
src/api/desk/notice.js
Normal file
@@ -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,
|
||||||
|
});
|
||||||
|
};
|
||||||
122
src/api/flow/flow.js
Normal file
122
src/api/flow/flow.js
Normal file
@@ -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,
|
||||||
|
});
|
||||||
|
};
|
||||||
50
src/api/kiosk/category.js
Normal file
50
src/api/kiosk/category.js
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
import request from '@/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/kiosk/category/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/kiosk/category/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/kiosk/category/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/kiosk/category/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/kiosk/category/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
62
src/api/logs.js
Normal file
62
src/api/logs.js
Normal file
@@ -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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
22
src/api/report/report.js
Normal file
22
src/api/report/report.js
Normal file
@@ -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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
49
src/api/resource/attach.js
Normal file
49
src/api/resource/attach.js
Normal file
@@ -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,
|
||||||
|
});
|
||||||
|
};
|
||||||
59
src/api/resource/oss.js
Normal file
59
src/api/resource/oss.js
Normal file
@@ -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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
71
src/api/resource/sms.js
Normal file
71
src/api/resource/sms.js
Normal file
@@ -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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
49
src/api/system/client.js
Normal file
49
src/api/system/client.js
Normal file
@@ -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,
|
||||||
|
});
|
||||||
|
};
|
||||||
80
src/api/system/dept.js
Normal file
80
src/api/system/dept.js
Normal file
@@ -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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
88
src/api/system/dict.js
Normal file
88
src/api/system/dict.js
Normal file
@@ -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,
|
||||||
|
});
|
||||||
|
};
|
||||||
88
src/api/system/dictbiz.js
Normal file
88
src/api/system/dictbiz.js
Normal file
@@ -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,
|
||||||
|
});
|
||||||
|
};
|
||||||
108
src/api/system/menu.js
Normal file
108
src/api/system/menu.js
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
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,
|
||||||
|
},
|
||||||
|
});
|
||||||
49
src/api/system/param.js
Normal file
49
src/api/system/param.js
Normal file
@@ -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,
|
||||||
|
});
|
||||||
|
};
|
||||||
59
src/api/system/post.js
Normal file
59
src/api/system/post.js
Normal file
@@ -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,
|
||||||
|
});
|
||||||
|
};
|
||||||
96
src/api/system/role.js
Normal file
96
src/api/system/role.js
Normal file
@@ -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: {},
|
||||||
|
});
|
||||||
|
};
|
||||||
97
src/api/system/scope.js
Normal file
97
src/api/system/scope.js
Normal file
@@ -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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
122
src/api/system/tenant.js
Normal file
122
src/api/system/tenant.js
Normal file
@@ -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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
49
src/api/system/tenantdatasource.js
Normal file
49
src/api/system/tenantdatasource.js
Normal file
@@ -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,
|
||||||
|
});
|
||||||
|
};
|
||||||
49
src/api/system/tenantpackage.js
Normal file
49
src/api/system/tenantpackage.js
Normal file
@@ -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,
|
||||||
|
});
|
||||||
|
};
|
||||||
77
src/api/system/topmenu.js
Normal file
77
src/api/system/topmenu.js
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
171
src/api/system/user.js
Normal file
171
src/api/system/user.js
Normal file
@@ -0,0 +1,171 @@
|
|||||||
|
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 unlock = userIds => {
|
||||||
|
return request({
|
||||||
|
url: '/blade-system/user/unlock',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
userIds,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
78
src/api/tool/code.js
Normal file
78
src/api/tool/code.js
Normal file
@@ -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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
88
src/api/tool/codesetting.js
Normal file
88
src/api/tool/codesetting.js
Normal file
@@ -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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
49
src/api/tool/datasource.js
Normal file
49
src/api/tool/datasource.js
Normal file
@@ -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,
|
||||||
|
});
|
||||||
|
};
|
||||||
110
src/api/tool/model.js
Normal file
110
src/api/tool/model.js
Normal file
@@ -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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
174
src/api/user.js
Normal file
174
src/api/user.js
Normal file
@@ -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,
|
||||||
|
},
|
||||||
|
});
|
||||||
33
src/api/work/process.js
Normal file
33
src/api/work/process.js
Normal file
@@ -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,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
79
src/api/work/work.js
Normal file
79
src/api/work/work.js
Normal file
@@ -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,
|
||||||
|
});
|
||||||
|
};
|
||||||
128
src/components/basic-block/main.vue
Executable file
128
src/components/basic-block/main.vue
Executable file
@@ -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>
|
||||||
57
src/components/basic-container/main.vue
Executable file
57
src/components/basic-container/main.vue
Executable file
@@ -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>
|
||||||
140
src/components/basic-video/main.vue
Normal file
140
src/components/basic-video/main.vue
Normal file
@@ -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>
|
||||||
88
src/components/basic-video/plugin.js
Normal file
88
src/components/basic-video/plugin.js
Normal file
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
135
src/components/code-editor/main.vue
Normal file
135
src/components/code-editor/main.vue
Normal file
@@ -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>
|
||||||
23
src/components/error-page/403.vue
Executable file
23
src/components/error-page/403.vue
Executable file
@@ -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>
|
||||||
23
src/components/error-page/404.vue
Executable file
23
src/components/error-page/404.vue
Executable file
@@ -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>
|
||||||
23
src/components/error-page/500.vue
Executable file
23
src/components/error-page/500.vue
Executable file
@@ -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>
|
||||||
35
src/components/error-page/style.scss
Executable file
35
src/components/error-page/style.scss
Executable file
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
194
src/components/flow-design-step/main.vue
Normal file
194
src/components/flow-design-step/main.vue
Normal file
@@ -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>
|
||||||
133
src/components/flow-design/main.vue
Normal file
133
src/components/flow-design/main.vue
Normal file
@@ -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>
|
||||||
90
src/components/highlight/main.vue
Normal file
90
src/components/highlight/main.vue
Normal file
@@ -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>
|
||||||
82
src/components/iframe/main.vue
Executable file
82
src/components/iframe/main.vue
Executable file
@@ -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>
|
||||||
129
src/components/third-register/main.vue
Normal file
129
src/components/third-register/main.vue
Normal file
@@ -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>
|
||||||
2
src/config/env.js
Executable file
2
src/config/env.js
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
let baseUrl = import.meta.env.VITE_APP_API;
|
||||||
|
export { baseUrl };
|
||||||
380
src/config/iconList.js
Normal file
380
src/config/iconList.js
Normal file
@@ -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',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
81
src/config/website.js
Executable file
81
src/config/website.js
Executable file
@@ -0,0 +1,81 @@
|
|||||||
|
/**
|
||||||
|
* 全局配置文件
|
||||||
|
*/
|
||||||
|
export default {
|
||||||
|
title: 'MMS',
|
||||||
|
logo: 'X',
|
||||||
|
key: 'saber', //配置主键,目前用于存储
|
||||||
|
indexTitle: 'MemoryBlock Management System',
|
||||||
|
clientId: 'saber3', // 客户端id
|
||||||
|
clientSecret: 'jZ2pD8uQ', // 客户端密钥
|
||||||
|
tenantMode: false, // 是否开启租户模式
|
||||||
|
tenantId: '000000', // 管理组租户编号
|
||||||
|
captchaMode: false, // 是否开启验证码模式
|
||||||
|
switchMode: false, // 是否开启登录切换角色部门
|
||||||
|
lockPage: '/lock', // 锁屏页面地址
|
||||||
|
tokenTime: 3000, // 定时刷新token间隔(单位:毫秒)
|
||||||
|
tokenHeader: 'Blade-Auth', // 请求头中携带的token名称
|
||||||
|
tokenKey: 'ge5Up4xA9X6wDtAThCAUDXKVTModk75o', // 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: 'Index',
|
||||||
|
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: 'MemoryBlock',
|
||||||
|
},
|
||||||
|
//oauth2配置
|
||||||
|
oauth2: {
|
||||||
|
// 是否开启注册功能
|
||||||
|
registerMode: true,
|
||||||
|
// 使用后端工程 @org.springblade.test.Sm2KeyGenerator 获取
|
||||||
|
publicKey: '04b1ab4c08fee7e831c0a53f439a8cae31582380e8ffdd519d8e4005905737e87b416c551e18e31f17c75105a4ba08ee3f675ff427d04850f6b37cadcad0e2668a',
|
||||||
|
// 第三方系统授权地址
|
||||||
|
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: false,
|
||||||
|
// 流程设计器地址(flowable模式)
|
||||||
|
designUrl: 'http://localhost:9999',
|
||||||
|
// 报表设计器地址(cloud端口为8108,boot端口为80)
|
||||||
|
reportUrl: 'http://localhost:8108/ureport',
|
||||||
|
},
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user