fix: 优化场景联动-执行动作-选择产品;修复用户中心无法解绑

This commit is contained in:
xieyonghong 2023-04-03 17:00:13 +08:00
parent dd163c5611
commit c430478319
5 changed files with 19 additions and 3 deletions

View File

@ -1,4 +1,5 @@
import server from '@/utils/request'
import { BASE_API_PATH } from '@/utils/variable'
export const getSsoBinds_api = (): any =>server.get(`/application/sso/me/bindings`)

View File

@ -203,7 +203,7 @@ request.interceptors.response.use(response => {
}, errorHandler)
export default {
request: axios,
request,
post,
get,
patch,

View File

@ -258,6 +258,10 @@ const onSelectorChange = (val: string) => {
modelRef.selector = val;
};
/**
* 切换设备
* @param _detail
*/
const onDeviceChange = (_detail: any) => {
if (_detail) {
if (_detail.id) {
@ -269,10 +273,16 @@ const onDeviceChange = (_detail: any) => {
modelRef.deviceId = '';
modelRef.selectorValues = [] as any;
}
modelRef.upperKey = ''
emits('save', unref(modelRef), { name: _detail.name });
}
};
/**
* 变量选择
* @param val
* @param options
*/
const onRelationChange = (val: any, options: any) => {
modelRef.deviceId = 'deviceId';
modelRef.source = 'upper';
@ -281,6 +291,11 @@ const onRelationChange = (val: any, options: any) => {
emits('save', unref(modelRef), { relationName: options.label });
};
/**
*
* @param val
* @param arr
*/
const onTagChange = (val: any[], arr: any[]) => {
if (val) {
modelRef.deviceId = 'deviceId';

View File

@ -49,7 +49,7 @@
>
<template #img>
<slot name="img">
<img :src="getImage('/apply.png')" />
<img :src="slotProps.sso.configuration.oauth2.logoUrl || getImage('/apply.png')" />
</slot>
</template>
<template #content>

View File

@ -90,7 +90,7 @@ export default defineConfig(({ mode}) => {
proxy: {
[env.VITE_APP_BASE_API]: {
// target: 'http://192.168.33.22:8800',
// target: 'http://192.168.32.226:8844',
// target: 'http://192.168.32.244:8881',
// target: 'http://120.77.179.54:8844', // 120测试
target: 'http://192.168.33.46:8844', // 本地开发环境