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
5029bd6b
Commit
5029bd6b
authored
Dec 25, 2024
by
LiXuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
轮播图
parent
837d2dc5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
20 deletions
+32
-20
AccountModal.vue
...ataSharingAndExchange/carouselManagement/AccountModal.vue
+22
-11
index.vue
...views/dataSharingAndExchange/carouselManagement/index.vue
+10
-4
institution.data.ts
...SharingAndExchange/carouselManagement/institution.data.ts
+0
-5
No files found.
src/views/dataSharingAndExchange/carouselManagement/AccountModal.vue
View file @
5029bd6b
...
...
@@ -6,26 +6,34 @@
:title=
"getTitle"
@
ok=
"handleSubmit"
>
<BasicForm
@
register=
"registerForm"
>
<BasicForm
:disabled=
"isDetail"
@
register=
"registerForm"
>
<template
#
import=
"
{}">
<BasicUpload
:maxSize=
"20"
:maxNumber=
"1"
<!--
<BasicUpload-->
<!-- :maxSize="20"-->
<!-- :maxNumber="1"-->
<!-- @change="handleChange"-->
<!-- @click="handleUpload"-->
<!-- :api="userImport"-->
<!-- :accept="['.xlsx, .xls']"-->
<!-- >-->
<!--
<template
#
uploadBtnName
>
-->
<!--
<span>
导入文件
</span>
-->
<!--
</
template
>
-->
<!-- </BasicUpload>-->
<Upload
v-model:file-list=
"fileList"
action=
"https://www.mocky.io/v2/5cc8019d300000980a055e76"
@
change=
"handleChange"
@
click=
"handleUpload"
:api=
"userImport"
:accept=
"['.xlsx, .xls']"
>
<template
#
uploadBtnName
>
<span>
导入文件
</span>
</
template
>
</BasicUpload>
<a-button>
导入文件
</a-button>
</Upload>
</template>
</BasicForm>
</BasicModal>
</template>
<
script
lang=
"ts"
setup
>
import
{
ref
,
computed
,
unref
,
reactive
}
from
'vue'
;
import
{
Upload
}
from
'ant-design-vue'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
accountFormSchema
}
from
'./institution.data'
;
...
...
@@ -41,8 +49,10 @@
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
{
createMessage
}
=
useMessage
();
const
isUpdate
=
ref
(
true
);
const
isDetail
=
ref
(
false
);
const
isMove
=
ref
(
false
);
const
rowId
=
ref
(
''
);
// const fileList = ref([]);
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单
const
[
registerForm
,
{
setFieldsValue
,
updateSchema
,
resetFields
,
validate
}]
=
useForm
({
...
...
@@ -59,6 +69,7 @@
resetFields
();
setModalProps
({
confirmLoading
:
false
});
isUpdate
.
value
=
!!
data
?.
isUpdate
;
isDetail
.
value
=
!!
data
?.
isDetail
;
isMove
.
value
=
!!
data
?.
isMove
;
if
(
unref
(
isUpdate
))
{
...
...
src/views/dataSharingAndExchange/carouselManagement/index.vue
View file @
5029bd6b
...
...
@@ -220,11 +220,17 @@
});
}
/** 详情按钮*/
function
handleDetails
(
record
:
Recordable
)
{
push
({
path
:
'/dataSharingAndExchange/carouselManagement/detail'
,
query
:
record
,
openModal
(
true
,
{
record
,
isAdd
:
false
,
isUpdate
:
true
,
isDetail
:
true
,
});
console
.
log
(
'path'
,
record
);
// push({
// path: '/dataSharingAndExchange/carouselManagement/detail',
// query: record,
// });
// console.log('path', record);
}
/** 删除按钮*/
...
...
src/views/dataSharingAndExchange/carouselManagement/institution.data.ts
View file @
5029bd6b
...
...
@@ -104,11 +104,6 @@ export const columns: BasicColumn[] = [
dataIndex
:
'createDate'
,
width
:
150
,
},
{
title
:
'发布状态'
,
dataIndex
:
'releaseStatus'
,
width
:
150
,
},
];
export
const
searchFormSchema
:
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