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