Commit 92893391 authored by xioln's avatar xioln

基础数据问题修改

parent 12830ccc
...@@ -67,7 +67,6 @@ export default { ...@@ -67,7 +67,6 @@ export default {
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
}) })
this.$emit('cancel')
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
}) })
......
...@@ -122,6 +122,13 @@ export default { ...@@ -122,6 +122,13 @@ export default {
this.options = [] this.options = []
}) })
}, },
beforeDestroy() {
// 在组件销毁之前做一些清理工作
// 清除定时器、取消订阅等
sessionStorage.setItem('InStorageMoveform-InStorageMoveTable', '')
this.selVal = null
this.options = []
},
methods: { methods: {
changeVal() { changeVal() {
this.$emit('input', this.selVal) this.$emit('input', this.selVal)
......
...@@ -306,6 +306,7 @@ export default { ...@@ -306,6 +306,7 @@ export default {
this.$api.recursion('MaterialReferenceLink', form).then(res => { this.$api.recursion('MaterialReferenceLink', form).then(res => {
this.cancelEvent() this.cancelEvent()
this.$utils.showMessageSuccess('保存成功') this.$utils.showMessageSuccess('保存成功')
this.$emit('success')
}) })
}, },
cancelEvent() { cancelEvent() {
......
...@@ -19,7 +19,12 @@ ...@@ -19,7 +19,12 @@
:form-btn-position="'center'" :form-btn-position="'center'"
@on-submit="initData(searchForm)" @on-submit="initData(searchForm)"
/> --> /> -->
<!-- :show-fresh="true"
:show-query-form="true"
:show-table-config="true"
:show-table-query="true" -->
<dee-up-table <dee-up-table
ref="upTable"
:columns="tableColumns" :columns="tableColumns"
:data="tableData" :data="tableData"
:index-row="{ title: '序号', width: '60', align: 'center', fixed: true }" :index-row="{ title: '序号', width: '60', align: 'center', fixed: true }"
...@@ -32,7 +37,7 @@ ...@@ -32,7 +37,7 @@
<dee-tools slot="header" :tools="tools" mode="normal" :collapse="false" /> <dee-tools slot="header" :tools="tools" mode="normal" :collapse="false" />
</dee-up-table> </dee-up-table>
<dee-dialog width="70%" title="新增" :visible.sync="addDialogVisible" @on-cancel="addCancel"> <dee-dialog width="70%" title="新增" :visible.sync="addDialogVisible" @on-cancel="addCancel">
<add-form ref="addForm" @cancel="addCancel" /> <add-form ref="addForm" @cancel="addCancel" @success="successFun" />
</dee-dialog> </dee-dialog>
</div> </div>
</template> </template>
...@@ -173,7 +178,6 @@ export default { ...@@ -173,7 +178,6 @@ export default {
}, },
methods: { methods: {
initData(searchForm) { initData(searchForm) {
console.log(searchForm)
// 初始化数据 // 初始化数据
const params = { const params = {
'pageFrom': this.pagination.currentPage, 'pageFrom': this.pagination.currentPage,
...@@ -205,6 +209,9 @@ export default { ...@@ -205,6 +209,9 @@ export default {
}, },
addCancel(pageNum) { addCancel(pageNum) {
this.addDialogVisible = false this.addDialogVisible = false
},
successFun() {
this.initData()
} }
} }
} }
......
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