@yy-common/core 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.versionrc ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "tagPrefix": "@yy-common/core@",
3
+ "releaseCommitMessageFormat": "chore(release): @yy-common/core@{{currentTag}}",
4
+ "path": ".",
5
+ "header": "# Changelog",
6
+ "types": [
7
+ {"type": "chore", "section":"'🎫 Chores | 其他更新", "hidden": false},
8
+ {"type": "revert", "section":"⏪ Reverts | 回退", "hidden": false},
9
+ {"type": "feat", "section": "✨ Features | 新功能", "hidden": false},
10
+ {"type": "fix", "section": "🐛 Bug Fixes | Bug 修复", "hidden": false},
11
+ {"type": "improvement", "section": "Feature Improvements", "hidden": false},
12
+ {"type": "docs", "section":"📝 Documentation | 文档", "hidden": false},
13
+ {"type": "style", "section":"💄 Styles | 风格", "hidden": false},
14
+ {"type": "refactor", "section":"💄 Styles | 风格", "hidden": false},
15
+ {"type": "perf", "section":"⚡ Performance Improvements | 性能优化", "hidden": false},
16
+ {"type": "test", "section":"✅ Tests | 测试", "hidden": false},
17
+ {"type": "build", "section":"👷‍ Build System | 构建", "hidden": false},
18
+ {"type": "ci", "section":"🔧 Continuous Integration | CI 配置", "hidden":false}
19
+ ],
20
+ "commitUrlFormat": "http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/{{hash}}",
21
+ "compareUrlFormat": "http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/{{previousTag}}...{{currentTag}}",
22
+ "issueUrlFormat": "http://git.inspur.com/ecbh/lambo-design/lambo-design/-/issues/{{id}}"
23
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+ ## 1.0.0-beta.2 (2024-06-19)
3
+
4
+
5
+ ### ✨ Features | 新功能
6
+
7
+ * **@gy-common/core:** 新增api增加业务相关api ([5df3fe9](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/5df3fe999c3262de3ba398ab794bb25e0170bcb8))
8
+
9
+
10
+ ### 🐛 Bug Fixes | Bug 修复
11
+
12
+ * **@gy-common/core:** .versionrc文件修改 ([4d0b93b](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/4d0b93b26020daa52a421a227fbf3f292333af4f))
13
+ * **@gy-common/core:** 引用lambo-design版本修改 ([c3aeaab](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/c3aeaab5ccd867a95b7d9aa7cb77d2eacdfc1a26))
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import * as api from "./src/api";
2
+ export * from "./src/api";
3
+ export { api }
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@yy-common/core",
3
+ "version": "1.0.0-beta.3",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "author": "lambo",
7
+ "license": "ISC",
8
+ "publishConfig": {
9
+ "access": "public",
10
+ "registry": "https://registry.npmjs.org/"
11
+ },
12
+ "dependencies": {
13
+ "@yy-common/shared": "^1.0.0-beta.6"
14
+ },
15
+ "scripts": {
16
+ "release-shared": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
17
+ "release-major": "standard-version --release-as major",
18
+ "release-minor": "standard-version --release-as minor",
19
+ "release-patch": "standard-version --release-as patch",
20
+ "release-beta": "standard-version --prerelease beta",
21
+ "re-publish": "pnpm publish --access public --no-git-checks"
22
+ }
23
+ }
package/src/README.md ADDED
@@ -0,0 +1,8 @@
1
+ ## 这里放组件的公共引入及配置,减少工程中个性化的配置
2
+
3
+ * API
4
+ * Router
5
+ * Directives
6
+ * Mixins
7
+ * Store
8
+ * Plugins
@@ -0,0 +1,20 @@
1
+ import { axios, config } from '@yy-common/shared'
2
+
3
+ const CONTEXT = `${config.imsysServerContext}/manage/permission-apply`
4
+
5
+ export function calcUserApi(params) {
6
+ return axios.post(`${CONTEXT}/calcUser`, params)
7
+ }
8
+
9
+ export function getTaskListByBusiPKApi(params) {
10
+ return axios.get(`${CONTEXT}/getTaskListByBusiPK`, { params })
11
+ }
12
+
13
+ // 分页查询问题工单任务维护
14
+ export function detailByCode(params) {
15
+ return axios.get(`${config.ucExtServerContext}/manage/imsys-flow/detailByCode`, { params })
16
+ }
17
+
18
+ export function getFlowV2(params) {
19
+ return axios.get(`${config.indCommonServerContext}/api/imsysflow/getFlow/V2`, { params })
20
+ }
@@ -0,0 +1,40 @@
1
+ import { axiosN as axios } from '@lambo-design/shared/utils/n/reuqest/axiosN';
2
+ import config from '@yy-common/shared/config/config'
3
+
4
+ const CONTEXT = config.ipmDmServerContext + '/ipm/dm/utils'
5
+
6
+ export function getItemData(itemType) {
7
+ return axios.get(CONTEXT + '/getItemData', {
8
+ params: {
9
+ itemType,
10
+ },
11
+ })
12
+ }
13
+
14
+ export function getQuarterItemData(quarterCode, itemType, isAll) {
15
+ return axios.get(CONTEXT + '/getQuarterItemData', {
16
+ params: {
17
+ quarterCode,
18
+ itemType,
19
+ isAll,
20
+ },
21
+ })
22
+ }
23
+
24
+ export function getUserName() {
25
+ return axios.get(CONTEXT + '/getUserName')
26
+ }
27
+ //获取公用审核意见,参数userId,type:00:共用,10:通过,20:驳回,00的都取
28
+ export function getCommonOpinion(params) {
29
+ return axios.get(CONTEXT + '/getCommonOpinion', { params })
30
+ }
31
+
32
+ export function getCenterItemData() {
33
+ return axios.get(CONTEXT + '/getCenterItemData')
34
+ }
35
+
36
+ export function getImpTaskDetail(params) {
37
+ return axios.get(CONTEXT + '/getImpTaskDetail', {
38
+ params,
39
+ })
40
+ }
@@ -0,0 +1,15 @@
1
+ import { axiosN as axios } from '@lambo-design/shared/utils/n/reuqest/axiosN';
2
+ import config from '@yy-common/shared/config/config';
3
+ const CONTEXT = config.ismAmServerContext;
4
+ export function listItemTreeApi(params) {
5
+ return axios.get(`${CONTEXT}/tree/item/listItemTree`, { params });
6
+ }
7
+ export function getPriceInfo() {
8
+ return axios.get(`${CONTEXT}/basic/getPriceInfo`, {});
9
+ }
10
+ export function getItem(params) {
11
+ return axios.get(`${CONTEXT}/basic/getItem`, { params });
12
+ }
13
+ export function getIndexPreset(params) {
14
+ return axios.get(`/ind-uc-ext-server/manage/ind-index-manage-preset/get`, { params })
15
+ }