perf: 去掉所属项目筛选

This commit is contained in:
rd
2025-08-01 11:51:58 +08:00
parent c211693d1f
commit 568eeb33b4
2 changed files with 17 additions and 17 deletions

View File

@ -16,7 +16,7 @@
</template>
</a-input>
</div>
<div class="filter-row-item">
<!-- <div class="filter-row-item">
<span class="label">所属项目</span>
<CommonSelect
placeholder="请选择所属项目"
@ -25,7 +25,7 @@
class="!w-166px"
@change="handleSearch"
/>
</div>
</div> -->
<div class="filter-row-item">
<span class="label">序号</span>
<a-space size="medium">
@ -87,7 +87,7 @@
import { defineEmits, defineProps } from 'vue';
import { CHECK_STATUS } from '@/views/creative-generation-workshop/manuscript/list/constants';
import CommonSelect from '@/components/common-select';
import { getProjectList } from '@/api/all/propertyMarketing';
// import { getProjectList } from '@/api/all/propertyMarketing';
const props = defineProps({
query: {
@ -99,7 +99,7 @@ const props = defineProps({
const emits = defineEmits('search', 'reset', 'update:query');
const created_at = ref([]);
const projects = ref([]);
// const projects = ref([]);
const handleSearch = () => {
emits('update:query', props.query);
@ -126,24 +126,24 @@ const onDateChange = (value) => {
};
// 获取项目列表
const getProjects = async () => {
try {
const { code, data } = await getProjectList();
if (code === 200) {
projects.value = data;
}
} catch (error) {
console.error('获取项目列表失败:', error);
}
};
// const getProjects = async () => {
// try {
// const { code, data } = await getProjectList();
// if (code === 200) {
// projects.value = data;
// }
// } catch (error) {
// console.error('获取项目列表失败:', error);
// }
// };
const handleReset = () => {
created_at.value = [];
projects.value = [];
// projects.value = [];
emits('reset');
};
onMounted(() => {
getProjects();
// getProjects();
});
</script>

View File

@ -1,6 +1,6 @@
export const INITIAL_QUERY = {
title: '',
project_ids: [],
// project_ids: [],
uid: '',
audit_status: '',
created_at: [],