|
@@ -31,13 +31,19 @@
|
|
|
},
|
|
|
methods: {
|
|
|
add () {
|
|
|
+ this.editdisabled=false
|
|
|
this.visible=true
|
|
|
this.$nextTick(()=>{
|
|
|
this.$refs.realForm.add();
|
|
|
})
|
|
|
},
|
|
|
edit (record) {
|
|
|
- this.editdisabled=true
|
|
|
+ console.log(777,record.izDelete)
|
|
|
+ if (record.izDelete == 1) {
|
|
|
+ this.editdisabled=false
|
|
|
+ } else {
|
|
|
+ this.editdisabled=true
|
|
|
+ }
|
|
|
this.visible=true
|
|
|
this.$nextTick(()=>{
|
|
|
this.$refs.realForm.edit(record);
|