Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7d1060f8
authored
2023-08-31 13:34:29 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:系统通知
1 parent
bbdd382c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
16 deletions
src/views/system/xttz/components/addDialog.vue
src/views/system/xttz/xttz.vue
src/views/system/xttz/components/addDialog.vue
View file @
7d1060f
...
...
@@ -54,10 +54,11 @@
</el-form>
</
template
>
<
script
>
import
{
addSysNotice
,
updateSysNotice
}
from
"@/api/sysNotice.js"
;
import
{
upload
}
from
"@/api/file.js"
;
import
{
quillEditor
}
from
"vue-quill-editor"
;
export
default
{
import
{
addSysNotice
,
updateSysNotice
}
from
"@/api/sysNotice.js"
;
import
{
upload
}
from
"@/api/file.js"
;
import
store
from
'@/store'
import
{
quillEditor
}
from
"vue-quill-editor"
;
export
default
{
props
:
{
formData
:
{
type
:
Object
,
...
...
@@ -194,9 +195,9 @@ export default {
addSysNotice
(
this
.
ruleForm
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"保存成功"
);
store
.
dispatch
(
"user/refreshPage"
,
true
);
this
.
$popupCacel
()
this
.
resetRuleForm
();
this
.
$parent
.
queryClick
();
}
else
{
this
.
$message
.
error
(
res
.
message
);
}
...
...
@@ -213,13 +214,12 @@ export default {
this
.
$message
.
success
(
"编辑成功"
);
this
.
$popupCacel
()
this
.
resetRuleForm
();
this
.
$parent
.
queryClick
(
);
store
.
dispatch
(
"user/refreshPage"
,
true
);
}
else
{
this
.
$message
.
error
(
res
.
message
);
}
});
},
//重置表单
/**
* @description: 重置表单
* @author: renchao
...
...
@@ -349,22 +349,23 @@ export default {
//this.content = html;
}
}
};
};
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/dialogBoxheader.scss"
;
@import
"~@/styles/dialogBoxheader.scss"
;
.quill-editor
{
.quill-editor
{
padding
:
0
;
}
}
.ql-editor
{
.ql-editor
{
height
:
auto
!important
;
}
}
/
deep
/
.ql-container
{
/
deep
/
.ql-container
{
padding
:
0
;
max-height
:
400px
;
min-height
:
160px
;
overflow-y
:
scroll
;
}
</
style
>
}
</
style
>
...
...
src/views/system/xttz/xttz.vue
View file @
7d1060f
...
...
@@ -38,6 +38,7 @@
</
template
>
<
script
>
import
table
from
"@/utils/mixin/table"
;
import
{
mapGetters
}
from
'vuex'
import
{
datas
,
sendThis
}
from
"./xttzdata"
;
import
{
getSysNoticeList
,
deleteSysNotice
,
publishNotice
,
unPublishNotice
}
from
"@/api/sysNotice.js"
import
addDialog
from
"./components/addDialog.vue"
;
...
...
@@ -73,6 +74,17 @@
isDiglog
:
false
}
},
computed
:
{
...
mapGetters
([
'isRefresh'
])
},
watch
:
{
isRefresh
:
{
handler
(
newVal
,
oldVal
)
{
if
(
newVal
)
this
.
queryClick
()
},
immediate
:
true
}
},
methods
:
{
// 列表渲染接口
/**
...
...
@@ -90,7 +102,6 @@
}
})
},
//打开新增弹窗
/**
* @description: 打开新增弹窗
* @param {*} item
...
...
@@ -102,6 +113,7 @@
}
else
{
this
.
$popupDialog
(
"新增系统通知"
,
"system/xttz/components/addDialog"
,
{
"isButtonFlag"
:
true
},
"50%"
)
}
this
.
$store
.
dispatch
(
"user/refreshPage"
,
false
);
},
//删除
delNotice
(
item
)
{
...
...
Please
register
or
sign in
to post a comment