system-clients 1.6.68 → 1.6.69-foric

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/SystemClient.iml CHANGED
@@ -1,12 +1,12 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module external.linked.project.id="SystemClient" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="1.6.18" type="JAVA_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$">
6
- <excludeFolder url="file://$MODULE_DIR$/.gradle" />
7
- <excludeFolder url="file://$MODULE_DIR$/build" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module external.linked.project.id="SystemClient" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="1.6.5" type="JAVA_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$">
6
+ <excludeFolder url="file://$MODULE_DIR$/.gradle" />
7
+ <excludeFolder url="file://$MODULE_DIR$/build" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
12
  </module>
package/build.gradle CHANGED
@@ -1,4 +1,4 @@
1
- version = '1.6.65'
1
+ version = '1.6.62'
2
2
 
3
3
  task release(type:Exec) {
4
4
  workingDir '.'
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "1.6.68",
3
+ "version": "1.6.69-foric",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
7
+ "doc": "doc",
7
8
  "example": "examples",
8
9
  "test": "test"
9
10
  },
@@ -76,7 +77,7 @@
76
77
  "style": "0.0.3",
77
78
  "style-loader": "^0.20.3",
78
79
  "url-loader": "^0.5.7",
79
- "vue-client": "1.21.32",
80
+ "vue-client": "1.21.23",
80
81
  "vue-hot-reload-api": "^1.2.0",
81
82
  "vue-html-loader": "^1.0.0",
82
83
  "vue-loader": "^8.2.1",
@@ -1,109 +1,109 @@
1
- <template>
2
- <div class="auto select-overspread">
3
- <validator name='v'>
4
- <ul class="nav nav-tabs" >
5
- <li role="presentation" class="active"><a href="#">PC端MAC</a></li>
6
- </ul>
7
- <form class="form-horizontal">
8
- <div class="row">
9
- <div class="col-sm-4 form-group form-input-group">
10
- <label class="control-label">使用人员</label>
11
- <input type="text" class="form-control" v-model="model.f_username" placeholder="使用人员" >
12
- </div>
13
- <div class="col-sm-4 form-group form-input-group">
14
- <label class="control-label">所属地址</label>
15
- <input type="text" class="form-control" v-model="model.f_mac_outlets" placeholder="所属地址" >
16
- </div>
17
- <div class="col-sm-4 form-group form-input-group">
18
- <label class="control-label">mac地址</label>
19
- <input type="text" class="form-control" v-model="model.f_mac_number" placeholder="mac地址" >
20
- </div>
21
- </div>
22
- <div class="row">
23
- <div class="col-sm-4 form-group form-input-group">
24
- <label class=" col-sm-2 control-label">使用公司</label>
25
- <div class="col-sm-2">
26
- <res-select restype='organization'
27
- is-mul="false"
28
- @res-select="getorg"
29
- :initresid="curorgid">
30
- </res-select>
31
- </div>
32
- </div>
33
- </div>
34
- </form>
35
- <div style="text-align:right;height:auto;">
36
- <button class="btn btn-success " @click="confirm()" >确认</button>
37
- <button class="btn btn-default " @click="cancel()" >取消</button>
38
- </div>
39
- </validator>
40
- </div>
41
- </template>
42
- <script>
43
-
44
-
45
- export default {
46
- data () {
47
- return {
48
- model: {
49
- f_username: '',
50
- f_mac_outlets: '',
51
- f_mac_number: '',
52
- f_equipment_type: 'PC',
53
- f_state: '正常'
54
- },
55
- curorgid: this.$login.f.orgid,
56
- f_orgid: ''
57
- }
58
- },
59
- props: ['data'],
60
- watch: {
61
- 'data' (val) {
62
- if (val) {
63
- this.edit(val)
64
- } else {
65
- this.initModel()
66
- }
67
- }
68
- },
69
- ready () {
70
- console.log('mac信息:', this.data)
71
- if (this.data) {
72
- this.edit(this.data)
73
- }
74
- },
75
- methods: {
76
- confirm () {
77
- this.model.f_operator = this.$login.f.name
78
- this.model.f_operatorid = this.$login.f.id
79
- this.model.f_orgid = this.f_orgid
80
- console.log('保存', this.model)
81
- this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
82
- this.$dispatch('refresh')
83
- }).catch((error) => {
84
- this.$dispatch('refresh')
85
- })
86
- },
87
- edit (row) {
88
- console.log('修改,,。。', row)
89
- this.model.f_username = row.f_username
90
- this.model.f_mac_outlets = row.f_mac_outlets
91
- this.model.f_mac_number = row.f_mac_number
92
- this.model.id = row.id
93
- this.f_orgid = row.f_orgid
94
- },
95
- initModel () {
96
- delete this.model.id
97
- this.model.f_username = ''
98
- this.model.f_mac_outlets = ''
99
- this.model.f_mac_number = ''
100
- },
101
- cancel () {
102
- this.$dispatch('close')
103
- },
104
- getorg (val) {
105
- this.f_orgid = val[0]
106
- }
107
- }
108
- }
109
- </script>
1
+ <template>
2
+ <div class="auto select-overspread">
3
+ <validator name='v'>
4
+ <ul class="nav nav-tabs" >
5
+ <li role="presentation" class="active"><a href="#">PC端MAC</a></li>
6
+ </ul>
7
+ <form class="form-horizontal">
8
+ <div class="row">
9
+ <div class="col-sm-4 form-group form-input-group">
10
+ <label class="control-label">使用人员</label>
11
+ <input type="text" class="form-control" v-model="model.f_username" placeholder="使用人员" >
12
+ </div>
13
+ <div class="col-sm-4 form-group form-input-group">
14
+ <label class="control-label">所属地址</label>
15
+ <input type="text" class="form-control" v-model="model.f_mac_outlets" placeholder="所属地址" >
16
+ </div>
17
+ <div class="col-sm-4 form-group form-input-group">
18
+ <label class="control-label">mac地址</label>
19
+ <input type="text" class="form-control" v-model="model.f_mac_number" placeholder="mac地址" >
20
+ </div>
21
+ </div>
22
+ <div class="row">
23
+ <div class="col-sm-4 form-group form-input-group">
24
+ <label class=" col-sm-2 control-label">使用公司</label>
25
+ <div class="col-sm-2">
26
+ <res-select restype='organization'
27
+ is-mul="false"
28
+ @res-select="getorg"
29
+ :initresid="curorgid">
30
+ </res-select>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ </form>
35
+ <div style="text-align:right;height:auto;">
36
+ <button class="btn btn-success " @click="confirm()" >确认</button>
37
+ <button class="btn btn-default " @click="cancel()" >取消</button>
38
+ </div>
39
+ </validator>
40
+ </div>
41
+ </template>
42
+ <script>
43
+
44
+
45
+ export default {
46
+ data () {
47
+ return {
48
+ model: {
49
+ f_username: '',
50
+ f_mac_outlets: '',
51
+ f_mac_number: '',
52
+ f_equipment_type: 'PC',
53
+ f_state: '正常'
54
+ },
55
+ curorgid: this.$login.f.orgid,
56
+ f_orgid: ''
57
+ }
58
+ },
59
+ props: ['data'],
60
+ watch: {
61
+ 'data' (val) {
62
+ if (val) {
63
+ this.edit(val)
64
+ } else {
65
+ this.initModel()
66
+ }
67
+ }
68
+ },
69
+ ready () {
70
+ console.log('mac信息:', this.data)
71
+ if (this.data) {
72
+ this.edit(this.data)
73
+ }
74
+ },
75
+ methods: {
76
+ confirm () {
77
+ this.model.f_operator = this.$login.f.name
78
+ this.model.f_operatorid = this.$login.f.id
79
+ this.model.f_orgid = this.f_orgid
80
+ console.log('保存', this.model)
81
+ this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
82
+ this.$dispatch('refresh')
83
+ }).catch((error) => {
84
+ this.$dispatch('refresh')
85
+ })
86
+ },
87
+ edit (row) {
88
+ console.log('修改,,。。', row)
89
+ this.model.f_username = row.f_username
90
+ this.model.f_mac_outlets = row.f_mac_outlets
91
+ this.model.f_mac_number = row.f_mac_number
92
+ this.model.id = row.id
93
+ this.f_orgid = row.f_orgid
94
+ },
95
+ initModel () {
96
+ delete this.model.id
97
+ this.model.f_username = ''
98
+ this.model.f_mac_outlets = ''
99
+ this.model.f_mac_number = ''
100
+ },
101
+ cancel () {
102
+ this.$dispatch('close')
103
+ },
104
+ getorg (val) {
105
+ this.f_orgid = val[0]
106
+ }
107
+ }
108
+ }
109
+ </script>
@@ -1,107 +1,107 @@
1
- <template>
2
- <div class="flex" style="flex:1; ">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-inline" partial>
6
- <div class="form-group">
7
- <label>使用公司</label>
8
- <res-select restype='organization'
9
- is-mul="false"
10
- @res-select="$parent.$parent.getorg"
11
- :initresid="$parent.$parent.curorgid">
12
- </res-select>
13
- </div>
14
-
15
- <div class="form-group" >
16
- <input type="text" class="form-control" v-model="model.f_username"
17
- condition="f_username like '%{}%'" placeholder="使用人员">
18
- </div>
19
- <div class="form-group" >
20
- <input type="text" class="form-control" v-model="model.f_mac_outlets"
21
- condition="f_mac_outlets like '%{}%'" placeholder="所属地址">
22
- </div>
23
- <div class="form-group" >
24
- <input type="text" class="form-control" v-model="model.f_mac_number"
25
- condition="f_mac_number like '%{}%'" placeholder="MAC地址">
26
- </div>
27
-
28
- <div class="form-group">
29
- <button class="btn btn-success width-80" @click="$parent.$parent.search()" v-el:cx>查询</button>
30
- </div>
31
- <div class="form-group">
32
- <button class="btn btn-success width-80" @click="$parent.$parent.add()" v-el:cx>新增</button>
33
- </div>
34
- </div>
35
- </criteria>
36
- <data-grid :model="model" partial='list' v-ref:grid >
37
- <template partial='head'>
38
- <tr>
39
- <th>序号</th>
40
- <th>使用人员</th>
41
- <th>所属地址</th>
42
- <th>MAC地址</th>
43
- <th>操作</th>
44
- </tr>
45
- </template>
46
- <template partial='body':model="model">
47
- <tr>
48
- <td style="text-align:center">{{$index+1}}</td>
49
- <td style="text-align:center">{{row.f_username}}</td>
50
- <td style="text-align:center">{{row.f_mac_outlets}}</td>
51
- <td style="text-align:center">{{row.f_mac_number}}</td>
52
- <td style="text-align:center">
53
- <button class="btn btn-link" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
54
- </td>
55
- </tr>
56
- </template>
57
- </data-grid>
58
- </criteria-paged>
59
- </div>
60
- </template>
61
-
62
- <script>
63
- import { PagedList } from 'vue-client'
64
-
65
- export default {
66
- title: 'PC',
67
- components: {},
68
- data () {
69
- return {
70
- model: new PagedList('rs/sql/equipmentQuery', 20),
71
- curorgid: [this.$login.f.orgid],
72
- f_orgid: ''
73
- }
74
- },
75
- ready () {
76
- this.search()
77
- },
78
- methods: {
79
- search () {
80
- this.$refs.paged.$refs.cri.search()
81
- },
82
-
83
- selfSearch (args) {
84
- args.condition = `${args.condition} and f_equipment_type = 'PC' and f_state = '正常' and f_orgid like '${this.f_orgid ? this.f_orgid: this.$login.f.orgid}'`
85
- this.model.search(args.condition, this.model)
86
- },
87
- add () {
88
- this.$dispatch('add')
89
- },
90
- del (row) {
91
- console.log('要删除了', row)
92
- row.f_state = '已删除'
93
- this.$resetpost('rs/entity/t_equipment', row, {warnMsg: '确定要删除这条信息吗?', resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
94
- this.$dispatch('refresh')
95
- }).catch((error) => {
96
- this.$dispatch('refresh')
97
- })
98
- },
99
- getorg (val) {
100
- this.f_orgid = val[0]
101
- }
102
- },
103
- computed: {
104
-
105
- }
106
- }
107
- </script>
1
+ <template>
2
+ <div class="flex" style="flex:1; ">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div novalidate class="form-inline" partial>
6
+ <div class="form-group">
7
+ <label>使用公司</label>
8
+ <res-select restype='organization'
9
+ is-mul="false"
10
+ @res-select="$parent.$parent.getorg"
11
+ :initresid="$parent.$parent.curorgid">
12
+ </res-select>
13
+ </div>
14
+
15
+ <div class="form-group" >
16
+ <input type="text" class="form-control" v-model="model.f_username"
17
+ condition="f_username like '%{}%'" placeholder="使用人员">
18
+ </div>
19
+ <div class="form-group" >
20
+ <input type="text" class="form-control" v-model="model.f_mac_outlets"
21
+ condition="f_mac_outlets like '%{}%'" placeholder="所属地址">
22
+ </div>
23
+ <div class="form-group" >
24
+ <input type="text" class="form-control" v-model="model.f_mac_number"
25
+ condition="f_mac_number like '%{}%'" placeholder="MAC地址">
26
+ </div>
27
+
28
+ <div class="form-group">
29
+ <button class="btn btn-success width-80" @click="$parent.$parent.search()" v-el:cx>查询</button>
30
+ </div>
31
+ <div class="form-group">
32
+ <button class="btn btn-success width-80" @click="$parent.$parent.add()" v-el:cx>新增</button>
33
+ </div>
34
+ </div>
35
+ </criteria>
36
+ <data-grid :model="model" partial='list' v-ref:grid >
37
+ <template partial='head'>
38
+ <tr>
39
+ <th>序号</th>
40
+ <th>使用人员</th>
41
+ <th>所属地址</th>
42
+ <th>MAC地址</th>
43
+ <th>操作</th>
44
+ </tr>
45
+ </template>
46
+ <template partial='body':model="model">
47
+ <tr>
48
+ <td style="text-align:center">{{$index+1}}</td>
49
+ <td style="text-align:center">{{row.f_username}}</td>
50
+ <td style="text-align:center">{{row.f_mac_outlets}}</td>
51
+ <td style="text-align:center">{{row.f_mac_number}}</td>
52
+ <td style="text-align:center">
53
+ <button class="btn btn-link" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
54
+ </td>
55
+ </tr>
56
+ </template>
57
+ </data-grid>
58
+ </criteria-paged>
59
+ </div>
60
+ </template>
61
+
62
+ <script>
63
+ import { PagedList } from 'vue-client'
64
+
65
+ export default {
66
+ title: 'PC',
67
+ components: {},
68
+ data () {
69
+ return {
70
+ model: new PagedList('rs/sql/equipmentQuery', 20),
71
+ curorgid: [this.$login.f.orgid],
72
+ f_orgid: ''
73
+ }
74
+ },
75
+ ready () {
76
+ this.search()
77
+ },
78
+ methods: {
79
+ search () {
80
+ this.$refs.paged.$refs.cri.search()
81
+ },
82
+
83
+ selfSearch (args) {
84
+ args.condition = `${args.condition} and f_equipment_type = 'PC' and f_state = '正常' and f_orgid like '${this.f_orgid ? this.f_orgid: this.$login.f.orgid}'`
85
+ this.model.search(args.condition, this.model)
86
+ },
87
+ add () {
88
+ this.$dispatch('add')
89
+ },
90
+ del (row) {
91
+ console.log('要删除了', row)
92
+ row.f_state = '已删除'
93
+ this.$resetpost('rs/entity/t_equipment', row, {warnMsg: '确定要删除这条信息吗?', resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
94
+ this.$dispatch('refresh')
95
+ }).catch((error) => {
96
+ this.$dispatch('refresh')
97
+ })
98
+ },
99
+ getorg (val) {
100
+ this.f_orgid = val[0]
101
+ }
102
+ },
103
+ computed: {
104
+
105
+ }
106
+ }
107
+ </script>