sale-client 3.5.71 → 3.5.73
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/build/dev-server.js +164 -164
- package/package.json +1 -1
- package/src/components/webMeter/paramSaveNew/ParamSetForm.vue +32 -33
- package/src/components/webMeter/paramSaveNew/RadioBtn.vue +3 -3
- package/src/filiale/guangxi/ChangeMeter.vue +971 -0
- package/src/filiale/guangxi/ChargeManage.vue +240 -0
- package/src/filiale/guangxi/ChargeOper.vue +258 -0
- package/src/filiale/guangxi/sale.js +3 -0
- package/src/filiale/qianneng/sale.js +3 -1
- package/src/filiale/rongchuang/IOTMeterCenter.vue +14 -14
- package/src/main.js +22 -22
package/build/dev-server.js
CHANGED
|
@@ -1,164 +1,164 @@
|
|
|
1
|
-
var express = require('express')
|
|
2
|
-
var webpack = require('webpack')
|
|
3
|
-
var config = require('./webpack.dev.conf')
|
|
4
|
-
var proxyMiddleware = require('http-proxy-middleware')
|
|
5
|
-
// var httpProxy = require('http-proxy')
|
|
6
|
-
|
|
7
|
-
var app = express()
|
|
8
|
-
var compiler = webpack(config)
|
|
9
|
-
// var proxy = httpProxy.createProxyServer()
|
|
10
|
-
|
|
11
|
-
// Define HTTP proxies to your custom API backend
|
|
12
|
-
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
-
var bendi = 'http://121.36.106.17:8400', bendi1 = 'http://121.36.106.17:8400/'
|
|
14
|
-
// 公司测试服务
|
|
15
|
-
var fuwu = 'http://
|
|
16
|
-
// var fuwu = 'http://121.36.106.17:8400/'
|
|
17
|
-
// 铜川正式
|
|
18
|
-
// var fuwu = 'http://61.134.55.234:9999/'
|
|
19
|
-
// 铜川测试
|
|
20
|
-
// var fuwu = 'http://61.134.55.234:9999/'
|
|
21
|
-
// var fuwu = 'http://60.222.250.39:8300/'
|
|
22
|
-
// 韶关
|
|
23
|
-
// var fuwu = 'http://119.146.1.106:8300/'
|
|
24
|
-
// 巩义测试服务
|
|
25
|
-
// var fuwu = 'http://192.168.0.227:8400'
|
|
26
|
-
// 燎原测试服务
|
|
27
|
-
// var fuwu = 'http://121.41.19.238:8400 '
|
|
28
|
-
// var fuwu = 'http://121.41.19.238:9001/'
|
|
29
|
-
|
|
30
|
-
// var fuwu = 'http://139.214.92.34:8301/'
|
|
31
|
-
|
|
32
|
-
var proxyTable = {
|
|
33
|
-
'/rs/logic/saleExport': {
|
|
34
|
-
target: fuwu
|
|
35
|
-
},
|
|
36
|
-
'/rs/logic/saleGetExportProgress': {
|
|
37
|
-
target: fuwu
|
|
38
|
-
},
|
|
39
|
-
'/rs/file': {
|
|
40
|
-
target: fuwu
|
|
41
|
-
},
|
|
42
|
-
'/files': {
|
|
43
|
-
target: fuwu
|
|
44
|
-
},
|
|
45
|
-
// 查找资源服务数据
|
|
46
|
-
'/rs/search': {
|
|
47
|
-
target: fuwu
|
|
48
|
-
},
|
|
49
|
-
// 查找资源服务数据
|
|
50
|
-
'/rs/logic/getLogin': {
|
|
51
|
-
target: fuwu
|
|
52
|
-
},
|
|
53
|
-
// 查找资源服务数据
|
|
54
|
-
'/rs/logic/getInitData': {
|
|
55
|
-
target: fuwu
|
|
56
|
-
},
|
|
57
|
-
'/rs/logic/getSaleInitData': {
|
|
58
|
-
target: fuwu
|
|
59
|
-
},
|
|
60
|
-
'/invoice': {
|
|
61
|
-
target: fuwu
|
|
62
|
-
},
|
|
63
|
-
// 用户登录服务地址
|
|
64
|
-
'/rs/user': {
|
|
65
|
-
target: fuwu
|
|
66
|
-
},
|
|
67
|
-
'/rs/path/getParams': {
|
|
68
|
-
target: fuwu
|
|
69
|
-
},
|
|
70
|
-
'/rs/data': {
|
|
71
|
-
target: fuwu
|
|
72
|
-
},
|
|
73
|
-
'/rs/license': {
|
|
74
|
-
target: fuwu
|
|
75
|
-
},
|
|
76
|
-
'/rs/db': {
|
|
77
|
-
target: fuwu
|
|
78
|
-
},
|
|
79
|
-
'/excel': {
|
|
80
|
-
target: fuwu
|
|
81
|
-
},
|
|
82
|
-
'/rs/config': {
|
|
83
|
-
target: fuwu
|
|
84
|
-
},
|
|
85
|
-
'/rs/sql/getLicenseById': {
|
|
86
|
-
target: fuwu
|
|
87
|
-
},
|
|
88
|
-
'/rs/sql/manage_getarealist': {
|
|
89
|
-
target: fuwu
|
|
90
|
-
},
|
|
91
|
-
'/rs/sql/manage_getstreetlist': {
|
|
92
|
-
target: fuwu
|
|
93
|
-
},
|
|
94
|
-
'/rs/report': {
|
|
95
|
-
target: 'http://
|
|
96
|
-
},
|
|
97
|
-
'/rs/vue': {
|
|
98
|
-
target: fuwu
|
|
99
|
-
},
|
|
100
|
-
'/webmeter': {
|
|
101
|
-
target: 'http://
|
|
102
|
-
},
|
|
103
|
-
'/rs': {
|
|
104
|
-
// target: 'http://192.168.30.63:8081/'
|
|
105
|
-
// target: 'http://121.36.106.17:8400/'
|
|
106
|
-
target: fuwu
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
111
|
-
publicPath: config.output.publicPath,
|
|
112
|
-
stats: {
|
|
113
|
-
colors: true,
|
|
114
|
-
chunks: false
|
|
115
|
-
}
|
|
116
|
-
})
|
|
117
|
-
|
|
118
|
-
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
119
|
-
// force page reload when html-webpack-plugin template changes
|
|
120
|
-
compiler.plugin('compilation', function (compilation) {
|
|
121
|
-
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
122
|
-
hotMiddleware.publish({action: 'reload'})
|
|
123
|
-
cb()
|
|
124
|
-
})
|
|
125
|
-
})
|
|
126
|
-
|
|
127
|
-
// proxy api requests
|
|
128
|
-
Object.keys(proxyTable).forEach(function (context) {
|
|
129
|
-
var options = proxyTable[context]
|
|
130
|
-
if (typeof options === 'string') {
|
|
131
|
-
options = {target: options}
|
|
132
|
-
}
|
|
133
|
-
app.use(proxyMiddleware(context, options))
|
|
134
|
-
})
|
|
135
|
-
|
|
136
|
-
// handle fallback for HTML5 history API
|
|
137
|
-
app.use(require('connect-history-api-fallback')())
|
|
138
|
-
// app.use(function (req, res, next) {
|
|
139
|
-
// res.header('Access-Control-Allow-Origin', '*')
|
|
140
|
-
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
141
|
-
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
142
|
-
// res.header('X-Powered-By', '3,2,1')
|
|
143
|
-
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
144
|
-
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
145
|
-
// next()
|
|
146
|
-
// })
|
|
147
|
-
|
|
148
|
-
// serve webpack bundle output
|
|
149
|
-
app.use(devMiddleware)
|
|
150
|
-
|
|
151
|
-
// enable hot-reload and state-preserving
|
|
152
|
-
// compilation error display
|
|
153
|
-
app.use(hotMiddleware)
|
|
154
|
-
|
|
155
|
-
// serve pure static assets
|
|
156
|
-
app.use('/static', express.static('./static'))
|
|
157
|
-
|
|
158
|
-
module.exports = app.listen(8085, function (err) {
|
|
159
|
-
if (err) {
|
|
160
|
-
console.log(err)
|
|
161
|
-
return
|
|
162
|
-
}
|
|
163
|
-
console.log('Listening at http://localhost:8089')
|
|
164
|
-
})
|
|
1
|
+
var express = require('express')
|
|
2
|
+
var webpack = require('webpack')
|
|
3
|
+
var config = require('./webpack.dev.conf')
|
|
4
|
+
var proxyMiddleware = require('http-proxy-middleware')
|
|
5
|
+
// var httpProxy = require('http-proxy')
|
|
6
|
+
|
|
7
|
+
var app = express()
|
|
8
|
+
var compiler = webpack(config)
|
|
9
|
+
// var proxy = httpProxy.createProxyServer()
|
|
10
|
+
|
|
11
|
+
// Define HTTP proxies to your custom API backend
|
|
12
|
+
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
+
var bendi = 'http://121.36.106.17:8400', bendi1 = 'http://121.36.106.17:8400/'
|
|
14
|
+
// 公司测试服务
|
|
15
|
+
var fuwu = 'http://121.36.106.17:8400'
|
|
16
|
+
// var fuwu = 'http://121.36.106.17:8400/'
|
|
17
|
+
// 铜川正式
|
|
18
|
+
// var fuwu = 'http://61.134.55.234:9999/'
|
|
19
|
+
// 铜川测试
|
|
20
|
+
// var fuwu = 'http://61.134.55.234:9999/'
|
|
21
|
+
// var fuwu = 'http://60.222.250.39:8300/'
|
|
22
|
+
// 韶关
|
|
23
|
+
// var fuwu = 'http://119.146.1.106:8300/'
|
|
24
|
+
// 巩义测试服务
|
|
25
|
+
// var fuwu = 'http://192.168.0.227:8400'
|
|
26
|
+
// 燎原测试服务
|
|
27
|
+
// var fuwu = 'http://121.41.19.238:8400 '
|
|
28
|
+
// var fuwu = 'http://121.41.19.238:9001/'
|
|
29
|
+
|
|
30
|
+
// var fuwu = 'http://139.214.92.34:8301/'
|
|
31
|
+
|
|
32
|
+
var proxyTable = {
|
|
33
|
+
'/rs/logic/saleExport': {
|
|
34
|
+
target: fuwu
|
|
35
|
+
},
|
|
36
|
+
'/rs/logic/saleGetExportProgress': {
|
|
37
|
+
target: fuwu
|
|
38
|
+
},
|
|
39
|
+
'/rs/file': {
|
|
40
|
+
target: fuwu
|
|
41
|
+
},
|
|
42
|
+
'/files': {
|
|
43
|
+
target: fuwu
|
|
44
|
+
},
|
|
45
|
+
// 查找资源服务数据
|
|
46
|
+
'/rs/search': {
|
|
47
|
+
target: fuwu
|
|
48
|
+
},
|
|
49
|
+
// 查找资源服务数据
|
|
50
|
+
'/rs/logic/getLogin': {
|
|
51
|
+
target: fuwu
|
|
52
|
+
},
|
|
53
|
+
// 查找资源服务数据
|
|
54
|
+
'/rs/logic/getInitData': {
|
|
55
|
+
target: fuwu
|
|
56
|
+
},
|
|
57
|
+
'/rs/logic/getSaleInitData': {
|
|
58
|
+
target: fuwu
|
|
59
|
+
},
|
|
60
|
+
'/invoice': {
|
|
61
|
+
target: fuwu
|
|
62
|
+
},
|
|
63
|
+
// 用户登录服务地址
|
|
64
|
+
'/rs/user': {
|
|
65
|
+
target: fuwu
|
|
66
|
+
},
|
|
67
|
+
'/rs/path/getParams': {
|
|
68
|
+
target: fuwu
|
|
69
|
+
},
|
|
70
|
+
'/rs/data': {
|
|
71
|
+
target: fuwu
|
|
72
|
+
},
|
|
73
|
+
'/rs/license': {
|
|
74
|
+
target: fuwu
|
|
75
|
+
},
|
|
76
|
+
'/rs/db': {
|
|
77
|
+
target: fuwu
|
|
78
|
+
},
|
|
79
|
+
'/excel': {
|
|
80
|
+
target: fuwu
|
|
81
|
+
},
|
|
82
|
+
'/rs/config': {
|
|
83
|
+
target: fuwu
|
|
84
|
+
},
|
|
85
|
+
'/rs/sql/getLicenseById': {
|
|
86
|
+
target: fuwu
|
|
87
|
+
},
|
|
88
|
+
'/rs/sql/manage_getarealist': {
|
|
89
|
+
target: fuwu
|
|
90
|
+
},
|
|
91
|
+
'/rs/sql/manage_getstreetlist': {
|
|
92
|
+
target: fuwu
|
|
93
|
+
},
|
|
94
|
+
'/rs/report': {
|
|
95
|
+
target: 'http://121.36.106.17:8400/'
|
|
96
|
+
},
|
|
97
|
+
'/rs/vue': {
|
|
98
|
+
target: fuwu
|
|
99
|
+
},
|
|
100
|
+
'/webmeter': {
|
|
101
|
+
target: 'http://192.168.50.4:8450'
|
|
102
|
+
},
|
|
103
|
+
'/rs': {
|
|
104
|
+
// target: 'http://192.168.30.63:8081/'
|
|
105
|
+
// target: 'http://121.36.106.17:8400/'
|
|
106
|
+
target: fuwu
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
111
|
+
publicPath: config.output.publicPath,
|
|
112
|
+
stats: {
|
|
113
|
+
colors: true,
|
|
114
|
+
chunks: false
|
|
115
|
+
}
|
|
116
|
+
})
|
|
117
|
+
|
|
118
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
119
|
+
// force page reload when html-webpack-plugin template changes
|
|
120
|
+
compiler.plugin('compilation', function (compilation) {
|
|
121
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
122
|
+
hotMiddleware.publish({action: 'reload'})
|
|
123
|
+
cb()
|
|
124
|
+
})
|
|
125
|
+
})
|
|
126
|
+
|
|
127
|
+
// proxy api requests
|
|
128
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
129
|
+
var options = proxyTable[context]
|
|
130
|
+
if (typeof options === 'string') {
|
|
131
|
+
options = {target: options}
|
|
132
|
+
}
|
|
133
|
+
app.use(proxyMiddleware(context, options))
|
|
134
|
+
})
|
|
135
|
+
|
|
136
|
+
// handle fallback for HTML5 history API
|
|
137
|
+
app.use(require('connect-history-api-fallback')())
|
|
138
|
+
// app.use(function (req, res, next) {
|
|
139
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
140
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
141
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
142
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
143
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
144
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
145
|
+
// next()
|
|
146
|
+
// })
|
|
147
|
+
|
|
148
|
+
// serve webpack bundle output
|
|
149
|
+
app.use(devMiddleware)
|
|
150
|
+
|
|
151
|
+
// enable hot-reload and state-preserving
|
|
152
|
+
// compilation error display
|
|
153
|
+
app.use(hotMiddleware)
|
|
154
|
+
|
|
155
|
+
// serve pure static assets
|
|
156
|
+
app.use('/static', express.static('./static'))
|
|
157
|
+
|
|
158
|
+
module.exports = app.listen(8085, function (err) {
|
|
159
|
+
if (err) {
|
|
160
|
+
console.log(err)
|
|
161
|
+
return
|
|
162
|
+
}
|
|
163
|
+
console.log('Listening at http://localhost:8089')
|
|
164
|
+
})
|
package/package.json
CHANGED
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
<!-- <label class="font_normal_body"-->
|
|
33
33
|
<!-- style="text-align:left">{{ param.default_value ? `当前默认值为:${param.default_value};` : '当前未设置默认值' }}</label>-->
|
|
34
34
|
<!-- </div>-->
|
|
35
|
-
<div class="col-sm-8" v-if="
|
|
35
|
+
<div class="col-sm-8" v-if="['设置特殊故障是否关阀','设置表功能开关'].includes(paramtype)">
|
|
36
36
|
<radio-btn v-model="row[param.title]" :value.sync="row[param.title]"></radio-btn>
|
|
37
37
|
<!-- <label>启用<input type="radio" v-model="param.isenbale" @click="reMeterinfo(index,param_index,data.params)" :disabled="!param.default_value" value="启用"/></label>-->
|
|
38
38
|
<!-- <label>保持不变<input type="radio" v-model="param.isenbale" @click="reMeterinfo(index,param_index,data.params)" value="保持不变"/></label>-->
|
|
39
39
|
</div>
|
|
40
|
-
<template v-if="
|
|
40
|
+
<template v-if="!['设置特殊故障是否关阀','设置表功能开关'].includes(paramtype)">
|
|
41
41
|
<div class="col-sm-8" v-if="param.type!=='option'">
|
|
42
42
|
<input :type="param.type" v-model="row[param.title]"
|
|
43
|
-
style="width:70%"
|
|
43
|
+
style="width:70%" :value.sync="row[param.title]"
|
|
44
44
|
placeholder="" class="input_search">
|
|
45
45
|
</div>
|
|
46
46
|
<div class="col-sm-8" v-if="param.type==='option'">
|
|
@@ -187,7 +187,7 @@ export default {
|
|
|
187
187
|
title: '参数设置',
|
|
188
188
|
props: ['user', 'checked1', 'gasbrandid', 'condition'],
|
|
189
189
|
components: {RadioBtn},
|
|
190
|
-
data
|
|
190
|
+
data() {
|
|
191
191
|
return {
|
|
192
192
|
newmeterinfo: [{}],
|
|
193
193
|
row: {},
|
|
@@ -199,7 +199,7 @@ export default {
|
|
|
199
199
|
isenbale: false
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
|
-
ready
|
|
202
|
+
ready() {
|
|
203
203
|
|
|
204
204
|
},
|
|
205
205
|
watch: {
|
|
@@ -209,12 +209,12 @@ export default {
|
|
|
209
209
|
},
|
|
210
210
|
deep: true
|
|
211
211
|
},
|
|
212
|
-
'gasbrandid'
|
|
212
|
+
'gasbrandid'(val) {
|
|
213
213
|
if (val[0]) {
|
|
214
214
|
this.refreshParam(val[0])
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
|
-
'paramtype'
|
|
217
|
+
'paramtype'(val) {
|
|
218
218
|
this.row = {}
|
|
219
219
|
if (val) {
|
|
220
220
|
// 循环给row赋值 row存储当前页面的值 虽然我不知道为什么这么设计 但是目前只能继续用了
|
|
@@ -248,11 +248,11 @@ export default {
|
|
|
248
248
|
}
|
|
249
249
|
},
|
|
250
250
|
methods: {
|
|
251
|
-
close
|
|
251
|
+
close() {
|
|
252
252
|
this.row = {}
|
|
253
253
|
this.$dispatch('close')
|
|
254
254
|
},
|
|
255
|
-
async setParamDefault
|
|
255
|
+
async setParamDefault() {
|
|
256
256
|
let params = []
|
|
257
257
|
for (let i = 0; i < this.newmeterinfo.length; i++) {
|
|
258
258
|
for (let j = 0; j < this.newmeterinfo[i].params.length; j++) {
|
|
@@ -266,14 +266,12 @@ export default {
|
|
|
266
266
|
data.param_value = this.row[key] ? (this.row[key].code ? this.row[key].code : this.row[key]) : null
|
|
267
267
|
data.param_content = this.row[key] ? (this.row[key].content ? this.row[key].content : this.row[key]) : null
|
|
268
268
|
data.param_lname = this.newmeterinfo[i].params[j].title
|
|
269
|
-
if (
|
|
270
|
-
if (this.row[key].length ===
|
|
269
|
+
if (['设置特殊故障是否关阀', '设置表功能开关'].includes(this.paramtype)) {
|
|
270
|
+
if (this.row[key].length === 1 && this.row[key][0] === '启用') {
|
|
271
271
|
data.param_value = data.param_content = '1'
|
|
272
|
-
|
|
273
|
-
if (this.row[key].length === 0) {
|
|
272
|
+
params.push(data)
|
|
273
|
+
} else if (this.row[key].length === 0) {
|
|
274
274
|
data.param_value = data.param_content = '0'
|
|
275
|
-
}
|
|
276
|
-
if (!(this.row[key].length === 1 && this.row[key][0] === '保持不变')) {
|
|
277
275
|
params.push(data)
|
|
278
276
|
}
|
|
279
277
|
} else if (this.row[key]) {
|
|
@@ -301,14 +299,16 @@ export default {
|
|
|
301
299
|
f_gasbrand_id: this.gasbrandid[0]
|
|
302
300
|
}
|
|
303
301
|
console.log(param)
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
302
|
+
if (params.length > 0) {
|
|
303
|
+
await this.$resetpost('/rs/logic/alteration_batch', {data: param}, {
|
|
304
|
+
rejectMsg: '批量保存失败',
|
|
305
|
+
resolveMsg: '保存成功'
|
|
306
|
+
})
|
|
307
|
+
}
|
|
308
308
|
this.row = null
|
|
309
309
|
this.$dispatch('clear')
|
|
310
310
|
},
|
|
311
|
-
async setParam
|
|
311
|
+
async setParam() {
|
|
312
312
|
let user = []
|
|
313
313
|
let filesid = ''
|
|
314
314
|
this.user.forEach((item) => {
|
|
@@ -332,15 +332,12 @@ export default {
|
|
|
332
332
|
data.param_value = this.row[key] ? (this.row[key].code ? this.row[key].code : this.row[key]) : null
|
|
333
333
|
data.param_content = this.row[key] ? (this.row[key].content ? this.row[key].content : this.row[key]) : null
|
|
334
334
|
data.param_lname = this.newmeterinfo[i].params[j].title
|
|
335
|
-
if (
|
|
336
|
-
|
|
337
|
-
if (this.row[key].length === 2 || (this.row[key].length === 1 && this.row[key][0] === '启用')) {
|
|
335
|
+
if (['设置特殊故障是否关阀', '设置表功能开关'].includes(this.paramtype)) {
|
|
336
|
+
if (this.row[key].length === 1 && this.row[key][0] === '启用') {
|
|
338
337
|
data.param_value = data.param_content = '1'
|
|
339
|
-
|
|
340
|
-
if (this.row[key].length === 0) {
|
|
338
|
+
params.push(data)
|
|
339
|
+
} else if (this.row[key].length === 0) {
|
|
341
340
|
data.param_value = data.param_content = '0'
|
|
342
|
-
}
|
|
343
|
-
if (!(this.row[key].length === 1 && this.row[key][0] === '保持不变')) {
|
|
344
341
|
params.push(data)
|
|
345
342
|
}
|
|
346
343
|
} else if (this.row[key]) {
|
|
@@ -369,14 +366,16 @@ export default {
|
|
|
369
366
|
f_gasbrand_id: this.gasbrandid[0]
|
|
370
367
|
}
|
|
371
368
|
console.log(param)
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
369
|
+
if (params.length > 0) {
|
|
370
|
+
await this.$resetpost('/rs/logic/alteration_batch', {data: param}, {
|
|
371
|
+
rejectMsg: '批量保存失败',
|
|
372
|
+
resolveMsg: '保存成功'
|
|
373
|
+
})
|
|
374
|
+
}
|
|
376
375
|
this.row = null
|
|
377
376
|
this.$dispatch('clear')
|
|
378
377
|
},
|
|
379
|
-
async refreshParam
|
|
378
|
+
async refreshParam(val) {
|
|
380
379
|
this.paramtypes = []
|
|
381
380
|
let temp = {
|
|
382
381
|
tablename: 't_gasbrand',
|
|
@@ -420,7 +419,7 @@ export default {
|
|
|
420
419
|
}
|
|
421
420
|
this.$dispatch('showparam', true)
|
|
422
421
|
},
|
|
423
|
-
async getBrandParamsHistory
|
|
422
|
+
async getBrandParamsHistory() {
|
|
424
423
|
let http = new HttpResetClass()
|
|
425
424
|
let res = await http.load('POST', 'rs/sql/getBrandParamHistory', {
|
|
426
425
|
data: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<label>启用<input type="checkbox" v-model="value" @click="onChange('启用')" value="启用"/></label>
|
|
3
|
-
<label>保持不变<input type="checkbox" v-model="value" @click="onChange('保持不变')"
|
|
2
|
+
<label>启用<input type="checkbox" v-model="value" @click="onChange('启用')" :disabled="value.includes('保持不变')" value="启用"/></label>
|
|
3
|
+
<label>保持不变<input type="checkbox" v-model="value" @click="onChange('保持不变')" :disabled="value.includes('启用')" value="保持不变"/></label>
|
|
4
4
|
</template>
|
|
5
5
|
|
|
6
6
|
<script>
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
props: {
|
|
11
11
|
value: {
|
|
12
12
|
type: Array,
|
|
13
|
-
default: []
|
|
13
|
+
default: ['保持不变']
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
data () {
|