no message

This commit is contained in:
小陌 2023-06-30 18:31:42 +08:00
parent 05d0cf00b9
commit 1e0c7866cf

View File

@ -48,16 +48,14 @@
</scTable>
</el-main>
</el-container>
<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>
</template>
<script>
import saveDialog from './save'
import statDialog from './stat'
import editDialog from './dialog'
import scFilterBar from '@/components/scFilterBar';
import scEcharts from '@/components/scEcharts'
@ -69,7 +67,6 @@
saveDialog,
statDialog,
scEcharts,
editDialog,
scFilterBar
},
data() {
@ -77,7 +74,6 @@
dialog: {
save: false,
stat: false,
edit: false,
},
columnSetting:false,
isselection:true,
@ -152,20 +148,20 @@
},
//
operationEdit(row,index){
this.dialog.edit = true
this.dialog.save = true
this.$nextTick(() => {
if (this.operation.edit.remoteurl) {
setTimeout(async ()=>{
var res = await this.$http.get(this.operation.edit.remoteurl, {[this.key]: row[this.key], index: index})
if (res.code == 200 ) {
this.$refs.editDialog.open('edit').setData(res.data);
this.$refs.saveDialog.open('edit').setData(res.data);
return;
}
this.$alert(res.message, "提示", {type: 'error'});
}, 100)
return false;
}
this.$refs.editDialog.open('edit').setData(row)
this.$refs.saveDialog.open('edit').setData(row)
})
},
//