|
@@ -88,7 +88,7 @@
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
-import { ref, toRefs } from 'vue'
|
|
|
+import { ref, toRefs, nextTick } from 'vue'
|
|
|
import { listCategory, list } from '@/api/business/inspectionInstruction'
|
|
|
const { proxy } = getCurrentInstance()
|
|
|
const props = defineProps({
|
|
@@ -147,7 +147,9 @@ function close() {
|
|
|
|
|
|
function open() {
|
|
|
visible.value = true
|
|
|
- proxy.$refs.instructionTable.clearSelection()
|
|
|
+ nextTick(_ => {
|
|
|
+ proxy.$refs.instructionTable.clearSelection()
|
|
|
+ })
|
|
|
loadCategory()
|
|
|
}
|
|
|
|