This commit is contained in:
bb_pan 2025-08-19 14:51:01 +08:00
parent aa2d072b67
commit 18720cc96b
2 changed files with 7 additions and 3 deletions

View File

@ -163,8 +163,8 @@
<uni-col :span="16"> <uni-col :span="16">
<!-- <uni-easyinput placeholder="请输入内容" v-model="apDetection"/> --> <!-- <uni-easyinput placeholder="请输入内容" v-model="apDetection"/> -->
<radio-group @change="changeRadio"> <radio-group @change="changeRadio">
<radio value="完好" checked style="margin-right: 5px">完好</radio> <radio value="完好" :checked="isRadioCheck" style="margin-right: 5px">完好</radio>
<radio value="不合格">不合格</radio> <radio value="不合格" :checked="!isRadioCheck">不合格</radio>
</radio-group> </radio-group>
</uni-col> </uni-col>
</uni-row> </uni-row>
@ -286,6 +286,7 @@ const allChecked = ref(false)
const keyWord = ref('') const keyWord = ref('')
const total = ref(0) const total = ref(0)
const remark = ref('') const remark = ref('')
const isRadioCheck = ref(true)
const leftClick = () => { const leftClick = () => {
// //
@ -295,6 +296,7 @@ const leftClick = () => {
} }
const changeRadio = (e) => { const changeRadio = (e) => {
console.log(e.detail.value) console.log(e.detail.value)
isRadioCheck.value = !isRadioCheck.value
apDetection.value = e.detail.value apDetection.value = e.detail.value
} }
@ -737,6 +739,8 @@ const submitCode = () => {
imgBeseUrl.value = '' imgBeseUrl.value = ''
imgList.value = [] imgList.value = []
selectCodeList.value = [] selectCodeList.value = []
remark.value = ''
isRadioCheck.value = true
// getMaCodeList() // getMaCodeList()
if (selectTypeId.value) { if (selectTypeId.value) {
getCodeList() getCodeList()

View File

@ -293,7 +293,7 @@ const submitNum = () => {
if(res.code==200){ if(res.code==200){
uni.showToast({ title: '编辑成功', icon: 'none' }) uni.showToast({ title: '编辑成功', icon: 'none' })
uni.navigateBack({ uni.navigateBack({
delta: 1 // delta: 2 //
}); });
}else{ }else{
uni.showToast({ title: res.msg, icon: 'none' }) uni.showToast({ title: res.msg, icon: 'none' })