| | |
| | | import EditPen from "~icons/ep/edit-pen"; |
| | | import Refresh from "~icons/ep/refresh"; |
| | | import AddFill from "~icons/ri/add-circle-line"; |
| | | import IonEnterOutline from "~icons/ion/enter-outline"; |
| | | import IconamoonEnterDuotone from "~icons/iconamoon/enter-duotone"; |
| | | import { useUserStoreHook } from "@/store/modules/user"; |
| | | |
| | | defineOptions({ |
| | |
| | | const formRef = ref(); |
| | | const tableRef = ref(); |
| | | const isList = ref(true); |
| | | const nowItem = ref({}); |
| | | const nowItem = ref({ |
| | | id: "" |
| | | }); |
| | | const { |
| | | form, |
| | | state, |
| | |
| | | <el-button type="primary" :loading="loading" @click="onSearch"> |
| | | 搜索 |
| | | </el-button> |
| | | <!-- <el-button |
| | | :icon="useRenderIcon(Refresh)" |
| | | @click="resetForm(formRef)" |
| | | > |
| | | 重置 |
| | | </el-button> --> |
| | | <el-button :icon="useRenderIcon(Refresh)" @click="resetForm"> |
| | | 重置 |
| | | </el-button> |
| | | <el-button type="primary" @click="openDialog()"> |
| | | 新增 |
| | | </el-button> |
| | |
| | | link |
| | | type="primary" |
| | | :size="size" |
| | | :icon="useRenderIcon(IonEnterOutline)" |
| | | :icon="useRenderIcon(IconamoonEnterDuotone)" |
| | | @click="enterDetail(row)" |
| | | /> |
| | | <!-- <el-popconfirm |
| | | <el-popconfirm |
| | | :title="`是否确认删除项目名称为${row.projectName}的这条数据`" |
| | | @confirm="handleDelete(row)" |
| | | > |
| | |
| | | :icon="useRenderIcon(Delete)" |
| | | /> |
| | | </template> |
| | | </el-popconfirm> --> |
| | | </el-popconfirm> |
| | | </template> |
| | | </pure-table> |
| | | </template> |
| | | </PureTableBar> |
| | | </template> |
| | | <template v-else> |
| | | <detail :now-info="nowItem" @backListPage="backListPage" /> |
| | | <detail :nowID="nowItem?.id" @backListPage="backListPage" /> |
| | | </template> |
| | | </div> |
| | | </template> |