修改各模块ts接口规范
This commit is contained in:
		| @ -75,7 +75,7 @@ | ||||
|         </el-table-column> | ||||
|       </el-table> | ||||
|  | ||||
|       <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" /> | ||||
|       <pagination v-show="total > 0" :total="total" v-model:page="queryParams.current" v-model:limit="queryParams.pageSize" @pagination="getList" /> | ||||
|     </el-card> | ||||
|     <!-- 添加或修改机械对话框 --> | ||||
|     <el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body> | ||||
| @ -150,8 +150,10 @@ const initFormData: MachineryForm = { | ||||
| const data = reactive<PageData<MachineryForm, MachineryQuery>>({ | ||||
|   form: { ...initFormData }, | ||||
|   queryParams: { | ||||
|     pageNum: 1, | ||||
|     current: 1, | ||||
|     pageSize: 10, | ||||
|     sortField: 'createTime', | ||||
|     sortOrder: 'descend', | ||||
|     machineryName: undefined, | ||||
|     machineryNumber: undefined, | ||||
|     projectId: currentProject.value.id, | ||||
| @ -189,7 +191,7 @@ const reset = () => { | ||||
|  | ||||
| /** 搜索按钮操作 */ | ||||
| const handleQuery = () => { | ||||
|   queryParams.value.pageNum = 1; | ||||
|   queryParams.value.current = 1; | ||||
|   getList(); | ||||
| }; | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user