system-clients 3.0.47 → 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.
@@ -4,16 +4,9 @@
4
4
  <span class="btn btn-link add-postition" @click="add('t_parameter')">新增</span>
5
5
  </p>
6
6
  <div class="form-inline auto" style="margin-bottom: 5px;">
7
- <div class="row">
8
- <div class="col-sm-4 form-group">
9
- <label>参数名称:</label>
10
- <input type="text" class="input_search" placeholder='请输入查找的参数名' v-model="param" @keyup.enter="filterParams(param)">
11
- </div>
12
- <div class="col-sm-4 form-group button-range" style="float:left;">
13
- <button class="btn btn-primary" @click="filterParams(param)">查询</button>
14
- </div>
15
- </div>
16
-
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>
17
10
  </div>
18
11
  <div class="span">
19
12
  <partial-view v-ref:params-load>
@@ -69,12 +62,11 @@
69
62
  <h4 class="modal-title">参数配置</h4>
70
63
  </header>
71
64
  <article slot="modal-body" class="modal-body">
72
- <div class="row">
73
65
  <div class="from-group">
74
66
  <label for="">参数名称</label>
75
67
  <input type="text" class="form-control" v-model="modifyItem.name" @keyup.enter="confirm">
76
68
  </div>
77
- </div>
69
+
78
70
  </article>
79
71
 
80
72
  <footer slot="modal-footer" class="modal-footer">
@@ -7,7 +7,7 @@
7
7
  <div class="auto">
8
8
  <form class="form-horizontal" style="margin-bottom: 5px;">
9
9
  <div class="row">
10
- <div class="col-sm-4 form-group">
10
+ <div class="col-sm-4">
11
11
  <label class="font_normal_body">使用公司</label>
12
12
  <res-select restype='organization'
13
13
  is-mul="false"
@@ -15,11 +15,11 @@
15
15
  @res-select="getorgCur">
16
16
  </res-select>
17
17
  </div>
18
- <div class="col-sm-4 form-group">
18
+ <div class="col-sm-4">
19
19
  <label class="font_normal_body">参数名称</label>
20
20
  <input type="text" class="input_search" style="width: 60%" placeholder='请输入查找的参数名' v-model="conditionModel.paramName" @keyup.enter="filter_query(param, f_orgid_current)">
21
21
  </div>
22
- <div class="col-sm-4 form-group button-range" style="float:left;">
22
+ <div class="text-right">
23
23
  <button type="button" class="button_search" @click="filter_query(conditionModel.paramName,conditionModel.f_cond_orgid)">查询</button>
24
24
  </div>
25
25
  </div>
@@ -59,18 +59,25 @@
59
59
  </header>
60
60
  <article slot="modal-body" class="modal-body">
61
61
  <form class="form-horizontal">
62
- <div class="row">
63
- <div class="col-sm-6 form-group">
62
+ <div class="form-group">
63
+ <div class="col-sm-6">
64
64
  <label class="font_normal_body">单值名称</label>
65
65
  <input type="text" class="input_search" style="width: 60%" v-model="selectItem.name">
66
66
  </div>
67
- <div class="col-sm-6 form-group">
67
+ <div class="col-sm-6">
68
68
  <label class="font_normal_body">单值内容</label>
69
69
  <input type="text" class="input_search" style="width: 60%" v-model="selectItem.value">
70
70
  </div>
71
71
  </div>
72
- <div class="row">
73
- <div class="col-sm-6 form-group" v-if="!selectItem.isGlobal">
72
+ <div class="col-sm-6">
73
+ <div class="checkbox">
74
+ <label>
75
+ <input type="checkbox" v-model="selectItem.isGlobal" :checked="selectItem.isGlobal">是否全局
76
+ </label>
77
+ </div>
78
+ </div>
79
+ <div class="form-group" v-if="!selectItem.isGlobal">
80
+ <div class="col-sm-6">
74
81
  <label class="font_normal_body">所属公司</label>
75
82
  <res-select restype='organization'
76
83
  :initresid="[conditionModel.f_cond_orgid]"
@@ -78,11 +85,6 @@
78
85
  @res-select="getModifyOrg">
79
86
  </res-select>
80
87
  </div>
81
- <div class="checkbox col-sm-6 form-group">
82
- <label>
83
- <input type="checkbox" v-model="selectItem.isGlobal" :checked="selectItem.isGlobal">是否全局
84
- </label>
85
- </div>
86
88
  </div>
87
89
  </form>
88
90
 
@@ -5,15 +5,10 @@
5
5
  <span class="btn btn-link add-postition" @click="add()">新增</span>
6
6
  </p>
7
7
  <div class="form-inline auto" style="margin-bottom: 5px;">
8
- <div class="row">
9
- <div class="col-sm-4 form-group">
10
- <label>参数名称:</label>
11
- <input type="text" class="input_search" placeholder='请输入查找的参数名' v-model="param" @keyup.enter="filterParams(param)">
12
- </div>
13
- <div class="col-sm-4 form-group button-range" style="float:left;">
14
- <button class="btn btn-primary" @click="filterParams(param)">查询</button>
15
- </div>
16
- </div>
8
+ <label for="">参数名称:</label>
9
+ <input type="text" class="form-control" placeholder='请输入查找的参数名' v-model="param" @keyup.enter="filterParams(param)">
10
+
11
+ <button class="btn btn-primary" @click="filterParams(param)">查询</button>
17
12
  </div>
18
13
  <div class="span">
19
14
  <partial-view v-ref:single-load>
@@ -52,16 +47,15 @@
52
47
  <h4 class="modal-title">单值配置</h4>
53
48
  </header>
54
49
  <article slot="modal-body" class="modal-body">
55
- <div class="row">
56
- <div class="col-sm-6 from-group">
50
+ <div class="from-group">
57
51
  <label for="">单值名称</label>
58
- <input type="text" class="input_search" style="width: 60%" v-model="selectItem.name">
52
+ <input type="text" class="form-control" v-model="selectItem.name">
59
53
  </div>
60
- <div class="col-sm-6 from-group">
54
+ <div class="from-group">
61
55
  <label for="">单值内容</label>
62
- <input type="text" class="input_search" style="width: 60%" v-model="selectItem.value">
63
- </div>
56
+ <input type="text" class="form-control" v-model="selectItem.value">
64
57
  </div>
58
+
65
59
  </article>
66
60
 
67
61
  <footer slot="modal-footer" class="modal-footer">
@@ -66,20 +66,19 @@
66
66
  </header>
67
67
  <article slot="modal-body" class="modal-body">
68
68
  <form class="form-horizontal">
69
- <div class="row">
70
- <div class="col-sm-12 form-group">
69
+
70
+ <div class="form-group">
71
71
  <label class="col-sm-5 control-label">当前登录人</label>
72
72
  <div class="col-sm-7">
73
73
  <p class="form-control-static">{{$login.f.name}}</p>
74
74
  </div>
75
75
  </div>
76
- <div class="col-sm-12 form-group">
77
- <label class="col-sm-5 control-label">所在销售点</label>
76
+ <div class="form-group">
77
+ <label class="col-sm-5 control-label">所在的销售点</label>
78
78
  <div class="col-sm-7">
79
79
  <p class="form-control-static">{{$login.f.deps}}</p>
80
80
  </div>
81
81
  </div>
82
- </div>
83
82
  </form>
84
83
  </article>
85
84
  <footer slot="modal-footer" class="modal-footer">
@@ -150,6 +149,8 @@
150
149
  msg = ret.data
151
150
  } else if (ret.status === 710) {
152
151
  msg = ret.data
152
+ } else if (ret.status === 555) {
153
+ msg = ret.data
153
154
  }
154
155
  self.createCode()
155
156
  self.picLyanzhengma = ''
@@ -64,12 +64,31 @@
64
64
  let res = yield self.$resetpost('/rs/user/modifypwd', {data: self.deliver })
65
65
  self.$login.f.password = self.deliver.newpassword
66
66
  if (res.data) {
67
- self.deliver.password = ''
68
- self.deliver.newpassword = ''
69
- self.deliver.affirmpassword = ''
70
- self.show = false
67
+ console.log("修改密码返回:" , res.data)
68
+ // 兼容旧版ldao,旧版不返回code
69
+ if (res.data.code === 200) {
70
+ self.deliver.password = ''
71
+ self.deliver.newpassword = ''
72
+ self.deliver.affirmpassword = ''
73
+ self.show = false
74
+ self.$showAlert("修改密码成功", 'success', 2000)
75
+ } else {
76
+ // 兼容旧版ldao,旧版不返回code
77
+ self.deliver.password = ''
78
+ self.deliver.newpassword = ''
79
+ self.deliver.affirmpassword = ''
80
+ self.show = false
81
+ self.$showAlert("修改密码成功", 'success', 2000)
82
+ }
83
+ } else {
84
+ if (res.data.code) {
85
+ self.$showAlert("修改密码失败,原因:" + res.data.msg, 'warning', 2000)
86
+ } else {
87
+ self.$showMessage(res.data)
88
+ }
71
89
  }
72
90
  }
91
+
73
92
  export default {
74
93
  title: '系统管理-密码修改',
75
94
  data () {
@@ -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="depresid"
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>
@@ -1,58 +1,58 @@
1
- <template>
2
- <div class="auto col-sm-12 form-group form-input-group" style="width: 20%">
3
- <label>公司:</label>
4
- <res-select :restype='orgrestype'
5
- @res-select="getorg"
6
- :parentresid="orgresid"
7
- :initresid='orgresid1'>
8
- </res-select>
9
- <label>部门:</label>
10
- <res-select :restype='deprestype'
11
- @res-select="getdep"
12
- :parentresid="depresid"
13
- :initresid='initresid'>
14
- </res-select>
15
- <label>人员:</label>
16
- <res-select :restype='userrestype'
17
- @res-select="getuser"
18
- :parentresid="depresid"
19
- :initresid='initresid'>
20
- </res-select>
21
- </div>
22
- </template>
23
- <script>
24
- export default {
25
- title: '资源选择测试',
26
- props: {
27
- },
28
- data () {
29
- return {
30
- orgrestype:'organization',
31
- orgresid:[this.$login.f.orgid],
32
- orgresid1:["114"],
33
- deprestype:'department',
34
- depresid:[],
35
- userrestype:'user',
36
- userresid:[],
37
- }
38
- },
39
- ready () {
40
- },
41
- methods:{
42
- getorg (obj) {
43
- console.log("选中组织的数据",obj)
44
- this.depresid=obj
45
- },
46
- getdep(obj) {
47
- console.log("选中部门的数据",obj)
48
- this.userresid=obj
49
- },
50
- getuser(obj) {
51
- console.log("选中用户的数据",obj)
52
- },
53
- },
54
- watch: {
55
-
56
- },
57
- }
58
- </script>
1
+ <template>
2
+ <div class="auto col-sm-12 form-group form-input-group" style="width: 20%">
3
+ <label>公司:</label>
4
+ <res-select :restype='orgrestype'
5
+ @res-select="getorg"
6
+ :parentresid="orgresid"
7
+ :initresid='orgresid1'>
8
+ </res-select>
9
+ <label>部门:</label>
10
+ <res-select :restype='deprestype'
11
+ @res-select="getdep"
12
+ :parentresid="depresid"
13
+ :initresid='initresid'>
14
+ </res-select>
15
+ <label>人员:</label>
16
+ <res-select :restype='userrestype'
17
+ @res-select="getuser"
18
+ :parentresid="userresid"
19
+ :initresid='initresid'>
20
+ </res-select>
21
+ </div>
22
+ </template>
23
+ <script>
24
+ export default {
25
+ title: '资源选择测试',
26
+ props: {
27
+ },
28
+ data () {
29
+ return {
30
+ orgrestype:'organization',
31
+ orgresid:[this.$login.f.orgid],
32
+ orgresid1:["114"],
33
+ deprestype:'department',
34
+ depresid:[],
35
+ userrestype:'user',
36
+ userresid:[],
37
+ }
38
+ },
39
+ ready () {
40
+ },
41
+ methods:{
42
+ getorg (obj) {
43
+ console.log("选中组织的数据",obj)
44
+ this.depresid=obj
45
+ },
46
+ getdep(obj) {
47
+ console.log("选中部门的数据",obj)
48
+ this.userresid=obj
49
+ },
50
+ getuser(obj) {
51
+ console.log("选中用户的数据",obj)
52
+ },
53
+ },
54
+ watch: {
55
+
56
+ },
57
+ }
58
+ </script>