Commit 409c45c8 by 李伟康

fix(sales): 修复流量提供商信息表单显示和数据处理问题

- 在返回按钮上添加条件渲染避免加载时点击
- 修复组件模板中的缩进和结构问题
- 将数据分隔符从逗号改为斜杠以正确处理区域和在线运营ID
- 优化多选下拉框和输入框的显示逻辑
1 parent 39b04958
...@@ -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!