File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ export default {
252
252
dictLabel: undefined ,
253
253
dictValue: undefined ,
254
254
dictSort: 0 ,
255
- status: ' 0 ' ,
255
+ status: ' 2 ' ,
256
256
remark: undefined
257
257
}
258
258
this .resetForm (' form' )
@@ -288,6 +288,7 @@ export default {
288
288
const dictCode = row .dictCode || this .ids
289
289
getData (dictCode).then (response => {
290
290
this .form = response .data
291
+ this .form .status = String (this .form .status )
291
292
this .open = true
292
293
this .title = ' 修改字典数据'
293
294
this .isEdit = true
@@ -297,6 +298,7 @@ export default {
297
298
submitForm : function () {
298
299
this .$refs [' form' ].validate (valid => {
299
300
if (valid) {
301
+ this .form .status = parseInt (this .form .status )
300
302
if (this .form .dictCode !== undefined ) {
301
303
updateData (this .form ).then (response => {
302
304
if (response .code === 200 ) {
Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ export default {
246
246
id: undefined ,
247
247
dictName: undefined ,
248
248
dictType: undefined ,
249
- status: ' 0 ' ,
249
+ status: ' 2 ' ,
250
250
remark: undefined
251
251
}
252
252
this .resetForm (' form' )
@@ -281,6 +281,7 @@ export default {
281
281
const dictId = row .id || this .ids
282
282
getType (dictId).then (response => {
283
283
this .form = response .data
284
+ this .form .status = String (this .form .status )
284
285
this .open = true
285
286
this .title = ' 修改字典类型'
286
287
this .isEdit = true
@@ -290,6 +291,7 @@ export default {
290
291
submitForm : function () {
291
292
this .$refs [' form' ].validate (valid => {
292
293
if (valid) {
294
+ this .form .status = parseInt (this .form .status )
293
295
if (this .form .id !== undefined ) {
294
296
updateType (this .form ).then (response => {
295
297
if (response .code === 200 ) {
You can’t perform that action at this time.
0 commit comments