system-clients 1.6.67 → 1.6.68-heat
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 +11 -11
- package/package.json +102 -102
- package/src/components/equipment/PcAdd.vue +109 -109
- package/src/components/equipment/PcList.vue +107 -107
- package/src/components/equipment/PosAdd.vue +109 -109
- package/src/components/equipment/PosList.vue +113 -113
- package/src/components/equipment/PosManage.vue +58 -58
- package/src/components/parammanage/ParamManage.vue +43 -43
- package/src/components/parammanage/ParamPage.vue +336 -336
- package/src/components/parammanage/SinglePage.vue +268 -268
- package/src/components/server/Login.vue +568 -568
- package/src/plugins/GetLoginInfoService.js +500 -498
- package/src/system.js +74 -74
- package/.npmignore +0 -9
- package/build/.npmignore +0 -1
- package/src/.npmignore +0 -1
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.
|
|
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/package.json
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "system-clients",
|
|
3
|
-
"version": "1.6.
|
|
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
|
-
"jsencrypt": "
|
|
23
|
-
"less": "^2.7.1",
|
|
24
|
-
"less-loader": "^2.2.3",
|
|
25
|
-
"src": "^1.1.2",
|
|
26
|
-
"vue": "^1.0.17"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"babel-core": "^6.0.0",
|
|
30
|
-
"babel-loader": "^6.0.0",
|
|
31
|
-
"babel-plugin-transform-runtime": "^6.0.0",
|
|
32
|
-
"babel-preset-es2015": "^6.0.0",
|
|
33
|
-
"babel-preset-stage-2": "^6.0.0",
|
|
34
|
-
"chai": "^3.5.0",
|
|
35
|
-
"connect-history-api-fallback": "^1.1.0",
|
|
36
|
-
"cross-env": "^1.0.7",
|
|
37
|
-
"cross-spawn": "^2.1.5",
|
|
38
|
-
"css-loader": "^0.23.0",
|
|
39
|
-
"eslint": "^2.0.0",
|
|
40
|
-
"eslint-config-standard": "^5.1.0",
|
|
41
|
-
"eslint-friendly-formatter": "^1.2.2",
|
|
42
|
-
"eslint-loader": "^1.3.0",
|
|
43
|
-
"eslint-plugin-html": "^1.3.0",
|
|
44
|
-
"eslint-plugin-promise": "^1.0.8",
|
|
45
|
-
"eslint-plugin-standard": "^1.3.2",
|
|
46
|
-
"eslint-plugin-vue": "^0.1.1",
|
|
47
|
-
"eventsource-polyfill": "^0.9.6",
|
|
48
|
-
"express": "^4.13.3",
|
|
49
|
-
"extract-text-webpack-plugin": "^1.0.1",
|
|
50
|
-
"file-loader": "^0.8.4",
|
|
51
|
-
"function-bind": "^1.0.2",
|
|
52
|
-
"html-webpack-plugin": "^2.8.1",
|
|
53
|
-
"http-proxy-middleware": "^0.11.0",
|
|
54
|
-
"inject-loader": "^2.0.1",
|
|
55
|
-
"isparta-loader": "^2.0.0",
|
|
56
|
-
"jasmine-core": "^2.4.1",
|
|
57
|
-
"jquery": "^3.3.1",
|
|
58
|
-
"json-loader": "^0.5.4",
|
|
59
|
-
"karma": "^1.4.1",
|
|
60
|
-
"karma-chrome-launcher": "^2.2.0",
|
|
61
|
-
"karma-coverage": "^1.1.1",
|
|
62
|
-
"karma-mocha": "^1.3.0",
|
|
63
|
-
"karma-sinon-chai": "^1.3.1",
|
|
64
|
-
"karma-sourcemap-loader": "^0.3.7",
|
|
65
|
-
"karma-spec-reporter": "0.0.31",
|
|
66
|
-
"karma-webpack": "^2.0.2",
|
|
67
|
-
"manage-client": "^1.4.20",
|
|
68
|
-
"mkdirp": "^0.5.1",
|
|
69
|
-
"mocha": "^3.2.0",
|
|
70
|
-
"ncp": "^2.0.0",
|
|
71
|
-
"nightwatch": "^0.8.18",
|
|
72
|
-
"rimraf": "^2.5.0",
|
|
73
|
-
"selenium-server": "2.52.0",
|
|
74
|
-
"sinon": "^2.1.0",
|
|
75
|
-
"sinon-chai": "^2.8.0",
|
|
76
|
-
"style": "0.0.3",
|
|
77
|
-
"style-loader": "^0.20.3",
|
|
78
|
-
"url-loader": "^0.5.7",
|
|
79
|
-
"vue-client": "1.21.23",
|
|
80
|
-
"vue-hot-reload-api": "^1.2.0",
|
|
81
|
-
"vue-html-loader": "^1.0.0",
|
|
82
|
-
"vue-loader": "^8.2.1",
|
|
83
|
-
"vue-resource": "^1.5.0",
|
|
84
|
-
"vue-router": "^0.7.13",
|
|
85
|
-
"vue-strap": "^1.0.9",
|
|
86
|
-
"vue-style-loader": "^1.0.0",
|
|
87
|
-
"vue-validator": "^3.0.0-alpha.2",
|
|
88
|
-
"webpack": "^1.12.2",
|
|
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": "1.6.68-heat",
|
|
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
|
+
"jsencrypt": "3.0.0-rc.1",
|
|
23
|
+
"less": "^2.7.1",
|
|
24
|
+
"less-loader": "^2.2.3",
|
|
25
|
+
"src": "^1.1.2",
|
|
26
|
+
"vue": "^1.0.17"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"babel-core": "^6.0.0",
|
|
30
|
+
"babel-loader": "^6.0.0",
|
|
31
|
+
"babel-plugin-transform-runtime": "^6.0.0",
|
|
32
|
+
"babel-preset-es2015": "^6.0.0",
|
|
33
|
+
"babel-preset-stage-2": "^6.0.0",
|
|
34
|
+
"chai": "^3.5.0",
|
|
35
|
+
"connect-history-api-fallback": "^1.1.0",
|
|
36
|
+
"cross-env": "^1.0.7",
|
|
37
|
+
"cross-spawn": "^2.1.5",
|
|
38
|
+
"css-loader": "^0.23.0",
|
|
39
|
+
"eslint": "^2.0.0",
|
|
40
|
+
"eslint-config-standard": "^5.1.0",
|
|
41
|
+
"eslint-friendly-formatter": "^1.2.2",
|
|
42
|
+
"eslint-loader": "^1.3.0",
|
|
43
|
+
"eslint-plugin-html": "^1.3.0",
|
|
44
|
+
"eslint-plugin-promise": "^1.0.8",
|
|
45
|
+
"eslint-plugin-standard": "^1.3.2",
|
|
46
|
+
"eslint-plugin-vue": "^0.1.1",
|
|
47
|
+
"eventsource-polyfill": "^0.9.6",
|
|
48
|
+
"express": "^4.13.3",
|
|
49
|
+
"extract-text-webpack-plugin": "^1.0.1",
|
|
50
|
+
"file-loader": "^0.8.4",
|
|
51
|
+
"function-bind": "^1.0.2",
|
|
52
|
+
"html-webpack-plugin": "^2.8.1",
|
|
53
|
+
"http-proxy-middleware": "^0.11.0",
|
|
54
|
+
"inject-loader": "^2.0.1",
|
|
55
|
+
"isparta-loader": "^2.0.0",
|
|
56
|
+
"jasmine-core": "^2.4.1",
|
|
57
|
+
"jquery": "^3.3.1",
|
|
58
|
+
"json-loader": "^0.5.4",
|
|
59
|
+
"karma": "^1.4.1",
|
|
60
|
+
"karma-chrome-launcher": "^2.2.0",
|
|
61
|
+
"karma-coverage": "^1.1.1",
|
|
62
|
+
"karma-mocha": "^1.3.0",
|
|
63
|
+
"karma-sinon-chai": "^1.3.1",
|
|
64
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
65
|
+
"karma-spec-reporter": "0.0.31",
|
|
66
|
+
"karma-webpack": "^2.0.2",
|
|
67
|
+
"manage-client": "^1.4.20",
|
|
68
|
+
"mkdirp": "^0.5.1",
|
|
69
|
+
"mocha": "^3.2.0",
|
|
70
|
+
"ncp": "^2.0.0",
|
|
71
|
+
"nightwatch": "^0.8.18",
|
|
72
|
+
"rimraf": "^2.5.0",
|
|
73
|
+
"selenium-server": "2.52.0",
|
|
74
|
+
"sinon": "^2.1.0",
|
|
75
|
+
"sinon-chai": "^2.8.0",
|
|
76
|
+
"style": "0.0.3",
|
|
77
|
+
"style-loader": "^0.20.3",
|
|
78
|
+
"url-loader": "^0.5.7",
|
|
79
|
+
"vue-client": "1.21.23",
|
|
80
|
+
"vue-hot-reload-api": "^1.2.0",
|
|
81
|
+
"vue-html-loader": "^1.0.0",
|
|
82
|
+
"vue-loader": "^8.2.1",
|
|
83
|
+
"vue-resource": "^1.5.0",
|
|
84
|
+
"vue-router": "^0.7.13",
|
|
85
|
+
"vue-strap": "^1.0.9",
|
|
86
|
+
"vue-style-loader": "^1.0.0",
|
|
87
|
+
"vue-validator": "^3.0.0-alpha.2",
|
|
88
|
+
"webpack": "^1.12.2",
|
|
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,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>
|