Commit 88e2a25d by ningjihai

13123

parent db33f6e9
<script setup name="ProjectManageList"> <script setup name="ClassificationVerification">
import { getCurrentInstance, reactive, ref, watch, onMounted, computed,nextTick} from 'vue' import { getCurrentInstance, reactive, ref, watch, onMounted, computed,nextTick} from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus' import { ElMessage, ElMessageBox } from 'element-plus'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
...@@ -398,7 +398,12 @@ const resetSummary = () => { ...@@ -398,7 +398,12 @@ const resetSummary = () => {
}) })
} }
function pageProjectManage() {
changeRoute()
router.push({
path: '/project/Project'
})
}
</script> </script>
<template> <template>
......
...@@ -90,12 +90,17 @@ onMounted(() => { ...@@ -90,12 +90,17 @@ onMounted(() => {
</PageTitle> </PageTitle>
<div class="app-container__body"> <div class="app-container__body">
<query-form ref="QueryFormRef" v-model="queryParams" @query="onQuery" @reset="onReset" /> <query-form ref="QueryFormRef" v-model="queryParams" @query="onQuery" @reset="onReset" />
<el-table v-loading="loading" :data="logList" border style="width: 100%"> <div style="flex:1;">
<el-table v-loading="loading" :data="logList" stripe
height="100%" style="width: 100%">
<el-table-column prop="createuser" label="用户" align="center" width="200" /> <el-table-column prop="createuser" label="用户" align="center" width="200" />
<el-table-column prop="createtime" label="时间" align="center" width="180" /> <el-table-column prop="createtime" label="时间" align="center" width="180" />
<el-table-column prop="code" label="操作代码" align="center" width="180" /> <el-table-column prop="code" label="操作代码" align="center" width="180" />
<el-table-column prop="operationMassage" label="操作信息" align="center" show-overflow-tooltip /> <el-table-column prop="operationMassage" label="操作信息" align="center" show-overflow-tooltip />
</el-table> </el-table>
</div>
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" <pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows"
@pagination="getList" /> @pagination="getList" />
......
...@@ -90,12 +90,15 @@ onMounted(() => { ...@@ -90,12 +90,15 @@ onMounted(() => {
</PageTitle> </PageTitle>
<div class="app-container__body"> <div class="app-container__body">
<query-form ref="QueryFormRef" v-model="queryParams" @query="onQuery" @reset="onReset" /> <query-form ref="QueryFormRef" v-model="queryParams" @query="onQuery" @reset="onReset" />
<el-table v-loading="loading" :data="logList" border style="width: 100%"> <div style="flex:1;">
<el-table-column prop="operptionUser" label="用户" align="center" width="200" /> <el-table v-loading="loading" :data="logList" stripe height="100%" style="width: 100%">
<el-table-column prop="code" label="操作代码" align="center" width="180" /> <el-table-column prop="operptionUser" label="用户" align="center" width="200" />
<el-table-column prop="operModule" label="操作模块" align="center" width="200" /> <el-table-column prop="code" label="操作代码" align="center" width="180" />
<el-table-column prop="operptionMassage" label="操作信息" align="center" show-overflow-tooltip /> <el-table-column prop="operModule" label="操作模块" align="center" width="200" />
</el-table> <el-table-column prop="operptionMassage" label="操作信息" align="center" show-overflow-tooltip />
</el-table>
</div>
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" <pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows"
@pagination="getList" /> @pagination="getList" />
......
...@@ -421,9 +421,7 @@ onMounted(()=>{ ...@@ -421,9 +421,7 @@ onMounted(()=>{
</template> </template>
</PageTitle> </PageTitle>
<div class="app-container__body"> <div class="app-container__body">
<query-form <query-form
ref="QueryFormRef" ref="QueryFormRef"
v-model="queryParams" v-model="queryParams"
...@@ -433,101 +431,101 @@ onMounted(()=>{ ...@@ -433,101 +431,101 @@ onMounted(()=>{
/> />
<div style="flex: 1;"> <div style="flex: 1;">
<el-table <el-table
height="100%" height="100%"
:data="tableList" :data="tableList"
v-loading="loading" v-loading="loading"
stripe stripe
style="width: 100%; margin-top: 20px" style="width: 100%;"
>
<el-table-column
type="index"
label="序号"
width="80"
align="center"
fixed
/>
<el-table-column
prop="project"
label="项目名称"
min-width="180"
show-overflow-tooltip
/>
<el-table-column
label="数据源"
width="100"
align="center"
>
<template #default="{ row }">
{{ row.list && row.list[0] ? row.list[0].value : '-' }}
</template>
</el-table-column>
<el-table-column
label="数据域"
width="100"
align="center"
>
<template #default="{ row }">
{{ row.list && row.list[1] ? row.list[1].value : '-' }}
</template>
</el-table-column>
<el-table-column
label="发现规则"
width="100"
align="center"
>
<template #default="{ row }">
{{ row.list && row.list[2] ? row.list[2].value : '-' }}
</template>
</el-table-column>
<el-table-column
prop="note"
label="项目备注"
min-width="100"
show-overflow-tooltip
/>
<el-table-column
label="操作"
min-width="520"
align="center"
fixed="right"
> >
<template #default="{ row }"> <el-table-column
type="index"
<el-button plain color="rgba(0, 186, 173, 1)" size="small" icon="right" @click="handleEnterProject(row)"> label="序号"
进入 width="80"
</el-button> align="center"
<el-button plain color="rgba(11, 136, 251, 1)" size="small" icon="edit" @click="handleEditProject(row)"> fixed
编辑 />
</el-button> <el-table-column
<el-button plain color="rgba(255, 141, 26, 1)" size="small" icon="delete" @click="handleDeleteProject(row)"> prop="project"
删除 label="项目名称"
</el-button> min-width="180"
<el-button plain color="rgba(121, 72, 234, 1)" size="small" icon="download" @click="handleDownloadPlugin(row)"> show-overflow-tooltip
下载插件 />
</el-button> <el-table-column
<el-button plain color="rgba(237, 183, 5, 1)" size="small" icon="documentCopy" @click="handleImportProject(row)"> label="数据源"
导入 width="100"
</el-button> align="center"
<el-button plain color="rgba(172, 51, 193, 1)" size="small" icon="copyDocument" @click="handleExportProject(row)"> >
导出 <template #default="{ row }">
</el-button> {{ row.list && row.list[0] ? row.list[0].value : '-' }}
</template>
</el-table-column>
<!-- <el-dropdown placement="bottom-end" @command="(command) => handleCommandProject(command, row)"> <el-table-column
label="数据域"
width="100"
align="center"
>
<template #default="{ row }">
{{ row.list && row.list[1] ? row.list[1].value : '-' }}
</template>
</el-table-column>
<el-table-column
label="发现规则"
width="100"
align="center"
>
<template #default="{ row }">
{{ row.list && row.list[2] ? row.list[2].value : '-' }}
</template>
</el-table-column>
<el-table-column
prop="note"
label="项目备注"
min-width="100"
show-overflow-tooltip
/>
<el-table-column
label="操作"
min-width="520"
align="center"
fixed="right"
>
<template #default="{ row }">
<el-button plain color="rgba(0, 186, 173, 1)" size="small" icon="right" @click="handleEnterProject(row)">
进入
</el-button>
<el-button plain color="rgba(11, 136, 251, 1)" size="small" icon="edit" @click="handleEditProject(row)">
编辑
</el-button>
<el-button plain color="rgba(255, 141, 26, 1)" size="small" icon="delete" @click="handleDeleteProject(row)">
删除
</el-button>
<el-button plain color="rgba(121, 72, 234, 1)" size="small" icon="download" @click="handleDownloadPlugin(row)">
下载插件
</el-button>
<el-button plain color="rgba(237, 183, 5, 1)" size="small" icon="documentCopy" @click="handleImportProject(row)">
导入
</el-button>
<el-button plain color="rgba(172, 51, 193, 1)" size="small" icon="copyDocument" @click="handleExportProject(row)">
导出
</el-button>
<template #dropdown>
<el-dropdown-menu> <!-- <el-dropdown placement="bottom-end" @command="(command) => handleCommandProject(command, row)">
<el-dropdown-item command="1">进入</el-dropdown-item>
<el-dropdown-item command="2">编辑</el-dropdown-item> <template #dropdown>
<el-dropdown-item command="3">删除</el-dropdown-item> <el-dropdown-menu>
<el-dropdown-item command="4">导入</el-dropdown-item> <el-dropdown-item command="1">进入</el-dropdown-item>
<el-dropdown-item command="5">导出</el-dropdown-item> <el-dropdown-item command="2">编辑</el-dropdown-item>
<el-dropdown-item command="6">下载插件</el-dropdown-item> <el-dropdown-item command="3">删除</el-dropdown-item>
</el-dropdown-menu> <el-dropdown-item command="4">导入</el-dropdown-item>
</template> <el-dropdown-item command="5">导出</el-dropdown-item>
</el-dropdown> --> <el-dropdown-item command="6">下载插件</el-dropdown-item>
</template> </el-dropdown-menu>
</el-table-column> </template>
</el-dropdown> -->
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
...@@ -540,7 +538,7 @@ onMounted(()=>{ ...@@ -540,7 +538,7 @@ onMounted(()=>{
/> />
</div> </div>
</div>
<ProjectEditDialog <ProjectEditDialog
v-model:visible="dialogVisible" v-model:visible="dialogVisible"
:mode="dialogMode" :mode="dialogMode"
...@@ -567,7 +565,6 @@ onMounted(()=>{ ...@@ -567,7 +565,6 @@ onMounted(()=>{
:project-id="currentImportProjectId" :project-id="currentImportProjectId"
@success="handleImportSuccess" @success="handleImportSuccess"
/> />
</div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论