system-clients 3.1.107-aode → 3.1.109-aode
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/package.json +102 -102
- package/src/components/equipment/EquipmentManage.vue +3 -3
- package/src/components/equipment/PosAdd.vue +23 -4
- package/src/components/equipment/PosList.vue +10 -10
- package/src/components/equipment/PosManage.vue +3 -2
- package/src/components/server/NewResSelectGroup.vue +211 -0
- package/src/system.js +2 -0
package/package.json
CHANGED
@@ -1,102 +1,102 @@
|
|
1
|
-
{
|
2
|
-
"name": "system-clients",
|
3
|
-
"version": "3.1.
|
4
|
-
"description": "系统基础框架",
|
5
|
-
"main": "src/index.js",
|
6
|
-
"directories": {
|
7
|
-
"example": "examples",
|
8
|
-
"test": "test"
|
9
|
-
},
|
10
|
-
"scripts": {
|
11
|
-
"example": "node build/example-server.js",
|
12
|
-
"dev": "node build/dev-server.js",
|
13
|
-
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
14
|
-
"build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
15
|
-
"e2e": "node test/e2e/runner.js",
|
16
|
-
"unit": "karma start test/unit/karma.conf.js",
|
17
|
-
"release": "npm set registry http://registry.npmjs.org && npm publish && npm set registry http://registry.npm.taobao.org"
|
18
|
-
},
|
19
|
-
"dependencies": {
|
20
|
-
"base64-js": "^1.3.0",
|
21
|
-
"js-base64": "^2.4.9",
|
22
|
-
"less": "^2.7.1",
|
23
|
-
"less-loader": "^2.2.3",
|
24
|
-
"src": "^1.1.2",
|
25
|
-
"vue": "^1.0.17"
|
26
|
-
},
|
27
|
-
"devDependencies": {
|
28
|
-
"babel-core": "^6.0.0",
|
29
|
-
"babel-loader": "^6.0.0",
|
30
|
-
"babel-plugin-transform-runtime": "^6.0.0",
|
31
|
-
"babel-preset-es2015": "^6.0.0",
|
32
|
-
"babel-preset-stage-2": "^6.0.0",
|
33
|
-
"chai": "^3.5.0",
|
34
|
-
"connect-history-api-fallback": "^1.1.0",
|
35
|
-
"cross-env": "^1.0.7",
|
36
|
-
"cross-spawn": "^2.1.5",
|
37
|
-
"css-loader": "^0.23.0",
|
38
|
-
"eslint": "^2.0.0",
|
39
|
-
"eslint-config-standard": "^5.1.0",
|
40
|
-
"eslint-friendly-formatter": "^1.2.2",
|
41
|
-
"eslint-loader": "^1.3.0",
|
42
|
-
"eslint-plugin-html": "^1.3.0",
|
43
|
-
"eslint-plugin-promise": "^1.0.8",
|
44
|
-
"eslint-plugin-standard": "^1.3.2",
|
45
|
-
"eslint-plugin-vue": "^0.1.1",
|
46
|
-
"eventsource-polyfill": "^0.9.6",
|
47
|
-
"express": "^4.13.3",
|
48
|
-
"extract-text-webpack-plugin": "^1.0.1",
|
49
|
-
"file-loader": "^0.8.4",
|
50
|
-
"function-bind": "^1.0.2",
|
51
|
-
"html-webpack-plugin": "^2.8.1",
|
52
|
-
"http-proxy-middleware": "^0.11.0",
|
53
|
-
"inject-loader": "^2.0.1",
|
54
|
-
"isparta-loader": "^2.0.0",
|
55
|
-
"jasmine-core": "^2.4.1",
|
56
|
-
"jquery": "^3.3.1",
|
57
|
-
"json-loader": "^0.5.4",
|
58
|
-
"karma": "^1.4.1",
|
59
|
-
"karma-chrome-launcher": "^2.2.0",
|
60
|
-
"karma-coverage": "^1.1.1",
|
61
|
-
"karma-mocha": "^1.3.0",
|
62
|
-
"karma-sinon-chai": "^1.3.1",
|
63
|
-
"karma-sourcemap-loader": "^0.3.7",
|
64
|
-
"karma-spec-reporter": "0.0.31",
|
65
|
-
"karma-webpack": "^2.0.2",
|
66
|
-
"manage-client": "^1.4.20",
|
67
|
-
"mkdirp": "^0.5.1",
|
68
|
-
"mocha": "^3.2.0",
|
69
|
-
"ncp": "^2.0.0",
|
70
|
-
"nightwatch": "^0.8.18",
|
71
|
-
"rimraf": "^2.5.0",
|
72
|
-
"selenium-server": "2.52.0",
|
73
|
-
"sinon": "^2.1.0",
|
74
|
-
"sinon-chai": "^2.8.0",
|
75
|
-
"style": "0.0.3",
|
76
|
-
"style-loader": "^0.20.3",
|
77
|
-
"url-loader": "^0.5.7",
|
78
|
-
"vue-client": "1.21.60",
|
79
|
-
"vue-hot-reload-api": "^1.2.0",
|
80
|
-
"vue-html-loader": "^1.0.0",
|
81
|
-
"vue-loader": "^8.2.1",
|
82
|
-
"vue-resource": "^1.5.0",
|
83
|
-
"vue-router": "^0.7.13",
|
84
|
-
"vue-strap": "^1.0.9",
|
85
|
-
"vue-style-loader": "^1.0.0",
|
86
|
-
"vue-validator": "^3.0.0-alpha.2",
|
87
|
-
"webpack": "^1.12.2",
|
88
|
-
"jsencrypt": "3.0.0-rc.1",
|
89
|
-
"webpack-dev-middleware": "^1.4.0",
|
90
|
-
"webpack-hot-middleware": "^2.6.0",
|
91
|
-
"webpack-merge": "^0.8.3"
|
92
|
-
},
|
93
|
-
"repository": {
|
94
|
-
"type": "git",
|
95
|
-
"url": "https://gitee.com/aotu/System"
|
96
|
-
},
|
97
|
-
"keywords": [
|
98
|
-
"system_clients"
|
99
|
-
],
|
100
|
-
"author": "杨文宇",
|
101
|
-
"license": "ISC"
|
102
|
-
}
|
1
|
+
{
|
2
|
+
"name": "system-clients",
|
3
|
+
"version": "3.1.109-aode",
|
4
|
+
"description": "系统基础框架",
|
5
|
+
"main": "src/index.js",
|
6
|
+
"directories": {
|
7
|
+
"example": "examples",
|
8
|
+
"test": "test"
|
9
|
+
},
|
10
|
+
"scripts": {
|
11
|
+
"example": "node build/example-server.js",
|
12
|
+
"dev": "node build/dev-server.js",
|
13
|
+
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
14
|
+
"build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
15
|
+
"e2e": "node test/e2e/runner.js",
|
16
|
+
"unit": "karma start test/unit/karma.conf.js",
|
17
|
+
"release": "npm set registry http://registry.npmjs.org && npm publish && npm set registry http://registry.npm.taobao.org"
|
18
|
+
},
|
19
|
+
"dependencies": {
|
20
|
+
"base64-js": "^1.3.0",
|
21
|
+
"js-base64": "^2.4.9",
|
22
|
+
"less": "^2.7.1",
|
23
|
+
"less-loader": "^2.2.3",
|
24
|
+
"src": "^1.1.2",
|
25
|
+
"vue": "^1.0.17"
|
26
|
+
},
|
27
|
+
"devDependencies": {
|
28
|
+
"babel-core": "^6.0.0",
|
29
|
+
"babel-loader": "^6.0.0",
|
30
|
+
"babel-plugin-transform-runtime": "^6.0.0",
|
31
|
+
"babel-preset-es2015": "^6.0.0",
|
32
|
+
"babel-preset-stage-2": "^6.0.0",
|
33
|
+
"chai": "^3.5.0",
|
34
|
+
"connect-history-api-fallback": "^1.1.0",
|
35
|
+
"cross-env": "^1.0.7",
|
36
|
+
"cross-spawn": "^2.1.5",
|
37
|
+
"css-loader": "^0.23.0",
|
38
|
+
"eslint": "^2.0.0",
|
39
|
+
"eslint-config-standard": "^5.1.0",
|
40
|
+
"eslint-friendly-formatter": "^1.2.2",
|
41
|
+
"eslint-loader": "^1.3.0",
|
42
|
+
"eslint-plugin-html": "^1.3.0",
|
43
|
+
"eslint-plugin-promise": "^1.0.8",
|
44
|
+
"eslint-plugin-standard": "^1.3.2",
|
45
|
+
"eslint-plugin-vue": "^0.1.1",
|
46
|
+
"eventsource-polyfill": "^0.9.6",
|
47
|
+
"express": "^4.13.3",
|
48
|
+
"extract-text-webpack-plugin": "^1.0.1",
|
49
|
+
"file-loader": "^0.8.4",
|
50
|
+
"function-bind": "^1.0.2",
|
51
|
+
"html-webpack-plugin": "^2.8.1",
|
52
|
+
"http-proxy-middleware": "^0.11.0",
|
53
|
+
"inject-loader": "^2.0.1",
|
54
|
+
"isparta-loader": "^2.0.0",
|
55
|
+
"jasmine-core": "^2.4.1",
|
56
|
+
"jquery": "^3.3.1",
|
57
|
+
"json-loader": "^0.5.4",
|
58
|
+
"karma": "^1.4.1",
|
59
|
+
"karma-chrome-launcher": "^2.2.0",
|
60
|
+
"karma-coverage": "^1.1.1",
|
61
|
+
"karma-mocha": "^1.3.0",
|
62
|
+
"karma-sinon-chai": "^1.3.1",
|
63
|
+
"karma-sourcemap-loader": "^0.3.7",
|
64
|
+
"karma-spec-reporter": "0.0.31",
|
65
|
+
"karma-webpack": "^2.0.2",
|
66
|
+
"manage-client": "^1.4.20",
|
67
|
+
"mkdirp": "^0.5.1",
|
68
|
+
"mocha": "^3.2.0",
|
69
|
+
"ncp": "^2.0.0",
|
70
|
+
"nightwatch": "^0.8.18",
|
71
|
+
"rimraf": "^2.5.0",
|
72
|
+
"selenium-server": "2.52.0",
|
73
|
+
"sinon": "^2.1.0",
|
74
|
+
"sinon-chai": "^2.8.0",
|
75
|
+
"style": "0.0.3",
|
76
|
+
"style-loader": "^0.20.3",
|
77
|
+
"url-loader": "^0.5.7",
|
78
|
+
"vue-client": "1.21.60",
|
79
|
+
"vue-hot-reload-api": "^1.2.0",
|
80
|
+
"vue-html-loader": "^1.0.0",
|
81
|
+
"vue-loader": "^8.2.1",
|
82
|
+
"vue-resource": "^1.5.0",
|
83
|
+
"vue-router": "^0.7.13",
|
84
|
+
"vue-strap": "^1.0.9",
|
85
|
+
"vue-style-loader": "^1.0.0",
|
86
|
+
"vue-validator": "^3.0.0-alpha.2",
|
87
|
+
"webpack": "^1.12.2",
|
88
|
+
"jsencrypt": "3.0.0-rc.1",
|
89
|
+
"webpack-dev-middleware": "^1.4.0",
|
90
|
+
"webpack-hot-middleware": "^2.6.0",
|
91
|
+
"webpack-merge": "^0.8.3"
|
92
|
+
},
|
93
|
+
"repository": {
|
94
|
+
"type": "git",
|
95
|
+
"url": "https://gitee.com/aotu/System"
|
96
|
+
},
|
97
|
+
"keywords": [
|
98
|
+
"system_clients"
|
99
|
+
],
|
100
|
+
"author": "杨文宇",
|
101
|
+
"license": "ISC"
|
102
|
+
}
|
@@ -19,8 +19,8 @@
|
|
19
19
|
<div v-if="model.f_equipment_type[0] === 'PC'">
|
20
20
|
<pc-manage></pc-manage>
|
21
21
|
</div>
|
22
|
-
<div v-if="model.f_equipment_type[0] === 'POS'">
|
23
|
-
<pos-manage></pos-manage>
|
22
|
+
<div v-if="model.f_equipment_type[0] === 'POS'||model.f_equipment_type[0] === '自助写卡机'||model.f_equipment_type[0] === '手持POS'">
|
23
|
+
<pos-manage :type="model.f_equipment_type[0]"></pos-manage>
|
24
24
|
</div>
|
25
25
|
<div v-if="model.f_equipment_type[0] === 'PHONE'">
|
26
26
|
<phone-manage></phone-manage>
|
@@ -46,7 +46,7 @@
|
|
46
46
|
},
|
47
47
|
ready () {
|
48
48
|
console.log('看看终端类型', this.equipmentType)
|
49
|
-
this.model.f_equipment_type = [
|
49
|
+
this.model.f_equipment_type = ['POS']
|
50
50
|
},
|
51
51
|
methods: {
|
52
52
|
del (row) {
|
@@ -2,9 +2,19 @@
|
|
2
2
|
<div class="auto select-overspread">
|
3
3
|
<validator name='v'>
|
4
4
|
<ul class="nav nav-tabs" >
|
5
|
-
<li role="presentation" class="active"><a href="#">
|
5
|
+
<li role="presentation" class="active"><a href="#">{{ type }}</a></li>
|
6
6
|
</ul>
|
7
7
|
<form class="form-horizontal">
|
8
|
+
<div class="row">
|
9
|
+
<div class="col-sm-6">
|
10
|
+
<label class="font_normal_body">使用公司</label>
|
11
|
+
<res-select restype='organization'
|
12
|
+
is-mul="false"
|
13
|
+
@res-select="getorg"
|
14
|
+
:initresid="curorgid">
|
15
|
+
</res-select>
|
16
|
+
</div>
|
17
|
+
</div>
|
8
18
|
<div class="row">
|
9
19
|
<div class="col-sm-6">
|
10
20
|
<label class="font_normal_body" >设备编号</label>
|
@@ -35,6 +45,7 @@
|
|
35
45
|
<input type="text" class="input_search" style="width: 60%" v-model="model.f_bank_name" placeholder="所属银行" >
|
36
46
|
</div>
|
37
47
|
</div>
|
48
|
+
|
38
49
|
<div class="col-sm-12">
|
39
50
|
<label class="font_normal_body " style="margin-top:-20px"> 备注 </label>
|
40
51
|
<textarea class="input_textarea" rows="3" style="width:80%;margin-top:5px" v-model="model.f_comments"></textarea>
|
@@ -53,11 +64,14 @@
|
|
53
64
|
export default {
|
54
65
|
data () {
|
55
66
|
return {
|
67
|
+
f_orgid:'',
|
68
|
+
f_filialeid:'',
|
69
|
+
curorgid: [this.f_filialeids],
|
56
70
|
model: {
|
57
71
|
f_terminal_number: '',
|
58
72
|
f_terminal_name: '',
|
59
73
|
f_bank_name: '',
|
60
|
-
f_equipment_type: '
|
74
|
+
f_equipment_type: '',
|
61
75
|
f_state: '正常',
|
62
76
|
f_machine_number:'',
|
63
77
|
f_phone:'',
|
@@ -68,7 +82,7 @@
|
|
68
82
|
}
|
69
83
|
}
|
70
84
|
},
|
71
|
-
props: ['data', 'f_filialeids'],
|
85
|
+
props: ['data', 'f_filialeids','type'],
|
72
86
|
watch: {
|
73
87
|
'data' (val) {
|
74
88
|
if (val) {
|
@@ -85,12 +99,17 @@
|
|
85
99
|
}
|
86
100
|
},
|
87
101
|
methods: {
|
102
|
+
getorg (val) {
|
103
|
+
this.f_orgid = val[0]
|
104
|
+
this.f_filialeids = val[0]
|
105
|
+
},
|
88
106
|
confirm () {
|
89
107
|
// if(this.f_filialeids!=''&&this.f_filialeids!=null){
|
90
108
|
this.model.f_operator = this.$login.f.name
|
109
|
+
this.model.f_equipment_type = this.type
|
91
110
|
this.model.f_operatorid = this.$login.f.id
|
92
111
|
this.model.f_filialeids = this.f_filialeids
|
93
|
-
this.model.f_orgid = this
|
112
|
+
this.model.f_orgid = this.f_filialeids
|
94
113
|
this.model.f_orgname = this.$login.f.orgs
|
95
114
|
this.model.f_depid = this.$login.f.depids
|
96
115
|
this.model.f_depname = this.$login.f.deps
|
@@ -65,10 +65,10 @@
|
|
65
65
|
<th>联系电话</th>
|
66
66
|
<th>所在地</th>
|
67
67
|
<th>所属银行</th>
|
68
|
-
<th>电池电量</th
|
69
|
-
<th>是否登录</th
|
70
|
-
<th>更新时间</th
|
71
|
-
<th>软件版本</th
|
68
|
+
<!-- <th>电池电量</th>-->
|
69
|
+
<!-- <th>是否登录</th>-->
|
70
|
+
<!-- <th>更新时间</th>-->
|
71
|
+
<!-- <th>软件版本</th>-->
|
72
72
|
<th>操作</th>
|
73
73
|
</tr>
|
74
74
|
</template>
|
@@ -81,10 +81,10 @@
|
|
81
81
|
<td style="text-align:center">{{row.f_phone}}</td>
|
82
82
|
<td style="text-align:center">{{row.f_address}}</td>
|
83
83
|
<td style="text-align:center">{{row.f_bank_name}}</td>
|
84
|
-
<td style="text-align:center">{{row.f_battery_level}}</td
|
85
|
-
<td style="text-align:center">{{row.f_is_login}}</td
|
86
|
-
<td style="text-align:center">{{row.f_hybrid_version}}</td
|
87
|
-
<td style="text-align:center">{{row.f_appVer}}</td
|
84
|
+
<!-- <td style="text-align:center">{{row.f_battery_level}}</td>-->
|
85
|
+
<!-- <td style="text-align:center">{{row.f_is_login}}</td>-->
|
86
|
+
<!-- <td style="text-align:center">{{row.f_hybrid_version}}</td>-->
|
87
|
+
<!-- <td style="text-align:center">{{row.f_appVer}}</td>-->
|
88
88
|
<td style="text-align:center">
|
89
89
|
<button class="btn btn-link" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
|
90
90
|
</td>
|
@@ -111,7 +111,7 @@
|
|
111
111
|
criteriaShow: false
|
112
112
|
}
|
113
113
|
},
|
114
|
-
props: ['f_filialeid'],
|
114
|
+
props: ['f_filialeid','type'],
|
115
115
|
ready () {
|
116
116
|
this.search()
|
117
117
|
},
|
@@ -123,7 +123,7 @@
|
|
123
123
|
},
|
124
124
|
|
125
125
|
selfSearch (args) {
|
126
|
-
args.condition = `${args.condition} and f_equipment_type = '
|
126
|
+
args.condition = `${args.condition} and f_equipment_type = '${this.type}' and f_state = '正常' and f_orgid = '${this.f_filialeid ? this.f_orgid: this.$login.f.orgid}'`
|
127
127
|
this.model.search(args.condition, this.model)
|
128
128
|
this.$dispatch('research')
|
129
129
|
},
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="flex-row">
|
3
3
|
<div :class="{'basic-main':!isChange,'binary-left':isChange}">
|
4
|
-
<pos-list :row="row" @select-changed="selected" style="width:auto;" :f_filialeid.sync="f_filialeids" v-ref:list ></pos-list>
|
4
|
+
<pos-list :type="type" :row="row" @select-changed="selected" style="width:auto;" :f_filialeid.sync="f_filialeids" v-ref:list ></pos-list>
|
5
5
|
</div>
|
6
6
|
<div class="binary-right" style="margin-left: 10px; width: 50%;" v-if="isChange">
|
7
|
-
<pos-add :data="row" :f_filialeids.sync="f_filialeids" v-ref:addbox></pos-add>
|
7
|
+
<pos-add :type="type" :data="row" :f_filialeids.sync="f_filialeids" v-ref:addbox></pos-add>
|
8
8
|
</div>
|
9
9
|
</div>
|
10
10
|
</template>
|
@@ -15,6 +15,7 @@
|
|
15
15
|
|
16
16
|
export default {
|
17
17
|
title: 'POS终端管理',
|
18
|
+
props:['type'],
|
18
19
|
components: {
|
19
20
|
PosList, PosAdd
|
20
21
|
},
|
@@ -0,0 +1,211 @@
|
|
1
|
+
<template>
|
2
|
+
<div :class="style" v-show="companyshow">
|
3
|
+
<label class="font_normal_body">公  司</label>
|
4
|
+
<right-tree @re-res="getorg"
|
5
|
+
:mustselect="mustselect"
|
6
|
+
:initresid='initres.org'></right-tree>
|
7
|
+
</div>
|
8
|
+
<div :class="style" v-show="departmentshow">
|
9
|
+
<label class="font_normal_body">部  门</label>
|
10
|
+
<res-select restype='department' v-ref:department
|
11
|
+
@res-select="getdep"
|
12
|
+
:parentresid="depresid"
|
13
|
+
:specialquery="specialquery"
|
14
|
+
:initresid='initres.dep'
|
15
|
+
:mustselect="mustselect"
|
16
|
+
:is-mul="mul">
|
17
|
+
</res-select>
|
18
|
+
</div>
|
19
|
+
<div :class="style" v-show="operatorshow && (!cascade)">
|
20
|
+
<label class="font_normal_body">人  员</label>
|
21
|
+
<res-select restype='user'
|
22
|
+
@res-select="getuser"
|
23
|
+
:parentresid="depresid"
|
24
|
+
:initresid='initres.user'
|
25
|
+
:mustselect="mustselect"
|
26
|
+
:is-mul="mul">
|
27
|
+
</res-select>
|
28
|
+
</div>
|
29
|
+
<div :class="style" v-show="operatorshow && cascade">
|
30
|
+
<label class="font_normal_body">人  员</label>
|
31
|
+
<res-select restype='user'
|
32
|
+
@res-select="getuser"
|
33
|
+
:parentresid="userresid"
|
34
|
+
:initresid='initres.user'
|
35
|
+
:mustselect="mustselect"
|
36
|
+
:is-mul="mul">
|
37
|
+
</res-select>
|
38
|
+
</div>
|
39
|
+
<div :class="style " v-if="sliceareashow" >
|
40
|
+
<label class="font_normal_body">片  区</label>
|
41
|
+
<v-select :value.sync="slice_area" v-model="slice_area" @change='getarea'
|
42
|
+
:options='sliceArea' placeholder='片区/管理站' filer-key="name"
|
43
|
+
close-on-select v-ref:slice>
|
44
|
+
</v-select>
|
45
|
+
</div>
|
46
|
+
</template>
|
47
|
+
<script>
|
48
|
+
import plugin from '../../plugins/GetLoginInfoService'
|
49
|
+
import { HttpResetClass } from 'vue-client'
|
50
|
+
export default {
|
51
|
+
title: '资源选择测试',
|
52
|
+
props: {
|
53
|
+
style: {
|
54
|
+
type: String,
|
55
|
+
default: 'col-sm-2 form-group'
|
56
|
+
},
|
57
|
+
mul: {
|
58
|
+
type: Boolean,
|
59
|
+
default: true
|
60
|
+
},
|
61
|
+
//是否只查询营业厅
|
62
|
+
specialquery: {
|
63
|
+
type: Boolean,
|
64
|
+
default: false
|
65
|
+
},
|
66
|
+
//初始值
|
67
|
+
initres: {
|
68
|
+
type: Object,
|
69
|
+
default: null,
|
70
|
+
},
|
71
|
+
showComponent:{
|
72
|
+
default:['company','department','operator','slicearea']
|
73
|
+
},
|
74
|
+
//人员是否和部门关联
|
75
|
+
cascade: {
|
76
|
+
type: Boolean,
|
77
|
+
default: true
|
78
|
+
},
|
79
|
+
selectin: {
|
80
|
+
type: Boolean,
|
81
|
+
default: true
|
82
|
+
}
|
83
|
+
},
|
84
|
+
data () {
|
85
|
+
return {
|
86
|
+
orgresid:[this.$login.f.orgid],
|
87
|
+
depresid:[],
|
88
|
+
userresid:[],
|
89
|
+
operatorsid: [],
|
90
|
+
sliceArea: [],
|
91
|
+
slice_area:[],
|
92
|
+
companyshow:false,
|
93
|
+
departmentshow:false,
|
94
|
+
operatorshow:false,
|
95
|
+
sliceareashow:false,
|
96
|
+
mustselect:false,
|
97
|
+
obj:{
|
98
|
+
orgnames:[],
|
99
|
+
depnames:[],
|
100
|
+
operatornames:[]
|
101
|
+
}
|
102
|
+
}
|
103
|
+
},
|
104
|
+
ready () {
|
105
|
+
if(this.$login.r.includes('部门默认选中')&& this.selectin){
|
106
|
+
this.initres.dep = [this.$login.f.depids]
|
107
|
+
}
|
108
|
+
if(this.$login.r.includes('人员默认选中')&& this.selectin){
|
109
|
+
this.initres.user = [this.$login.f.id]
|
110
|
+
if(this.$login.r.includes('人员强制选中')){
|
111
|
+
this.mustselect = true
|
112
|
+
}
|
113
|
+
}
|
114
|
+
this.initComponent();
|
115
|
+
this.initAreas(this.$login.f.orgid)
|
116
|
+
},
|
117
|
+
methods:{
|
118
|
+
initComponent(){
|
119
|
+
let self=this;
|
120
|
+
this.showComponent.find((item)=>{
|
121
|
+
switch(item){
|
122
|
+
case 'company': self.companyshow=true; break;
|
123
|
+
case 'department': self.departmentshow=true; break;
|
124
|
+
case 'operator': self.operatorshow=true; break;
|
125
|
+
case 'slicearea': self.sliceareashow=true; break;
|
126
|
+
}
|
127
|
+
})
|
128
|
+
},
|
129
|
+
// 初始化片区
|
130
|
+
async initAreas (val) {
|
131
|
+
if (val) {
|
132
|
+
let http = new HttpResetClass()
|
133
|
+
let getAllArea = await http.load('POST', '/rs/search', {
|
134
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
135
|
+
userid: this.$login.f.id
|
136
|
+
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
137
|
+
let arr = getAllArea.data.filter((res) => {
|
138
|
+
if(Array.isArray(val)){
|
139
|
+
for (let i = 0; i <val.length ; i++) {
|
140
|
+
if(res.parentid == val[i]){
|
141
|
+
return true
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
return res.parentid == val
|
146
|
+
})
|
147
|
+
this.sliceArea = []
|
148
|
+
this.slice_area = []
|
149
|
+
arr.forEach((res) => {
|
150
|
+
this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
|
151
|
+
})
|
152
|
+
}
|
153
|
+
},
|
154
|
+
returnOrg(ids){
|
155
|
+
let limit = this.$login.r.includes('数据授权限定')
|
156
|
+
|
157
|
+
let condition;
|
158
|
+
if(this.depresid.length > 0)
|
159
|
+
condition = plugin.convertToIn(this.depresid);
|
160
|
+
else
|
161
|
+
condition = this.$login.f.orgid;
|
162
|
+
if(this.userresid.length > 0){
|
163
|
+
condition += plugin.convertToIn(this.userresid);
|
164
|
+
} else {
|
165
|
+
if (limit) {
|
166
|
+
let depids = []
|
167
|
+
for (let row of this.$refs.department.resoptions) {
|
168
|
+
depids.push(row.value)
|
169
|
+
}
|
170
|
+
let depid = depids.length ? plugin.convertToIn(depids) : `('')`
|
171
|
+
condition += depid;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
if(ids && ids.length > 0){
|
175
|
+
condition += plugin.convertToIn(ids);
|
176
|
+
}
|
177
|
+
if(this.slice_area.length>0){
|
178
|
+
condition += "'" + this.slice_area[0].name+"'"
|
179
|
+
}
|
180
|
+
this.$dispatch('re-res',condition,this.obj)
|
181
|
+
},
|
182
|
+
getorg (obj) {
|
183
|
+
this.depresid=obj.resids
|
184
|
+
this.obj.orgnames = obj.res
|
185
|
+
this.initAreas(obj.resids)
|
186
|
+
this.returnOrg();
|
187
|
+
},
|
188
|
+
getdep(obj,val) {
|
189
|
+
this.obj.depnames = val
|
190
|
+
this.userresid=obj
|
191
|
+
this.returnOrg();
|
192
|
+
},
|
193
|
+
getuser(obj,val) {
|
194
|
+
this.obj.operatornames = val
|
195
|
+
this.operatorsid = obj
|
196
|
+
this.returnOrg(obj);
|
197
|
+
},
|
198
|
+
getarea(val) {
|
199
|
+
this.slice_area=val
|
200
|
+
if(this.operatorsid){
|
201
|
+
this.returnOrg(this.operatorsid);
|
202
|
+
}else{
|
203
|
+
this.returnOrg();
|
204
|
+
}
|
205
|
+
}
|
206
|
+
},
|
207
|
+
watch: {
|
208
|
+
|
209
|
+
}
|
210
|
+
}
|
211
|
+
</script>
|
package/src/system.js
CHANGED
@@ -26,6 +26,7 @@ import ResSelectGroup from './components/server/ResSelectGroup'
|
|
26
26
|
//资源选择测试
|
27
27
|
import TestResSelect from './components/server/TestResSelect'
|
28
28
|
import RoleSelector from "./components/server/RoleSelector";
|
29
|
+
import NewResSelectGroup from "./components/server/NewResSelectGroup.vue";
|
29
30
|
export default function (val) {
|
30
31
|
//验证码开关赋值
|
31
32
|
if(val!=null){
|
@@ -50,6 +51,7 @@ export default function (val) {
|
|
50
51
|
//资源选择
|
51
52
|
Vue.component('res-select', ResSelect)
|
52
53
|
Vue.component('res-select-group', ResSelectGroup)
|
54
|
+
Vue.component('new-select-group', NewResSelectGroup)
|
53
55
|
//资源选择测试
|
54
56
|
Vue.component('test-res-select', TestResSelect)
|
55
57
|
|