|
@@ -25,10 +25,14 @@
|
|
<el-form-item label="创建时间">
|
|
<el-form-item label="创建时间">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="queryForm.createTime"
|
|
v-model="queryForm.createTime"
|
|
- type="date"
|
|
|
|
- placeholder="选择日期"
|
|
|
|
- style="width: 200px"
|
|
|
|
- ></el-date-picker>
|
|
|
|
|
|
+ format="YYYY/MM/DD"
|
|
|
|
+ value-format="YYYY-MM-DD"
|
|
|
|
+ type="daterange"
|
|
|
|
+ range-separator="至"
|
|
|
|
+ start-placeholder="开始时间"
|
|
|
|
+ end-placeholder="结束时间"
|
|
|
|
+ style="width: 220px"
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
@@ -71,7 +75,7 @@
|
|
<el-select
|
|
<el-select
|
|
v-model="queryForm.patentType"
|
|
v-model="queryForm.patentType"
|
|
placeholder="请选择专利类型"
|
|
placeholder="请选择专利类型"
|
|
- style="width: 200px"
|
|
|
|
|
|
+ style="width: 240px"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in patents_type"
|
|
v-for="item in patents_type"
|
|
@@ -96,20 +100,23 @@
|
|
:prop="field.key"
|
|
:prop="field.key"
|
|
:label="field.label"
|
|
:label="field.label"
|
|
/>
|
|
/>
|
|
- <el-table-column label="操作" width="180">
|
|
|
|
|
|
+ <el-table-column label="操作" width="300">
|
|
<template v-slot="scope">
|
|
<template v-slot="scope">
|
|
- <el-button @click="handleEdit(scope.row)" size="small"
|
|
|
|
- >编辑</el-button
|
|
|
|
- >
|
|
|
|
- <el-button
|
|
|
|
- @click="handleDelete(scope.row)"
|
|
|
|
- size="small"
|
|
|
|
- style="color: red"
|
|
|
|
- >删除</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button type="primary" text size="small">查看</el-button>
|
|
|
|
+ <el-button type="primary" text size="small">补充资料上传</el-button>
|
|
|
|
+ <el-button type="primary" text size="small">文件下载</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
|
|
+ <div class="pagination">
|
|
|
|
+ <el-pagination
|
|
|
|
+ v-model:current-page="currentPage"
|
|
|
|
+ v-model:page-size="pageSize"
|
|
|
|
+ layout="prev, pager, next, jumper"
|
|
|
|
+ :total="total"
|
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -121,14 +128,14 @@ import { useDictStore } from "@/store/modules/useDictStore/index";
|
|
const queryForm = ref<any>({
|
|
const queryForm = ref<any>({
|
|
patentsName: "",
|
|
patentsName: "",
|
|
applicationNumber: "",
|
|
applicationNumber: "",
|
|
- createTime: "",
|
|
|
|
|
|
+ createTime: [],
|
|
legislationStatus: "",
|
|
legislationStatus: "",
|
|
paymentStatus: "",
|
|
paymentStatus: "",
|
|
patentType: "",
|
|
patentType: "",
|
|
});
|
|
});
|
|
|
|
|
|
const currentPage = ref(1);
|
|
const currentPage = ref(1);
|
|
-const pageSize = ref(10);
|
|
|
|
|
|
+const pageSize = ref(5);
|
|
const total = ref(0);
|
|
const total = ref(0);
|
|
const tableData = ref([]);
|
|
const tableData = ref([]);
|
|
|
|
|
|
@@ -140,31 +147,27 @@ const patents_type = dictStore.dictData.patents_type;
|
|
|
|
|
|
// 定义所有字段的配置项
|
|
// 定义所有字段的配置项
|
|
const fieldsConfig = ref([
|
|
const fieldsConfig = ref([
|
|
- { key: "patentsName", label: "专利名称", visible: true }, // 专利名称
|
|
|
|
- { key: "applicationNumber", label: "申请号", visible: true }, // 申请号
|
|
|
|
- { key: "applicationDate", label: "申请日", visible: true }, // 申请日
|
|
|
|
- { key: "internalCaseNumber", label: "内部案号", visible: true }, // 内部案号
|
|
|
|
- { key: "technologyName", label: "技术对接人", visible: true }, // 技术对接人
|
|
|
|
- { key: "auditOfOfficialDeadlines", label: "审意官方绝限期", visible: true }, // 审意官方绝限期
|
|
|
|
- { key: "patentRemarks", label: "专利备注", visible: true }, // 专利备注
|
|
|
|
- { key: "patentee", label: "专利权人", visible: false }, // 专利权人
|
|
|
|
- { key: "firstDeviseName", label: "发明人", visible: false }, // 发明人
|
|
|
|
- { key: "patentType", label: "专利类型", visible: false }, // 专利类型
|
|
|
|
- { key: "patentStatus", label: "专利进度", visible: false }, // 专利进度
|
|
|
|
- { key: "legislationStatus", label: "法律状态", visible: false }, // 法律状态
|
|
|
|
- { key: "paymentStatus", label: "年费缴纳", visible: false }, // 年费缴纳
|
|
|
|
- { key: "priorityReview", label: "优先审查", visible: false }, // 优先审查
|
|
|
|
- { key: "agency", label: "代理机构", visible: false }, // 代理机构
|
|
|
|
- { key: "involvingTechnicalRoutes", label: "涉及技术路线", visible: false }, // 涉及技术路线
|
|
|
|
- { key: "logs", label: "日志", visible: false }, // 日志
|
|
|
|
- // 可根据需要添加更多字段
|
|
|
|
|
|
+ { key: "applicationNumber", label: "申请号/专利号", visible: true },
|
|
|
|
+ { key: "patentsName", label: "专利名称", visible: true },
|
|
|
|
+ { key: "createTime", label: "申请日期", visible: true },
|
|
|
|
+ { key: "patentsName", label: "专利类型", visible: true },
|
|
|
|
+ { key: "", label: "当前状态", visible: true },
|
|
|
|
+ { key: "auditStatus", label: "审查状态", visible: true },
|
|
|
|
+ { key: "legislationStatus", label: "法律状态", visible: true },
|
|
|
|
+ { key: "paymentStatus", label: "年费缴纳状态", visible: true },
|
|
]);
|
|
]);
|
|
|
|
|
|
const pageInit = async () => {
|
|
const pageInit = async () => {
|
|
const data = {
|
|
const data = {
|
|
pageSize: pageSize.value,
|
|
pageSize: pageSize.value,
|
|
pageNumber: currentPage.value,
|
|
pageNumber: currentPage.value,
|
|
- ...queryForm.value,
|
|
|
|
|
|
+ patentsName: queryForm.value.patentsName,
|
|
|
|
+ applicationNumber: queryForm.value.applicationNumber,
|
|
|
|
+ legislationStatus: queryForm.value.legislationStatus,
|
|
|
|
+ paymentStatus: queryForm.value.paymentStatus,
|
|
|
|
+ patentType: queryForm.value.patentType,
|
|
|
|
+ beginTime: queryForm.value.createTime[0],
|
|
|
|
+ endTime: queryForm.value.createTime[1],
|
|
};
|
|
};
|
|
const res = (await getPatentApplicationList(data)) as unknown as any;
|
|
const res = (await getPatentApplicationList(data)) as unknown as any;
|
|
tableData.value = res.data.list;
|
|
tableData.value = res.data.list;
|
|
@@ -179,7 +182,7 @@ const handleReset = () => {
|
|
queryForm.value = {
|
|
queryForm.value = {
|
|
patentsName: "",
|
|
patentsName: "",
|
|
applicationNumber: "",
|
|
applicationNumber: "",
|
|
- createTime: "",
|
|
|
|
|
|
+ createTime: [],
|
|
legislationStatus: "",
|
|
legislationStatus: "",
|
|
paymentStatus: "",
|
|
paymentStatus: "",
|
|
patentType: "",
|
|
patentType: "",
|
|
@@ -187,14 +190,9 @@ const handleReset = () => {
|
|
pageInit();
|
|
pageInit();
|
|
};
|
|
};
|
|
|
|
|
|
-const handleEdit = (row: any) => {
|
|
|
|
- // 编辑逻辑
|
|
|
|
- console.log("编辑行:", row);
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-const handleDelete = (row: any) => {
|
|
|
|
- // 删除逻辑
|
|
|
|
- console.log("删除行:", row);
|
|
|
|
|
|
+const handleCurrentChange = (val: number) => {
|
|
|
|
+ currentPage.value = val;
|
|
|
|
+ pageInit();
|
|
};
|
|
};
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
@@ -218,4 +216,11 @@ onMounted(() => {
|
|
margin-bottom: 2rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+.pagination {
|
|
|
|
+ width: 100%;
|
|
|
|
+ margin-top: 12px;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|