Commit 8d869221 authored by 盖献康's avatar 盖献康

Merge branch 'develop' of http://gitlab.91isoft.com:90/car-test/web into developer/gaixiankang

parents 79c98177 4a7f0271
......@@ -117,19 +117,19 @@
@pagination="loadData"
>
</pagination>
<yan-dialog
:dialog-manger="dialogManger"
@close="dialogManger.dialogVisible = false"
></yan-dialog>
<!-- <yan-dialog-->
<!-- :dialog-manger="dialogManger"-->
<!-- @close="dialogManger.dialogVisible = false"-->
<!-- ></yan-dialog>-->
</page-standard>
</template>
<script>
import page from '@/mixins/page'
import dialog from './components/dialog.vue'
export default {
components: {
'yan-dialog': dialog
},
// components: {
// 'yan-dialog': dialog
// },
mixins: [page],
dicts: ['sys_detailed_classification'],
data() {
......@@ -137,52 +137,52 @@ export default {
listUrl: '/system/scenario/getList',
showSearch: true,
tableData: [],
dialogManger: {
dialogVisible: false,
refreshList: false,
source: {}
},
classFicationList: [],
// dialogManger: {
// dialogVisible: false,
// refreshList: false,
// source: {}
// },
form: {}
}
},
watch: {
'dialogManger.refreshList'(val) {
if (val) {
this.loadData()
this.dialogManger.refreshList = false
}
}
},
// watch: {
// 'dialogManger.refreshList'(val) {
// if (val) {
// this.loadData()
// this.dialogManger.refreshList = false
// }
// }
// },
mounted() {
this.getDicts('sys_detailed_classification').then(response => {
this.classFicationList = response.data
})
},
methods: {
handleAdd() {
this.dialogManger.dialogVisible = true
this.dialogManger.source = {}
},
handleDelete(row) {
this.$modal
.confirm('是否确定删除该条数据?', {
type: 'warning',
title: '删除',
closeOnClickModal: false
})
.then(() => {
// return delNotice(noticeIds)
})
.then(() => {
this.loadData()
this.$modal.msgSuccess('删除成功')
})
.catch(() => {})
},
handleUpdate(row) {
this.dialogManger.dialogVisible = true
this.dialogManger.source = row
}
// handleAdd() {
// this.dialogManger.dialogVisible = true
// this.dialogManger.source = {}
// },
// handleDelete(row) {
// this.$modal
// .confirm('是否确定删除该条数据?', {
// title: '操作确认',
// closeOnClickModal: false
// })
// .then(() => {
// // return delNotice(noticeIds)
// })
// .then(() => {
// this.loadData()
// this.$modal.msgSuccess('删除成功')
// })
// .catch(() => {})
// },
// handleUpdate(row) {
// this.dialogManger.dialogVisible = true
// this.dialogManger.source = row
// }
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment