Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 81dc76dc
authored
Jun 25, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
7b515071
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
47 deletions
src/views/contentManager/SopContentAdd.vue
src/views/contentManager/components/empDialog/index.vue
src/views/contentManager/SopContentAdd.vue
View file @
81dc76d
...
...
@@ -18,7 +18,7 @@
<el-form-item
label-width=
"120px"
label=
"类型:"
prop=
"type"
>
<el-radio-group
v-model=
"formData.contentType"
@
change=
"changeFileType()"
>
<el-radio
v-for=
"(item, index) in contentTypeList"
:key=
"index"
:label=
"item.value"
>
{{
item
.
label
}}
</el-radio>
}}
</el-radio>
</el-radio-group>
</el-form-item>
<!-- 学习任务 -->
...
...
@@ -238,7 +238,7 @@
<div
class=
"publish-channel-form"
>
<div
class=
"title"
>
<div
class=
"line"
></div>
<span>
群
送
设置
</span>
<span>
群
发
设置
</span>
</div>
<div
class=
"publish-info"
>
<el-form
:model=
"formData"
:rules=
"rules"
ref=
"sendTypeForm"
>
...
...
@@ -817,6 +817,11 @@ export default {
return
val
||
this
.
empTypeList
[
0
]
}
},
filters
:
{
empTypeListFilter
(
type
)
{
return
this
.
formData
.
contentType
==
5
?
this
.
empTypeList
.
filter
((
i
)
=>
i
.
selectStaffType
!=
10
)
:
this
.
empTypeList
}
},
mounted
()
{
const
{
id
,
contentType
,
selectStaffType
}
=
this
.
$route
.
query
this
.
routeInfo
=
this
.
$route
.
query
...
...
@@ -1427,6 +1432,12 @@ export default {
if (!params.content) {
delete params.content
}
// 不是学习任务去掉群发送设置
if (this.formData.contentType != 5) {
delete params.extendConfig
}
insertOrUpdate(params).then((res) => {
if (res) {
this.$message.success(
...
...
src/views/contentManager/components/empDialog/index.vue
View file @
81dc76d
<!-- 关联门店弹窗 -->
<
template
>
<d2-dialog
title=
"选择员工"
:is-visible
.
sync=
"relateStoreVisible"
width=
"1280px"
btn-ok-label=
"确定"
@
confirmDialog=
"handleRelateStoreConfirm"
@
closeDialog=
"handleRelateStoreClose"
class=
"relateEmp"
>
<d2-dialog
title=
"选择员工"
:is-visible
.
sync=
"relateStoreVisible"
width=
"1280px"
btn-ok-label=
"确定"
@
confirmDialog=
"handleRelateStoreConfirm"
@
closeDialog=
"handleRelateStoreClose"
class=
"relateEmp"
>
<el-row
class=
"tableCon"
>
<div
class=
"tableBox"
>
<div
class=
"tableHeader"
>
选择员工
</div>
<div
class=
"tableBody"
>
<el-form
:model=
"storeSearchForm"
ref=
"relate"
:inline=
"true"
>
<el-form-item
label=
"员工名称:"
>
<el-input
v-model
.
trim=
"storeSearchForm.staffName"
placeholder=
"请输入员工名称"
max-length=
"20"
clearable
/>
<el-input
v-model
.
trim=
"storeSearchForm.staffName"
placeholder=
"请输入员工名称"
max-length=
"20"
clearable
/>
</el-form-item>
<el-form-item
label=
"员工手机号:"
>
<el-input
v-model
.
trim=
"storeSearchForm.staffPhone"
placeholder=
"请输入手机号"
max-length=
"20"
clearable
/>
<el-input
v-model
.
trim=
"storeSearchForm.staffPhone"
placeholder=
"请输入手机号"
max-length=
"11"
type=
"number"
clearable
/>
</el-form-item>
<div
class=
"text-align: right;"
>
<el-button
type=
"primary"
@
click=
"handleCurrentChange(1)"
>
搜索
</el-button
>
<el-button
type=
"primary"
@
click=
"handleCurrentChange(1)"
>
搜索
</el-button>
</div>
</el-form>
</div>
<el-table
ref=
"seletingTable"
:data=
"selectingData"
height=
"264px"
class=
"table"
border
@
select=
"handleChange"
@
select-all=
"handleAll"
>
<el-table
ref=
"seletingTable"
:data=
"selectingData"
height=
"264px"
class=
"table"
border
@
select=
"handleChange"
@
select-all=
"handleAll"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
prop=
"staffName"
label=
"员工名称"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"staffPhone"
label=
"手机号"
align=
"center"
>
</el-table-column>
</el-table>
<el-pagination
small
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
:page-size=
"pageSize"
layout=
"total, prev, pager, next"
:total=
"total"
/>
<el-pagination
small
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
:page-size=
"pageSize"
layout=
"total, prev, pager, next"
:total=
"total"
/>
</div>
<div
class=
"tableBox"
>
<div
class=
"tableHeader"
>
...
...
@@ -116,7 +84,7 @@ export default {
}
},
mounted
()
{},
mounted
()
{
},
watch
:
{
relateStoreVisible
:
{
handler
(
val
)
{
...
...
@@ -165,8 +133,8 @@ export default {
addOrDelete
?
this
.
selectedData
.
push
(
row
)
:
(
this
.
selectedData
=
this
.
selectedData
.
filter
(
(
item
)
=>
item
.
id
!==
row
.
id
))
(
item
)
=>
item
.
id
!==
row
.
id
))
},
handleAll
(
selection
)
{
this
.
selectingData
.
forEach
((
item
)
=>
{
...
...
@@ -202,9 +170,11 @@ export default {
.relateEmp
.tableCon
{
display
:
flex
;
gap
:
10px
;
.tableBox
{
width
:
calc
(
50%
-
10px
);
border
:
1px
solid
#e5e5e5
;
.tableHeader
{
opacity
:
1
;
background
:
#f5f5f5
;
...
...
@@ -213,41 +183,51 @@ export default {
display
:
flex
;
font-size
:
14px
;
justify-content
:
space-between
;
.clear-btn
{
color
:
#409eff
;
cursor
:
pointer
;
}
}
.tableBody
{
padding
:
16px
;
.tab-box
{
margin-bottom
:
-20px
;
.el-tabs__nav-wrap
{
&::after
{
display
:
none
;
}
}
}
.el-input
{
width
:
170px
;
}
.el-range-editor--medium.el-input__inner
{
width
:
300px
!important
;
}
}
}
}
.service-store
.relateEmp
.el-table
.cell
,
.d2-form
.relateEmp
.el-table
.cell
{
line-height
:
26px
!important
;
}
.service-store
.relateEmp
.el-table--medium
td
,
.d2-form
.relateEmp
.el-table--medium
td
{
padding
:
6px
8px
!important
;
}
.relateEmp
.red
{
color
:
red
;
}
.relateEmp
.tip-icon
{
position
:
absolute
;
display
:
inline-block
;
...
...
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