no message
This commit is contained in:
parent
05d0cf00b9
commit
1e0c7866cf
@ -48,16 +48,14 @@
|
|||||||
</scTable>
|
</scTable>
|
||||||
</el-main>
|
</el-main>
|
||||||
</el-container>
|
</el-container>
|
||||||
|
|
||||||
<save-dialog v-if="dialog.save" :column="column" ref="saveDialog" @success="handleSuccess" @closed="dialog.save=false"></save-dialog>
|
<save-dialog v-if="dialog.save" :column="column" ref="saveDialog" @success="handleSuccess" @closed="dialog.save=false"></save-dialog>
|
||||||
<edit-dialog v-if="dialog.edit" :column="column" ref="editDialog" @success="handleSuccess" @closed="dialog.edit=false"></edit-dialog>
|
|
||||||
<stat-dialog v-if="dialog.stat" ref="statDialog" @closed="dialog.stat=false"></stat-dialog>
|
<stat-dialog v-if="dialog.stat" ref="statDialog" @closed="dialog.stat=false"></stat-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import saveDialog from './save'
|
import saveDialog from './save'
|
||||||
import statDialog from './stat'
|
import statDialog from './stat'
|
||||||
import editDialog from './dialog'
|
|
||||||
import scFilterBar from '@/components/scFilterBar';
|
import scFilterBar from '@/components/scFilterBar';
|
||||||
import scEcharts from '@/components/scEcharts'
|
import scEcharts from '@/components/scEcharts'
|
||||||
|
|
||||||
@ -69,7 +67,6 @@
|
|||||||
saveDialog,
|
saveDialog,
|
||||||
statDialog,
|
statDialog,
|
||||||
scEcharts,
|
scEcharts,
|
||||||
editDialog,
|
|
||||||
scFilterBar
|
scFilterBar
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -77,7 +74,6 @@
|
|||||||
dialog: {
|
dialog: {
|
||||||
save: false,
|
save: false,
|
||||||
stat: false,
|
stat: false,
|
||||||
edit: false,
|
|
||||||
},
|
},
|
||||||
columnSetting:false,
|
columnSetting:false,
|
||||||
isselection:true,
|
isselection:true,
|
||||||
@ -152,20 +148,20 @@
|
|||||||
},
|
},
|
||||||
//编辑
|
//编辑
|
||||||
operationEdit(row,index){
|
operationEdit(row,index){
|
||||||
this.dialog.edit = true
|
this.dialog.save = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.operation.edit.remoteurl) {
|
if (this.operation.edit.remoteurl) {
|
||||||
setTimeout(async ()=>{
|
setTimeout(async ()=>{
|
||||||
var res = await this.$http.get(this.operation.edit.remoteurl, {[this.key]: row[this.key], index: index})
|
var res = await this.$http.get(this.operation.edit.remoteurl, {[this.key]: row[this.key], index: index})
|
||||||
if (res.code == 200 ) {
|
if (res.code == 200 ) {
|
||||||
this.$refs.editDialog.open('edit').setData(res.data);
|
this.$refs.saveDialog.open('edit').setData(res.data);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.$alert(res.message, "提示", {type: 'error'});
|
this.$alert(res.message, "提示", {type: 'error'});
|
||||||
}, 100)
|
}, 100)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.$refs.editDialog.open('edit').setData(row)
|
this.$refs.saveDialog.open('edit').setData(row)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//删除
|
//删除
|
||||||
|
Loading…
Reference in New Issue
Block a user