Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
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
张伯涛
bigDataSystem
Commits
020beff8
Commit
020beff8
authored
Dec 18, 2024
by
baiyinhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增平台列表页面
parent
dd426679
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1153 additions
and
51 deletions
+1153
-51
index.vue
src/views/AAAFont/nationalPolicy/details/index.vue
+1115
-0
index.vue
src/views/AAAFont/nationalPolicy/index.vue
+7
-2
AccountModal.vue
...ataSharingAndExchange/carouselManagement/AccountModal.vue
+26
-4
institution.data.ts
...SharingAndExchange/carouselManagement/institution.data.ts
+5
-45
No files found.
src/views/AAAFont/nationalPolicy/details/index.vue
0 → 100644
View file @
020beff8
This diff is collapsed.
Click to expand it.
src/views/AAAFont/nationalPolicy/index.vue
View file @
020beff8
...
...
@@ -49,7 +49,7 @@
<span>
2024-12-17
</span>
</div>
</div>
<div
class=
"right-li"
>
<div
class=
"right-li"
@
click=
"handleClick"
>
<div
class=
"li-left"
>
<el-tag
type=
"danger"
style=
"font-size: 14px"
>
国家政策
</el-tag>
</div>
...
...
@@ -109,8 +109,11 @@
</template>
<
script
setup
lang=
"ts"
>
import
{
router
}
from
'@/router'
;
import
{
ref
}
from
'vue'
;
import
{
useRouter
,
onBeforeRouteLeave
}
from
'vue-router'
;
const
fileType
=
ref
(
''
);
// 文件下载后缀
const
choseFile
=
ref
({});
// 选择文件对象
const
downloadType
=
ref
(
''
);
// 1是本地文件下载,2是oss文件下载
...
...
@@ -130,13 +133,15 @@
fileUploadName
:
'项目推荐汇总表.xlsx'
,
fileAddress
:
'/profile/attachments/project-recommendation-summary.xlsx'
,
});
document
.
querySelectorAll
(
'.right-li'
).
forEach
((
element
)
=>
{
element
.
addEventListener
(
'click'
,
()
=>
{
console
.
log
(
'click'
);
});
});
function
handleClick
()
{
console
.
log
(
'click'
);
console
.
log
(
'clickpush'
);
router
.
push
(
'/aaaFont/nationalPolicy/details'
);
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
src/views/dataSharingAndExchange/carouselManagement/AccountModal.vue
View file @
020beff8
...
...
@@ -6,7 +6,22 @@
:title=
"getTitle"
@
ok=
"handleSubmit"
>
<BasicForm
@
register=
"registerForm"
/>
<BasicForm
@
register=
"registerForm"
>
<template
#
import=
"
{}">
<BasicUpload
:maxSize=
"20"
:maxNumber=
"1"
@
change=
"handleChange"
@
click=
"handleUpload"
:api=
"userImport"
:accept=
"['.xlsx, .xls']"
>
<template
#
uploadBtnName
>
<span>
导入文件
</span>
</
template
>
</BasicUpload>
</template>
</BasicForm>
</BasicModal>
</template>
<
script
lang=
"ts"
setup
>
...
...
@@ -15,10 +30,11 @@
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
accountFormSchema
}
from
'./institution.data'
;
import
{
getDeptList
}
from
'@/api/system/dept/dept'
;
import
{
addUserApi
,
UserDetailApi
,
UserUpdataApi
}
from
'@/api/system/user/user'
;
import
{
addUserApi
,
UserDetailApi
,
UserUpdataApi
,
userImport
}
from
'@/api/system/user/user'
;
import
{
encryptTwo
}
from
'../../../../src/utils/jsencrypt.js'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
TreeData
}
from
'@/views/dataSharingAndExchange/catalogingManagement/institutionData'
;
import
{
BasicUpload
}
from
'@/components/Upload'
;
defineOptions
({
name
:
'AccountModal'
});
...
...
@@ -65,8 +81,14 @@
]);
});
const
getTitle
=
computed
(()
=>
(
!
unref
(
isUpdate
)
?
'新增账号'
:
'编辑账号'
));
const
getTitle
=
computed
(()
=>
(
!
unref
(
isUpdate
)
?
'新增轮播图'
:
'编辑轮播图'
));
function
handleChange
(
list
:
string
[])
{
console
.
log
(
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
,
list
);
createMessage
.
success
(
`文件上传成功`
);
}
function
handleUpload
()
{
isGetMeta
.
value
=
'true'
;
}
function
handleTree
(
data
,
id
,
parentId
,
children
,
rootId
)
{
id
=
id
||
'id'
;
parentId
=
parentId
||
'parentId'
;
...
...
src/views/dataSharingAndExchange/carouselManagement/institution.data.ts
View file @
020beff8
...
...
@@ -195,51 +195,11 @@ export const accountFormSchema: any[] = [
},
],
},
// {
// field: 'visibleRange',
// label: '可见范围',
// component: 'Select',
// componentProps: {
// options: [
// { label: '所有人', value: '所有人' },
// { label: '用户1', value: '用户1' },
// { label: '用户2', value: '用户2' },
// ],
// },
// colProps: { lg: 24, md: 24 },
// rules: [
// {
// required: true,
// message: '请输入登录名',
// },
// ],
// },
// {
// field: 'resourceNum',
// label: '可见资源数',
// component: 'InputNumber',
// colProps: { lg: 24, md: 24 },
// rules: [
// {
// required: true,
// message: '请输入',
// },
// ],
// },
// {
// field: 'institutionId',
// label: '所属编目',
// component: 'TreeSelect',
// colProps: { lg: 24, md: 24 },
// componentProps: {
// fieldNames: {
// label: 'institutionName',
// value: 'businessId',
// },
// getPopupContainer: () => document.body,
// },
// required: true,
// },
{
field
:
'import'
,
label
:
'上传轮播图'
,
slot
:
'import'
,
},
];
export
const
EditFormSchema
:
any
[]
=
[
{
...
...
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