system-clients 3.1.69 → 3.1.71-ls
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/CHANGELOG.md +51 -51
- package/package.json +1 -1
- package/src/App.vue +24 -24
- package/src/components/server/Login.vue +639 -639
- package/src/components/server/ResSelectGroup.vue +4 -4
- package/src/plugins/HeatGetLoginInfoService.js +491 -491
- package/src/stores/HeatAppData.js +38 -38
- package/src/styles/less/aofeng/expandcss.less +569 -569
- package/src/system.js +83 -83
- package/test/unit/karma.conf.js +49 -49
- package/test/unit/specs/components/parammanage/ParamPage.spec.js +20 -20
- package/test/unit/specs/components/server/LeftTree/LeftTree.spec.js +22 -22
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
package/src/system.js
CHANGED
@@ -1,83 +1,83 @@
|
|
1
|
-
import Vue from 'vue'
|
2
|
-
import GetLoginInfoService from './plugins/GetLoginInfoService'
|
3
|
-
import GetAppDataService from './stores/AppData'
|
4
|
-
// 热力
|
5
|
-
import HeatGetLoginInfoService from './plugins/HeatGetLoginInfoService'
|
6
|
-
import HeatGetAppDataService from './stores/HeatAppData'
|
7
|
-
// 热力登陆控制
|
8
|
-
Vue.$heatCompatibility = Vue.prototype.$heatCompatibility = false
|
9
|
-
|
10
|
-
// /** **************************登录与主界面相关******************************/
|
11
|
-
|
12
|
-
import login from './components/server/Login'
|
13
|
-
import changeDeclare from './components/server/ChangeDeclare'
|
14
|
-
import addChangemsg from './components/server/AddChangeMsg'
|
15
|
-
import homePage from './components/Main'
|
16
|
-
import leftTree from './components/server/LeftTree'
|
17
|
-
import iconTree from './components/server/IconTree'
|
18
|
-
import modifyPw from './components/server/ModifyPw'
|
19
|
-
import LoadData from './components/server/LoadData'
|
20
|
-
import RightTree from './components/server/RightTree'
|
21
|
-
import TestRightTree from './components/server/TestRightTree'
|
22
|
-
//资源选择
|
23
|
-
import ResSelect from './components/server/ResSelect'
|
24
|
-
import ResSelectGroup from './components/server/ResSelectGroup'
|
25
|
-
|
26
|
-
//资源选择测试
|
27
|
-
import TestResSelect from './components/server/TestResSelect'
|
28
|
-
import RoleSelector from "./components/server/RoleSelector";
|
29
|
-
export default function (val) {
|
30
|
-
//验证码开关赋值
|
31
|
-
if(val!=null){
|
32
|
-
GetLoginInfoService.Verification=val
|
33
|
-
}
|
34
|
-
Vue.use(GetLoginInfoService)
|
35
|
-
Vue.use(GetAppDataService)
|
36
|
-
Vue.use(HeatGetLoginInfoService)
|
37
|
-
Vue.use(HeatGetAppDataService)
|
38
|
-
|
39
|
-
Vue.component('login', login)
|
40
|
-
Vue.component('change-declare', changeDeclare)
|
41
|
-
Vue.component('add-changemsg', addChangemsg)
|
42
|
-
Vue.component('home-page', homePage)
|
43
|
-
Vue.component('left-tree', leftTree)
|
44
|
-
Vue.component('icon-tree', iconTree)
|
45
|
-
Vue.component('modify-pw', modifyPw)
|
46
|
-
Vue.component('load-data', LoadData)
|
47
|
-
Vue.component('right-tree', RightTree)
|
48
|
-
Vue.component('test-right-tree', TestRightTree)
|
49
|
-
Vue.component('role-selector', RoleSelector)
|
50
|
-
//资源选择
|
51
|
-
Vue.component('res-select', ResSelect)
|
52
|
-
Vue.component('res-select-group', ResSelectGroup)
|
53
|
-
//资源选择测试
|
54
|
-
Vue.component('test-res-select', TestResSelect)
|
55
|
-
|
56
|
-
// 参数管理(新)
|
57
|
-
Vue.component('param-manage', (resolve) => { require(['./components/parammanage/ParamManage'], resolve) })
|
58
|
-
// 参数管理
|
59
|
-
Vue.component('param-page', (resolve) => { require(['./components/parammanage/ParamPage'], resolve) })
|
60
|
-
// 参数管理
|
61
|
-
Vue.component('single-page', (resolve) => { require(['./components/parammanage/SinglePage'], resolve) })
|
62
|
-
|
63
|
-
// 参数管理(旧)
|
64
|
-
Vue.component('param-manages', (resolve) => { require(['./components/parammanage/ParamManages'], resolve) })
|
65
|
-
// 参数管理
|
66
|
-
Vue.component('param-pages', (resolve) => { require(['./components/parammanage/ParamPages'], resolve) })
|
67
|
-
// 参数管理
|
68
|
-
Vue.component('single-pages', (resolve) => { require(['./components/parammanage/SinglePages'], resolve) })
|
69
|
-
|
70
|
-
// 终端管理
|
71
|
-
Vue.component('equipment-manage', (resolve) => { require(['./components/equipment/EquipmentManage'], resolve) })
|
72
|
-
// pc端控制
|
73
|
-
Vue.component('pc-manage', (resolve) => { require(['./components/equipment/PcManage'], resolve) })
|
74
|
-
// phone端控制
|
75
|
-
Vue.component('phone-manage', (resolve) => { require(['./components/equipment/PhoneManage'], resolve) })
|
76
|
-
// pos端控制
|
77
|
-
Vue.component('pos-manage', (resolve) => { require(['./components/equipment/PosManage'], resolve) })
|
78
|
-
|
79
|
-
// 材料字典
|
80
|
-
Vue.component('material-data', (resolve) => { require(['./components/materialManage/materialData.vue'], resolve) })
|
81
|
-
Vue.component('material-data-list', (resolve) => { require(['./components/materialManage/materialList.vue'], resolve) })
|
82
|
-
|
83
|
-
}
|
1
|
+
import Vue from 'vue'
|
2
|
+
import GetLoginInfoService from './plugins/GetLoginInfoService'
|
3
|
+
import GetAppDataService from './stores/AppData'
|
4
|
+
// 热力
|
5
|
+
import HeatGetLoginInfoService from './plugins/HeatGetLoginInfoService'
|
6
|
+
import HeatGetAppDataService from './stores/HeatAppData'
|
7
|
+
// 热力登陆控制
|
8
|
+
Vue.$heatCompatibility = Vue.prototype.$heatCompatibility = false
|
9
|
+
|
10
|
+
// /** **************************登录与主界面相关******************************/
|
11
|
+
|
12
|
+
import login from './components/server/Login'
|
13
|
+
import changeDeclare from './components/server/ChangeDeclare'
|
14
|
+
import addChangemsg from './components/server/AddChangeMsg'
|
15
|
+
import homePage from './components/Main'
|
16
|
+
import leftTree from './components/server/LeftTree'
|
17
|
+
import iconTree from './components/server/IconTree'
|
18
|
+
import modifyPw from './components/server/ModifyPw'
|
19
|
+
import LoadData from './components/server/LoadData'
|
20
|
+
import RightTree from './components/server/RightTree'
|
21
|
+
import TestRightTree from './components/server/TestRightTree'
|
22
|
+
//资源选择
|
23
|
+
import ResSelect from './components/server/ResSelect'
|
24
|
+
import ResSelectGroup from './components/server/ResSelectGroup'
|
25
|
+
|
26
|
+
//资源选择测试
|
27
|
+
import TestResSelect from './components/server/TestResSelect'
|
28
|
+
import RoleSelector from "./components/server/RoleSelector";
|
29
|
+
export default function (val) {
|
30
|
+
//验证码开关赋值
|
31
|
+
if(val!=null){
|
32
|
+
GetLoginInfoService.Verification=val
|
33
|
+
}
|
34
|
+
Vue.use(GetLoginInfoService)
|
35
|
+
Vue.use(GetAppDataService)
|
36
|
+
Vue.use(HeatGetLoginInfoService)
|
37
|
+
Vue.use(HeatGetAppDataService)
|
38
|
+
|
39
|
+
Vue.component('login', login)
|
40
|
+
Vue.component('change-declare', changeDeclare)
|
41
|
+
Vue.component('add-changemsg', addChangemsg)
|
42
|
+
Vue.component('home-page', homePage)
|
43
|
+
Vue.component('left-tree', leftTree)
|
44
|
+
Vue.component('icon-tree', iconTree)
|
45
|
+
Vue.component('modify-pw', modifyPw)
|
46
|
+
Vue.component('load-data', LoadData)
|
47
|
+
Vue.component('right-tree', RightTree)
|
48
|
+
Vue.component('test-right-tree', TestRightTree)
|
49
|
+
Vue.component('role-selector', RoleSelector)
|
50
|
+
//资源选择
|
51
|
+
Vue.component('res-select', ResSelect)
|
52
|
+
Vue.component('res-select-group', ResSelectGroup)
|
53
|
+
//资源选择测试
|
54
|
+
Vue.component('test-res-select', TestResSelect)
|
55
|
+
|
56
|
+
// 参数管理(新)
|
57
|
+
Vue.component('param-manage', (resolve) => { require(['./components/parammanage/ParamManage'], resolve) })
|
58
|
+
// 参数管理
|
59
|
+
Vue.component('param-page', (resolve) => { require(['./components/parammanage/ParamPage'], resolve) })
|
60
|
+
// 参数管理
|
61
|
+
Vue.component('single-page', (resolve) => { require(['./components/parammanage/SinglePage'], resolve) })
|
62
|
+
|
63
|
+
// 参数管理(旧)
|
64
|
+
Vue.component('param-manages', (resolve) => { require(['./components/parammanage/ParamManages'], resolve) })
|
65
|
+
// 参数管理
|
66
|
+
Vue.component('param-pages', (resolve) => { require(['./components/parammanage/ParamPages'], resolve) })
|
67
|
+
// 参数管理
|
68
|
+
Vue.component('single-pages', (resolve) => { require(['./components/parammanage/SinglePages'], resolve) })
|
69
|
+
|
70
|
+
// 终端管理
|
71
|
+
Vue.component('equipment-manage', (resolve) => { require(['./components/equipment/EquipmentManage'], resolve) })
|
72
|
+
// pc端控制
|
73
|
+
Vue.component('pc-manage', (resolve) => { require(['./components/equipment/PcManage'], resolve) })
|
74
|
+
// phone端控制
|
75
|
+
Vue.component('phone-manage', (resolve) => { require(['./components/equipment/PhoneManage'], resolve) })
|
76
|
+
// pos端控制
|
77
|
+
Vue.component('pos-manage', (resolve) => { require(['./components/equipment/PosManage'], resolve) })
|
78
|
+
|
79
|
+
// 材料字典
|
80
|
+
Vue.component('material-data', (resolve) => { require(['./components/materialManage/materialData.vue'], resolve) })
|
81
|
+
Vue.component('material-data-list', (resolve) => { require(['./components/materialManage/materialList.vue'], resolve) })
|
82
|
+
|
83
|
+
}
|
package/test/unit/karma.conf.js
CHANGED
@@ -1,49 +1,49 @@
|
|
1
|
-
// This is a karma config file. For more details see
|
2
|
-
// http://karma-runner.github.io/0.13/config/configuration-file.html
|
3
|
-
// we are also using it with karma-webpack
|
4
|
-
// https://github.com/webpack/karma-webpack
|
5
|
-
|
6
|
-
var webpackConfig = require('../../build/webpack.test.conf')
|
7
|
-
|
8
|
-
module.exports = function (config) {
|
9
|
-
config.set({
|
10
|
-
customContextFile: './test.html',
|
11
|
-
// to run in additional browsers:
|
12
|
-
// 1. install corresponding karma launcher
|
13
|
-
// http://karma-runner.github.io/0.13/config/browsers.html
|
14
|
-
// 2. add it to the `browsers` array below.
|
15
|
-
browsers: ['Chrome_without_security'],
|
16
|
-
customLaunchers: {
|
17
|
-
Chrome_without_security: {
|
18
|
-
base: 'Chrome',
|
19
|
-
flags: ['--disable-web-security']
|
20
|
-
}
|
21
|
-
},
|
22
|
-
proxies: {
|
23
|
-
//'/rs': 'http://202.108.65.218:9001/rs',
|
24
|
-
// '/rs': 'http://127.0.0.1:8080/rs',
|
25
|
-
'/rs': 'http://192.168.50.222:8300/rs',
|
26
|
-
//'/rs/report': 'http://127.0.0.1:8080/rs/report',
|
27
|
-
//'/rs/logic/getLogin': 'http://127.0.0.1:8080/rs/logic/getLogin'
|
28
|
-
// '/rs/logic': 'http://127.0.0.1:8888/product/rs/logic',
|
29
|
-
},
|
30
|
-
autoWatch: true,
|
31
|
-
frameworks: ['mocha', 'sinon-chai'],
|
32
|
-
reporters: ['spec', 'coverage'],
|
33
|
-
files: ['./index.js'],
|
34
|
-
preprocessors: {
|
35
|
-
'./index.js': ['webpack', 'sourcemap']
|
36
|
-
},
|
37
|
-
webpack: webpackConfig,
|
38
|
-
webpackMiddleware: {
|
39
|
-
noInfo: true
|
40
|
-
},
|
41
|
-
coverageReporter: {
|
42
|
-
dir: './coverage',
|
43
|
-
reporters: [
|
44
|
-
{ type: 'lcov', subdir: '.' },
|
45
|
-
{ type: 'text-summary' }
|
46
|
-
]
|
47
|
-
}
|
48
|
-
})
|
49
|
-
}
|
1
|
+
// This is a karma config file. For more details see
|
2
|
+
// http://karma-runner.github.io/0.13/config/configuration-file.html
|
3
|
+
// we are also using it with karma-webpack
|
4
|
+
// https://github.com/webpack/karma-webpack
|
5
|
+
|
6
|
+
var webpackConfig = require('../../build/webpack.test.conf')
|
7
|
+
|
8
|
+
module.exports = function (config) {
|
9
|
+
config.set({
|
10
|
+
customContextFile: './test.html',
|
11
|
+
// to run in additional browsers:
|
12
|
+
// 1. install corresponding karma launcher
|
13
|
+
// http://karma-runner.github.io/0.13/config/browsers.html
|
14
|
+
// 2. add it to the `browsers` array below.
|
15
|
+
browsers: ['Chrome_without_security'],
|
16
|
+
customLaunchers: {
|
17
|
+
Chrome_without_security: {
|
18
|
+
base: 'Chrome',
|
19
|
+
flags: ['--disable-web-security']
|
20
|
+
}
|
21
|
+
},
|
22
|
+
proxies: {
|
23
|
+
//'/rs': 'http://202.108.65.218:9001/rs',
|
24
|
+
// '/rs': 'http://127.0.0.1:8080/rs',
|
25
|
+
'/rs': 'http://192.168.50.222:8300/rs',
|
26
|
+
//'/rs/report': 'http://127.0.0.1:8080/rs/report',
|
27
|
+
//'/rs/logic/getLogin': 'http://127.0.0.1:8080/rs/logic/getLogin'
|
28
|
+
// '/rs/logic': 'http://127.0.0.1:8888/product/rs/logic',
|
29
|
+
},
|
30
|
+
autoWatch: true,
|
31
|
+
frameworks: ['mocha', 'sinon-chai'],
|
32
|
+
reporters: ['spec', 'coverage'],
|
33
|
+
files: ['./index.js'],
|
34
|
+
preprocessors: {
|
35
|
+
'./index.js': ['webpack', 'sourcemap']
|
36
|
+
},
|
37
|
+
webpack: webpackConfig,
|
38
|
+
webpackMiddleware: {
|
39
|
+
noInfo: true
|
40
|
+
},
|
41
|
+
coverageReporter: {
|
42
|
+
dir: './coverage',
|
43
|
+
reporters: [
|
44
|
+
{ type: 'lcov', subdir: '.' },
|
45
|
+
{ type: 'text-summary' }
|
46
|
+
]
|
47
|
+
}
|
48
|
+
})
|
49
|
+
}
|
@@ -1,20 +1,20 @@
|
|
1
|
-
import Vue from 'vue'
|
2
|
-
import init from 'test/unit/init'
|
3
|
-
import { TestUtil } from 'vue-client'
|
4
|
-
|
5
|
-
import ParamPage from 'src/components/parammanage/ParamPage'
|
6
|
-
|
7
|
-
describe('ParamPage: 参数管理', () => {
|
8
|
-
let vm = null
|
9
|
-
before(async function () {
|
10
|
-
init()
|
11
|
-
await Vue.$login.login('cdy', '1')
|
12
|
-
})
|
13
|
-
|
14
|
-
it.only('正确显示', async function() {
|
15
|
-
vm = await TestUtil.createAsyncTest(ParamPage, {
|
16
|
-
})
|
17
|
-
})
|
18
|
-
|
19
|
-
})
|
20
|
-
|
1
|
+
import Vue from 'vue'
|
2
|
+
import init from 'test/unit/init'
|
3
|
+
import { TestUtil } from 'vue-client'
|
4
|
+
|
5
|
+
import ParamPage from 'src/components/parammanage/ParamPage'
|
6
|
+
|
7
|
+
describe('ParamPage: 参数管理', () => {
|
8
|
+
let vm = null
|
9
|
+
before(async function () {
|
10
|
+
init()
|
11
|
+
await Vue.$login.login('cdy', '1')
|
12
|
+
})
|
13
|
+
|
14
|
+
it.only('正确显示', async function() {
|
15
|
+
vm = await TestUtil.createAsyncTest(ParamPage, {
|
16
|
+
})
|
17
|
+
})
|
18
|
+
|
19
|
+
})
|
20
|
+
|
@@ -1,22 +1,22 @@
|
|
1
|
-
import Vue from 'vue'
|
2
|
-
import init from 'test/unit/init'
|
3
|
-
import { TestUtil } from 'vue-client'
|
4
|
-
import App from './App'
|
5
|
-
|
6
|
-
describe('LeftTree: 功能树', () => {
|
7
|
-
let vm = null
|
8
|
-
|
9
|
-
before(async function() {
|
10
|
-
init()
|
11
|
-
await Vue.$login.login('hns', '1')
|
12
|
-
})
|
13
|
-
|
14
|
-
it('正确显示', function() {
|
15
|
-
vm = TestUtil.createTest(App, {})
|
16
|
-
let row = {data: {navigate: 'http://127.0.0.1:8084', name: '百度'}}
|
17
|
-
vm.$refs.tree.open(row)
|
18
|
-
})
|
19
|
-
})
|
20
|
-
|
21
|
-
// also see example testing a component with mocks at
|
22
|
-
// https://github.com/vuejs/vue-loader-example/blob/master/test/unit/a.spec.js#L24-L49
|
1
|
+
import Vue from 'vue'
|
2
|
+
import init from 'test/unit/init'
|
3
|
+
import { TestUtil } from 'vue-client'
|
4
|
+
import App from './App'
|
5
|
+
|
6
|
+
describe('LeftTree: 功能树', () => {
|
7
|
+
let vm = null
|
8
|
+
|
9
|
+
before(async function() {
|
10
|
+
init()
|
11
|
+
await Vue.$login.login('hns', '1')
|
12
|
+
})
|
13
|
+
|
14
|
+
it('正确显示', function() {
|
15
|
+
vm = TestUtil.createTest(App, {})
|
16
|
+
let row = {data: {navigate: 'http://127.0.0.1:8084', name: '百度'}}
|
17
|
+
vm.$refs.tree.open(row)
|
18
|
+
})
|
19
|
+
})
|
20
|
+
|
21
|
+
// also see example testing a component with mocks at
|
22
|
+
// https://github.com/vuejs/vue-loader-example/blob/master/test/unit/a.spec.js#L24-L49
|
Binary file
|
Binary file
|