diff --git a/src/pages-infra/apiErrorLog/components/search-form.vue b/src/pages-infra/apiErrorLog/components/search-form.vue index 68cc325..2a2e91f 100644 --- a/src/pages-infra/apiErrorLog/components/search-form.vue +++ b/src/pages-infra/apiErrorLog/components/search-form.vue @@ -42,7 +42,7 @@ 处理状态 - + 全部 @@ -89,6 +89,11 @@ const emit = defineEmits<{ }>() const visible = ref(false) +const formData = reactive({ + userId: undefined, + applicationName: undefined, + processStatus: -1, +}) /** 搜索条件 placeholder 拼接 */ const searchPlaceholder = computed(() => { @@ -106,12 +111,6 @@ const searchPlaceholder = computed(() => { return conditions.length > 0 ? conditions.join(' | ') : '搜索日志' }) -const formData = reactive({ - userId: undefined, - applicationName: undefined, - processStatus: -1, -}) - /** 监听弹窗打开,同步外部参数 */ watch(visible, (val) => { if (val && props.searchParams) { diff --git a/src/pages-system/dept/components/search-form.vue b/src/pages-system/dept/components/search-form.vue index 7d7314f..e2ddc01 100644 --- a/src/pages-system/dept/components/search-form.vue +++ b/src/pages-system/dept/components/search-form.vue @@ -33,7 +33,7 @@ 状态 - + 全部 @@ -79,6 +79,10 @@ const emit = defineEmits<{ }>() const visible = ref(false) +const formData = reactive({ + name: undefined, + status: -1, +}) /** 搜索条件 placeholder 拼接 */ const searchPlaceholder = computed(() => { @@ -92,11 +96,6 @@ const searchPlaceholder = computed(() => { return conditions.length > 0 ? conditions.join(' | ') : '搜索部门' }) -const formData = reactive({ - name: undefined, - status: -1, -}) - /** 监听弹窗打开,同步外部参数 */ watch(visible, (val) => { if (val && props.searchParams) { diff --git a/src/pages-system/post/components/search-form.vue b/src/pages-system/post/components/search-form.vue index 50a4d22..40db8ab 100644 --- a/src/pages-system/post/components/search-form.vue +++ b/src/pages-system/post/components/search-form.vue @@ -43,7 +43,7 @@ 状态 - + 全部 @@ -90,6 +90,11 @@ const emit = defineEmits<{ }>() const visible = ref(false) +const formData = reactive({ + name: undefined, + code: undefined, + status: -1, +}) /** 搜索条件 placeholder 拼接 */ const searchPlaceholder = computed(() => { @@ -106,12 +111,6 @@ const searchPlaceholder = computed(() => { return conditions.length > 0 ? conditions.join(' | ') : '搜索岗位' }) -const formData = reactive({ - name: undefined, - code: undefined, - status: -1, -}) - /** 监听弹窗打开,同步外部参数 */ watch(visible, (val) => { if (val && props.searchParams) { diff --git a/src/pages-system/role/components/search-form.vue b/src/pages-system/role/components/search-form.vue index aea76e3..9b73683 100644 --- a/src/pages-system/role/components/search-form.vue +++ b/src/pages-system/role/components/search-form.vue @@ -43,7 +43,7 @@ 状态 - + 全部 @@ -90,6 +90,11 @@ const emit = defineEmits<{ }>() const visible = ref(false) +const formData = reactive({ + name: undefined, + code: undefined, + status: -1, +}) /** 搜索条件 placeholder 拼接 */ const searchPlaceholder = computed(() => { @@ -106,12 +111,6 @@ const searchPlaceholder = computed(() => { return conditions.length > 0 ? conditions.join(' | ') : '搜索角色' }) -const formData = reactive({ - name: undefined, - code: undefined, - status: -1, -}) - /** 监听弹窗打开,同步外部参数 */ watch(visible, (val) => { if (val && props.searchParams) { diff --git a/src/pages-system/user/form/index.vue b/src/pages-system/user/form/index.vue index c8b4196..406ec90 100644 --- a/src/pages-system/user/form/index.vue +++ b/src/pages-system/user/form/index.vue @@ -59,7 +59,7 @@ placeholder="请输入手机号码" /> - + {{ dict.label }} diff --git a/src/pages/bpm/components/done-search-form.vue b/src/pages/bpm/components/done-search-form.vue index b820275..4a5a162 100644 --- a/src/pages/bpm/components/done-search-form.vue +++ b/src/pages/bpm/components/done-search-form.vue @@ -57,7 +57,7 @@ 审批状态 - + 全部 @@ -158,6 +158,13 @@ const emit = defineEmits<{ }>() const visible = ref(false) +const formData = reactive({ + name: undefined, + processDefinitionKey: undefined, + category: undefined, + status: -1, + createTime: [undefined, undefined], +}) /** 搜索条件 placeholder 拼接 */ const searchPlaceholder = computed(() => { @@ -176,13 +183,6 @@ const searchPlaceholder = computed(() => { const categoryList = ref([]) const processDefinitionList = ref([]) -const formData = reactive({ - name: undefined, - processDefinitionKey: undefined, - category: undefined, - status: -1, - createTime: [undefined, undefined], -}) // 时间选择器状态 const showStartPicker = ref(false) diff --git a/src/pages/bpm/components/my-search-form.vue b/src/pages/bpm/components/my-search-form.vue index bf8b474..7a990b3 100644 --- a/src/pages/bpm/components/my-search-form.vue +++ b/src/pages/bpm/components/my-search-form.vue @@ -96,7 +96,7 @@ 流程状态 - + 全部 @@ -158,6 +158,13 @@ const emit = defineEmits<{ }>() const visible = ref(false) +const formData = reactive({ + name: undefined, + processDefinitionId: undefined, + createTime: [undefined, undefined], + status: -1, + categoryId: undefined, +}) /** 搜索条件 placeholder 拼接 */ const searchPlaceholder = computed(() => { @@ -176,13 +183,6 @@ const searchPlaceholder = computed(() => { const categoryList = ref([]) const processDefinitionList = ref([]) -const formData = reactive({ - name: undefined, - processDefinitionId: undefined, - createTime: [undefined, undefined], - status: -1, - categoryId: undefined, -}) // 时间选择器状态 const showStartPicker = ref(false) diff --git a/src/pages/bpm/components/todo-search-form.vue b/src/pages/bpm/components/todo-search-form.vue index 0896547..d57d387 100644 --- a/src/pages/bpm/components/todo-search-form.vue +++ b/src/pages/bpm/components/todo-search-form.vue @@ -57,7 +57,7 @@ 流程状态 - + 全部 @@ -158,6 +158,13 @@ const emit = defineEmits<{ }>() const visible = ref(false) +const formData = reactive({ + name: undefined, + processDefinitionKey: undefined, + category: undefined, + status: -1, + createTime: [undefined, undefined], +}) /** 搜索条件 placeholder 拼接 */ const searchPlaceholder = computed(() => { @@ -176,13 +183,6 @@ const searchPlaceholder = computed(() => { const categoryList = ref([]) const processDefinitionList = ref([]) -const formData = reactive({ - name: undefined, - processDefinitionKey: undefined, - category: undefined, - status: -1, - createTime: [undefined, undefined], -}) // 时间选择器状态 const showStartPicker = ref(false) diff --git a/src/pages/message/components/search-form.vue b/src/pages/message/components/search-form.vue index f148c36..f112024 100644 --- a/src/pages/message/components/search-form.vue +++ b/src/pages/message/components/search-form.vue @@ -33,7 +33,7 @@ 公告状态(0正常 1关闭) - + 全部 @@ -81,6 +81,10 @@ const emit = defineEmits<{ }>() const visible = ref(false) +const formData = reactive({ + title: undefined, + status: -1 as number, +}) /** 搜索条件 placeholder 拼接 */ const searchPlaceholder = computed(() => { @@ -94,11 +98,6 @@ const searchPlaceholder = computed(() => { return conditions.length > 0 ? conditions.join(' | ') : '搜索通知公告' }) -const formData = reactive({ - title: undefined, - status: -1 as number, -}) - watch(visible, (val) => { if (val && props.searchParams) { formData.title = props.searchParams.title