|
@@ -181,8 +181,15 @@ const formRules = reactive({
|
|
|
|
|
|
const formRef = ref() // 表单 Ref
|
|
const formRef = ref() // 表单 Ref
|
|
const inspectItemChoose = (rows) => {
|
|
const inspectItemChoose = (rows) => {
|
|
- items.value = []
|
|
|
|
- items.value = rows
|
|
|
|
|
|
+ rows.forEach(it =>{
|
|
|
|
+ const ifExist = items.value.find(item => item.id === it.id)
|
|
|
|
+ if (!ifExist) {
|
|
|
|
+ items.value.push(it)
|
|
|
|
+ console.log(JSON.stringify(it))
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ console.log(JSON.stringify(items.value))
|
|
|
|
+ // items.value = rows
|
|
}
|
|
}
|
|
const inspectItemFormRef = ref()
|
|
const inspectItemFormRef = ref()
|
|
const openForm = () => {
|
|
const openForm = () => {
|