Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
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
紫光云
web-project
Commits
e88151db
Commit
e88151db
authored
Sep 11, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(项目库): 上报单位
parent
8d07f673
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
index.vue
src/views/project/index.vue
+8
-2
project.data.ts
src/views/project/project.data.ts
+2
-4
projectDrawer.vue
src/views/project/projectDrawer.vue
+0
-1
No files found.
src/views/project/index.vue
View file @
e88151db
...
...
@@ -119,7 +119,7 @@
</div>
</template>
<
script
lang=
"ts"
setup
>
import
{
uploadApi
}
from
'@/api/sys/upload
'
;
import
{
getSelectDeptById
}
from
'@/api/project/monthlyPlan.js
'
;
import
uploadContractModal
from
'./uploadContractModal.vue'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
Tag
,
Row
,
Col
,
Upload
,
Button
}
from
'ant-design-vue'
;
...
...
@@ -131,7 +131,7 @@
import
{
useRouter
}
from
'vue-router'
;
import
{
onMounted
,
ref
}
from
'vue'
;
import
{
downloadByData
}
from
'@/utils/file/download'
;
import
{
useMessage
}
from
"@/hooks/web/useMessage"
;
import
{
useMessage
}
from
"@/hooks/web/useMessage"
;
let
uploadAction
=
import
.
meta
.
env
.
MODE
===
'development'
?
'http://localhost:5173/api/pro/export/importProjectDetail'
...
...
@@ -163,6 +163,12 @@
fixed
:
undefined
,
},
});
onMounted
(
async
()
=>
{
const
data
=
await
getSelectDeptById
();
searchFormSchema
[
3
].
componentProps
.
options
=
data
;
});
function
downloadTemplate
()
{
downImportT
().
then
((
data
)
=>
{
downloadByData
(
data
,
'项目库导入模板.xlsx'
);
...
...
src/views/project/project.data.ts
View file @
e88151db
import
{
FormSchema
,
BasicColumn
}
from
'@/components/Table'
;
import
{
uploadApi
}
from
'@/api/sys/upload'
;
import
{
useUserStore
}
from
'@/store/modules/user'
;
import
{
getSelectDeptById
}
from
'@/api/project/monthlyPlan'
;
const
deptId
=
useUserStore
().
userInfo
.
deptParentId
;
const
data
=
await
getSelectDeptById
();
export
const
formSchema
:
FormSchema
[]
=
[
export
let
formSchema
:
FormSchema
[]
=
[
{
field
:
'logo'
,
label
:
'项目logo'
,
...
...
@@ -279,7 +277,7 @@ export const searchFormSchema: FormSchema[] = [
component
:
'Select'
,
componentProps
:
{
placeholder
:
'选择上报单位'
,
options
:
data
,
options
:
[]
,
},
ifShow
:
deptId
==
'100'
,
colProps
:
{
span
:
3
},
...
...
src/views/project/projectDrawer.vue
View file @
e88151db
...
...
@@ -88,7 +88,6 @@
setDrawerProps
({
confirmLoading
:
false
});
}
}
// onMounted(async () => {
// const data = await getDepartmentList();
// console.log(formSchema)
...
...
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