parent
d2fd316ef5
commit
8d941fd875
|
@ -158,14 +158,14 @@ watch(
|
|||
if (props.type === 'device') {
|
||||
detail(id as string).then((resp) => {
|
||||
loading.value = false
|
||||
instanceStore.setCurrent(resp.result)
|
||||
// instanceStore.setCurrent(resp.result)
|
||||
value.value = resp.result.metadata
|
||||
hideVirtualRule(resp.result.metadata)
|
||||
});
|
||||
} else {
|
||||
productDetail(id as string).then((resp) => {
|
||||
loading.value = false
|
||||
productStore.setCurrent(resp.result)
|
||||
// productStore.setCurrent(resp.result)
|
||||
value.value = resp.result.metadata
|
||||
hideVirtualRule(resp.result.metadata)
|
||||
});
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
max-height="350px"
|
||||
v-model:value="form.data.permissions"
|
||||
:disabled="props.mode === '查看'"
|
||||
:key="form.data.id || ''"
|
||||
:btnId="form.data.id "
|
||||
/>
|
||||
</j-form-item>
|
||||
<j-form-item label="说明" name="describe">
|
||||
|
|
|
@ -50,7 +50,7 @@ import { Form } from 'jetlinks-ui-components';
|
|||
Form.useInjectFormItemContext();
|
||||
|
||||
const props = defineProps<{
|
||||
key: string;
|
||||
btnId: string;
|
||||
value: any[];
|
||||
firstWidth: number;
|
||||
maxHeight: string;
|
||||
|
@ -77,17 +77,17 @@ const permission = reactive({
|
|||
|
||||
init: () => {
|
||||
permission.getList();
|
||||
watch(
|
||||
() => props.key,
|
||||
() => {
|
||||
nextTick(() => {
|
||||
permission.list = permission.makeList(
|
||||
props.value,
|
||||
permission.sourceList,
|
||||
);
|
||||
});
|
||||
},
|
||||
);
|
||||
// watch(
|
||||
// () => props.btnId,
|
||||
// () => {
|
||||
// nextTick(() => {
|
||||
// permission.list = permission.makeList(
|
||||
// props.value,
|
||||
// permission.sourceList,
|
||||
// );
|
||||
// });
|
||||
// },
|
||||
// );
|
||||
},
|
||||
// 获取权限列表
|
||||
getList: () => {
|
||||
|
|
Loading…
Reference in New Issue