Skip to content

Commit

Permalink
fix: creator type
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 25399
  • Loading branch information
JoJohw committed Nov 29, 2024
1 parent 337bc91 commit 7d8e7fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/pages/src/components/MemberSelector.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>
<div class="member-selector-wrapper" :class="{ 'is-focus': isFocus }">
<bk-select
v-model="modelValue"
class="member-selector"
:clearable="clearable"
:collapse-tags="false"
Expand Down Expand Up @@ -55,7 +54,6 @@ const props = defineProps({
default: true,
},
});
const modelValue = defineModel<string[]>('modelValue');
const emit = defineEmits(['changeSelectList', 'scrollChange', 'searchUserList']);
const isFocus = ref(false);
const scrollLoading = ref(false);
Expand Down
9 changes: 4 additions & 5 deletions src/pages/src/views/operations-history/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
:show-on-init="false"
:multiple="false"
:clearable="true"
:model-value="formData.creator"
@change-select-list="changeSelectList"
@search-user-list="fetchRealUsers"
@scroll-change="scrollChange"
Expand Down Expand Up @@ -159,7 +158,7 @@ const formRef = ref();
const isLoading = ref(false);
const tableData = ref([]);
const formData = reactive({
creator: [], // 操作人
creator: '', // 操作人
operation: '', // 操作类型
object_type: '', // 操作对象
object_name: '', // 操作实例
Expand All @@ -180,7 +179,7 @@ const initCreator = async () => {
};
// 人员选择器选择回调方法
const changeSelectList = (values: string[]) => {
const changeSelectList = (values: string) => {
formData.creator = values;
};
// 人员选择器分页请求数据处理
Expand Down Expand Up @@ -210,7 +209,7 @@ const initAudit = async () => {
operation: formData.operation,
object_type: formData.object_type,
object_name: formData.object_name,
creator: formData.creator[0],
creator: formData.creator,
created_at: formData.created_at ? dayjs(formData.created_at).format('YYYY-MM-DD HH:mm:ss') : '',
};
const res = await getAudit(params);
Expand Down Expand Up @@ -246,7 +245,7 @@ const toggleFold = () => {
const handleReset = () => {
formData.created_at = '';
formData.creator = [];
formData.creator = '';
formData.object_name = '';
formData.object_type = '';
formData.operation = '';
Expand Down

0 comments on commit 7d8e7fb

Please sign in to comment.