This commit is contained in:
weipengfei 2024-02-03 11:32:32 +08:00
parent aeac5c21d9
commit d9b1c67c76
3 changed files with 6 additions and 6 deletions

View File

@ -66,7 +66,7 @@
</u--form> </u--form>
<u-button class="btn" v-if="mode=='add'" @click="addFn">完成添加</u-button> <u-button class="btn" v-if="mode=='add'" @click="addFn">完成添加</u-button>
</view> </view>
<u-action-sheet :show="showFun" keyName="name" closeOnClickOverlay :actions="[{name:'栏舍'}, {name:'饲料槽'}, {name: '饮水设备'}]" title="请选择" <u-action-sheet :show="showFun" keyName="name" closeOnClickOverlay :actions="[{name:'内驱'}, {name:'外驱'}]" title="请选择"
@close="showFun = false" @select="selectFun"></u-action-sheet> @close="showFun = false" @select="selectFun"></u-action-sheet>
<u-datetime-picker :show="show1" :max-date="getNowTime()" v-model="value1" mode="datetime" @confirm="dateConfirmfn" <u-datetime-picker :show="show1" :max-date="getNowTime()" v-model="value1" mode="datetime" @confirm="dateConfirmfn"
:formatter="formatter" @cancel="show1=false"></u-datetime-picker> :formatter="formatter" @cancel="show1=false"></u-datetime-picker>

View File

@ -246,8 +246,8 @@
const daysDiff = ref(''); const daysDiff = ref('');
onLoad((options) => { onLoad((options) => {
// sn.value = options.sn; sn.value = options.sn;
sn.value = 8; // sn.value = 8;
getFenceHouseDetail(); getFenceHouseDetail();
getSuYuanData(); getSuYuanData();
}) })
@ -259,7 +259,7 @@
// //
const getFenceHouseDetail = () => { const getFenceHouseDetail = () => {
animalInfoDetail({ animalInfoDetail({
id: sn.value, sn: sn.value,
}).then((res) => { }).then((res) => {
if (res.code == 1) { if (res.code == 1) {
res.data.pic = JSON.parse(res.data.pic||'[]'); res.data.pic = JSON.parse(res.data.pic||'[]');

File diff suppressed because one or more lines are too long