明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_front
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
jt_front
Commits
ea4b8bb4
Commit
ea4b8bb4
authored
Mar 18, 2026
by
zhanghan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
32de73d8
Pipeline
#108526
passed with stage
in 20 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
9 deletions
+18
-9
SearchForm.vue
src/components/common/SearchForm.vue
+10
-2
commonForm.vue
src/components/common/commonForm.vue
+6
-4
manage.less
src/styles/manage.less
+1
-0
projectAllPage.vue
src/views/projectManage/projectAllPage.vue
+1
-3
No files found.
src/components/common/SearchForm.vue
View file @
ea4b8bb4
...
...
@@ -14,7 +14,11 @@
:key=
"item.prop || index"
:span=
"item.span || defaultSpan"
>
<el-form-item
:label=
"item.label"
:prop=
"item.prop"
>
<el-form-item
style=
"width: 100%"
:label=
"item.label"
:prop=
"item.prop"
>
<!-- 输入框 -->
<el-input
v-if=
"item.type === 'input'"
...
...
@@ -392,7 +396,7 @@ onMounted(() => {
<
style
lang=
"less"
scoped
>
.search-form {
:deep(.el-form-item) {
margin-bottom: 1
2
px;
margin-bottom: 1
6
px;
}
:deep(.el-form-item__label) {
...
...
@@ -415,5 +419,9 @@ onMounted(() => {
:deep(.el-input-number) {
width: 100%;
}
.el-col-6.is-guttered {
padding: 0px 24px !important;
}
}
</
style
>
src/components/common/commonForm.vue
View file @
ea4b8bb4
...
...
@@ -393,7 +393,10 @@
</el-col>
<!-- 表单操作按钮 -->
<el-col
:span=
"24"
>
<el-form-item
v-if=
"config.showButtons !== false"
class=
"form-buttons"
>
<el-form-item
v-if=
"config.showButtons !== false"
class=
"form-buttons"
>
<el-button
v-if=
"config.showSubmit !== false"
type=
"primary"
...
...
@@ -414,7 +417,6 @@
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</template>
...
...
@@ -516,7 +518,7 @@ watch(
emit
(
"update:modelValue"
,
{
...
newVal
});
emit
(
"change"
,
newVal
);
},
{
deep
:
true
}
{
deep
:
true
}
,
);
// 监听外部数据变化
...
...
@@ -529,7 +531,7 @@ watch(
}
});
},
{
deep
:
true
}
{
deep
:
true
}
,
);
// 事件处理
...
...
src/styles/manage.less
View file @
ea4b8bb4
...
...
@@ -6,6 +6,7 @@
flex-direction: column;
box-sizing: border-box;
}
.add-project-content {
background-color: #fff;
padding-top: 16px;
...
...
src/views/projectManage/projectAllPage.vue
View file @
ea4b8bb4
...
...
@@ -2,7 +2,7 @@
<div
class=
"manage-container"
>
<div
class=
"manage-wrap"
>
<!-- 搜索表单区域 -->
<div
class=
"manage-search"
v-if=
"showSearch"
>
<div
class=
"manage-search"
>
<search-form
v-model=
"searchForm"
:items=
"searchItems"
...
...
@@ -82,7 +82,6 @@
<
script
setup
>
import
{
reactive
,
ref
,
onMounted
,
computed
,
getCurrentInstance
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
ArrowUp
,
ArrowDown
}
from
"@element-plus/icons-vue"
;
import
CommonTable
from
"@/components/common/commonTable.vue"
;
import
SearchForm
from
"@/components/common/SearchForm.vue"
;
...
...
@@ -204,7 +203,6 @@ let currentPage = ref(1);
let
pageSize
=
ref
(
10
);
// ========== 搜索表单相关 ==========
const
showSearch
=
ref
(
true
);
const
searchForm
=
ref
({});
// 搜索字段配置
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment