system-clients 3.2.1-23 → 3.2.1-24

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,121 +1,121 @@
1
- <template>
2
- <div class="flex">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' style="background-color: white" @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="col-sm-3 form-group">
8
- <label class="font_normal_body">公&nbsp;&nbsp;&nbsp;司</label>
9
- <res-select restype='organization'
10
- :is-mul="false"
11
- @res-select="$parent.$parent.getorg"
12
- :initresid="$parent.$parent.curorgid">
13
- </res-select>
14
- </div>
15
- <div class="col-sm-3 form-group">
16
- <label class="font_normal_body">参数名称</label>
17
- <input type="text" class="input_search" style="width:60%" v-model="model.f_param_name"
18
- condition="name like '%{}%'" placeholder="参数名称">
19
- </div>
20
- <div class="span" style="float:right;margin-top: 6px">
21
- <button type="button" class="button_search" @click="search()" v-el:cx>查询</button>
22
- <button type="button" class="button_search" @click="$parent.$parent.add() " v-el:cx>新增</button>
23
- </div>
24
- </div>
25
- </div>
26
- </criteria>
27
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
28
- <template partial='head'>
29
- <tr>
30
- <th style="text-align:center;white-space:nowrap;">参数id</th>
31
- <th style="text-align:center;white-space:nowrap;">参数名称</th>
32
- <th style="text-align:center;white-space:nowrap;">所属分公司</th>
33
- <th style="text-align:center;white-space:nowrap;">所属银行</th>
34
- <th style="text-align:center;white-space:nowrap;">创建人</th>
35
- <th style="text-align:center;white-space:nowrap;">操作</th>
36
- </tr>
37
- </template>
38
- <template partial='body' :model="model">
39
- <tr>
40
- <td style="text-align:center;white-space:nowrap;">{{ row.f_param_id }}</td>
41
- <td style="text-align:center;white-space:nowrap;">{{ row.name }}</td>
42
- <td style="text-align:center;white-space:nowrap;">{{ row.f_orgname }}</td>
43
- <td style="text-align:center;white-space:nowrap;">{{ row.f_bank_name }}</td>
44
- <td style="text-align:center;white-space:nowrap;">{{ row.f_operator }}</td>
45
- <td style="text-align:center;white-space:nowrap;">
46
- <div class="col-sm-1"></div>
47
- <div class="col-sm-4">
48
- <button type="button" class="btn button_new" v-if="!row.sum||row.sum ===0 "
49
- @click.stop="$parent.$parent.$parent.delete(row)">删除
50
- </button>
51
- </div>
52
- <div class="col-sm-1"></div>
53
- <div class="col-sm-4">
54
- <button type="button" class="btn button_new"
55
- @click.stop="$parent.$parent.$parent.modify(row)">修改
56
- </button>
57
- </div>
58
- <div class="col-sm-1"></div>
59
- </td>
60
- </tr>
61
- </template>
62
- </data-grid>
63
- </criteria-paged>
64
- </div>
65
- </template>
66
-
67
- <script>
68
-
69
- import {PagedList} from 'vue-client'
70
-
71
- export default {
72
- title: '终端控制',
73
- components: {},
74
- data() {
75
- return {
76
- model: new PagedList('rs/sql/get_posParam', 20),
77
- curorgid: [this.f_filialeid],
78
- }
79
- },
80
- props: [],
81
- ready() {
82
- this.search()
83
- },
84
- watch: {},
85
- methods: {
86
- getRes(val) {
87
- if (val.orgobj.length === 1 && val.orgobj[0].resourcetype === 'user') {
88
- this.$refs.paged.$refs.cri.model.f_user_operatorid = val.orgobj[0].userid
89
- this.$refs.paged.$refs.cri.model.f_user_operator = val.orgobj[0].name
90
- } else {
91
- this.$refs.paged.$refs.cri.model.f_user_operatorid = ''
92
- this.$refs.paged.$refs.cri.model.f_user_operator = ''
93
- }
94
- },
95
- async delete(row) {
96
- await this.$resetpost('rs/logic/deletePosParam', {data: row}, {rejectMsg: null, resolveMsg: null})
97
- await this.search()
98
- },
99
- modify(row) {
100
- this.$dispatch('modify', row)
101
- },
102
- search() {
103
- this.$refs.paged.$refs.cri.search()
104
- },
105
- selfSearch(args) {
106
- if (this.f_orgid) {
107
- args.condition += ` and f_orgid = ${this.f_orgid} `
108
- }
109
- this.model.search(args.condition, this.model)
110
- },
111
- add() {
112
- this.$dispatch('add', this.f_filialeid)
113
- },
114
- getorg(val) {
115
- this.f_orgid = val[0]
116
- this.f_filialeid = val[0]
117
- }
118
- },
119
- computed: {}
120
- }
121
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' style="background-color: white" @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="col-sm-3 form-group">
8
+ <label class="font_normal_body">公&nbsp;&nbsp;&nbsp;司</label>
9
+ <res-select restype='organization'
10
+ :is-mul="false"
11
+ @res-select="$parent.$parent.getorg"
12
+ :initresid="$parent.$parent.curorgid">
13
+ </res-select>
14
+ </div>
15
+ <div class="col-sm-3 form-group">
16
+ <label class="font_normal_body">参数名称</label>
17
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_param_name"
18
+ condition="name like '%{}%'" placeholder="参数名称">
19
+ </div>
20
+ <div class="span" style="float:right;margin-top: 6px">
21
+ <button type="button" class="button_search" @click="search()" v-el:cx>查询</button>
22
+ <button type="button" class="button_search" @click="$parent.$parent.add() " v-el:cx>新增</button>
23
+ </div>
24
+ </div>
25
+ </div>
26
+ </criteria>
27
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
28
+ <template partial='head'>
29
+ <tr>
30
+ <th style="text-align:center;white-space:nowrap;">参数id</th>
31
+ <th style="text-align:center;white-space:nowrap;">参数名称</th>
32
+ <th style="text-align:center;white-space:nowrap;">所属分公司</th>
33
+ <th style="text-align:center;white-space:nowrap;">所属银行</th>
34
+ <th style="text-align:center;white-space:nowrap;">创建人</th>
35
+ <th style="text-align:center;white-space:nowrap;">操作</th>
36
+ </tr>
37
+ </template>
38
+ <template partial='body' :model="model">
39
+ <tr>
40
+ <td style="text-align:center;white-space:nowrap;">{{ row.f_param_id }}</td>
41
+ <td style="text-align:center;white-space:nowrap;">{{ row.name }}</td>
42
+ <td style="text-align:center;white-space:nowrap;">{{ row.f_orgname }}</td>
43
+ <td style="text-align:center;white-space:nowrap;">{{ row.f_bank_name }}</td>
44
+ <td style="text-align:center;white-space:nowrap;">{{ row.f_operator }}</td>
45
+ <td style="text-align:center;white-space:nowrap;">
46
+ <div class="col-sm-1"></div>
47
+ <div class="col-sm-4">
48
+ <button type="button" class="btn button_new" v-if="!row.sum||row.sum ===0 "
49
+ @click.stop="$parent.$parent.$parent.delete(row)">删除
50
+ </button>
51
+ </div>
52
+ <div class="col-sm-1"></div>
53
+ <div class="col-sm-4">
54
+ <button type="button" class="btn button_new"
55
+ @click.stop="$parent.$parent.$parent.modify(row)">修改
56
+ </button>
57
+ </div>
58
+ <div class="col-sm-1"></div>
59
+ </td>
60
+ </tr>
61
+ </template>
62
+ </data-grid>
63
+ </criteria-paged>
64
+ </div>
65
+ </template>
66
+
67
+ <script>
68
+
69
+ import {PagedList} from 'vue-client'
70
+
71
+ export default {
72
+ title: '终端控制',
73
+ components: {},
74
+ data() {
75
+ return {
76
+ model: new PagedList('rs/sql/get_posParam', 20),
77
+ curorgid: [this.f_filialeid],
78
+ }
79
+ },
80
+ props: [],
81
+ ready() {
82
+ this.search()
83
+ },
84
+ watch: {},
85
+ methods: {
86
+ getRes(val) {
87
+ if (val.orgobj.length === 1 && val.orgobj[0].resourcetype === 'user') {
88
+ this.$refs.paged.$refs.cri.model.f_user_operatorid = val.orgobj[0].userid
89
+ this.$refs.paged.$refs.cri.model.f_user_operator = val.orgobj[0].name
90
+ } else {
91
+ this.$refs.paged.$refs.cri.model.f_user_operatorid = ''
92
+ this.$refs.paged.$refs.cri.model.f_user_operator = ''
93
+ }
94
+ },
95
+ async delete(row) {
96
+ await this.$resetpost('rs/logic/deletePosParam', {data: row}, {rejectMsg: null, resolveMsg: null})
97
+ await this.search()
98
+ },
99
+ modify(row) {
100
+ this.$dispatch('modify', row)
101
+ },
102
+ search() {
103
+ this.$refs.paged.$refs.cri.search()
104
+ },
105
+ selfSearch(args) {
106
+ if (this.f_orgid) {
107
+ args.condition += ` and f_orgid = ${this.f_orgid} `
108
+ }
109
+ this.model.search(args.condition, this.model)
110
+ },
111
+ add() {
112
+ this.$dispatch('add', this.f_filialeid)
113
+ },
114
+ getorg(val) {
115
+ this.f_orgid = val[0]
116
+ this.f_filialeid = val[0]
117
+ }
118
+ },
119
+ computed: {}
120
+ }
121
+ </script>
@@ -1,51 +1,51 @@
1
- <template>
2
- <div class="flex-row">
3
- <div :class="{'basic-main':!isChange,'binary-left':isChange}">
4
- <pos-param-list v-ref:list></pos-param-list>
5
- </div>
6
- <div class="binary-right" style="margin-left: 10px; width: 40%;" v-if="isChange">
7
- <pos-param-add :param_id="param_id" v-ref:add></pos-param-add>
8
- </div>
9
- </div>
10
- </template>
11
- <script>
12
-
13
- import PosParamList from './PosParamList'
14
- import PosParamAdd from './PosParamAdd'
15
-
16
- export default {
17
- title: 'POS终端管理',
18
- components: {
19
- PosParamList, PosParamAdd
20
- },
21
- data() {
22
- return {
23
- isChange: false,
24
- param_id: ''
25
- }
26
- },
27
- methods: {},
28
- events: {
29
- 'add'() {
30
- this.isChange = true
31
- setTimeout(() => {
32
- this.$refs.add.initModel()
33
- }, 100)
34
- },
35
- 'close'() {
36
- this.isChange = false
37
- },
38
- 'research'() {
39
- this.$refs.list.search()
40
- this.isChange = false
41
- },
42
- 'modify'(row) {
43
- this.isChange = true
44
- setTimeout(() => {
45
- this.$refs.add.curorgid = []
46
- this.$refs.add.edit(row.f_param_id)
47
- }, 100)
48
- }
49
- }
50
- }
51
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div :class="{'basic-main':!isChange,'binary-left':isChange}">
4
+ <pos-param-list v-ref:list></pos-param-list>
5
+ </div>
6
+ <div class="binary-right" style="margin-left: 10px; width: 40%;" v-if="isChange">
7
+ <pos-param-add :param_id="param_id" v-ref:add></pos-param-add>
8
+ </div>
9
+ </div>
10
+ </template>
11
+ <script>
12
+
13
+ import PosParamList from './PosParamList'
14
+ import PosParamAdd from './PosParamAdd'
15
+
16
+ export default {
17
+ title: 'POS终端管理',
18
+ components: {
19
+ PosParamList, PosParamAdd
20
+ },
21
+ data() {
22
+ return {
23
+ isChange: false,
24
+ param_id: ''
25
+ }
26
+ },
27
+ methods: {},
28
+ events: {
29
+ 'add'() {
30
+ this.isChange = true
31
+ setTimeout(() => {
32
+ this.$refs.add.initModel()
33
+ }, 100)
34
+ },
35
+ 'close'() {
36
+ this.isChange = false
37
+ },
38
+ 'research'() {
39
+ this.$refs.list.search()
40
+ this.isChange = false
41
+ },
42
+ 'modify'(row) {
43
+ this.isChange = true
44
+ setTimeout(() => {
45
+ this.$refs.add.curorgid = []
46
+ this.$refs.add.edit(row.f_param_id)
47
+ }, 100)
48
+ }
49
+ }
50
+ }
51
+ </script>
@@ -1,55 +1,55 @@
1
- <template>
2
- <div class="loadingdata" :class="{'loaderror': show, 'loadsuccess': !show}">
3
- <!-- <h2 style="margin: 0" v-if="show">{{msg}}</h2> -->
4
- <h2 style="margin: 0" v-if="show">参数加载失败,请检查网络状态和服务状态...</h2>
5
- </div>
6
- </template>
7
-
8
- <script>
9
- export default {
10
- title: '加载参数',
11
- data () {
12
- return {
13
- msg: '',
14
- show: false
15
- }
16
- },
17
- props: {
18
- componentName: {}
19
- },
20
- async ready () {
21
- this.$nextTick(() => {
22
- window.addEventListener('message', messageEvent => {
23
- try {
24
- const data = messageEvent.data
25
- console.log('接收到数据', data)
26
- this.$login = Object.assign(this.$login, data.login)
27
- this.$appdata = Object.assign(this.$appdata, data.appdata)
28
- if (!data.page) {
29
- this.$showMessage('没有功能连接, 请配置!')
30
- return
31
- }
32
- this.$goto(data.page)
33
- } catch (e) {
34
- console.log('登陆异常', e)
35
- }
36
- })
37
- })
38
- }
39
- }
40
- </script>
41
- <style media="screen">
42
- .loadingdata {
43
- position: fixed;
44
- background: #fff;
45
- opacity: 0.6;
46
- top: 0;
47
- width: 100%;
48
- }
49
- .loaderror {
50
- opacity: 1;
51
- }
52
- .loadsuccess {
53
- display: none;
54
- }
55
- </style>
1
+ <template>
2
+ <div class="loadingdata" :class="{'loaderror': show, 'loadsuccess': !show}">
3
+ <!-- <h2 style="margin: 0" v-if="show">{{msg}}</h2> -->
4
+ <h2 style="margin: 0" v-if="show">参数加载失败,请检查网络状态和服务状态...</h2>
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+ export default {
10
+ title: '加载参数',
11
+ data () {
12
+ return {
13
+ msg: '',
14
+ show: false
15
+ }
16
+ },
17
+ props: {
18
+ componentName: {}
19
+ },
20
+ async ready () {
21
+ this.$nextTick(() => {
22
+ window.addEventListener('message', messageEvent => {
23
+ try {
24
+ const data = messageEvent.data
25
+ console.log('接收到数据', data)
26
+ this.$login = Object.assign(this.$login, data.login)
27
+ this.$appdata = Object.assign(this.$appdata, data.appdata)
28
+ if (!data.page) {
29
+ this.$showMessage('没有功能连接, 请配置!')
30
+ return
31
+ }
32
+ this.$goto(data.page)
33
+ } catch (e) {
34
+ console.log('登陆异常', e)
35
+ }
36
+ })
37
+ })
38
+ }
39
+ }
40
+ </script>
41
+ <style media="screen">
42
+ .loadingdata {
43
+ position: fixed;
44
+ background: #fff;
45
+ opacity: 0.6;
46
+ top: 0;
47
+ width: 100%;
48
+ }
49
+ .loaderror {
50
+ opacity: 1;
51
+ }
52
+ .loadsuccess {
53
+ display: none;
54
+ }
55
+ </style>