Commit ff5a4151 by wangzhihui

Merge branch 'SAAS+V5.8.0' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into SAAS+V5.8.0
2 parents f52ba649 85dbf603
......@@ -39,56 +39,56 @@
:label="i.label + ':'"
:prop="isViewMode ? '' : i.key"
>
<template v-if="editStatus">
<template v-if="i.type == 'input'">
<el-input
v-model="componentData[i.key]"
:disabled="i.disabled"
:maxlength="i.maxlength || -1"
:placeholder="`请输入${i.label}`"
<template v-if="editStatus">
<template v-if="i.type == 'input'">
<el-input
v-model="componentData[i.key]"
:disabled="i.disabled"
:maxlength="i.maxlength || -1"
:placeholder="`请输入${i.label}`"
/>
</template>
<template v-else-if="i.type == 'select' && i.multiple">
<el-select
v-model="componentData[i.key]"
class="select"
multiple
collapse-tags
:placeholder="`请选择${i.label}`"
@change="onOtherServiceProvidersChange"
>
<el-option
v-for="item in i.options"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</template>
<template v-else-if="i.type == 'select'">
<el-select
v-model="componentData[i.key]"
class="select"
:placeholder="`请选择${i.label}`"
>
<el-option
v-for="item in i.options"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</template>
<template v-else-if="i.type == 'select' && i.multiple">
<el-select
v-model="componentData[i.key]"
class="select"
multiple
collapse-tags
:placeholder="`请选择${i.label}`"
@change="onOtherServiceProvidersChange"
>
<el-option
v-for="item in i.options"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</template>
<template v-else-if="i.type == 'select'">
<el-select
v-model="componentData[i.key]"
class="select"
:placeholder="`请选择${i.label}`"
>
<el-option
v-for="item in i.options"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</template>
</el-select>
</template>
</template>
<template v-else>
<template v-if="i.type == 'select' && i.multiple">
{{ getServiceMultiSelectText(i) }}
</template>
<template v-else>
<template v-if="i.type == 'select' && i.multiple">
{{ getServiceMultiSelectText(i) }}
</template>
<template v-else-if="i.type == 'select'">
{{ getSelectText(i) }}
</template>
<template v-else> {{ componentData[i.key] || '-' }}</template>
<template v-else-if="i.type == 'select'">
{{ getSelectText(i) }}
</template>
<template v-else> {{ componentData[i.key] || '-' }}</template>
</template>
</el-form-item>
</div>
......@@ -101,25 +101,25 @@
:label="i.label + ':'"
:prop="i.key"
>
<template v-if="editStatus">
<el-select
v-model="componentData[i.key]"
class="select"
multiple
:placeholder="`请选择${i.label}`"
@change="onStaffMultiChange(i.key)"
>
<el-option
v-for="item in i.options"
:key="item.uuid"
:label="item.staffName"
:value="item.uuid"
/>
</el-select>
</template>
<template v-else>
{{ getMultipleSelectText(i) }}
</template>
<template v-if="editStatus">
<el-select
v-model="componentData[i.key]"
class="select"
multiple
:placeholder="`请选择${i.label}`"
@change="onStaffMultiChange(i.key)"
>
<el-option
v-for="item in i.options"
:key="item.uuid"
:label="item.staffName"
:value="item.uuid"
/>
</el-select>
</template>
<template v-else>
{{ getMultipleSelectText(i) }}
</template>
</el-form-item>
</div>
</el-form>
......@@ -253,9 +253,9 @@ export default {
normalizeTrafficFormFromProp (source) {
if (!source || typeof source !== 'object') return {}
const copy = deepClone(source)
if (copy.areaOpId) copy.areaOpIdList = String(copy.areaOpId).split(',')
if (copy.onlineOpId) copy.onlineOpIdList = String(copy.onlineOpId).split(',')
if (copy.regionSupervisorId) copy.regionSupervisorIdList = String(copy.regionSupervisorId).split(',')
if (copy.areaOpId) copy.areaOpIdList = String(copy.areaOpId).split('/')
if (copy.onlineOpId) copy.onlineOpIdList = String(copy.onlineOpId).split('/')
if (copy.regionSupervisorId) copy.regionSupervisorIdList = String(copy.regionSupervisorId).split('/')
if (!Array.isArray(copy.otherServiceProvidersIdList) || copy.otherServiceProvidersIdList.length === 0) {
const osp = parseOtherServiceProvidersFromMi(copy)
copy.otherServiceProvidersIdList = osp.ids
......
......@@ -35,6 +35,7 @@
>{{ step == 1?'下一步':'提交' }}</el-button>
</template>
<el-button
v-if="!buttonLoading"
@click="$router.go(-1)"
plain
type="info"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!