Browse Source

授权管理新增字段

master
xuhuajiao 1 week ago
parent
commit
1be7457d77
  1. 24
      src/views/system/authorizeManage/index.vue

24
src/views/system/authorizeManage/index.vue

@ -72,6 +72,11 @@
<el-option v-for="item in timeOptions" :key="item.id" :label="item.name" :value="item.id" /> <el-option v-for="item in timeOptions" :key="item.id" :label="item.name" :value="item.id" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="业务系统" prop="systemCode">
<el-select v-model="form.systemCode" placeholder="请选择" style="width: 580px;">
<el-option v-for="item in systemOptions" :key="item.dictionaryCode" :label="item.dictionaryName" :value="item.dictionaryCode" />
</el-select>
</el-form-item>
<!-- <el-form-item label="所属全宗" prop="fondsId"> <!-- <el-form-item label="所属全宗" prop="fondsId">
<el-select v-model="form.fondsId" placeholder="请选择" style="width: 580px;" @change="changeFondsValue($event)"> <el-select v-model="form.fondsId" placeholder="请选择" style="width: 580px;" @change="changeFondsValue($event)">
<el-option <el-option
@ -128,6 +133,7 @@
</template> </template>
<script> <script>
import { FetchDictionaryTree } from '@/api/system/dict'
import { FetchFondsAll } from '@/api/system/fonds' import { FetchFondsAll } from '@/api/system/fonds'
import { verifyMaintenance } from '@/api/system/field' import { verifyMaintenance } from '@/api/system/field'
import { encrypt } from '@/utils/rsaEncrypt' import { encrypt } from '@/utils/rsaEncrypt'
@ -138,7 +144,7 @@ import rrOperation from '@crud/RR.operation'
import pagination from '@crud/Pagination' import pagination from '@crud/Pagination'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
// fondsId: null, // fondsId: null,
const defaultForm = { appKey: null, appSecret: null, name: null, tokenDuration: 2, remarks: null }
const defaultForm = { appKey: null, appSecret: null, name: null, tokenDuration: 2, systemCode: null, remarks: null }
export default { export default {
name: 'AuthorizeManage', name: 'AuthorizeManage',
@ -170,6 +176,9 @@ export default {
], ],
tokenDuration: [ tokenDuration: [
{ required: true, message: '请选择', trigger: 'change' } { required: true, message: '请选择', trigger: 'change' }
],
systemCode: [
{ required: true, message: '请选择', trigger: 'change' }
] ]
// fondsId: [ // fondsId: [
// { required: true, message: '', trigger: 'change' } // { required: true, message: '', trigger: 'change' }
@ -182,7 +191,8 @@ export default {
showVerifyDialog: true, showVerifyDialog: true,
viewsDialogVisible: false, viewsDialogVisible: false,
currentRow: null, currentRow: null,
fondsOptions: []
fondsOptions: [],
systemOptions: []
} }
}, },
computed: { computed: {
@ -193,10 +203,20 @@ export default {
}, },
created() { created() {
this.getFondsDatas() this.getFondsDatas()
this.getDictsList()
}, },
mounted() { mounted() {
}, },
methods: { methods: {
getDictsList() {
FetchDictionaryTree().then((res) => {
const filterCodes = ['system_code']
const filteredItems = JSON.parse(JSON.stringify(res)).filter(item => filterCodes.includes(item.dictionaryCode))
this.systemOptions = filteredItems[0].childDictionarys
}).catch(err => {
console.log(err)
})
},
resetQuery() { resetQuery() {
this.crud.query.search = null this.crud.query.search = null
this.crud.toQuery() this.crud.toQuery()

Loading…
Cancel
Save