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 2cbc57a4
authored
Oct 21, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
ef138cbf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
src/views/investorRelated/index.vue
src/views/news/components/AddForm.vue
src/views/news/index.vue
src/views/investorRelated/index.vue
View file @
2cbc57a
...
...
@@ -210,13 +210,13 @@ getTableData()
</a-popconfirm>
<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-image-preview
:src=
"data.imgUrl"
v-model:visible=
"data.imgVisible"
/>
</
template
>
</a-table>
<a-pagination
class=
"pagination"
:total=
"data.total"
@
change=
"changePage"
@
page-size-change=
"changeSize"
show-total
show-jumper
show-page-size
/>
<a-image-preview
:src=
"data.imgUrl"
v-model:visible=
"data.imgVisible"
/>
</div>
</template>
...
...
src/views/news/components/AddForm.vue
View file @
2cbc57a
...
...
@@ -25,7 +25,7 @@ const data = ref({
pcImgLoading
:
false
,
errMeg
:
''
})
const
width
=
ref
(
'
40
0px'
);
const
width
=
ref
(
'
64
0px'
);
const
formRef
=
ref
();
onBeforeMount
(()
=>
{
...
...
@@ -318,7 +318,7 @@ onBeforeUnmount(() => {
:defaultConfig=
"editorConfig"
:mode=
"mode"
v-model=
"valueHtml"
style=
"height: 400px; overflow-y: hidden"
style=
"height: 400px; overflow-y: hidden
;
"
@
onCreated=
"handleCreated"
@
onChange=
"handleChange"
@
customPaste=
"customPaste"
...
...
@@ -361,5 +361,6 @@ onBeforeUnmount(() => {
}
.editor-box
{
border
:
1px
solid
#DCDEE0
;
width
:
70%
;
}
</
style
>
src/views/news/index.vue
View file @
2cbc57a
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-07-23 16:43:07
* @LastEditors: huyue
* @LastEditTime: 2024-10-
17 17:47:54
* @LastEditTime: 2024-10-
21 15:09:55
-->
<
script
lang=
"ts"
setup
>
import
{
ref
}
from
'vue'
...
...
@@ -77,6 +77,7 @@ const edit = (item: Partial<TableItem>) => {
});
}
const
previewOA
=
(
record
:
Partial
<
TableItem
>
)
=>
{
console
.
log
(
record
)
if
(
record
?.
oaCover
)
{
data
.
value
.
imgVisible
=
true
data
.
value
.
imgUrl
=
record
?.
oaCover
...
...
@@ -121,13 +122,13 @@ getTableData()
</a-popconfirm>
<a-button
type=
"text"
@
click=
"edit(record)"
v-if=
"record.publishStatus === 2 || record.publishStatus === 3"
>
编辑
</a-button>
<a-button
type=
"text"
@
click=
"previewOA(record)"
>
OA截图
</a-button>
<a-image-preview
:src=
"data.imgUrl"
v-model:visible=
"data.imgVisible"
/>
</
template
>
</a-table>
<a-pagination
class=
"pagination"
:total=
"data.total"
@
change=
"changePage"
@
page-size-change=
"changeSize"
show-total
show-jumper
show-page-size
/>
<a-image-preview
:src=
"data.imgUrl"
v-model:visible=
"data.imgVisible"
/>
</div>
</template>
...
...
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