Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
website-middleground
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ace60bab
authored
Jul 30, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复新增公告删除问题
1 parent
8147c031
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
11 deletions
src/views/investorRelated/components/AddForm.vue
src/views/investorRelated/index.vue
vite.config.ts
src/views/investorRelated/components/AddForm.vue
View file @
ace60ba
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2024-07-26 10:46:04
* @Date: 2024-07-26 10:46:04
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2024-07-30 1
6:21:58
* @LastEditTime: 2024-07-30 1
7:11:03
-->
-->
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
reactive
,
ref
,
nextTick
,
toRefs
,
onBeforeMount
}
from
"vue"
;
import
{
reactive
,
ref
,
nextTick
,
toRefs
,
onBeforeMount
}
from
"vue"
;
...
@@ -182,7 +182,6 @@ const deleteInvotice = (id: number) => {
...
@@ -182,7 +182,6 @@ const deleteInvotice = (id: number) => {
list
.
value
=
list
.
value
.
filter
((
item
)
=>
item
.
id
!==
id
);
list
.
value
=
list
.
value
.
filter
((
item
)
=>
item
.
id
!==
id
);
console
.
log
(
list
.
value
)
console
.
log
(
list
.
value
)
data
.
childPass
.
splice
(
index
,
1
);
data
.
childPass
.
splice
(
index
,
1
);
console
.
log
(
id
,
index
)
console
.
log
(
id
,
index
)
delete
form
[
`c_filePath
${
id
}
`
];
delete
form
[
`c_filePath
${
id
}
`
];
delete
form
[
`u_filePath
${
id
}
`
];
delete
form
[
`u_filePath
${
id
}
`
];
...
@@ -196,7 +195,7 @@ const deleteInvotice = (id: number) => {
...
@@ -196,7 +195,7 @@ const deleteInvotice = (id: number) => {
delete
form
[
`c_loading
${
id
}
`
];
delete
form
[
`c_loading
${
id
}
`
];
delete
form
[
`u_loading
${
id
}
`
];
delete
form
[
`u_loading
${
id
}
`
];
delete
form
[
`e_loading
${
id
}
`
];
delete
form
[
`e_loading
${
id
}
`
];
data
.
activeKey
.
splice
(
index
,
1
);
//
data.activeKey.splice(index, 1);
console
.
log
(
form
,
data
)
console
.
log
(
form
,
data
)
};
};
/** 新增公告 */
/** 新增公告 */
...
@@ -220,7 +219,7 @@ const addInvnotice = () => {
...
@@ -220,7 +219,7 @@ const addInvnotice = () => {
form
[
`e_loading
${
_id
}
`
]
=
false
;
form
[
`e_loading
${
_id
}
`
]
=
false
;
data
.
activeKey
.
push
(
_id
);
data
.
activeKey
.
push
(
_id
);
data
.
childPass
.
push
(
false
);
data
.
childPass
.
push
(
false
);
console
.
log
(
data
)
console
.
log
(
data
,
list
)
};
};
onBeforeMount
(()
=>
{
onBeforeMount
(()
=>
{
if
(
query
.
value
.
id
)
findById
();
if
(
query
.
value
.
id
)
findById
();
...
@@ -430,7 +429,7 @@ const onBeforeRemove = (fileItem: FileItem, modelName: string) => {
...
@@ -430,7 +429,7 @@ const onBeforeRemove = (fileItem: FileItem, modelName: string) => {
label=
"新增公告"
label=
"新增公告"
:rules=
"[
{ required: true }]"
:rules=
"[
{ required: true }]"
>
>
<a-collapse
class=
"collapse"
:default-active-key=
"data.activeKey"
>
<a-collapse
class=
"collapse"
:
activeKey=
"data.activeKey"
:
default-active-key=
"data.activeKey"
>
<a-collapse-item
<a-collapse-item
v-for=
"item in list"
v-for=
"item in list"
:header=
"form[`c_title$
{item.id}`]"
:header=
"form[`c_title$
{item.id}`]"
...
@@ -438,7 +437,9 @@ const onBeforeRemove = (fileItem: FileItem, modelName: string) => {
...
@@ -438,7 +437,9 @@ const onBeforeRemove = (fileItem: FileItem, modelName: string) => {
>
>
<template
#
extra
>
<template
#
extra
>
<dir
class=
"collapse-header"
>
<dir
class=
"collapse-header"
>
<icon-delete
v-if=
"!query.id && list.length > 1"
@
click=
"deleteInvotice(item.id)"
/>
<a-popconfirm
content=
"是否确认删除"
@
ok=
"deleteInvotice(item.id)"
position=
"tr"
>
<icon-delete
class=
"icon"
v-if=
"!query.id && list.length > 1"
/>
</a-popconfirm>
</dir>
</dir>
</
template
>
</
template
>
<a-form
<a-form
...
@@ -711,6 +712,14 @@ const onBeforeRemove = (fileItem: FileItem, modelName: string) => {
...
@@ -711,6 +712,14 @@ const onBeforeRemove = (fileItem: FileItem, modelName: string) => {
height
:
24
px
;
height
:
24
px
;
box
-
sizing
:
border
-
box
;
box
-
sizing
:
border
-
box
;
margin
:
0
;
margin
:
0
;
position
:
relative
;
.
icon
{
margin
-
right
:
10
px
;
position
:
absolute
;
right
:
0
;
top
:
50
%
;
transform
:
translateY
(
-
50
%
);
}
}
}
<
/style>
<
/style>
<
style
lang
=
"scss"
>
<
style
lang
=
"scss"
>
...
...
src/views/investorRelated/index.vue
View file @
ace60ba
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2024-07-23 16:43:07
* @Date: 2024-07-23 16:43:07
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2024-07-30 1
5:02:38
* @LastEditTime: 2024-07-30 1
6:50:32
-->
-->
<!--
<!--
* @Description:
* @Description:
...
@@ -217,8 +217,6 @@ getTableData()
...
@@ -217,8 +217,6 @@ getTableData()
<!--
<a-button
type=
"text"
v-if=
"record.systemPublishStatus === 1 || record.systemPublishStatus === 2"
>
发布
</a-button>
-->
<!--
<a-button
type=
"text"
v-if=
"record.systemPublishStatus === 1 || record.systemPublishStatus === 2"
>
发布
</a-button>
-->
<a-button
type=
"text"
v-if=
"record.systemPublishStatus === 3"
>
下架
</a-button>
<a-button
type=
"text"
v-if=
"record.systemPublishStatus === 3"
>
下架
</a-button>
</a-popconfirm>
</a-popconfirm>
<a-button
type=
"text"
@
click=
"edit(record)"
v-if=
"record.systemPublishStatus === 1 || record.systemPublishStatus === 2"
>
编辑
</a-button>
<a-button
type=
"text"
@
click=
"edit(record)"
v-if=
"record.systemPublishStatus === 1 || record.systemPublishStatus === 2"
>
编辑
</a-button>
<a-button
type=
"text"
@
click=
"previewOA(record)"
>
OA截图
</a-button>
<a-button
type=
"text"
@
click=
"previewOA(record)"
>
OA截图
</a-button>
<a-image-preview
<a-image-preview
...
...
vite.config.ts
View file @
ace60ba
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2024-07-
25 11:09:38
* @LastEditTime: 2024-07-
30 17:12:02
*/
*/
import
{
defineConfig
}
from
'vite'
import
{
defineConfig
}
from
'vite'
import
vue
from
'@vitejs/plugin-vue'
import
vue
from
'@vitejs/plugin-vue'
...
@@ -13,7 +13,7 @@ const resolve = (dir: string) => path.join(__dirname, dir)
...
@@ -13,7 +13,7 @@ const resolve = (dir: string) => path.join(__dirname, dir)
// https://vitejs.dev/config/
// https://vitejs.dev/config/
export
default
defineConfig
({
export
default
defineConfig
({
base
:
'/'
,
base
:
'
.
/'
,
plugins
:
[
plugins
:
[
vue
(),
vue
(),
vitePluginForArco
({
vitePluginForArco
({
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment