Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-outbound
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 f8a16645
authored
Aug 23, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit:ui表单改版
1 parent
786d9d8d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
15 deletions
package.json
src/assets/css/public.scss
src/components/glsx-combi-form/index.vue
src/views/outbound/index.vue
package.json
View file @
f8a1664
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.
4.8
"
,
"glsx-components"
:
"^1.
5.2
"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
"vue-router"
:
"^3.1.3"
,
"vuex"
:
"^3.1.2"
"vuex"
:
"^3.1.2"
...
...
src/assets/css/public.scss
View file @
f8a1664
...
@@ -8,7 +8,7 @@ html {
...
@@ -8,7 +8,7 @@ html {
background-color
:
#f4f5fa
;
background-color
:
#f4f5fa
;
}
}
.el-form-item__content
{
.el-form-item__content
{
width
:
360
px
;
width
:
284
px
;
.el-input__inner
{
.el-input__inner
{
height
:
32px
!
important
;
height
:
32px
!
important
;
line-height
:
32px
!
important
;
line-height
:
32px
!
important
;
...
...
src/components/glsx-combi-form/index.vue
View file @
f8a1664
<!-- 搜索 -->
<!-- 搜索 -->
<
template
>
<
template
>
<div
class=
"glsx-combi-form"
>
<div
class=
"glsx-combi-form
gl-form-page gl-form-min
"
>
<el-form
:ref=
"formRef"
:inline=
"true"
:model=
"formObj"
:label-width=
"labelWidth"
:rules=
"formRules"
size=
"mini"
class=
"glsx-combi-form-block"
>
<el-form
:ref=
"formRef"
:inline=
"true"
:model=
"formObj"
:label-width=
"labelWidth"
:rules=
"formRules"
size=
"mini"
class=
"glsx-combi-form-block"
>
<template
v-for=
"(item, index) in formData"
>
<template
v-for=
"(item, index) in formData"
>
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:class=
"
{ 'no-label': !item.label, tips: item.tips }" :label="item.label ? item.label + ':' : ''" :prop="item.name">
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:class=
"
{ 'no-label': !item.label, tips: item.tips }" :label="item.label ? item.label + ':' : ''" :prop="item.name">
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"item"
></slot>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"item"
></slot>
<el-input
v-else-if=
"item.type === 'input'"
:placeholder=
"item.placeholder || '请输入' + item.label"
v-model
.
trim=
"formObj[item.name]"
:disabled=
"item.isDisabled"
:maxlength=
"item.maxlength"
:clearable=
"item.isClear || false"
:type=
"item.inputType || 'text'"
:style=
"
{ width: item.width ||
'auto'
}" :show-word-limit="item.showLimit || false" @keydown.native="e => handleInputDown(e, item)">
</el-input>
<el-input
v-else-if=
"item.type === 'input'"
:placeholder=
"item.placeholder || '请输入' + item.label"
v-model
.
trim=
"formObj[item.name]"
:disabled=
"item.isDisabled"
:maxlength=
"item.maxlength"
:clearable=
"item.isClear || false"
:type=
"item.inputType || 'text'"
:style=
"
{ width: item.width ||
defaultWidth
}" :show-word-limit="item.showLimit || false" @keydown.native="e => handleInputDown(e, item)">
</el-input>
<!-- 选择-输入框 -->
<!-- 选择-输入框 -->
<el-input
v-else-if=
"item.type === 'selectInput'"
:placeholder=
"'请输入' + item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).label"
v-model
.
trim=
"searchSelectObj[item.selectName].value"
:clearable=
"item.isClear || false"
class=
"input-with-select"
>
<el-input
v-else-if=
"item.type === 'selectInput'"
:placeholder=
"'请输入' + item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).label"
v-model
.
trim=
"searchSelectObj[item.selectName].value"
:clearable=
"item.isClear || false"
class=
"input-with-select"
>
<el-select
v-model=
"searchSelectObj[item.selectName].attr"
style=
"width: 130px"
slot=
"prepend"
placeholder=
"请选择"
@
change=
"item.handleSelectChange"
>
<el-select
v-model=
"searchSelectObj[item.selectName].attr"
style=
"width: 130px"
slot=
"prepend"
placeholder=
"请选择"
@
change=
"item.handleSelectChange"
>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</
template
>
</
template
>
<!-- 选择-时间选择框 -->
<!-- 选择-时间选择框 -->
<
template
v-else-if=
"item.type === 'selectTimePicker'"
>
<
template
v-else-if=
"item.type === 'selectTimePicker'"
>
<el-time-picker
is-range
v-model=
"formObj[item.name]"
:value-format=
"item.format || ''"
:style=
"
{ width: item.width ||
'100%'
}" :picker-options="item.pickerOptions || ''" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围">
</el-time-picker>
<el-time-picker
is-range
v-model=
"formObj[item.name]"
:value-format=
"item.format || ''"
:style=
"
{ width: item.width ||
defaultWidth
}" :picker-options="item.pickerOptions || ''" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围">
</el-time-picker>
</
template
>
</
template
>
<!-- 双选择框 -->
<!-- 双选择框 -->
<
template
v-else-if=
"item.type === 'selectDouble'"
>
<
template
v-else-if=
"item.type === 'selectDouble'"
>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</el-select>
</el-select>
</
template
>
</
template
>
<!-- 选择框 -->
<!-- 选择框 -->
<el-select
v-else-if=
"item.type === 'select'"
:style=
"{ width: item.width ||
'100%'
}"
v-model=
"formObj[item.name]"
:clearable=
"item.isClear || false"
:placeholder=
"'请选择' + item.label"
:filterable=
"!item.noFilter"
:disabled=
"item.isDisabled"
:no-data-text=
"item.noDataText || '无数据'"
:multiple=
"item.multiple || false"
:collapse-tags=
"item.collapseTags || true"
@
change=
"selectAddAttr($event, item)"
>
<el-select
v-else-if=
"item.type === 'select'"
:style=
"{ width: item.width ||
defaultWidth
}"
v-model=
"formObj[item.name]"
:clearable=
"item.isClear || false"
:placeholder=
"'请选择' + item.label"
:filterable=
"!item.noFilter"
:disabled=
"item.isDisabled"
:no-data-text=
"item.noDataText || '无数据'"
:multiple=
"item.multiple || false"
:collapse-tags=
"item.collapseTags || true"
@
change=
"selectAddAttr($event, item)"
>
<el-option
v-for=
"subItem in item.optionList"
:key=
"item.optionId ? subItem[item.optionId] : subItem"
:label=
"item.optionLabel ? subItem[item.optionLabel] : subItem"
:value=
"item.optionId ? subItem[item.optionId] : subItem"
:disabled=
"subItem.isDisabled || false"
></el-option>
<el-option
v-for=
"subItem in item.optionList"
:key=
"item.optionId ? subItem[item.optionId] : subItem"
:label=
"item.optionLabel ? subItem[item.optionLabel] : subItem"
:value=
"item.optionId ? subItem[item.optionId] : subItem"
:disabled=
"subItem.isDisabled || false"
></el-option>
</el-select>
</el-select>
<!-- 计数器 -->
<!-- 计数器 -->
...
@@ -69,9 +69,13 @@ export default {
...
@@ -69,9 +69,13 @@ export default {
type
:
String
,
type
:
String
,
default
:
'formRef'
default
:
'formRef'
},
},
defaultWidth
:
{
type
:
String
,
default
:
'432px'
},
labelWidth
:
{
labelWidth
:
{
type
:
String
,
type
:
String
,
default
:
'
85
px'
default
:
'
154
px'
},
},
formData
:
{
formData
:
{
type
:
Array
,
type
:
Array
,
...
@@ -141,7 +145,11 @@ export default {
...
@@ -141,7 +145,11 @@ export default {
margin
:
0
;
margin
:
0
;
}
}
.glsx-combi-form
/
deep
/
.el-input-number
{
.glsx-combi-form
/
deep
/
.el-input-number
{
width
:
85px
;
width
:
85px
!important
;
.el-input
{
width
:
100%
!important
;
}
.el-input__inner
{
.el-input__inner
{
height
:
28px
!important
;
height
:
28px
!important
;
line-height
:
28px
!important
;
line-height
:
28px
!important
;
...
@@ -150,7 +158,7 @@ export default {
...
@@ -150,7 +158,7 @@ export default {
.el-input-number__decrease
,
.el-input-number__decrease
,
.el-input-number__increase
{
.el-input-number__increase
{
background-color
:
#fff
!important
;
background-color
:
#fff
!important
;
width
:
20px
;
width
:
20px
!important
;
}
}
}
}
</
style
>
</
style
>
src/views/outbound/index.vue
View file @
f8a1664
...
@@ -68,17 +68,20 @@
...
@@ -68,17 +68,20 @@
</div>
</div>
<!-- 外呼设置 -->
<!-- 外呼设置 -->
<GLDialog
:mode=
"mode"
class=
"outboungSet-dialog"
title=
"外呼设置"
@
onOk=
"handleOutboundConfirm"
@
onCancel=
"handleOutboundClose"
:visible
.
sync=
"outboundVisible"
>
<GLDialog
:mode=
"mode"
class=
"outboungSet-dialog"
title=
"外呼设置"
@
onOk=
"handleOutboundConfirm"
@
onCancel=
"handleOutboundClose"
:visible
.
sync=
"outboundVisible"
>
<div
class=
"gl-form-min"
>
<el-form
ref=
"outboundsetRef"
:model=
"outboundForm"
label-width=
"154px"
:rules=
"outboundRule"
>
<el-form
ref=
"outboundsetRef"
:model=
"outboundForm"
label-width=
"154px"
:rules=
"outboundRule"
>
<el-form-item
label=
"每天外呼数量:"
prop=
"outboundNum"
>
<el-form-item
label=
"每天外呼数量:"
prop=
"outboundNum"
>
<el-input
v-model=
"outboundForm.outboundNum"
@
blur=
"outboundForm.outboundNum = oninput(outboundForm.outboundNum, 1, 1000)"
></el-input>
<el-input
v-model=
"outboundForm.outboundNum"
@
blur=
"outboundForm.outboundNum = oninput(outboundForm.outboundNum, 1, 1000)"
></el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
<p
class=
"marked"
>
默认所有外呼任务按此规则进行外呼
</p>
<p
class=
"marked"
>
默认所有外呼任务按此规则进行外呼
</p>
</GLDialog>
</GLDialog>
<!-- 开启外呼确认 -->
<!-- 开启外呼确认 -->
<GLDialog
:mode=
"mode"
title=
"开启外呼确认"
:visible
.
sync=
"openVisible"
@
onCancel=
"handleOpenOutboundClose"
@
onOk=
"handleOpenOutboundConfirm"
>
<GLDialog
:mode=
"mode"
title=
"开启外呼确认"
:visible
.
sync=
"openVisible"
@
onCancel=
"handleOpenOutboundClose"
@
onOk=
"handleOpenOutboundConfirm"
>
<tip-panel
panelMinHeight=
"45px"
:panelContent=
"panelContent"
v-if=
"isPanel"
@
closePanel=
"closePanel"
></tip-panel>
<tip-panel
panelMinHeight=
"45px"
:panelContent=
"panelContent"
v-if=
"isPanel"
@
closePanel=
"closePanel"
></tip-panel>
<glsx-combi-form
formRef=
"outboundChildRef"
ref=
"outboundFormRef"
labelWidth=
"154px
"
:formObj=
"outboundForm"
:formData=
"outboundFormData"
:formRules=
"outboundRule"
>
<glsx-combi-form
formRef=
"outboundChildRef"
defaultWidth=
"284px"
ref=
"outboundFormRef
"
:formObj=
"outboundForm"
:formData=
"outboundFormData"
:formRules=
"outboundRule"
>
<
template
slot=
"replay"
>
<
template
slot=
"replay"
>
<div
class=
"flex m-b-10"
>
<div
class=
"flex m-b-10"
>
<label
class=
"font-14 color6 m-r-4"
>
重拨次数
</label>
<label
class=
"font-14 color6 m-r-4"
>
重拨次数
</label>
...
@@ -150,14 +153,12 @@ export default {
...
@@ -150,14 +153,12 @@ export default {
name
:
'taskName'
,
name
:
'taskName'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
15
,
maxlength
:
15
,
width
:
'360px'
,
isDisabled
:
'true'
isDisabled
:
'true'
},
},
{
{
label
:
'外呼主叫号码'
,
label
:
'外呼主叫号码'
,
name
:
'callerNums'
,
name
:
'callerNums'
,
type
:
'select'
,
type
:
'select'
,
width
:
'360px'
,
multiple
:
true
,
multiple
:
true
,
optionList
:
[],
optionList
:
[],
optionId
:
''
,
optionId
:
''
,
...
@@ -168,7 +169,6 @@ export default {
...
@@ -168,7 +169,6 @@ export default {
label
:
'选择话术机器人'
,
label
:
'选择话术机器人'
,
name
:
'robotId'
,
name
:
'robotId'
,
type
:
'select'
,
type
:
'select'
,
width
:
'360px'
,
optionList
:
[],
optionList
:
[],
optionId
:
'robotId'
,
optionId
:
'robotId'
,
optionLabel
:
'robotName'
,
optionLabel
:
'robotName'
,
...
@@ -178,8 +178,7 @@ export default {
...
@@ -178,8 +178,7 @@ export default {
label
:
'外呼时间'
,
label
:
'外呼时间'
,
name
:
'dialDate'
,
name
:
'dialDate'
,
type
:
'selectTimePicker'
,
type
:
'selectTimePicker'
,
format
:
'HH:mm'
,
format
:
'HH:mm'
width
:
'360px'
},
},
{
{
label
:
'重拨设置'
,
label
:
'重拨设置'
,
...
...
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