bug 标准预警
This commit is contained in:
@@ -38,12 +38,13 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
value: {
|
value: {
|
||||||
handler () {
|
handler () {
|
||||||
if (this.value) {
|
if (typeof this.value !== 'string' && this.value) {
|
||||||
this.treeValue = JSON.parse(JSON.stringify(this.value))
|
this.treeValue = JSON.parse(JSON.stringify(this.value))
|
||||||
|
} else {
|
||||||
|
this.treeValue = this.value
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
immediate: true,
|
immediate: true
|
||||||
deep: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD"
|
||||||
v-model="queryParam.date"
|
v-model="queryParam.date"
|
||||||
:disabled="false"/>
|
:disabled="false" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
:rowKey="(index) => {return index}"
|
:rowKey="(record, index) => {return index}"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@@ -292,7 +292,7 @@ export default {
|
|||||||
delete param.date
|
delete param.date
|
||||||
}
|
}
|
||||||
return filterObj(param)
|
return filterObj(param)
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user