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