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