feat: 修改选中问题 #315

Merged
yaoshuli merged 1 commits from fix/updatesyspic into test 1 year ago

@ -200,8 +200,10 @@ async function featchList() {
const app = getCurrentInstance() const app = getCurrentInstance()
const updateHtml = debounce(() => { const updateHtml = debounce(() => {
app?.appContext.app.$waterfall?.forceUpdate() // app?.appContext.app.$waterfall?.forceUpdate()
}, 1600) console.log('更新页面了')
waterfallRef.value?.resize()
}, 200)
async function loadMore() { async function loadMore() {
console.log('可疑文件夹出来了11111111111111', loading, el.value) console.log('可疑文件夹出来了11111111111111', loading, el.value)
@ -305,7 +307,7 @@ function imUpdateSelectIds(x: number, y: number, w: number, h: number) {
selectedApproveItems.value.push(item) selectedApproveItems.value.push(item)
} }
}) })
console.log('selectedApproveItems.value可疑选中了。。。。。。。。', selectedApproveItems.value)
updateHtml() updateHtml()
} }
@ -507,7 +509,7 @@ function remove() {
} }
function setBatch(value, isUpdate?) { function setBatch(value, isUpdate?) {
console.log('执行了设置夸勾选-------------') // console.log('-------------')
if (value && batch.value) if (value && batch.value)
batch.value = !value batch.value = !value
else else
@ -879,7 +881,7 @@ watch(() => show.value, async (newVal) => {
:style="{ backgroundImage: `url(${loading ? bgLoadingImg : 'none'})`, display: 'none' }" :style="{ backgroundImage: `url(${loading ? bgLoadingImg : 'none'})`, display: 'none' }"
/> />
<n-checkbox <n-checkbox
v-if="batch && item.historyStates === 1" v-if="batch && item.historyStates === 1" v-model:checked="item.checked"
style="position:absolute;left:20px;top:20px" @click.prevent.stop style="position:absolute;left:20px;top:20px" @click.prevent.stop
@update:checked="onCheckChange($event, item)" @update:checked="onCheckChange($event, item)"
/> />

Loading…
Cancel
Save