-
-
+
+
@@ -215,13 +218,6 @@ export default {
data() {
return {
upUrl: upUrl(),
- banner: {
- id: "",
- name: "",
- url:"",
- sort:0,
- path:""
- },
upHeaders: { Authorization: "JWT " + getToken() },
listQuery: Object.assign({}, listQuery),
listQuery2: Object.assign({}, listQuery2),
@@ -232,11 +228,11 @@ export default {
dialogVisible: false,
dialogType: 'new',
dialogType2: 'new',
+ showEditor: true,
dialogVisible2: false,
childCompy: {},
companydata: {},
companyOption: [],
-
}
},
computed: {},
@@ -288,13 +284,18 @@ export default {
})
},
handleEdit(scope) {
- this.companydata = Object.assign({}, scope.row) // copy obj
- this.dialogType = 'edit'
- this.dialogVisible = true
+ this.showEditor = false
this.$nextTick(() => {
- this.$refs['commonForm'].clearValidate()
+ this.companydata = JSON.parse(JSON.stringify(scope.row))
+ this.showEditor = true
+ this.dialogVisible = true
+
+ this.$nextTick(() => {
+ this.$refs.commonForm && this.$refs.commonForm.clearValidate()
})
- },
+ })
+ },
+
handleDelete(scope) {
this.$confirm('确认删数据吗?将丢失数据!', '警告', {
confirmButtonText: '确认',