Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
98f3dab2
Commit
98f3dab2
authored
Aug 20, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a86046b3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
171 additions
and
110 deletions
+171
-110
chaneelcode-form.vue
src/components/enterprise/chaneelcode-form.vue
+9
-5
addWelcome.vue
src/pages/enterprise/addWelcome.vue
+77
-92
addchannelcode.vue
src/pages/enterprise/addchannelcode.vue
+5
-3
channelcodeList.vue
src/pages/enterprise/channelcodeList.vue
+20
-8
channelgroupList.vue
src/pages/enterprise/channelgroupList.vue
+1
-1
welcomeList.vue
src/pages/enterprise/welcomeList.vue
+59
-1
No files found.
src/components/enterprise/chaneelcode-form.vue
View file @
98f3dab2
...
...
@@ -112,10 +112,10 @@
<el-form-item
label=
"固定时段:"
v-if=
"peopletype==2"
>
<div
v-for=
"(x,y) in addMsg "
:key=
"y"
>
<div
style=
"display: flex;align-items: flex-start;margin-top: 10px;"
>
<el-time-select
:disabled=
"y==0"
placeholder=
"起始时间"
v-model=
"x.StartHours"
<el-time-select
:disabled=
"y==0"
placeholder=
"起始时间"
v-model=
"x.StartHours"
@
change=
"changeTime()"
:picker-options=
"
{ start: '00:00', step: '01:00', end: '23:00', }">
</el-time-select>
<el-time-select
:disabled=
"y==0"
placeholder=
"结束时间"
v-model=
"x.EndHours"
<el-time-select
:disabled=
"y==0"
placeholder=
"结束时间"
v-model=
"x.EndHours"
@
change=
"changeTime()"
:picker-options=
"
{ start: '00:00', step: '01:00', end: '23:00', minTime: x.StartHours}">
</el-time-select>
<div
style=
"max-width: 320px;"
>
...
...
@@ -261,7 +261,7 @@
//获取部门下拉数据
getDepartList
(
id
)
{
let
msg
=
{
School_Id
:
0
School_Id
:
-
1
}
getDeptTree
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
...
...
@@ -282,8 +282,8 @@
closeEditOrder
()
{
this
.
$emit
(
'close'
)
},
queryEmployee
()
{
//下拉人员列表
queryEmployee
({}).
then
(
res
=>
{
queryEmployee
()
{
//下拉人员列表
IsLeave=1排除了离职的
queryEmployee
({
IsLeave
:
1
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
Employeelist
=
res
.
Data
}
...
...
@@ -514,6 +514,10 @@
}
}
})
},
changeTime
(){
console
.
log
(
'进入'
)
console
.
log
(
this
.
addMsg
)
}
}
...
...
src/pages/enterprise/addWelcome.vue
View file @
98f3dab2
This diff is collapsed.
Click to expand it.
src/pages/enterprise/addchannelcode.vue
View file @
98f3dab2
...
...
@@ -129,7 +129,7 @@
<div
class=
"q-gutter-sm"
style=
"width: 120%;padding: 15px;border: 1px solid #e8e8e8;"
>
<ul
v-if=
"Lableshow == false"
>
<li
class=
"tag-item"
v-for=
"(x,y) in LableList"
:key=
'y'
>
<el-tag
effect=
"plain"
>
{{
x
.
Name
}}
</el-tag>
<el-tag
effect=
"plain"
style=
"min-width: 70px;text-align: center;overflow: hidden;"
>
{{
x
.
Name
}}
</el-tag>
<div
class=
"tag-content"
>
<span
class=
"ant-tag"
:class=
"
{'ant-tag-has-color':item.chek}"
v-for="(item,index) in x.ChildList" :key='index'
...
...
@@ -305,7 +305,7 @@
<el-table-column
prop=
"EmpName"
label=
"名称"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"LimitNum"
label=
"上限"
align=
"center"
>
<template
slot-scope=
"scope"
>
<el-input
style=
"width: 150px;"
type=
'number'
v-model=
"scope.row.LimitNum"
<el-input
style=
"width: 150px;"
type=
'number'
v-model=
"scope.row.LimitNum"
:min=
'0'
@
input=
"$forceUpdate()"
size=
"mini"
placeholder=
""
/>
</
template
>
</el-table-column>
...
...
@@ -325,6 +325,8 @@
<q-btn
color=
"white"
v-if=
"addMsg.Type==2"
text-color=
"black"
icon=
'add'
label=
"选择企业成员"
@
click=
"outerVisible=true,byval=EmpBackUpList,choiceapprovaltype='2'"
/>
</div>
<div
style=
"color: red;"
>
(备用员工的选择最好不要和员工上限模块里的人员重复)
</div>
</el-form-item>
</el-form>
...
...
@@ -806,7 +808,7 @@
})
},
queryEmployee
()
{
//下拉人员列表
queryEmployee
({}).
then
(
res
=>
{
queryEmployee
({
IsLeave
:
1
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
Employeelist
=
res
.
Data
}
...
...
src/pages/enterprise/channelcodeList.vue
View file @
98f3dab2
...
...
@@ -3,7 +3,7 @@
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
input
=
"changePage(1)"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.Name"
<q-input
@
keyup
.
enter
.
native
=
"changePage(1)"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.Name"
label=
"渠道码名称"
@
clear=
"changePage(1)"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
...
...
@@ -28,10 +28,15 @@
</
template
>
<
template
v-slot:body-cell-WXQRCode=
"props"
>
<q-td
:props=
"props"
>
<q-img
v-if=
"props.row.WXQRCode && props.row.WXQRCode!=''"
:src=
"props.row.WXQRCode"
<q-img
v-if=
"props.row.WXQRCode && props.row.WXQRCode!=''"
:src=
"props.row.WXQRCode"
@
click=
"viewDetails(props.row)"
style=
"width: 90px;height: 90px;display: flex;"
>
</q-img>
</q-td>
</
template
>
<
template
v-slot:body-cell-Type=
"props"
>
<q-td
:props=
"props"
>
<div>
{{
props
.
row
.
Type
==
1
?
'单人'
:
'多人'
}}
</div>
</q-td>
</
template
>
...
...
@@ -71,18 +76,19 @@
</q-table>
</div>
<q-dialog
v-model=
"isDetails"
>
<q-card
style=
"width:
56
0px;"
>
<q-card
style=
"width:
45
0px;"
>
<q-card-section
class=
"row items-center q-pb-none"
>
<div
class=
"text-h6"
>
欢迎语
详情
</div>
<div
class=
"text-h6"
>
图片
详情
</div>
<q-space
/>
<q-btn
icon=
"close"
flat
round
dense
v-close-popup
/>
</q-card-section>
<q-card-section
v-if=
'Detailsobj'
class=
"channelcodeList
"
>
<q-card-section
v-if=
"Detailsobj && Detailsobj.WXQRCode
"
>
<q-img
:src=
"Detailsobj.WXQRCode"
style=
"width:400px;height: 400px;margin-left: 9px;"
></q-img>
</q-card-section>
</q-card>
</q-dialog>
</div>
</template>
...
...
@@ -125,9 +131,9 @@
],
//公告column
columns
:
[{
name
:
'
二维码
'
,
name
:
'
WXQRCode
'
,
label
:
'二维码'
,
field
:
'
二维码
'
,
field
:
'
WXQRCode
'
,
align
:
'left'
},
{
...
...
@@ -142,6 +148,12 @@
label
:
'分组'
,
align
:
'left'
},
{
name
:
'Type'
,
field
:
'Type'
,
label
:
'分组'
,
align
:
'left'
},
{
name
:
'CustomerNum'
,
field
:
'CustomerNum'
,
...
...
src/pages/enterprise/channelgroupList.vue
View file @
98f3dab2
...
...
@@ -3,7 +3,7 @@
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
input
=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.Name"
<q-input
@
keyup
.
enter
.
native
=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.Name"
label=
"分组名称"
@
clear=
"resetSearch"
maxlength=
"20"
/>
</div>
</div>
...
...
src/pages/enterprise/welcomeList.vue
View file @
98f3dab2
...
...
@@ -107,6 +107,15 @@
</div>
<div
v-if=
"item.Type==5"
style=
"width: 1px; flex:1"
>
<video
width=
"300"
height=
"200"
controls=
"controls"
v-if=
"item.VideoModel && item.VideoModel.VideoPath"
>
<source
:src=
"item.VideoModel.VideoPath"
type=
"video/ogg"
/>
<source
:src=
"item.VideoModel.VideoPath"
type=
"video/mp4"
/>
<source
:src=
"item.VideoModel.VideoPath"
type=
"video/webm"
/>
</video>
</div>
<div
v-if=
"item.Type==6"
style=
"width: 70%;padding: 10px 15px; border: 1px solid #eee; border-radius: 4px; background: #fff;"
>
<div>
{{item.AppletModel.Title}}
</div>
...
...
@@ -115,6 +124,24 @@
</div>
<div
v-if=
"item.Type==7"
style=
"width: 1px; flex:1;padding: 10px 15px; border: 1px solid #eee; border-radius: 4px; background: #fff;"
>
<div
style=
"display: flex;align-items: flex-start;justify-content: space-between;"
@
click=
"showUpLoadFile(item.FileModel)"
>
<div
style=
"width: 1px;flex:1"
>
{{item.FileModel.FileName}}
</div>
<div
style=
"width: 50px;text-align: right;margin-left: 10px;"
>
<i
v-if=
"item.FileModel.FilePath.substring(item.FileModel.FilePath.lastIndexOf('.')+1,item.FileModel.FilePath.length).toUpperCase()=='PDF'"
class=
"iconfont icon-pdf"
></i>
<i
v-else-if=
"item.FileModel.FilePath.substring(item.FileModel.FilePath.lastIndexOf('.')+1,item.FileModel.FilePath.length).toUpperCase()=='TXT'"
class=
"iconfont icon-txt"
></i>
<i
v-else-if=
"item.FileModel.FilePath.substring(item.FileModel.FilePath.lastIndexOf('.')+1,item.FileModel.FilePath.length).toUpperCase()=='DOCX' ||
item.FileModel.FilePath.substring(item.FileModel.FilePath.lastIndexOf('.')+1,item.FileModel.FilePath.length).toUpperCase()=='DOC'
"
class=
"iconfont icon-word"
></i>
<i
v-else
class=
"iconfont icon-excel"
></i>
</div>
</div>
</div>
</div>
</div>
...
...
@@ -297,7 +324,27 @@
viewDetails
(
row
)
{
this
.
Detailsobj
=
row
this
.
isDetails
=
true
}
},
showUpLoadFile
(
i
)
{
// 文件类型进行判断
if
(
i
.
FileName
.
substring
(
i
.
FileName
.
lastIndexOf
(
"."
)
+
1
,
i
.
FileName
.
length
).
toUpperCase
()
==
"PDF"
||
i
.
FileName
.
substring
(
i
.
FileName
.
lastIndexOf
(
"."
)
+
1
,
i
.
FileName
.
length
).
toUpperCase
()
==
"TXT"
)
{
this
.
previewPDF
(
i
.
Url
);
}
else
{
window
.
open
(
"https://view.officeapps.live.com/op/view.aspx?src="
+
i
.
FilePath
);
}
},
}
}
...
...
@@ -371,4 +418,15 @@
align-items
:
center
;
border-bottom
:
1px
solid
#e8e8e8
;
}
.welcomeList
.icon-excel
,
.welcomeList
.icon-pdf
,
.welcomeList
.icon-txt
,
.welcomeList
.icon-wenjian
,
.welcomeList
.icon-yasuobao
,
.welcomeList
.icon-shipin
,
.welcomeList
.icon-word
{
font-size
:
38px
;
color
:
green
;
line-height
:
75px
;
}
</
style
>
\ No newline at end of file
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