qj-common 4.1.44 → 4.1.46
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/.babelrc +12 -12
- package/.eslintrc.js +25 -25
- package/.postcssrc.js +9 -9
- package/.prettierrc.js +7 -7
- package/package.json +17 -17
- package/src/api/apimanage.js +20 -20
- package/src/api/login.js +160 -160
- package/src/api/upload.js +8 -8
- package/src/components/Bounced/index.vue +145 -145
- package/src/components/Breadcrumb/index.vue +71 -71
- package/src/components/Hamburger/index.vue +48 -48
- package/src/components/ScrollBar/index.vue +60 -60
- package/src/components/Sticky/index.vue +76 -76
- package/src/components/SvgIcon/index.vue +42 -42
- package/src/components/Tinymce/components/editorImage.vue +94 -94
- package/src/components/Tinymce/index.vue +166 -166
- package/src/components/Tinymce/plugins.js +7 -7
- package/src/components/Tinymce/toolbar.js +6 -6
- package/src/components/TreeTable/customEval.js +44 -44
- package/src/components/TreeTable/eval.js +29 -29
- package/src/components/TreeTable/index.vue +124 -124
- package/src/components/TreeTable/readme.md +89 -89
- package/src/components/TreeTableApi/customEval.js +49 -49
- package/src/components/TreeTableApi/eval.js +29 -29
- package/src/components/TreeTableApi/index.vue +124 -124
- package/src/components/TreeTableApi/readme.md +89 -89
- package/src/components/Upload/singleImage.vue +123 -123
- package/src/components/Upload/singleImage2.vue +118 -118
- package/src/components/Upload/singleImage3.vue +138 -138
- package/src/components/Upload/upload.vue +295 -295
- package/src/dependencies.js +119 -119
- package/src/iconShop/demo.css +539 -539
- package/src/iconShop/demo_index.html +8445 -8445
- package/src/iconShop/iconfont.css +1451 -1451
- package/src/iconShop/iconfont.json +2522 -2522
- package/src/iconShop/iconfont.svg +1070 -1070
- package/src/iconfont/demo.css +539 -539
- package/src/iconfont/demo_index.html +5276 -5276
- package/src/iconfont/iconfont.css +905 -905
- package/src/iconfont/iconfont.json +1563 -1563
- package/src/iconfont/iconfont.svg +692 -692
- package/src/icons/index.js +9 -9
- package/src/main.js +62 -62
- package/src/permission.js +257 -257
- package/src/permissionForMall.backup.js +375 -375
- package/src/permissionForMall.js +375 -375
- package/src/preset.js +67 -67
- package/src/router/_import_common.js +1 -1
- package/src/router/_import_development.js +1 -1
- package/src/router/_import_production.js +1 -1
- package/src/store/getters.js +39 -39
- package/src/store/index.js +18 -18
- package/src/store/modules/app.js +30 -30
- package/src/store/modules/user.js +227 -227
- package/src/styles/element-ui.scss +1368 -1368
- package/src/styles/index.scss +166 -166
- package/src/styles/mixin.scss +27 -27
- package/src/styles/sidebar.scss +123 -123
- package/src/styles/transition.scss +32 -32
- package/src/styles/variables.scss +44 -44
- package/src/utils/auth.js +57 -57
- package/src/utils/dom.js +12 -12
- package/src/utils/getQueryString.js +5 -5
- package/src/utils/import.js +5 -5
- package/src/utils/index.js +355 -355
- package/src/utils/interceptor.js +34 -34
- package/src/utils/menu.js +116 -116
- package/src/utils/proapp.js +35 -35
- package/src/utils/query.js +26 -26
- package/src/utils/request.js +366 -366
- package/src/utils/routeMapping.js +39 -39
- package/src/utils/routeMapping.json +310 -310
- package/src/utils/validate.js +102 -102
- package/src/views/404.vue +72 -72
- package/src/views/Layout.vue +106 -106
- package/src/views/layout/Layout.vue +170 -170
- package/src/views/layout/components/AppMain.vue +20 -20
- package/src/views/layout/components/LeftNavbar.vue +302 -302
- package/src/views/layout/components/Navbar.vue +661 -661
- package/src/views/layout/components/Sidebar/SidebarItem.vue +113 -113
- package/src/views/layout/components/Sidebar/index.vue +193 -193
- package/src/views/layout/components/index.js +19 -19
- package/src/views/layout/theme/darkBlue/Layout.vue +140 -140
- package/src/views/layout/theme/darkBlue/components/AppMain.vue +38 -38
- package/src/views/layout/theme/darkBlue/components/LeftNavbar(/345/261/225/347/244/272/345/205/250/351/203/250/350/217/234/345/215/225).vue +448 -448
- package/src/views/layout/theme/darkBlue/components/LeftNavbar.3.vue +191 -191
- package/src/views/layout/theme/darkBlue/components/LeftNavbar.vue +466 -466
- package/src/views/layout/theme/darkBlue/components/Navbar.vue +200 -200
- package/src/views/layout/theme/darkBlue/components/Sidebar/SidebarItem.vue +71 -71
- package/src/views/layout/theme/darkBlue/components/Sidebar/index.vue +49 -49
- package/src/views/layout/theme/darkBlue/components/index.js +15 -15
- package/src/views/layout-default/Layout.vue +134 -134
- package/src/views/layout-default/components/AppMain.vue +19 -19
- package/src/views/layout-default/components/LeftNavbar.vue +160 -160
- package/src/views/layout-default/components/Navbar.vue +295 -295
- package/src/views/layout-default/components/Sidebar/SidebarItem.vue +67 -67
- package/src/views/layout-default/components/Sidebar/index.vue +59 -59
- package/src/views/layout-default/components/index.js +4 -4
- package/src/views/layout-default/theme/darkBlue/Layout.vue +140 -140
- package/src/views/layout-default/theme/darkBlue/components/AppMain.vue +38 -38
- package/src/views/layout-default/theme/darkBlue/components/LeftNavbar.vue +465 -465
- package/src/views/layout-default/theme/darkBlue/components/Navbar.vue +200 -200
- package/src/views/layout-default/theme/darkBlue/components/Sidebar/SidebarItem.vue +69 -69
- package/src/views/layout-default/theme/darkBlue/components/Sidebar/index.vue +49 -49
- package/src/views/layout-default/theme/darkBlue/components/index.js +15 -15
- package/src/views/pc/default/Layout.vue +432 -432
- package/src/views/pc/default/LayoutCard.vue +424 -424
- package/src/views/pc/default/footer-modules/DgFooter/index.vue +179 -179
- package/src/views/pc/default/footer-modules/DgFooter/indexSDX.vue +187 -187
- package/src/views/pc/default/footer-modules/footerBulk.vue +169 -169
- package/src/views/pc/default/footer-modules/footerDM.vue +254 -254
- package/src/views/pc/default/footer-modules/footerDefaultA.vue +270 -270
- package/src/views/pc/default/footer-modules/footerDefaultNew.vue +201 -201
- package/src/views/pc/default/footer-modules/footerHDB.vue +153 -153
- package/src/views/pc/default/footer-modules/footerKYW.vue +163 -163
- package/src/views/pc/default/footer-modules/footerMh.vue +30 -30
- package/src/views/pc/default/footer-modules/footerayd.vue +85 -85
- package/src/views/pc/default/footer-modules/ymFooter.vue +154 -154
- package/src/views/pc/default/header-modules/DgHeader/Logo.vue +57 -57
- package/src/views/pc/default/header-modules/DgHeader/Search.vue +135 -135
- package/src/views/pc/default/header-modules/DgHeader/Settleup.vue +46 -46
- package/src/views/pc/default/header-modules/DgHeader/index.vue +38 -38
- package/src/views/pc/default/header-modules/headerA.vue +142 -142
- package/src/views/pc/default/header-modules/headerFLPT.vue +157 -157
- package/src/views/pc/default/header-modules/headerMh.vue +187 -187
- package/src/views/pc/default/header-modules/headerSDX.vue +304 -304
- package/src/views/pc/default/header-modules/headerStyleBulk.vue +427 -427
- package/src/views/pc/default/header-modules/headerStyleKYW.vue +435 -435
- package/src/views/pc/default/header-modules/headerayd.vue +187 -187
- package/src/views/pc/default/header-modules/ymHeader.vue +292 -292
- package/src/views/pc/default/leftMenu-modules/leftMenuDefaultayd.vue +220 -220
- package/src/views/pc/default/nav-modules/navBulk.vue +60 -60
- package/src/views/pc/default/top-modules/DgTopShortcut/index.vue +177 -177
- package/src/views/pc/default/top-modules/topA.vue +136 -136
- package/src/views/pc/default/top-modules/topBulk.vue +280 -280
- package/src/views/pc/default/top-modules/topDefaultDM.vue +197 -197
- package/src/views/pc/default/top-modules/topDefaultNew.vue +271 -271
- package/src/views/pc/default/top-modules/topFLPT.vue +197 -197
- package/src/views/pc/default/top-modules/topHDB.vue +479 -479
- package/src/views/pc/default/top-modules/topKYW.vue +258 -258
- package/src/views/pc/default/top-modules/topMh.vue +174 -174
- package/src/views/pc/default/top-modules/topNew.vue +2 -2
- package/src/views/pc/default/top-modules/topSDX.vue +298 -298
- package/src/views/pc/default/top-modules/topSimpleHy.vue +256 -256
- package/src/views/pc/default/top-modules/topayd.vue +170 -170
- package/src/views/pc/default/top-modules/ymTop.vue +299 -299
- package/src/views/routerView.vue +9 -9
- package/src/views/templates/templateReadme.html +588 -588
- package/src/views/templates/templateReadme.md +619 -619
- package/src/views/templates/templateTable.vue +13 -4
- package/src/views/treeTemplate/treeTemplate.md +274 -274
- package/src/views/uploadDialog/index copy.vue +352 -352
- package/src/views/uploadDialog/index.vue +558 -558
- package/src/views/uploadDialog/indexOlay.vue +582 -582
- package/src/views/uploadDialog/indexPM.vue +578 -578
- package/src/views/uploadDialog/indexUpload.vue +543 -543
package/.babelrc
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"presets": [
|
|
3
|
-
["env", {
|
|
4
|
-
"modules": false,
|
|
5
|
-
"targets": {
|
|
6
|
-
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
|
|
7
|
-
}
|
|
8
|
-
}],
|
|
9
|
-
"stage-2"
|
|
10
|
-
],
|
|
11
|
-
"plugins":["transform-vue-jsx", "transform-runtime"]
|
|
12
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"presets": [
|
|
3
|
+
["env", {
|
|
4
|
+
"modules": false,
|
|
5
|
+
"targets": {
|
|
6
|
+
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
|
|
7
|
+
}
|
|
8
|
+
}],
|
|
9
|
+
"stage-2"
|
|
10
|
+
],
|
|
11
|
+
"plugins":["transform-vue-jsx", "transform-runtime"]
|
|
12
|
+
}
|
package/.eslintrc.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: {
|
|
4
|
-
node: true,
|
|
5
|
-
},
|
|
6
|
-
extends: ['plugin:vue/essential', '@vue/prettier'],
|
|
7
|
-
rules: {
|
|
8
|
-
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
9
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
10
|
-
// Custom Configure
|
|
11
|
-
'no-unused-vars': 0,
|
|
12
|
-
'no-undef': 0,
|
|
13
|
-
},
|
|
14
|
-
parserOptions: {
|
|
15
|
-
parser: 'babel-eslint',
|
|
16
|
-
},
|
|
17
|
-
overrides: [
|
|
18
|
-
{
|
|
19
|
-
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
|
|
20
|
-
env: {
|
|
21
|
-
jest: true,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
node: true,
|
|
5
|
+
},
|
|
6
|
+
extends: ['plugin:vue/essential', '@vue/prettier'],
|
|
7
|
+
rules: {
|
|
8
|
+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
9
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
10
|
+
// Custom Configure
|
|
11
|
+
'no-unused-vars': 0,
|
|
12
|
+
'no-undef': 0,
|
|
13
|
+
},
|
|
14
|
+
parserOptions: {
|
|
15
|
+
parser: 'babel-eslint',
|
|
16
|
+
},
|
|
17
|
+
overrides: [
|
|
18
|
+
{
|
|
19
|
+
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
|
|
20
|
+
env: {
|
|
21
|
+
jest: true,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
};
|
package/.postcssrc.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// https://github.com/michael-ciniawsky/postcss-load-config
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
"plugins": {
|
|
5
|
-
// to edit target browsers: use "browserslist" field in package.json
|
|
6
|
-
"postcss-import": {},
|
|
7
|
-
"autoprefixer": {}
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
// https://github.com/michael-ciniawsky/postcss-load-config
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
"plugins": {
|
|
5
|
+
// to edit target browsers: use "browserslist" field in package.json
|
|
6
|
+
"postcss-import": {},
|
|
7
|
+
"autoprefixer": {}
|
|
8
|
+
}
|
|
9
|
+
}
|
package/.prettierrc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
trailingComma: 'es5',
|
|
3
|
-
tabWidth: 2,
|
|
4
|
-
semi: true,
|
|
5
|
-
singleQuote: true,
|
|
6
|
-
printWidth: 200,
|
|
7
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
trailingComma: 'es5',
|
|
3
|
+
tabWidth: 2,
|
|
4
|
+
semi: true,
|
|
5
|
+
singleQuote: true,
|
|
6
|
+
printWidth: 200,
|
|
7
|
+
};
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "qj-common",
|
|
3
|
-
"version": "4.1.
|
|
4
|
-
"description": "common files && template for qj-paas",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"gulp": "gulp css"
|
|
7
|
-
},
|
|
8
|
-
"engines": {
|
|
9
|
-
"node": ">= 4.0.0",
|
|
10
|
-
"npm": ">= 3.0.0"
|
|
11
|
-
},
|
|
12
|
-
"browserslist": [
|
|
13
|
-
"> 1%",
|
|
14
|
-
"last 2 versions",
|
|
15
|
-
"not ie <= 8"
|
|
16
|
-
],
|
|
17
|
-
"license": "MIT"
|
|
1
|
+
{
|
|
2
|
+
"name": "qj-common",
|
|
3
|
+
"version": "4.1.46",
|
|
4
|
+
"description": "common files && template for qj-paas",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"gulp": "gulp css"
|
|
7
|
+
},
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">= 4.0.0",
|
|
10
|
+
"npm": ">= 3.0.0"
|
|
11
|
+
},
|
|
12
|
+
"browserslist": [
|
|
13
|
+
"> 1%",
|
|
14
|
+
"last 2 versions",
|
|
15
|
+
"not ie <= 8"
|
|
16
|
+
],
|
|
17
|
+
"license": "MIT"
|
|
18
18
|
}
|
package/src/api/apimanage.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import request from '#/utils/request'
|
|
2
2
|
// 楼层
|
|
3
|
-
export function queryConttitleReDomainByCode(data) {
|
|
4
|
-
return request({
|
|
5
|
-
url: '/web/cms/conttitleBusiness/queryConttitleReDomainByCode.json',
|
|
6
|
-
method: 'get',
|
|
7
|
-
params: data
|
|
8
|
-
})
|
|
3
|
+
export function queryConttitleReDomainByCode(data) {
|
|
4
|
+
return request({
|
|
5
|
+
url: '/web/cms/conttitleBusiness/queryConttitleReDomainByCode.json',
|
|
6
|
+
method: 'get',
|
|
7
|
+
params: data
|
|
8
|
+
})
|
|
9
9
|
}
|
|
10
10
|
//查询接口管理分类
|
|
11
11
|
export function listApiManage(appmanageType) {
|
|
@@ -123,20 +123,20 @@ export function getPermissionAll(appapiId) {
|
|
|
123
123
|
})
|
|
124
124
|
}
|
|
125
125
|
//查询帮助中心左侧菜单
|
|
126
|
-
export function queryConttitlePageForSc(data) {
|
|
127
|
-
return request({
|
|
128
|
-
url: '/web/cms/conttitleBusiness/queryConttitlePageForSc.json',
|
|
129
|
-
method: 'post',
|
|
130
|
-
data: data
|
|
131
|
-
})
|
|
132
|
-
}
|
|
133
|
-
//查询帮助中心左侧菜单下的子菜单
|
|
134
|
-
export function queryContlistPageForSc(data) {
|
|
135
|
-
return request({
|
|
136
|
-
url: '/web/cms/conttitleBusiness/queryContlistPageForSc.json',
|
|
137
|
-
method: 'post',
|
|
138
|
-
data: data
|
|
139
|
-
})
|
|
126
|
+
export function queryConttitlePageForSc(data) {
|
|
127
|
+
return request({
|
|
128
|
+
url: '/web/cms/conttitleBusiness/queryConttitlePageForSc.json',
|
|
129
|
+
method: 'post',
|
|
130
|
+
data: data
|
|
131
|
+
})
|
|
132
|
+
}
|
|
133
|
+
//查询帮助中心左侧菜单下的子菜单
|
|
134
|
+
export function queryContlistPageForSc(data) {
|
|
135
|
+
return request({
|
|
136
|
+
url: '/web/cms/conttitleBusiness/queryContlistPageForSc.json',
|
|
137
|
+
method: 'post',
|
|
138
|
+
data: data
|
|
139
|
+
})
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
|
package/src/api/login.js
CHANGED
|
@@ -1,160 +1,160 @@
|
|
|
1
|
-
import request from '#/utils/request';
|
|
2
|
-
|
|
3
|
-
// export function login(loginName, passwd) {
|
|
4
|
-
// return request({
|
|
5
|
-
// url: '/web/ml/mlogin/loginIn.json',
|
|
6
|
-
// method: 'get',
|
|
7
|
-
// dataType: 'jsonp',
|
|
8
|
-
// params: {
|
|
9
|
-
// loginName,
|
|
10
|
-
// passwd,
|
|
11
|
-
// code: '1234'
|
|
12
|
-
// }
|
|
13
|
-
// })
|
|
14
|
-
// }
|
|
15
|
-
export function login(loginName, passwd) {
|
|
16
|
-
return request({
|
|
17
|
-
url: '/web/ml/mlogin/loginIn.json',
|
|
18
|
-
method: 'post',
|
|
19
|
-
// dataType: 'jsonp',
|
|
20
|
-
data: {
|
|
21
|
-
loginName,
|
|
22
|
-
passwd,
|
|
23
|
-
code: '1234',
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
// 首页请求数据
|
|
28
|
-
export function indexRequest(data) {
|
|
29
|
-
return request({
|
|
30
|
-
url: '/web/cms/conttitleBusiness/queryConttitleReDomainByCode.json',
|
|
31
|
-
method: 'get',
|
|
32
|
-
params: data,
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
//退出登录
|
|
36
|
-
export function loginOut(data) {
|
|
37
|
-
return request({
|
|
38
|
-
url: '/web/ml/mlogin/loginOut.json',
|
|
39
|
-
method: 'post',
|
|
40
|
-
// data: queryString.stringify(data)
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
//获取个人信息
|
|
44
|
-
export function getPersonal(data) {
|
|
45
|
-
return request({
|
|
46
|
-
url: '/web/um/userservice/getUserservice.json',
|
|
47
|
-
method: 'get',
|
|
48
|
-
params: data,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function queryShoppingPageNew(data) {
|
|
53
|
-
return request({
|
|
54
|
-
url: '/web/oc/shopping/queryShoppingPageNew.json',
|
|
55
|
-
method: 'post',
|
|
56
|
-
data: data,
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
//获取用户信息
|
|
60
|
-
export function getUserIndex(data) {
|
|
61
|
-
return request({
|
|
62
|
-
url: '/web/bi/bindex/index.json',
|
|
63
|
-
method: 'get',
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function getInfo() {
|
|
68
|
-
return request({
|
|
69
|
-
url: '/web/ml/mlogin/logininfo.json',
|
|
70
|
-
method: 'get',
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function logout() {
|
|
75
|
-
return request({
|
|
76
|
-
url: '/web/ml/mlogin/loginOut.json',
|
|
77
|
-
method: 'get',
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function getRouter() {
|
|
82
|
-
return request({
|
|
83
|
-
url: '/web/mi/mindex/index.json',
|
|
84
|
-
method: 'get',
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export function getProappinfo() {
|
|
89
|
-
return request({
|
|
90
|
-
url: '/web/ml/mlogin/getProappinfo.json',
|
|
91
|
-
method: 'get',
|
|
92
|
-
loading: false,
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
//判断当前登录用户是否是平台用户
|
|
97
|
-
export function checkPlat() {
|
|
98
|
-
return request({
|
|
99
|
-
isValid: true,
|
|
100
|
-
url: '/web/ml/mlogin/checkPlat.json',
|
|
101
|
-
method: 'get',
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
//获取应用列表
|
|
106
|
-
export function getModulesList() {
|
|
107
|
-
return request({
|
|
108
|
-
url: '/web/mi/mindex/getTopPerMenuList.json',
|
|
109
|
-
method: 'get',
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
//根据menuParentCode获取应用权限
|
|
114
|
-
|
|
115
|
-
export function getMenuList(data) {
|
|
116
|
-
return request({
|
|
117
|
-
url: '/web/mi/mindex/menuPerQuery.json',
|
|
118
|
-
method: 'post',
|
|
119
|
-
data: data,
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
// 获取路由
|
|
123
|
-
export function getTopPerMenuListFPc() {
|
|
124
|
-
return request({
|
|
125
|
-
url: '/web/mi/mindex/getTopPerMenuListFPc.json',
|
|
126
|
-
method: 'get',
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
//调取用户信息
|
|
130
|
-
export function getUserserviceInfo(data) {
|
|
131
|
-
//addressId
|
|
132
|
-
return request({
|
|
133
|
-
url: '/web/um/userservice/getUserserviceInfo.json',
|
|
134
|
-
params: data,
|
|
135
|
-
method: 'get',
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
//获取底部信息
|
|
139
|
-
export function getBottominfor(data) {
|
|
140
|
-
return request({
|
|
141
|
-
url: '/web/cms/tginfoMenu/queryTginfoMenuForAt.json',
|
|
142
|
-
params: data,
|
|
143
|
-
method: 'get',
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
export function queryTginfoPageForCm() {
|
|
147
|
-
return request({
|
|
148
|
-
url: '/web/cms/tginfo/queryTginfoPageForCm.json',
|
|
149
|
-
method: 'get',
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// 获取 SSO 授权baseUrl key
|
|
154
|
-
export function getSSOAuthInfo(data) {
|
|
155
|
-
return request({
|
|
156
|
-
url: '/web/os/osOAuthEnvconfig/queryOsOAuthEnvconfig.json',
|
|
157
|
-
method: 'get',
|
|
158
|
-
params: data,
|
|
159
|
-
});
|
|
160
|
-
}
|
|
1
|
+
import request from '#/utils/request';
|
|
2
|
+
|
|
3
|
+
// export function login(loginName, passwd) {
|
|
4
|
+
// return request({
|
|
5
|
+
// url: '/web/ml/mlogin/loginIn.json',
|
|
6
|
+
// method: 'get',
|
|
7
|
+
// dataType: 'jsonp',
|
|
8
|
+
// params: {
|
|
9
|
+
// loginName,
|
|
10
|
+
// passwd,
|
|
11
|
+
// code: '1234'
|
|
12
|
+
// }
|
|
13
|
+
// })
|
|
14
|
+
// }
|
|
15
|
+
export function login(loginName, passwd) {
|
|
16
|
+
return request({
|
|
17
|
+
url: '/web/ml/mlogin/loginIn.json',
|
|
18
|
+
method: 'post',
|
|
19
|
+
// dataType: 'jsonp',
|
|
20
|
+
data: {
|
|
21
|
+
loginName,
|
|
22
|
+
passwd,
|
|
23
|
+
code: '1234',
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
// 首页请求数据
|
|
28
|
+
export function indexRequest(data) {
|
|
29
|
+
return request({
|
|
30
|
+
url: '/web/cms/conttitleBusiness/queryConttitleReDomainByCode.json',
|
|
31
|
+
method: 'get',
|
|
32
|
+
params: data,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
//退出登录
|
|
36
|
+
export function loginOut(data) {
|
|
37
|
+
return request({
|
|
38
|
+
url: '/web/ml/mlogin/loginOut.json',
|
|
39
|
+
method: 'post',
|
|
40
|
+
// data: queryString.stringify(data)
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//获取个人信息
|
|
44
|
+
export function getPersonal(data) {
|
|
45
|
+
return request({
|
|
46
|
+
url: '/web/um/userservice/getUserservice.json',
|
|
47
|
+
method: 'get',
|
|
48
|
+
params: data,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function queryShoppingPageNew(data) {
|
|
53
|
+
return request({
|
|
54
|
+
url: '/web/oc/shopping/queryShoppingPageNew.json',
|
|
55
|
+
method: 'post',
|
|
56
|
+
data: data,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
//获取用户信息
|
|
60
|
+
export function getUserIndex(data) {
|
|
61
|
+
return request({
|
|
62
|
+
url: '/web/bi/bindex/index.json',
|
|
63
|
+
method: 'get',
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function getInfo() {
|
|
68
|
+
return request({
|
|
69
|
+
url: '/web/ml/mlogin/logininfo.json',
|
|
70
|
+
method: 'get',
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function logout() {
|
|
75
|
+
return request({
|
|
76
|
+
url: '/web/ml/mlogin/loginOut.json',
|
|
77
|
+
method: 'get',
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function getRouter() {
|
|
82
|
+
return request({
|
|
83
|
+
url: '/web/mi/mindex/index.json',
|
|
84
|
+
method: 'get',
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function getProappinfo() {
|
|
89
|
+
return request({
|
|
90
|
+
url: '/web/ml/mlogin/getProappinfo.json',
|
|
91
|
+
method: 'get',
|
|
92
|
+
loading: false,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
//判断当前登录用户是否是平台用户
|
|
97
|
+
export function checkPlat() {
|
|
98
|
+
return request({
|
|
99
|
+
isValid: true,
|
|
100
|
+
url: '/web/ml/mlogin/checkPlat.json',
|
|
101
|
+
method: 'get',
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
//获取应用列表
|
|
106
|
+
export function getModulesList() {
|
|
107
|
+
return request({
|
|
108
|
+
url: '/web/mi/mindex/getTopPerMenuList.json',
|
|
109
|
+
method: 'get',
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
//根据menuParentCode获取应用权限
|
|
114
|
+
|
|
115
|
+
export function getMenuList(data) {
|
|
116
|
+
return request({
|
|
117
|
+
url: '/web/mi/mindex/menuPerQuery.json',
|
|
118
|
+
method: 'post',
|
|
119
|
+
data: data,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
// 获取路由
|
|
123
|
+
export function getTopPerMenuListFPc() {
|
|
124
|
+
return request({
|
|
125
|
+
url: '/web/mi/mindex/getTopPerMenuListFPc.json',
|
|
126
|
+
method: 'get',
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
//调取用户信息
|
|
130
|
+
export function getUserserviceInfo(data) {
|
|
131
|
+
//addressId
|
|
132
|
+
return request({
|
|
133
|
+
url: '/web/um/userservice/getUserserviceInfo.json',
|
|
134
|
+
params: data,
|
|
135
|
+
method: 'get',
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
//获取底部信息
|
|
139
|
+
export function getBottominfor(data) {
|
|
140
|
+
return request({
|
|
141
|
+
url: '/web/cms/tginfoMenu/queryTginfoMenuForAt.json',
|
|
142
|
+
params: data,
|
|
143
|
+
method: 'get',
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
export function queryTginfoPageForCm() {
|
|
147
|
+
return request({
|
|
148
|
+
url: '/web/cms/tginfo/queryTginfoPageForCm.json',
|
|
149
|
+
method: 'get',
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// 获取 SSO 授权baseUrl key
|
|
154
|
+
export function getSSOAuthInfo(data) {
|
|
155
|
+
return request({
|
|
156
|
+
url: '/web/os/osOAuthEnvconfig/queryOsOAuthEnvconfig.json',
|
|
157
|
+
method: 'get',
|
|
158
|
+
params: data,
|
|
159
|
+
});
|
|
160
|
+
}
|
package/src/api/upload.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import request from '#/utils/request'
|
|
2
|
-
|
|
3
|
-
export function getToken() {
|
|
4
|
-
return request({
|
|
5
|
-
url: '/qiniu/upload/token', // 假地址 自行替换
|
|
6
|
-
method: 'get'
|
|
7
|
-
})
|
|
8
|
-
}
|
|
1
|
+
import request from '#/utils/request'
|
|
2
|
+
|
|
3
|
+
export function getToken() {
|
|
4
|
+
return request({
|
|
5
|
+
url: '/qiniu/upload/token', // 假地址 自行替换
|
|
6
|
+
method: 'get'
|
|
7
|
+
})
|
|
8
|
+
}
|