Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
longhui_web
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
杨硕
longhui_web
Commits
ba7cb957
Commit
ba7cb957
authored
Jun 28, 2023
by
高宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
9574ceb1
15c92254
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
25 deletions
+31
-25
index.vue
src/components/quilleditor/index.vue
+2
-2
activityadd.vue
src/views/activity/activityadd.vue
+2
-0
annoceaddorupdate.vue
src/views/announcements/annoceaddorupdate.vue
+3
-3
index.vue
src/views/announcements/index.vue
+23
-19
index.vue
src/views/system/user/index.vue
+1
-1
No files found.
src/components/quilleditor/index.vue
View file @
ba7cb957
...
...
@@ -74,7 +74,7 @@ export default {
toolbar
:
{
container
:
toolbarOptions
,
handlers
:
{
image
:
function
(
value
)
{
image
:
function
(
value
)
{
if
(
value
)
{
// 调用element的图片上传组件
document
.
querySelector
(
'.avatar-uploader input'
).
click
()
...
...
@@ -91,7 +91,7 @@ export default {
created
()
{
// TODO: clear this log
console
.
log
(
`this.value`
,
this
.
value
)
console
.
log
(
`this.value`
,
this
.
value
,
this
.
type
)
// this.content = ''
if
(
this
.
type
===
'1'
||
this
.
type
===
'2'
)
{
this
.
content
=
this
.
value
...
...
src/views/activity/activityadd.vue
View file @
ba7cb957
...
...
@@ -271,6 +271,7 @@ export default {
}
else
if
(
this
.
type
===
1
)
{
this
.
form
=
this
.
$route
.
query
.
data
this
.
style
=
this
.
$route
.
query
.
data
.
style
this
.
isRestrictions
=
Number
(
this
.
$route
.
query
.
data
.
isRestrictions
)
this
.
imageUrl
=
baseURL
+
this
.
form
.
imgUrl
this
.
richtexttype
=
'1'
this
.
formdisable
=
false
...
...
@@ -278,6 +279,7 @@ export default {
}
else
if
(
this
.
type
===
2
)
{
this
.
form
=
this
.
$route
.
query
.
data
this
.
style
=
this
.
$route
.
query
.
data
.
style
this
.
isRestrictions
=
Number
(
this
.
$route
.
query
.
data
.
isRestrictions
)
this
.
imageUrl
=
baseURL
+
this
.
form
.
imgUrl
this
.
richtexttype
=
'2'
this
.
formdisable
=
true
...
...
src/views/announcements/annoceaddorupdate.vue
View file @
ba7cb957
<
template
>
<div
style=
"padding: 0 20px"
>
<div
v-if=
"type === 0"
class=
"add-title"
>
新增
活动
</div>
<div
v-if=
"type === 1"
class=
"add-title"
>
编辑
活动
</div>
<div
v-if=
"type === 0"
class=
"add-title"
>
新增
公告
</div>
<div
v-if=
"type === 1"
class=
"add-title"
>
编辑
公告
</div>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"100px"
>
<el-form-item
label=
"公告标题"
prop=
"title"
>
<el-input
v-model
.
trim=
"form.title"
:maxlength=
"30"
placeholder=
"请输入公告标题"
/>
...
...
@@ -20,7 +20,7 @@
</
template
>
<
script
>
import
{
announcementadd
,
announcementupdate
}
from
'@/api/announcement'
import
{
announcementadd
,
announcementupdate
,
queryannounceDetailById
}
from
'@/api/announcement'
import
quilleditor
from
'@/components/quilleditor'
export
default
{
name
:
'Annoceaddorupdate'
,
...
...
src/views/announcements/index.vue
View file @
ba7cb957
...
...
@@ -68,8 +68,8 @@
</el-table-column>
<el-table-column
label=
"公告状态"
align=
"center"
prop=
"status"
>
<
template
slot-scope=
"scope"
>
<!--
<span
v-if=
"scope.row.status === 0"
style=
"color: #D84848 "
>
未发布
</span>
-->
<!--
<span
v-if=
"scope.row.status === 1"
style=
"color: #42AE5B"
>
已发布
</span>
-->
<!--
<span
v-if=
"scope.row.status === 0"
style=
"color: #D84848 "
>
未发布
</span>
-->
<!--
<span
v-if=
"scope.row.status === 1"
style=
"color: #42AE5B"
>
已发布
</span>
-->
<el-switch
:value=
"scope.row.status"
class=
"switchDisabledStyle"
...
...
@@ -104,15 +104,15 @@
type=
"text"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
<!--
<el-switch-->
<!-- :value="scope.row.status"-->
<!-- class="switchDisabledStyle"-->
<!-- :active-value="1"-->
<!-- :inactive-value="0"-->
<!-- active-text="发布"-->
<!-- style="margin-left: 10px"-->
<!-- @change="handleStatusChange(scope.row)"-->
<!-- />-->
<!--
<el-switch-->
<!-- :value="scope.row.status"-->
<!-- class="switchDisabledStyle"-->
<!-- :active-value="1"-->
<!-- :inactive-value="0"-->
<!-- active-text="发布"-->
<!-- style="margin-left: 10px"-->
<!-- @change="handleStatusChange(scope.row)"-->
<!-- />-->
</
template
>
</el-table-column>
</el-table>
...
...
@@ -170,7 +170,7 @@ import {
announcementdel
,
announcementList
,
announcementpublish
,
announcementupdate
announcementupdate
,
queryannounceDetailById
}
from
'@/api/announcement'
export
default
{
...
...
@@ -221,6 +221,7 @@ export default {
page
:
1
,
rows
:
10
},
data
:
{},
// 表单参数
form
:
{},
// 表单校验
...
...
@@ -332,13 +333,16 @@ export default {
// this.form = row
// this.open = true
// this.type = '1'
const
id
=
row
.
businessId
queryannounceDetailById
(
id
).
then
(
res
=>
{
this
.
$router
.
push
({
path
:
'/announcements/annoceaddorupdate'
,
query
:
{
type
:
1
,
data
:
row
data
:
res
.
data
}
})
})
},
/** 提交按钮 */
submitForm
()
{
...
...
src/views/system/user/index.vue
View file @
ba7cb957
...
...
@@ -739,11 +739,11 @@ export default {
handleUpdate
(
row
)
{
this
.
reset
()
const
userId
=
row
.
businessId
||
this
.
ids
this
.
title
=
'修改'
getUser
(
userId
).
then
(
response
=>
{
this
.
open
=
true
this
.
form
=
response
.
data
this
.
roleList
=
row
.
roleList
.
map
(
Number
)
this
.
title
=
'修改'
})
this
.
getChildrenDept
(
userId
)
},
...
...
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