system-clients 3.0.42 → 3.0.43-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.
@@ -1,140 +1,140 @@
1
- <template>
2
- <div :class="style">
3
- <label class="font_normal_body">公&emsp;&emsp;司</label>
4
- <right-tree @re-res="getorg"
5
- :initresid='initres.org'></right-tree>
6
- </div>
7
- <div :class="style">
8
- <label class="font_normal_body">部&emsp;&emsp;门</label>
9
- <res-select restype='department'
10
- @res-select="getdep"
11
- :parentresid="depresid"
12
- :initresid='initres.dep'
13
- :is-mul="mul">
14
- </res-select>
15
- </div>
16
- <div :class="style">
17
- <label class="font_normal_body">人&emsp;&emsp;员</label>
18
- <res-select restype='user'
19
- @res-select="getuser"
20
- :parentresid="userresid"
21
- :initresid='initres.user'
22
- :is-mul="mul">
23
- </res-select>
24
- </div>
25
- <div :class="style " >
26
- <label class="font_normal_body">片&emsp;&emsp;区</label>
27
- <v-select :value.sync="slice_area" v-model="slice_area" @change='getarea'
28
- :options='sliceArea' placeholder='片区/管理站' filer-key="name"
29
- close-on-select v-ref:slice>
30
- </v-select>
31
- </div>
32
- </template>
33
- <script>
34
- import plugin from '../../plugins/GetLoginInfoService'
35
- export default {
36
- title: '资源选择测试',
37
- props: {
38
- style: {
39
- type: String,
40
- default: 'col-sm-2'
41
- },
42
- mul: {
43
- type: Boolean,
44
- default: true
45
- },
46
- //初始值
47
- initres: {
48
- type: Object,
49
- default: null,
50
- },
51
- },
52
- data () {
53
- return {
54
- orgresid:[this.$login.f.orgid],
55
- depresid:[],
56
- userresid:[],
57
- sliceArea: [],
58
- slice_area:[],
59
-
60
- obj:{
61
- orgnames:[],
62
- depnames:[],
63
- operatornames:[]
64
- }
65
- }
66
- },
67
- ready () {
68
- console.log('开始获取组织结构。。。')
69
- this.initAreas(this.$login.f.orgid)
70
- },
71
- methods:{
72
-
73
- // 初始化片区
74
- async initAreas (val) {
75
- if (val) {
76
- let getAllArea = await this.$resetpost('/rs/search', {
77
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
78
- userid: this.$login.f.id
79
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
80
- let arr = getAllArea.data.filter((res) => {
81
- return res.parentid == val
82
- })
83
- console.log('过滤之后的片区', arr)
84
- this.sliceArea = []
85
- arr.forEach((res) => {
86
- this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
87
- })
88
- }
89
- },
90
- returnOrg(ids){
91
-
92
- let condition;
93
- if(this.depresid.length > 0)
94
- condition = " and f_orgid in " + plugin.convertToIn(this.depresid);
95
- else
96
- condition = " and f_orgid = " + this.$login.f.orgid;
97
- if(this.userresid.length > 0){
98
- condition += " and f_depid in " + plugin.convertToIn(this.userresid);
99
- }
100
- if(ids && ids.length > 0){
101
- condition += " and f_operatorid in " + plugin.convertToIn(ids);
102
- }
103
- if(this.slice_area.length>0){
104
- condition += " and f_zones = '" + this.slice_area[0].name+"'"
105
- }
106
- this.$dispatch('re-res',condition,this.obj)
107
- },
108
- getorg (obj) {
109
- console.log("选中公司的数据11",obj.resids)
110
- this.depresid=obj.resids
111
- this.obj.orgnames = obj.res
112
- this.initAreas(obj.resids)
113
- this.returnOrg();
114
- },
115
- getdep(obj,val) {
116
- console.log("选中部门的数据22",obj)
117
- this.obj.depnames = val
118
- this.userresid=obj
119
- this.returnOrg();
120
- },
121
- getuser(obj) {
122
- this.obj.operatornames = obj
123
- console.log("选中用户的数据33",obj)
124
- this.returnOrg(obj);
125
- },
126
- getarea(val) {
127
- this.slice_area=val
128
- console.log("选中的大区",val)
129
- if(this.obj.operatornames){
130
- this.returnOrg(this.obj.operatornames);
131
- }else{
132
- this.returnOrg();
133
- }
134
- }
135
- },
136
- watch: {
137
-
138
- }
139
- }
140
- </script>
1
+ <template>
2
+ <div :class="style">
3
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
4
+ <right-tree @re-res="getorg"
5
+ :initresid='initres.org'></right-tree>
6
+ </div>
7
+ <div :class="style">
8
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp;</label>
9
+ <res-select restype='department'
10
+ @res-select="getdep"
11
+ :parentresid="depresid"
12
+ :initresid='initres.dep'
13
+ :is-mul="mul">
14
+ </res-select>
15
+ </div>
16
+ <div :class="style">
17
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp;</label>
18
+ <res-select restype='user'
19
+ @res-select="getuser"
20
+ :parentresid="userresid"
21
+ :initresid='initres.user'
22
+ :is-mul="mul">
23
+ </res-select>
24
+ </div>
25
+ <div :class="style " >
26
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;片区&nbsp;&nbsp;&nbsp;</label>
27
+ <v-select :value.sync="slice_area" v-model="slice_area" @change='getarea'
28
+ :options='sliceArea' placeholder='片区/管理站' filer-key="name"
29
+ close-on-select v-ref:slice>
30
+ </v-select>
31
+ </div>
32
+ </template>
33
+ <script>
34
+ import plugin from '../../plugins/GetLoginInfoService'
35
+ export default {
36
+ title: '资源选择测试',
37
+ props: {
38
+ style: {
39
+ type: String,
40
+ default: 'col-sm-2'
41
+ },
42
+ mul: {
43
+ type: Boolean,
44
+ default: true
45
+ },
46
+ //初始值
47
+ initres: {
48
+ type: Object,
49
+ default: null,
50
+ },
51
+ },
52
+ data () {
53
+ return {
54
+ orgresid:[this.$login.f.orgid],
55
+ depresid:[],
56
+ userresid:[],
57
+ sliceArea: [],
58
+ slice_area:[],
59
+
60
+ obj:{
61
+ orgnames:[],
62
+ depnames:[],
63
+ operatornames:[]
64
+ }
65
+ }
66
+ },
67
+ ready () {
68
+ console.log('开始获取组织结构。。。')
69
+ this.initAreas(this.$login.f.orgid)
70
+ },
71
+ methods:{
72
+
73
+ // 初始化片区
74
+ async initAreas (val) {
75
+ if (val) {
76
+ let getAllArea = await this.$resetpost('/rs/search', {
77
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
78
+ userid: this.$login.f.id
79
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
80
+ let arr = getAllArea.data.filter((res) => {
81
+ return res.parentid == val
82
+ })
83
+ console.log('过滤之后的片区', arr)
84
+ this.sliceArea = []
85
+ arr.forEach((res) => {
86
+ this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
87
+ })
88
+ }
89
+ },
90
+ returnOrg(ids){
91
+
92
+ let condition;
93
+ if(this.depresid.length > 0)
94
+ condition = " and f_orgid in " + plugin.convertToIn(this.depresid);
95
+ else
96
+ condition = " and f_orgid = " + this.$login.f.orgid;
97
+ if(this.userresid.length > 0){
98
+ condition += " and f_depid in " + plugin.convertToIn(this.userresid);
99
+ }
100
+ if(ids && ids.length > 0){
101
+ condition += " and f_operatorid in " + plugin.convertToIn(ids);
102
+ }
103
+ if(this.slice_area.length>0){
104
+ condition += " and f_zones = '" + this.slice_area[0].name+"'"
105
+ }
106
+ this.$dispatch('re-res',condition,this.obj)
107
+ },
108
+ getorg (obj) {
109
+ console.log("选中公司的数据11",obj.resids)
110
+ this.depresid=obj.resids
111
+ this.obj.orgnames = obj.res
112
+ this.initAreas(obj.resids)
113
+ this.returnOrg();
114
+ },
115
+ getdep(obj,val) {
116
+ console.log("选中部门的数据22",obj)
117
+ this.obj.depnames = val
118
+ this.userresid=obj
119
+ this.returnOrg();
120
+ },
121
+ getuser(obj) {
122
+ this.obj.operatornames = obj
123
+ console.log("选中用户的数据33",obj)
124
+ this.returnOrg(obj);
125
+ },
126
+ getarea(val) {
127
+ this.slice_area=val
128
+ console.log("选中的大区",val)
129
+ if(this.obj.operatornames){
130
+ this.returnOrg(this.obj.operatornames);
131
+ }else{
132
+ this.returnOrg();
133
+ }
134
+ }
135
+ },
136
+ watch: {
137
+
138
+ }
139
+ }
140
+ </script>
package/src/system.js CHANGED
@@ -1,76 +1,78 @@
1
- import Vue from 'vue'
2
- import GetLoginInfoService from './plugins/GetLoginInfoService'
3
- import GetAppDataService from './stores/AppData'
4
-
5
- // /** **************************登录与主界面相关******************************/
6
-
7
- import login from './components/server/Login'
8
- import changeDeclare from './components/server/ChangeDeclare'
9
- import addChangemsg from './components/server/AddChangeMsg'
10
- import homePage from './components/Main'
11
- import leftTree from './components/server/LeftTree'
12
- import iconTree from './components/server/IconTree'
13
- import modifyPw from './components/server/ModifyPw'
14
- import LoadData from './components/server/LoadData'
15
- import RightTree from './components/server/RightTree'
16
- import TestRightTree from './components/server/TestRightTree'
17
- //资源选择
18
- import ResSelect from './components/server/ResSelect'
19
- import ResSelectGroup from './components/server/ResSelectGroup'
20
-
21
- //资源选择测试
22
- import TestResSelect from './components/server/TestResSelect'
23
- import RoleSelector from "./components/server/RoleSelector";
24
- export default function (val) {
25
- //验证码开关赋值
26
- if(val!=null){
27
- GetLoginInfoService.Verification=val
28
- }
29
- Vue.use(GetLoginInfoService)
30
- Vue.use(GetAppDataService)
31
-
32
- Vue.component('login', login)
33
- Vue.component('change-declare', changeDeclare)
34
- Vue.component('add-changemsg', addChangemsg)
35
- Vue.component('home-page', homePage)
36
- Vue.component('left-tree', leftTree)
37
- Vue.component('icon-tree', iconTree)
38
- Vue.component('modify-pw', modifyPw)
39
- Vue.component('load-data', LoadData)
40
- Vue.component('right-tree', RightTree)
41
- Vue.component('test-right-tree', TestRightTree)
42
- Vue.component('role-selector', RoleSelector)
43
- //资源选择
44
- Vue.component('res-select', ResSelect)
45
- Vue.component('res-select-group', ResSelectGroup)
46
- //资源选择测试
47
- Vue.component('test-res-select', TestResSelect)
48
-
49
- // 参数管理(新)
50
- Vue.component('param-manage', (resolve) => { require(['./components/parammanage/ParamManage'], resolve) })
51
- // 参数管理
52
- Vue.component('param-page', (resolve) => { require(['./components/parammanage/ParamPage'], resolve) })
53
- // 参数管理
54
- Vue.component('single-page', (resolve) => { require(['./components/parammanage/SinglePage'], resolve) })
55
-
56
- // 参数管理(旧)
57
- Vue.component('param-manages', (resolve) => { require(['./components/parammanage/ParamManages'], resolve) })
58
- // 参数管理
59
- Vue.component('param-pages', (resolve) => { require(['./components/parammanage/ParamPages'], resolve) })
60
- // 参数管理
61
- Vue.component('single-pages', (resolve) => { require(['./components/parammanage/SinglePages'], resolve) })
62
-
63
- // 终端管理
64
- Vue.component('equipment-manage', (resolve) => { require(['./components/equipment/EquipmentManage'], resolve) })
65
- // pc端控制
66
- Vue.component('pc-manage', (resolve) => { require(['./components/equipment/PcManage'], resolve) })
67
- // phone端控制
68
- Vue.component('phone-manage', (resolve) => { require(['./components/equipment/PhoneManage'], resolve) })
69
- // pos端控制
70
- Vue.component('pos-manage', (resolve) => { require(['./components/equipment/PosManage'], resolve) })
71
-
72
- // 材料字典
73
- Vue.component('material-data', (resolve) => { require(['./components/materialManage/materialData.vue'], resolve) })
74
- Vue.component('material-data-list', (resolve) => { require(['./components/materialManage/materialList.vue'], resolve) })
75
-
76
- }
1
+ import Vue from 'vue'
2
+ import GetLoginInfoService from './plugins/GetLoginInfoService'
3
+ import GetAppDataService from './stores/AppData'
4
+
5
+ // /** **************************登录与主界面相关******************************/
6
+
7
+ import login from './components/server/Login'
8
+ import changeDeclare from './components/server/ChangeDeclare'
9
+ import addChangemsg from './components/server/AddChangeMsg'
10
+ import homePage from './components/Main'
11
+ import leftTree from './components/server/LeftTree'
12
+ import iconTree from './components/server/IconTree'
13
+ import modifyPw from './components/server/ModifyPw'
14
+ import LoadData from './components/server/LoadData'
15
+ import RightTree from './components/server/RightTree'
16
+ import TestRightTree from './components/server/TestRightTree'
17
+ //资源选择
18
+ import ResSelect from './components/server/ResSelect'
19
+ import ResSelectGroup from './components/server/ResSelectGroup'
20
+
21
+ //资源选择测试
22
+ import TestResSelect from './components/server/TestResSelect'
23
+ import RoleSelector from "./components/server/RoleSelector";
24
+ export default function (val) {
25
+ //验证码开关赋值
26
+ if(val!=null){
27
+ GetLoginInfoService.Verification=val
28
+ }
29
+ Vue.use(GetLoginInfoService)
30
+ Vue.use(GetAppDataService)
31
+
32
+ Vue.component('login', login)
33
+ Vue.component('change-declare', changeDeclare)
34
+ Vue.component('add-changemsg', addChangemsg)
35
+ Vue.component('home-page', homePage)
36
+ Vue.component('left-tree', leftTree)
37
+ Vue.component('icon-tree', iconTree)
38
+ Vue.component('modify-pw', modifyPw)
39
+ Vue.component('load-data', LoadData)
40
+ Vue.component('right-tree', RightTree)
41
+ Vue.component('test-right-tree', TestRightTree)
42
+ Vue.component('role-selector', RoleSelector)
43
+ //资源选择
44
+ Vue.component('res-select', ResSelect)
45
+ Vue.component('res-select-group', ResSelectGroup)
46
+ //资源选择测试
47
+ Vue.component('test-res-select', TestResSelect)
48
+
49
+ // 参数管理(新)
50
+ Vue.component('param-manage', (resolve) => { require(['./components/parammanage/ParamManage'], resolve) })
51
+ // 参数管理
52
+ Vue.component('param-page', (resolve) => { require(['./components/parammanage/ParamPage'], resolve) })
53
+ // 参数管理
54
+ Vue.component('single-page', (resolve) => { require(['./components/parammanage/SinglePage'], resolve) })
55
+
56
+ // 参数管理(旧)
57
+ Vue.component('param-manages', (resolve) => { require(['./components/parammanage/ParamManages'], resolve) })
58
+ // 参数管理
59
+ Vue.component('param-pages', (resolve) => { require(['./components/parammanage/ParamPages'], resolve) })
60
+ // 参数管理
61
+ Vue.component('single-pages', (resolve) => { require(['./components/parammanage/SinglePages'], resolve) })
62
+ // 异常报警信息
63
+ Vue.component('alarm-information', (resolve) => { require(['./components/parammanage/AlarmInformation'], resolve) })
64
+
65
+ // 终端管理
66
+ Vue.component('equipment-manage', (resolve) => { require(['./components/equipment/EquipmentManage'], resolve) })
67
+ // pc端控制
68
+ Vue.component('pc-manage', (resolve) => { require(['./components/equipment/PcManage'], resolve) })
69
+ // phone端控制
70
+ Vue.component('phone-manage', (resolve) => { require(['./components/equipment/PhoneManage'], resolve) })
71
+ // pos端控制
72
+ Vue.component('pos-manage', (resolve) => { require(['./components/equipment/PosManage'], resolve) })
73
+
74
+ // 材料字典
75
+ Vue.component('material-data', (resolve) => { require(['./components/materialManage/materialData.vue'], resolve) })
76
+ Vue.component('material-data-list', (resolve) => { require(['./components/materialManage/materialList.vue'], resolve) })
77
+
78
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file