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 @@ ...@@ -117,19 +117,19 @@
@pagination="loadData" @pagination="loadData"
> >
</pagination> </pagination>
<yan-dialog <!-- <yan-dialog-->
:dialog-manger="dialogManger" <!-- :dialog-manger="dialogManger"-->
@close="dialogManger.dialogVisible = false" <!-- @close="dialogManger.dialogVisible = false"-->
></yan-dialog> <!-- ></yan-dialog>-->
</page-standard> </page-standard>
</template> </template>
<script> <script>
import page from '@/mixins/page' import page from '@/mixins/page'
import dialog from './components/dialog.vue' import dialog from './components/dialog.vue'
export default { export default {
components: { // components: {
'yan-dialog': dialog // 'yan-dialog': dialog
}, // },
mixins: [page], mixins: [page],
dicts: ['sys_detailed_classification'], dicts: ['sys_detailed_classification'],
data() { data() {
...@@ -137,52 +137,52 @@ export default { ...@@ -137,52 +137,52 @@ export default {
listUrl: '/system/scenario/getList', listUrl: '/system/scenario/getList',
showSearch: true, showSearch: true,
tableData: [], tableData: [],
dialogManger: { classFicationList: [],
dialogVisible: false, // dialogManger: {
refreshList: false, // dialogVisible: false,
source: {} // refreshList: false,
}, // source: {}
// },
form: {} form: {}
} }
}, },
watch: { // watch: {
'dialogManger.refreshList'(val) { // 'dialogManger.refreshList'(val) {
if (val) { // if (val) {
this.loadData() // this.loadData()
this.dialogManger.refreshList = false // this.dialogManger.refreshList = false
} // }
} // }
}, // },
mounted() { mounted() {
this.getDicts('sys_detailed_classification').then(response => { this.getDicts('sys_detailed_classification').then(response => {
this.classFicationList = response.data this.classFicationList = response.data
}) })
}, },
methods: { methods: {
handleAdd() { // handleAdd() {
this.dialogManger.dialogVisible = true // this.dialogManger.dialogVisible = true
this.dialogManger.source = {} // this.dialogManger.source = {}
}, // },
handleDelete(row) { // handleDelete(row) {
this.$modal // this.$modal
.confirm('是否确定删除该条数据?', { // .confirm('是否确定删除该条数据?', {
type: 'warning', // title: '操作确认',
title: '删除', // closeOnClickModal: false
closeOnClickModal: false // })
}) // .then(() => {
.then(() => { // // return delNotice(noticeIds)
// return delNotice(noticeIds) // })
}) // .then(() => {
.then(() => { // this.loadData()
this.loadData() // this.$modal.msgSuccess('删除成功')
this.$modal.msgSuccess('删除成功') // })
}) // .catch(() => {})
.catch(() => {}) // },
}, // handleUpdate(row) {
handleUpdate(row) { // this.dialogManger.dialogVisible = true
this.dialogManger.dialogVisible = true // this.dialogManger.source = row
this.dialogManger.source = row // }
}
} }
} }
</script> </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