system-clients 3.0.47-fanxian → 3.0.48-fanxian

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.
Files changed (101) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/.eslintrc.js +16 -16
  4. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  5. package/CHANGELOG.md +51 -51
  6. package/README.md +36 -36
  7. package/SystemClient.iml +11 -11
  8. package/build/css-loaders.js +34 -34
  9. package/build/dev-client.js +8 -8
  10. package/build/example-server.js +80 -80
  11. package/build/release.sh +28 -28
  12. package/build/utils.js +71 -71
  13. package/build/webpack.base.conf.js +75 -75
  14. package/build/webpack.dev.conf.js +31 -31
  15. package/build/webpack.example.conf.js +49 -49
  16. package/build/webpack.prod.conf.js +60 -60
  17. package/build/webpack.test.conf.js +31 -31
  18. package/build.gradle +6 -6
  19. package/config/dev.env.js +6 -6
  20. package/config/index.js +38 -38
  21. package/config/prod.env.js +3 -3
  22. package/config/test.env.js +6 -6
  23. package/doc/Login.md +7 -7
  24. package/examples/ReadCard/App.vue +23 -23
  25. package/examples/ReadCard/index.html +11 -11
  26. package/examples/ReadCard/main.js +12 -12
  27. package/index.html +21 -21
  28. package/package.json +102 -102
  29. package/release.bat +5 -5
  30. package/src/App.vue +24 -24
  31. package/src/LodopFuncs.js +123 -123
  32. package/src/assets/binding.svg +1 -1
  33. package/src/assets/unbind.svg +1 -1
  34. package/src/assets//345/205/254/345/221/212.svg +1 -1
  35. package/src/assets//347/207/203/346/260/224/347/274/264/350/264/271.eps +116 -116
  36. package/src/assets//350/201/224/347/263/273/346/210/221/344/273/254.svg +1 -1
  37. package/src/components/List.vue +51 -51
  38. package/src/components/Main.vue +632 -632
  39. package/src/components/Table.js +74 -74
  40. package/src/components/Util.js +343 -343
  41. package/src/components/equipment/EquipmentManage.vue +65 -65
  42. package/src/components/equipment/PcAdd.vue +105 -105
  43. package/src/components/equipment/PcList.vue +119 -119
  44. package/src/components/equipment/PcManage.vue +60 -60
  45. package/src/components/equipment/PhoneAdd.vue +94 -94
  46. package/src/components/equipment/PhoneList.vue +102 -102
  47. package/src/components/equipment/PhoneManage.vue +60 -60
  48. package/src/components/equipment/PosAdd.vue +137 -137
  49. package/src/components/equipment/PosList.vue +156 -156
  50. package/src/components/equipment/PosManage.vue +67 -67
  51. package/src/components/materialManage/materialData.vue +44 -44
  52. package/src/components/materialManage/materialList.vue +255 -255
  53. package/src/components/parammanage/AlarmInformation.vue +124 -122
  54. package/src/components/parammanage/ParamManage.vue +42 -42
  55. package/src/components/parammanage/ParamManages.vue +43 -43
  56. package/src/components/parammanage/ParamPage.vue +314 -314
  57. package/src/components/parammanage/ParamPages.vue +214 -214
  58. package/src/components/parammanage/SinglePage.vue +237 -237
  59. package/src/components/parammanage/SinglePages.vue +161 -161
  60. package/src/components/server/AddChangeMsg.vue +66 -66
  61. package/src/components/server/ChangeDeclare.vue +45 -45
  62. package/src/components/server/IconTree.vue +26 -26
  63. package/src/components/server/LeftTree.vue +111 -111
  64. package/src/components/server/LoadData.vue +36 -36
  65. package/src/components/server/Login.vue +625 -625
  66. package/src/components/server/Menu.vue +188 -188
  67. package/src/components/server/ModifyPw.vue +125 -125
  68. package/src/components/server/ResSelect.vue +150 -150
  69. package/src/components/server/ResSelectGroup.vue +140 -140
  70. package/src/components/server/RightTree.vue +263 -263
  71. package/src/components/server/RoleSelector.vue +88 -88
  72. package/src/components/server/TestResSelect.vue +58 -58
  73. package/src/components/server/TestResSelectGroup.vue +388 -388
  74. package/src/components/server/TestRightTree.vue +42 -42
  75. package/src/index.js +7 -7
  76. package/src/plugins/GetLoginInfoService.js +509 -509
  77. package/src/plugins/validation.js +7 -7
  78. package/src/project/ProjectPage.vue +24 -24
  79. package/src/project/State.js +17 -17
  80. package/src/stores/AppData.js +38 -38
  81. package/src/system.js +78 -78
  82. package/src/systemphone.js +11 -11
  83. package/src/util/LdapHelper.js +75 -75
  84. package/test/e2e/custom-assertions/elementCount.js +26 -26
  85. package/test/e2e/nightwatch.conf.js +40 -40
  86. package/test/e2e/runner.js +30 -30
  87. package/test/e2e/specs/test.js +14 -14
  88. package/test/unit/.eslintrc +5 -5
  89. package/test/unit/index.js +13 -13
  90. package/test/unit/init.js +10 -10
  91. package/test/unit/karma.conf.js +49 -49
  92. package/test/unit/specs/base64.spec.js +5 -5
  93. package/test/unit/specs/components/parammanage/ParamPage.spec.js +20 -20
  94. package/test/unit/specs/components/parammanage/SinglePage.spec.js +20 -20
  95. package/test/unit/specs/components/server/LeftTree/App.vue +18 -18
  96. package/test/unit/specs/components/server/LeftTree/LeftTree.spec.js +22 -22
  97. package/test/unit/specs/components/server/LoadData.spec.js +24 -24
  98. package/test/unit/specs/components/server/Login.spec.js +61 -61
  99. package/test/unit/specs/components/server/RightTree.spec.js +50 -50
  100. package/test/unit/specs/plugins/GetLoginInfoService.spec.js +55 -55
  101. package/test/unit/test.html +76 -76
@@ -1,214 +1,214 @@
1
- <template>
2
- <div class="flex">
3
- <p class="bg-info text-center" style="padding: 8px;">参数管理
4
- <span class="btn btn-link add-postition" @click="add('t_parameter')">新增</span>
5
- </p>
6
- <div class="form-inline auto" style="margin-bottom: 5px;">
7
- <label for="">参数名称:</label>
8
- <input type="text" class="form-control" placeholder='请输入查找的参数名' v-model="param" @keyup.enter="filterParams(param)">
9
- <button class="btn btn-primary" @click="filterParams(param)">查询</button>
10
- </div>
11
- <div class="span">
12
- <partial-view v-ref:params-load>
13
- <data-grid :model="model" v-ref:params @select-changed="selected" >
14
- <template partial='head'>
15
- <tr>
16
- <th>序号</th>
17
- <th>名称</th>
18
- <th>操作</th>
19
- </tr>
20
- </template>
21
- <template partial='body'>
22
- <td>{{$index+1}}</td>
23
- <td>{{row.name}}</td>
24
- <td class="flex-around">
25
- <button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.modifyParam(row)">修改</button>
26
- <button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.deleteParam(row)">删除</button>
27
- </td>
28
- </template>
29
- </data-grid>
30
- </partial-view>
31
- </div>
32
-
33
- <p v-if="selectItem" class="bg-info text-center" style="padding: 8px;margin: 8px 0px;">
34
- {{selectItem.name}}
35
- <span class="btn btn-link add-postition" @click="add('t_paramvalue')">新增</span>
36
- </p>
37
- <div v-if="selectItem" class="span">
38
- <partial-view v-ref:selects-load>
39
- <data-grid :model="params" v-ref:selects >
40
- <template partial='head'>
41
- <tr>
42
- <th>序号</th>
43
- <th>名称</th>
44
- <th>操作</th>
45
- </tr>
46
- </template>
47
- <template partial='body'>
48
- <td>{{$index+1}}</td>
49
- <td>{{row.name}}</td>
50
- <td class="flex-around">
51
- <button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.modifyParam(row)">修改</button>
52
- <button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.deleteParam(row, $index)">删除</button>
53
- </td>
54
- </template>
55
- </data-grid>
56
- </partial-view>
57
- </div>
58
-
59
- <modal :show.sync="show" v-ref:modal backdrop="false">
60
- <header slot="modal-header" class="modal-header">
61
- <button type="button" class="close" @click="close"><span>&times;</span></button>
62
- <h4 class="modal-title">参数配置</h4>
63
- </header>
64
- <article slot="modal-body" class="modal-body">
65
- <div class="from-group">
66
- <label for="">参数名称</label>
67
- <input type="text" class="form-control" v-model="modifyItem.name" @keyup.enter="confirm">
68
- </div>
69
-
70
- </article>
71
-
72
- <footer slot="modal-footer" class="modal-footer">
73
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
74
- <button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
75
- </footer>
76
- </modal>
77
- </div>
78
- </template>
79
- <script>
80
-
81
-
82
- export default {
83
- title: '用户操作',
84
- data () {
85
- return {
86
- allParams: null, // 获取到所有的参数
87
- model: { // 参数列表显示的数据
88
- rows: []
89
- },
90
- selectItem: null, // 选择的参数
91
- params: { // 选择的参数的具体内容
92
- rows: []
93
- },
94
- selectContent: null, // 选中的一条数据(包含参数或参数的具体内容)
95
- modifyItem: {
96
- name: ''
97
- }, // 要修改的参数
98
- show: false, // 是否显示添加修改模态框
99
- }
100
- },
101
- ready () {
102
- this.model.rows = Object.keys(this.$appdata.params)
103
- this.loadParams()
104
- },
105
- methods: {
106
- // 加载全部参数
107
- loadParams () {
108
- this.$refs.paramsLoad.load('rs/sql/hql/simpleHql', {data: {tablename: 't_parameter'}}).then((res) => {
109
- this.model.rows = this.allParams = res.data
110
- })
111
- },
112
- selected (val) {
113
- this.selectItem = val.val
114
- this.params.rows = val.val.f_paramvalues
115
- },
116
- filterParams (param) {
117
- this.selectItem = null
118
- if (param && param !== "") {
119
- this.model.rows = this.allParams.filter((item) => {
120
- return item.name.includes(param)
121
- })
122
- }else {
123
- this.model.rows = this.allParams
124
- }
125
- },
126
- // 添加参数或添加参数内容
127
- add (type) {
128
- this.show = true
129
- this.modifyItem.EntityType = type
130
- },
131
- // 修改参数或添加参数内容
132
- modifyParam (row) {
133
- this.show = true
134
- this.selectContent = row
135
- this.modifyItem.name = row.name
136
- this.modifyItem.id = row.id
137
- this.modifyItem.EntityType = row.EntityType
138
- // this.tempName = row.name
139
- },
140
- // 删除
141
- deleteParam (row, index) {
142
- if (row.EntityType === 't_parameter') {
143
- this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
144
- if (res === 'confirm') {
145
- this.$refs.paramsLoad.load('rs/logic/deleteParam', row).then((res) => {
146
- this.loadParams()
147
- this.selectItem = null
148
- })
149
- }
150
- })
151
- } else if (row.EntityType === 't_paramvalue') {
152
- this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
153
- if (res === 'confirm') {
154
- this.$refs.selectsLoad.load('rs/logic/deleteValue', {tablename: 't_paramvalue', id: row.id}).then((res) => {
155
- this.params.rows.splice(index, 1)
156
- })
157
- }
158
- })
159
- }
160
- },
161
- // 修该内容的提交
162
- confirm () {
163
- let data = {}
164
- if (this.modifyItem.EntityType === 't_parameter') {
165
- // 有id为修改
166
- if (this.modifyItem.id) {
167
- data = {
168
- id: this.modifyItem.id,
169
- name: this.modifyItem.name
170
- }
171
- } else { // 否则为新增
172
- data = {
173
- name: this.modifyItem.name
174
- }
175
- }
176
- this.$refs.paramsLoad.load('rs/entity/t_parameter', data).then((res) => {
177
- this.loadParams()
178
- this.show = false
179
- this.modifyItem = {name: ''}
180
- })
181
- } else if (this.modifyItem.EntityType === 't_paramvalue') {
182
- if (this.modifyItem.id) {
183
- data = {
184
- id: this.modifyItem.id,
185
- name: this.modifyItem.name,
186
- processid: this.modifyItem.processid
187
- }
188
- } else {
189
- data = {
190
- name: this.modifyItem.name,
191
- processid: this.selectItem.id
192
- }
193
- }
194
- this.$refs.selectsLoad.load('rs/entity/t_paramvalue', data).then((res) => {
195
- this.show = false
196
- // 如果没有id,需要在数组中添加
197
- if (!data.id) {
198
- this.params.rows.push({id: res.data.id, name: this.modifyItem.name, processid: this.selectItem.id, EntityType: 't_paramvalue'})
199
- }else {
200
- this.selectContent.name = data.name
201
- }
202
- this.modifyItem = {name: ''}
203
- })
204
- }
205
- },
206
- // 关闭模态框, 数据还原
207
- close () {
208
- this.show = false
209
- this.modifyItem = {name: ''}
210
- }
211
- }
212
-
213
- }
214
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <p class="bg-info text-center" style="padding: 8px;">参数管理
4
+ <span class="btn btn-link add-postition" @click="add('t_parameter')">新增</span>
5
+ </p>
6
+ <div class="form-inline auto" style="margin-bottom: 5px;">
7
+ <label for="">参数名称:</label>
8
+ <input type="text" class="form-control" placeholder='请输入查找的参数名' v-model="param" @keyup.enter="filterParams(param)">
9
+ <button class="btn btn-primary" @click="filterParams(param)">查询</button>
10
+ </div>
11
+ <div class="span">
12
+ <partial-view v-ref:params-load>
13
+ <data-grid :model="model" v-ref:params @select-changed="selected" >
14
+ <template partial='head'>
15
+ <tr>
16
+ <th>序号</th>
17
+ <th>名称</th>
18
+ <th>操作</th>
19
+ </tr>
20
+ </template>
21
+ <template partial='body'>
22
+ <td>{{$index+1}}</td>
23
+ <td>{{row.name}}</td>
24
+ <td class="flex-around">
25
+ <button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.modifyParam(row)">修改</button>
26
+ <button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.deleteParam(row)">删除</button>
27
+ </td>
28
+ </template>
29
+ </data-grid>
30
+ </partial-view>
31
+ </div>
32
+
33
+ <p v-if="selectItem" class="bg-info text-center" style="padding: 8px;margin: 8px 0px;">
34
+ {{selectItem.name}}
35
+ <span class="btn btn-link add-postition" @click="add('t_paramvalue')">新增</span>
36
+ </p>
37
+ <div v-if="selectItem" class="span">
38
+ <partial-view v-ref:selects-load>
39
+ <data-grid :model="params" v-ref:selects >
40
+ <template partial='head'>
41
+ <tr>
42
+ <th>序号</th>
43
+ <th>名称</th>
44
+ <th>操作</th>
45
+ </tr>
46
+ </template>
47
+ <template partial='body'>
48
+ <td>{{$index+1}}</td>
49
+ <td>{{row.name}}</td>
50
+ <td class="flex-around">
51
+ <button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.modifyParam(row)">修改</button>
52
+ <button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.deleteParam(row, $index)">删除</button>
53
+ </td>
54
+ </template>
55
+ </data-grid>
56
+ </partial-view>
57
+ </div>
58
+
59
+ <modal :show.sync="show" v-ref:modal backdrop="false">
60
+ <header slot="modal-header" class="modal-header">
61
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
62
+ <h4 class="modal-title">参数配置</h4>
63
+ </header>
64
+ <article slot="modal-body" class="modal-body">
65
+ <div class="from-group">
66
+ <label for="">参数名称</label>
67
+ <input type="text" class="form-control" v-model="modifyItem.name" @keyup.enter="confirm">
68
+ </div>
69
+
70
+ </article>
71
+
72
+ <footer slot="modal-footer" class="modal-footer">
73
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
74
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
75
+ </footer>
76
+ </modal>
77
+ </div>
78
+ </template>
79
+ <script>
80
+
81
+
82
+ export default {
83
+ title: '用户操作',
84
+ data () {
85
+ return {
86
+ allParams: null, // 获取到所有的参数
87
+ model: { // 参数列表显示的数据
88
+ rows: []
89
+ },
90
+ selectItem: null, // 选择的参数
91
+ params: { // 选择的参数的具体内容
92
+ rows: []
93
+ },
94
+ selectContent: null, // 选中的一条数据(包含参数或参数的具体内容)
95
+ modifyItem: {
96
+ name: ''
97
+ }, // 要修改的参数
98
+ show: false, // 是否显示添加修改模态框
99
+ }
100
+ },
101
+ ready () {
102
+ this.model.rows = Object.keys(this.$appdata.params)
103
+ this.loadParams()
104
+ },
105
+ methods: {
106
+ // 加载全部参数
107
+ loadParams () {
108
+ this.$refs.paramsLoad.load('rs/sql/hql/simpleHql', {data: {tablename: 't_parameter'}}).then((res) => {
109
+ this.model.rows = this.allParams = res.data
110
+ })
111
+ },
112
+ selected (val) {
113
+ this.selectItem = val.val
114
+ this.params.rows = val.val.f_paramvalues
115
+ },
116
+ filterParams (param) {
117
+ this.selectItem = null
118
+ if (param && param !== "") {
119
+ this.model.rows = this.allParams.filter((item) => {
120
+ return item.name.includes(param)
121
+ })
122
+ }else {
123
+ this.model.rows = this.allParams
124
+ }
125
+ },
126
+ // 添加参数或添加参数内容
127
+ add (type) {
128
+ this.show = true
129
+ this.modifyItem.EntityType = type
130
+ },
131
+ // 修改参数或添加参数内容
132
+ modifyParam (row) {
133
+ this.show = true
134
+ this.selectContent = row
135
+ this.modifyItem.name = row.name
136
+ this.modifyItem.id = row.id
137
+ this.modifyItem.EntityType = row.EntityType
138
+ // this.tempName = row.name
139
+ },
140
+ // 删除
141
+ deleteParam (row, index) {
142
+ if (row.EntityType === 't_parameter') {
143
+ this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
144
+ if (res === 'confirm') {
145
+ this.$refs.paramsLoad.load('rs/logic/deleteParam', row).then((res) => {
146
+ this.loadParams()
147
+ this.selectItem = null
148
+ })
149
+ }
150
+ })
151
+ } else if (row.EntityType === 't_paramvalue') {
152
+ this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
153
+ if (res === 'confirm') {
154
+ this.$refs.selectsLoad.load('rs/logic/deleteValue', {tablename: 't_paramvalue', id: row.id}).then((res) => {
155
+ this.params.rows.splice(index, 1)
156
+ })
157
+ }
158
+ })
159
+ }
160
+ },
161
+ // 修该内容的提交
162
+ confirm () {
163
+ let data = {}
164
+ if (this.modifyItem.EntityType === 't_parameter') {
165
+ // 有id为修改
166
+ if (this.modifyItem.id) {
167
+ data = {
168
+ id: this.modifyItem.id,
169
+ name: this.modifyItem.name
170
+ }
171
+ } else { // 否则为新增
172
+ data = {
173
+ name: this.modifyItem.name
174
+ }
175
+ }
176
+ this.$refs.paramsLoad.load('rs/entity/t_parameter', data).then((res) => {
177
+ this.loadParams()
178
+ this.show = false
179
+ this.modifyItem = {name: ''}
180
+ })
181
+ } else if (this.modifyItem.EntityType === 't_paramvalue') {
182
+ if (this.modifyItem.id) {
183
+ data = {
184
+ id: this.modifyItem.id,
185
+ name: this.modifyItem.name,
186
+ processid: this.modifyItem.processid
187
+ }
188
+ } else {
189
+ data = {
190
+ name: this.modifyItem.name,
191
+ processid: this.selectItem.id
192
+ }
193
+ }
194
+ this.$refs.selectsLoad.load('rs/entity/t_paramvalue', data).then((res) => {
195
+ this.show = false
196
+ // 如果没有id,需要在数组中添加
197
+ if (!data.id) {
198
+ this.params.rows.push({id: res.data.id, name: this.modifyItem.name, processid: this.selectItem.id, EntityType: 't_paramvalue'})
199
+ }else {
200
+ this.selectContent.name = data.name
201
+ }
202
+ this.modifyItem = {name: ''}
203
+ })
204
+ }
205
+ },
206
+ // 关闭模态框, 数据还原
207
+ close () {
208
+ this.show = false
209
+ this.modifyItem = {name: ''}
210
+ }
211
+ }
212
+
213
+ }
214
+ </script>