|
@@ -130,23 +130,23 @@ let schema = reactive<FormSchema[]>([
|
130
|
130
|
},
|
131
|
131
|
formItemProps: {}
|
132
|
132
|
},
|
133
|
|
- {
|
134
|
|
- field: 'authorizationCode',
|
135
|
|
- label: '授权码',
|
136
|
|
- component: 'Input',
|
137
|
|
- colProps: {
|
138
|
|
- span: 24
|
139
|
|
- },
|
140
|
|
- componentProps: {
|
141
|
|
- style: {
|
142
|
|
- width: '100%'
|
143
|
|
- },
|
144
|
|
- placeholder: '请输入授权码'
|
145
|
|
- },
|
146
|
|
- formItemProps: {
|
147
|
|
- rules: [required()]
|
148
|
|
- }
|
149
|
|
- },
|
|
133
|
+ // {
|
|
134
|
+ // field: 'authorizationCode',
|
|
135
|
+ // label: '授权码',
|
|
136
|
+ // component: 'Input',
|
|
137
|
+ // colProps: {
|
|
138
|
+ // span: 24
|
|
139
|
+ // },
|
|
140
|
+ // componentProps: {
|
|
141
|
+ // style: {
|
|
142
|
+ // width: '100%'
|
|
143
|
+ // },
|
|
144
|
+ // placeholder: '请输入授权码'
|
|
145
|
+ // },
|
|
146
|
+ // formItemProps: {
|
|
147
|
+ // rules: [required()]
|
|
148
|
+ // }
|
|
149
|
+ // },
|
150
|
150
|
{
|
151
|
151
|
field: 'hasManage',
|
152
|
152
|
label: '是否进入后台',
|
|
@@ -213,7 +213,7 @@ const signIn = async () => {
|
213
|
213
|
}
|
214
|
214
|
|
215
|
215
|
nweformData.userCode = encryptedData(res2.data, formData.userCode)
|
216
|
|
- nweformData.authorizationCode = encryptedData(res2.data, formData.authorizationCode)
|
|
216
|
+ // nweformData.authorizationCode = encryptedData(res2.data, formData.authorizationCode)
|
217
|
217
|
let res = await saveUser(nweformData)
|
218
|
218
|
if (res) {
|
219
|
219
|
dialogVisible.value = false
|
|
@@ -360,23 +360,23 @@ const editUser = async (data) => {
|
360
|
360
|
},
|
361
|
361
|
formItemProps: {}
|
362
|
362
|
},
|
363
|
|
- {
|
364
|
|
- field: 'authorizationCode',
|
365
|
|
- label: '授权码',
|
366
|
|
- component: 'Input',
|
367
|
|
- colProps: {
|
368
|
|
- span: 24
|
369
|
|
- },
|
370
|
|
- componentProps: {
|
371
|
|
- style: {
|
372
|
|
- width: '100%'
|
373
|
|
- },
|
374
|
|
- placeholder: '请输入授权码'
|
375
|
|
- },
|
376
|
|
- formItemProps: {
|
377
|
|
- rules: [required()]
|
378
|
|
- }
|
379
|
|
- },
|
|
363
|
+ // {
|
|
364
|
+ // field: 'authorizationCode',
|
|
365
|
+ // label: '授权码',
|
|
366
|
+ // component: 'Input',
|
|
367
|
+ // colProps: {
|
|
368
|
+ // span: 24
|
|
369
|
+ // },
|
|
370
|
+ // componentProps: {
|
|
371
|
+ // style: {
|
|
372
|
+ // width: '100%'
|
|
373
|
+ // },
|
|
374
|
+ // placeholder: '请输入授权码'
|
|
375
|
+ // },
|
|
376
|
+ // formItemProps: {
|
|
377
|
+ // rules: [required()]
|
|
378
|
+ // }
|
|
379
|
+ // },
|
380
|
380
|
{
|
381
|
381
|
field: 'hasManage',
|
382
|
382
|
label: '是否进入后台',
|
|
@@ -431,7 +431,7 @@ const editUser = async (data) => {
|
431
|
431
|
|
432
|
432
|
let res = await getUserDetail(arr)
|
433
|
433
|
res.data.userCode = decrypt(res.data.userCode, key2)
|
434
|
|
- res.data.authorizationCode = decrypt(res.data.authorizationCode, key2)
|
|
434
|
+ // res.data.authorizationCode = decrypt(res.data.authorizationCode, key2)
|
435
|
435
|
if (res) {
|
436
|
436
|
dialogVisible.value = true
|
437
|
437
|
const formRef = await getElFormExpose()
|
|
@@ -441,7 +441,7 @@ const editUser = async (data) => {
|
441
|
441
|
formData.userCode = res.data.userCode
|
442
|
442
|
formData.displayName = res.data.displayName
|
443
|
443
|
formData.hasManage = res.data.hasManage
|
444
|
|
- formData.authorizationCode = res.data.authorizationCode
|
|
444
|
+ // formData.authorizationCode = res.data.authorizationCode
|
445
|
445
|
formData.roleIds = res.data.roleInfoList[0].roleName
|
446
|
446
|
formData.userId = res.data.userId
|
447
|
447
|
}
|
|
@@ -562,23 +562,23 @@ const tianjia = async () => {
|
562
|
562
|
rules: [required()]
|
563
|
563
|
}
|
564
|
564
|
},
|
565
|
|
- {
|
566
|
|
- field: 'authorizationCode',
|
567
|
|
- label: '授权码',
|
568
|
|
- component: 'Input',
|
569
|
|
- colProps: {
|
570
|
|
- span: 24
|
571
|
|
- },
|
572
|
|
- componentProps: {
|
573
|
|
- style: {
|
574
|
|
- width: '100%'
|
575
|
|
- },
|
576
|
|
- placeholder: '请输入授权码'
|
577
|
|
- },
|
578
|
|
- formItemProps: {
|
579
|
|
- rules: [required()]
|
580
|
|
- }
|
581
|
|
- },
|
|
565
|
+ // {
|
|
566
|
+ // field: 'authorizationCode',
|
|
567
|
+ // label: '授权码',
|
|
568
|
+ // component: 'Input',
|
|
569
|
+ // colProps: {
|
|
570
|
+ // span: 24
|
|
571
|
+ // },
|
|
572
|
+ // componentProps: {
|
|
573
|
+ // style: {
|
|
574
|
+ // width: '100%'
|
|
575
|
+ // },
|
|
576
|
+ // placeholder: '请输入授权码'
|
|
577
|
+ // },
|
|
578
|
+ // formItemProps: {
|
|
579
|
+ // rules: [required()]
|
|
580
|
+ // }
|
|
581
|
+ // },
|
582
|
582
|
{
|
583
|
583
|
field: 'hasManage',
|
584
|
584
|
label: '是否进入后台',
|
|
@@ -664,7 +664,7 @@ const tianjia = async () => {
|
664
|
664
|
/>
|
665
|
665
|
</ContentWrap>
|
666
|
666
|
|
667
|
|
- <Dialog v-model="dialogVisible" maxHeight="380px" width="35rem" :title="isedit">
|
|
667
|
+ <Dialog v-model="dialogVisible" maxHeight="250px" width="35rem" :title="isedit">
|
668
|
668
|
<Form label-position="left" :rules="rules" :schema="schema" @register="formRegister" />
|
669
|
669
|
|
670
|
670
|
<template #footer>
|