|
@ -51,9 +51,9 @@ |
|
|
<view class="btns" v-if="listSize!=0"> |
|
|
<view class="btns" v-if="listSize!=0"> |
|
|
<u-button type="success" @click="handleSubmit" :loading='loading' :disabled='loading'>提交</u-button> |
|
|
<u-button type="success" @click="handleSubmit" :loading='loading' :disabled='loading'>提交</u-button> |
|
|
</view> |
|
|
</view> |
|
|
<view class="btns" v-if="listSize == 0"> |
|
|
<!-- <view class="btns" v-if="listSize == 0"> |
|
|
<u-button type="success" @click="navigateBack" :loading='loading' :disabled='loading'>返回</u-button> |
|
|
<u-button type="success" @click="navigateBack" :loading='loading' :disabled='loading'>返回</u-button> |
|
|
</view> |
|
|
</view> --> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
@ -79,7 +79,7 @@ |
|
|
const paramData = ref() |
|
|
const paramData = ref() |
|
|
const typeList = ref([]) |
|
|
const typeList = ref([]) |
|
|
const list = ref([]) |
|
|
const list = ref([]) |
|
|
const listSize = ref(1) |
|
|
const listSize = ref(0) |
|
|
const productList = ref([{label:'产品1',value: '111',name:'产品'},{label:'产品2',value: '222',name:'产品'}]) |
|
|
const productList = ref([{label:'产品1',value: '111',name:'产品'},{label:'产品2',value: '222',name:'产品'}]) |
|
|
|
|
|
|
|
|
const queryForm = ref({ |
|
|
const queryForm = ref({ |
|
@ -110,7 +110,6 @@ |
|
|
if (index !== -1) { |
|
|
if (index !== -1) { |
|
|
list.value.splice(index, 1); |
|
|
list.value.splice(index, 1); |
|
|
listSize.value -= 1 |
|
|
listSize.value -= 1 |
|
|
console.log(listSize.value) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -189,6 +188,7 @@ |
|
|
list.value = list.value.concat(res.data); |
|
|
list.value = list.value.concat(res.data); |
|
|
listSize.value = res.data.length |
|
|
listSize.value = res.data.length |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
listSize.value = 0 |
|
|
} |
|
|
} |
|
|
}).catch(() => { |
|
|
}).catch(() => { |
|
|
proxy.$modal.closeLoading() |
|
|
proxy.$modal.closeLoading() |
|
|