diff --git a/package.json b/package.json index dc6cfb3..26e9aa5 100644 --- a/package.json +++ b/package.json @@ -120,4 +120,4 @@ "type": "git", "url": "https://gitee.com/log4j/pig" } -} +} \ No newline at end of file diff --git a/src/api/sys/sysPersonClockConfig.ts b/src/api/sys/sysPersonClockConfig.ts new file mode 100755 index 0000000..92edaf9 --- /dev/null +++ b/src/api/sys/sysPersonClockConfig.ts @@ -0,0 +1,9 @@ +import request from "/@/utils/request"; + +export function change(data?: { userCodeList: string[]; enable: "1" | "0" }) { + return request({ + url: "/admin/sysPersonClockConfig/change", + method: "post", + data, + }); +} diff --git a/src/components/DraggableDeptTree/index.vue b/src/components/DraggableDeptTree/index.vue index 67ae3c8..8157f45 100644 --- a/src/components/DraggableDeptTree/index.vue +++ b/src/components/DraggableDeptTree/index.vue @@ -109,7 +109,7 @@ const props = withDefaults( nodeClickable: true, switchInactiveText: "当前级", switchActiveText: "当前级及子级", - defaultTreeWidth: 20, + defaultTreeWidth: 15, }, ) const emit = defineEmits(["getSelectNode"]) diff --git a/src/components/DraggableDeviceGroup/index.vue b/src/components/DraggableDeviceGroup/index.vue index 2e3cf65..4ff2a47 100644 --- a/src/components/DraggableDeviceGroup/index.vue +++ b/src/components/DraggableDeviceGroup/index.vue @@ -112,7 +112,7 @@ const props = withDefaults( nodeClickable: true, switchInactiveText: "当前级", switchActiveText: "当前级及子级", - defaultTreeWidth: 20, + defaultTreeWidth: 15, }, ) diff --git a/src/components/DraggableDeviceGroupDraggable/index.vue b/src/components/DraggableDeviceGroupDraggable/index.vue index 1e0e059..a376182 100644 --- a/src/components/DraggableDeviceGroupDraggable/index.vue +++ b/src/components/DraggableDeviceGroupDraggable/index.vue @@ -121,7 +121,7 @@ const props = withDefaults( nodeClickable: true, switchInactiveText: "当前级", switchActiveText: "当前级及子级", - defaultTreeWidth: 20, + defaultTreeWidth: 15, windowNum: null }, ) diff --git a/src/components/DraggableOrgTree/index.vue b/src/components/DraggableOrgTree/index.vue index cb4f4f6..e850970 100644 --- a/src/components/DraggableOrgTree/index.vue +++ b/src/components/DraggableOrgTree/index.vue @@ -109,7 +109,7 @@ const props = withDefaults( nodeClickable: true, switchInactiveText: "当前级", switchActiveText: "当前级及子级", - defaultTreeWidth: 20, + defaultTreeWidth: 15, }, ) const emit = defineEmits(["getSelectNode"]) diff --git a/src/components/Select/SelectTreeChannel.vue b/src/components/Select/SelectTreeChannel.vue index d61b83d..1669179 100644 --- a/src/components/Select/SelectTreeChannel.vue +++ b/src/components/Select/SelectTreeChannel.vue @@ -3,9 +3,9 @@ label: 'treeLabel', children: 'deviceChannelList', }" node-key="treeValue" v-model="state.selectId" :placeholder="props.placeholder" :clearable="props.clearable" - :loading="state.loading" :data="state.options" :render-after-expand="false" show-checkbox multiple - style="width: 100%" filterable :filter-node-method="filterNode" default-expand-all - @visible-change="(e: boolean) => e && getOptions()"> + :loading="state.loading" :data="state.options" :render-after-expand="true" show-checkbox multiple + style="width: 100%" filterable :filter-node-method="filterNode" + @visible-change="(e: boolean) => e && getOptions(true)"> \ No newline at end of file diff --git a/src/views/device/deviceCamera/index.vue b/src/views/device/deviceCamera/index.vue index 72b361d..ca178f5 100644 --- a/src/views/device/deviceCamera/index.vue +++ b/src/views/device/deviceCamera/index.vue @@ -3,7 +3,7 @@
+ :defaultTreeWidth="15" :nodeClickable="false">