Commit f8a16645 by 前端

commit:ui表单改版

1 parent 786d9d8d
......@@ -14,7 +14,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.4.8",
"glsx-components": "^1.5.2",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
"vuex": "^3.1.2"
......
......@@ -8,7 +8,7 @@ html {
background-color: #f4f5fa;
}
.el-form-item__content {
width: 360px;
width: 284px;
.el-input__inner {
height: 32px !important;
line-height: 32px !important;
......
<!-- 搜索 -->
<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">
<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">
<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-select v-model="searchSelectObj[item.selectName].attr" style="width: 130px" slot="prepend" placeholder="请选择" @change="item.handleSelectChange">
......@@ -21,7 +21,7 @@
</template>
<!-- 选择-时间选择框 -->
<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 v-else-if="item.type === 'selectDouble'">
......@@ -34,7 +34,7 @@
</el-select>
</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-select>
<!-- 计数器 -->
......@@ -69,9 +69,13 @@ export default {
type: String,
default: 'formRef'
},
defaultWidth: {
type: String,
default: '432px'
},
labelWidth: {
type: String,
default: '85px'
default: '154px'
},
formData: {
type: Array,
......@@ -141,7 +145,11 @@ export default {
margin: 0;
}
.glsx-combi-form /deep/ .el-input-number {
width: 85px;
width: 85px !important;
.el-input {
width: 100% !important;
}
.el-input__inner {
height: 28px !important;
line-height: 28px !important;
......@@ -150,7 +158,7 @@ export default {
.el-input-number__decrease,
.el-input-number__increase {
background-color: #fff !important;
width: 20px;
width: 20px !important;
}
}
</style>
......@@ -68,17 +68,20 @@
</div>
<!-- 外呼设置 -->
<GLDialog :mode="mode" class="outboungSet-dialog" title="外呼设置" @onOk="handleOutboundConfirm" @onCancel="handleOutboundClose" :visible.sync="outboundVisible">
<el-form ref="outboundsetRef" :model="outboundForm" label-width="154px" :rules="outboundRule">
<el-form-item label="每天外呼数量:" prop="outboundNum">
<el-input v-model="outboundForm.outboundNum" @blur="outboundForm.outboundNum = oninput(outboundForm.outboundNum, 1, 1000)"></el-input>
</el-form-item>
</el-form>
<p class="marked">默认所有外呼任务按此规则进行外呼</p>
<div class="gl-form-min">
<el-form ref="outboundsetRef" :model="outboundForm" label-width="154px" :rules="outboundRule">
<el-form-item label="每天外呼数量:" prop="outboundNum">
<el-input v-model="outboundForm.outboundNum" @blur="outboundForm.outboundNum = oninput(outboundForm.outboundNum, 1, 1000)"></el-input>
</el-form-item>
</el-form>
</div>
<p class="marked">默认所有外呼任务按此规则进行外呼</p>
</GLDialog>
<!-- 开启外呼确认 -->
<GLDialog :mode="mode" title="开启外呼确认" :visible.sync="openVisible" @onCancel="handleOpenOutboundClose" @onOk="handleOpenOutboundConfirm">
<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">
<div class="flex m-b-10">
<label class="font-14 color6 m-r-4">重拨次数</label>
......@@ -150,14 +153,12 @@ export default {
name: 'taskName',
type: 'input',
maxlength: 15,
width: '360px',
isDisabled: 'true'
},
{
label: '外呼主叫号码',
name: 'callerNums',
type: 'select',
width: '360px',
multiple: true,
optionList: [],
optionId: '',
......@@ -168,7 +169,6 @@ export default {
label: '选择话术机器人',
name: 'robotId',
type: 'select',
width: '360px',
optionList: [],
optionId: 'robotId',
optionLabel: 'robotName',
......@@ -178,8 +178,7 @@ export default {
label: '外呼时间',
name: 'dialDate',
type: 'selectTimePicker',
format: 'HH:mm',
width: '360px'
format: 'HH:mm'
},
{
label: '重拨设置',
......@@ -325,7 +324,7 @@ export default {
label: '手机号文件',
addHtml: 'excelName',
filter: 'notExecute',
minWidth: 200
minWidth: 200
},
{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!