|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<z-paging ref="paging" bgColor="#F7F7F7" safe-area-inset-bottom paging-class="paging-btm-shadow" scroll-with-animation>
|
|
|
<template #top>
|
|
|
- <ut-navbar :title="(did && !+form?.baseInfo?.gapFlag ? '编辑基地' : '添加基地')" :fixed="false" border></ut-navbar>
|
|
|
+ <ut-navbar :title="(did && !+form?.baseInfo?.tempFlag ? '编辑基地' : '添加基地')" :fixed="false" border></ut-navbar>
|
|
|
<view class="bg-fff mb-20">
|
|
|
<view class="pd-5"></view>
|
|
|
<ut-tabs v-model="activeTab" :tabs="tabs" mode="btw" @change="changeActiveTab"></ut-tabs>
|
|
|
@@ -680,7 +680,7 @@ const submitForm = async () => {
|
|
|
title: '提交中...',
|
|
|
});
|
|
|
try {
|
|
|
- const res = did.value && !+form.value?.baseInfo?.gapFlag ? await useClientRequest.post('/plt-api//app/base/update', form.value) : await useClientRequest.post('/plt-api/app/base/add', form.value);
|
|
|
+ const res = did.value && !+form.value?.baseInfo?.tempFlag ? await useClientRequest.post('/plt-api//app/base/update', form.value) : await useClientRequest.post('/plt-api/app/base/add', form.value);
|
|
|
uni.hideLoading();
|
|
|
if (!res || res.code !== 200) return;
|
|
|
uni.hideLoading();
|