|
@@ -11,7 +11,7 @@
|
|
|
</template>
|
|
|
<hc-table
|
|
|
ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading"
|
|
|
- is-check :check-style="{ width: 29 }" :index-style="{ width: 60 }"
|
|
|
+ is-check :check-style="{ width: 29 }" :index-style="{ width: 60 }"
|
|
|
@selection-change="tableCheckChange"
|
|
|
>
|
|
|
<template #action="{ row }">
|
|
@@ -46,11 +46,11 @@
|
|
|
<el-form-item label="授权类型:" prop="authorizedGrantTypes">
|
|
|
<div class="form-item-div">
|
|
|
<el-checkbox-group v-model="formModel.authorizedGrantTypes" size="large">
|
|
|
- <el-checkbox label="refresh_token" />
|
|
|
- <el-checkbox label="password" />
|
|
|
- <el-checkbox label="authorization_code" />
|
|
|
- <el-checkbox label="captcha" />
|
|
|
- <el-checkbox label="social" />
|
|
|
+ <el-checkbox value="refresh_token">refresh_token</el-checkbox>
|
|
|
+ <el-checkbox value="password">password</el-checkbox>
|
|
|
+ <el-checkbox value="authorization_code">authorization_code</el-checkbox>
|
|
|
+ <el-checkbox value="captcha">captcha</el-checkbox>
|
|
|
+ <el-checkbox value="social">social</el-checkbox>
|
|
|
</el-checkbox-group>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
@@ -107,10 +107,6 @@ import { reloadPage } from '~uti/tools'
|
|
|
import { HcDelMsg } from 'hc-vue3-ui'
|
|
|
import mainApi from '~api/system/client'
|
|
|
|
|
|
-defineOptions({
|
|
|
- name: 'Client',
|
|
|
-})
|
|
|
-
|
|
|
//激活
|
|
|
onActivated(() => {
|
|
|
searchForm.value.current = 1
|
|
@@ -172,7 +168,7 @@ const tableCheckChange = (rows) => {
|
|
|
const isDialogShow = ref(false)
|
|
|
const dialogTitle = ref('')
|
|
|
|
|
|
-//菜单表单
|
|
|
+//表单
|
|
|
const formRef = ref(null)
|
|
|
const formModel = ref({})
|
|
|
const formRules = {
|
|
@@ -231,7 +227,7 @@ const addClick = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-//修改菜单
|
|
|
+//修改
|
|
|
const editRowClick = (row) => {
|
|
|
formModel.value = {}
|
|
|
dialogTitle.value = '修改应用'
|
|
@@ -243,7 +239,7 @@ const editRowClick = (row) => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-//删除菜单
|
|
|
+//删除
|
|
|
const delRowClick = async ({ item }, resolve) => {
|
|
|
const { code, msg } = await mainApi.del(item.id)
|
|
|
if (code === 200) {
|
|
@@ -256,11 +252,11 @@ const delRowClick = async ({ item }, resolve) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-//批量删除菜单
|
|
|
+//批量删除
|
|
|
const delClick = () => {
|
|
|
const rows = tableCheckKeys.value
|
|
|
if (rows.length <= 0) {
|
|
|
- window.$message.warning('请选择要删除的菜单')
|
|
|
+ window.$message.warning('请选择要删除的应用')
|
|
|
return false
|
|
|
}
|
|
|
//确认删除
|