Commit 19d99c23 authored by “lixuyan”'s avatar “lixuyan”

调整细节

parent fa34f1fe
...@@ -53,12 +53,12 @@ export default { ...@@ -53,12 +53,12 @@ export default {
}, },
mounted() { mounted() {
this.$bus.$on('completeEvent', (res) => { this.$bus.$on('completeEvent', (res) => {
this.$message({ this.$utils.showMessageSuccess('保存成功')
message: '保存成功',
type: 'success'
})
}) })
}, },
beforeDestroy() {
this.$bus.$off('completeEvent')
},
// 组件方法 // 组件方法
methods: { methods: {
getFormData(id) { getFormData(id) {
......
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
</template> </template>
<script> <script>
let timer = null let timer1 = null
import { post } from '@/utils/http' import { post } from '@/utils/http'
export default { export default {
components: {}, components: {},
...@@ -281,8 +281,8 @@ export default { ...@@ -281,8 +281,8 @@ export default {
return label return label
}, },
rowClick(row) { rowClick(row) {
clearTimeout(timer) clearTimeout(timer1)
timer = setTimeout(() => { timer1 = setTimeout(() => {
this.rowData = row this.rowData = row
this.$parent.$parent.$parent.$refs.footer.getTableData(this.rowData.id) this.$parent.$parent.$parent.$refs.footer.getTableData(this.rowData.id)
}, 300) }, 300)
...@@ -382,7 +382,7 @@ export default { ...@@ -382,7 +382,7 @@ export default {
this.timer = null this.timer = null
}, },
deeTableEdit(row, column, cell, event) { deeTableEdit(row, column, cell, event) {
clearTimeout(timer) clearTimeout(timer1)
var that = this var that = this
if (column.property === 'needTime') { if (column.property === 'needTime') {
row.needTimeSelect = true row.needTimeSelect = true
......
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