Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nse-ui
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
吴超
nse-ui
Commits
464710f1
Commit
464710f1
authored
Sep 19, 2025
by
ningjihai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
6bc33388
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
123 行增加
和
53 行删除
+123
-53
src/assets/styles/element-ui.scss
+2
-1
src/views/project/Project/ProjectEditDialog.vue
+0
-0
src/views/project/Project/QueryForm.vue
+18
-8
src/views/project/Project/list.vue
+103
-44
没有找到文件。
src/assets/styles/element-ui.scss
View file @
464710f1
...
@@ -125,7 +125,8 @@
...
@@ -125,7 +125,8 @@
.custom-dialog
{
.custom-dialog
{
border-radius
:
8px
;
border-radius
:
8px
;
.custom-dialog-header
{
.custom-dialog-header
{
padding-top
:
30px
;
width
:
100%
;
// padding-top: 30px;
padding-left
:
28px
;
padding-left
:
28px
;
padding-right
:
32px
;
padding-right
:
32px
;
display
:
flex
;
display
:
flex
;
...
...
src/views/project/Project/ProjectEditDialog.vue
View file @
464710f1
差异被折叠。
点击展开。
src/views/project/Project/QueryForm.vue
View file @
464710f1
...
@@ -3,20 +3,16 @@ import { computed,ref,watch } from 'vue'
...
@@ -3,20 +3,16 @@ import { computed,ref,watch } from 'vue'
import
type
{
FormInstance
}
from
'element-plus'
import
type
{
FormInstance
}
from
'element-plus'
import
PageWrapperSearch
from
'@/components/search/PageWrapperSearch.vue'
import
PageWrapperSearch
from
'@/components/search/PageWrapperSearch.vue'
import
{
import
{
Check
,
Plus
Delete
,
Edit
,
Message
,
Search
,
Star
,
}
from
'@element-plus/icons-vue'
}
from
'@element-plus/icons-vue'
import
{
color
}
from
'echarts'
// import { useDict } from '@/utils/dict'
// import { useDict } from '@/utils/dict'
// import { listDept } from '@/api/system/dept'// 部门
// import { listDept } from '@/api/system/dept'// 部门
// const { approve_status, invoice_status} = useDict('approve_status', 'invoice_status')
// const { approve_status, invoice_status} = useDict('approve_status', 'invoice_status')
const
emit
=
defineEmits
([
'update:modelValue'
,
'query'
,
'reset'
])
const
emit
=
defineEmits
([
'update:modelValue'
,
'query'
,
'reset'
,
'showAddDialog'
])
const
invoice_status_filter
=
ref
([])
const
invoice_status_filter
=
ref
([])
const
employeesList
=
ref
([])
const
employeesList
=
ref
([])
const
props
=
defineProps
<
{
const
props
=
defineProps
<
{
...
@@ -48,12 +44,26 @@ function onReset(formRef: FormInstance) {
...
@@ -48,12 +44,26 @@ function onReset(formRef: FormInstance) {
emit
(
'reset'
,
formRef
)
emit
(
'reset'
,
formRef
)
}
}
function
showAddDialog
()
{
emit
(
'showAddDialog'
)
}
</
script
>
</
script
>
<
template
>
<
template
>
<!-- el-form -->
<!-- el-form -->
<page-wrapper-search
<page-wrapper-search
:model=
"queryForm"
:model=
"queryForm"
:extraButtons=
"[
{
text: '新增',
icon: Plus,
color: 'rgba(0, 189, 207, 1)',
type: 'success',
textClass: 'btn-fff',
onClick: showAddDialog
}
]"
@search="onSearch"
@search="onSearch"
@reset="onReset">
@reset="onReset">
<el-form-item
label=
"项目名称"
prop=
"proName"
>
<el-form-item
label=
"项目名称"
prop=
"proName"
>
...
@@ -108,6 +118,6 @@ function onReset(formRef: FormInstance) {
...
@@ -108,6 +118,6 @@ function onReset(formRef: FormInstance) {
</page-wrapper-search>
-->
</page-wrapper-search>
-->
</
template
>
</
template
>
<
style
scoped
>
<
style
scoped
lang=
"scss"
>
</
style
>
</
style
>
src/views/project/Project/list.vue
View file @
464710f1
...
@@ -415,57 +415,116 @@ onMounted(()=>{
...
@@ -415,57 +415,116 @@ onMounted(()=>{
<template
#
title
>
<template
#
title
>
项目管理
项目管理
</
template
>
</
template
>
<
template
#
buttons
>
<el-button
:loading=
"addLoading"
type=
"primary"
icon=
"Plus"
@
click=
"showAddDialog"
>
新增
</el-button>
</
template
>
</PageTitle>
</PageTitle>
<div
class=
"app-container__body"
>
<div
class=
"app-container__body"
>
<
div
>
<
!-- <div> --
>
<query-form
<query-form
ref=
"QueryFormRef"
ref=
"QueryFormRef"
v-model=
"queryParams"
v-model=
"queryParams"
@
query=
"onQuery"
@
query=
"onQuery"
@
reset=
"onReset"
/>
@
reset=
"onReset"
<el-row
:gutter=
"20"
v-loading=
"loading"
>
@
showAddDialog=
"showAddDialog"
/>
<el-col
class=
"table-item"
:span=
"6"
v-for=
"(item, index) in tableList"
:key=
"index"
>
<div
style=
"flex: 1;"
>
<el-card
shadow=
"always"
>
<el-table
<
template
#
header
>
height=
"100%"
<div
class=
"flex-container justify-between align-center"
>
:data=
"tableList"
{{
item
.
project
}}
v-loading=
"loading"
<el-dropdown
placement=
"bottom-end"
@
command=
"(command) => handleCommandProject(command, item)"
>
border
<el-button
type=
"primary"
icon=
"Operation"
>
style=
"width: 100%; margin-top: 20px"
操作
>
</el-button>
<el-table-column
<template
#
dropdown
>
type=
"index"
<el-dropdown-menu>
label=
"序号"
<el-dropdown-item
command=
"1"
>
进入
</el-dropdown-item>
width=
"80"
<el-dropdown-item
command=
"2"
>
编辑
</el-dropdown-item>
align=
"center"
<el-dropdown-item
command=
"3"
>
删除
</el-dropdown-item>
fixed
<el-dropdown-item
command=
"4"
>
导入
</el-dropdown-item>
/>
<el-dropdown-item
command=
"5"
>
导出
</el-dropdown-item>
<el-table-column
<el-dropdown-item
command=
"6"
>
下载插件
</el-dropdown-item>
prop=
"project"
</el-dropdown-menu>
label=
"项目名称"
</
template
>
min-width=
"180"
</el-dropdown>
show-overflow-tooltip
</div>
/>
</template>
<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-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>
<div
class=
"item-content flex-container align-center"
v-for=
"(x,y) in item.list"
>
<div
class=
"label"
>
{{x.label}}:
</div>
<!--
<el-dropdown
placement=
"bottom-end"
@
command=
"(command) => handleCommandProject(command, row)"
>
<div
class=
"value flex1"
>
{{x.value}}
</div>
</div>
<template
#
dropdown
>
<el-dropdown-menu>
</el-card>
<el-dropdown-item
command=
"1"
>
进入
</el-dropdown-item>
</el-col>
<el-dropdown-item
command=
"2"
>
编辑
</el-dropdown-item>
</el-row>
<el-dropdown-item
command=
"3"
>
删除
</el-dropdown-item>
<el-dropdown-item
command=
"4"
>
导入
</el-dropdown-item>
<el-dropdown-item
command=
"5"
>
导出
</el-dropdown-item>
<el-dropdown-item
command=
"6"
>
下载插件
</el-dropdown-item>
</el-dropdown-menu>
</
template
>
</el-dropdown>
-->
</template>
</el-table-column>
</el-table>
</div>
<pagination
<pagination
v-show=
"total > 0"
v-show=
"total > 0"
...
@@ -474,7 +533,7 @@ onMounted(()=>{
...
@@ -474,7 +533,7 @@ onMounted(()=>{
v-model:limit=
"queryParams.everypage"
v-model:limit=
"queryParams.everypage"
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
<
/div
>
<
!-- </div> --
>
</div>
</div>
<ProjectEditDialog
<ProjectEditDialog
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论