src/Hx.IdentityServer/wwwroot/vuejs/client.js

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

window.hxVue = new HxVue({
    data() {
        return {
            tableData: [],
            totalCount: 0,
            queryParam: {
                pageIndex: 1,
                pageSize: 10
            },
            //添加编辑
            isAdd: true,
            form: this.initFrom(),
            grantOptions: [
                { value: 'implicit', label: 'Implicit' },
                { value: 'ImplicitAndClientCredentials', label: 'ImplicitAndClientCredentials' },
                { value: 'authorization_code', label: 'Code' },
                { value: 'CodeAndClientCredentials', label: 'CodeAndClientCredentials' },
                { value: 'hybrid', label: 'Hybrid' },
                { value: 'HybridAndClientCredentials', label: 'HybridAndClientCredentials' },
                { value: 'client_credentials', label: 'ClientCredentials' },
                { value: 'password', label: 'ResourceOwnerPassword' },
                { value: 'ResourceOwnerPasswordAndClientCredentials', label: 'ResourceOwnerPasswordAndClientCredentials' },
                { value: 'DeviceFlow', label: 'DeviceFlow' },
            ],
            rules: {
                clientId: [
                    { required: true, message: '请输入客户端id', trigger: 'blur' },
                ]
            },
        }
    },
    methods: {
        handleDelete(row) {
            var that = this
            that.$confirm('确定删除当前客户端管理?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(() => {
                var url = '/client/delete/' + row.id
                axios.post(url)
                    .then(function (response) {
                        that.$message({
                            type: 'success',
                            message: '删除成功!'
                        });
                        that.getPage()
                    })
                    .catch(function (error) {
                        if (error.data) {
                            that.$message({
                                type: 'error',
                                message: error.data.message
                            });
                        }
                        console.log(error);
                    });
            }).catch(() => {
            });
        },
后面还有 116 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。