提交 2170702d 编写于 作者: B break60 提交者: qiaozhanwei

Solve the problem that the pop-up box cannot be closed when the brows… (#1392)

* Solve the problem that the pop-up box cannot be closed when the browser returns

* Change the ans-ui version and API interface name
上级 769b0537
......@@ -14,7 +14,7 @@
"build:combined": "npm run clean && cross-env NODE_ENV=production PUBLIC_PATH=/dolphinscheduler/ui webpack --config ./build/webpack.config.combined.js"
},
"dependencies": {
"ans-ui": "1.1.3",
"ans-ui": "1.1.4",
"axios": "^0.16.2",
"jquery": "1.12.4",
"vue": "^2.5.17",
......
......@@ -282,7 +282,7 @@
* Click external to close the current component
*/
_handleClose () {
this.close()
// this.close()
},
/**
* Jump to task instance
......
......@@ -23,6 +23,9 @@ import mProjectHome from '@/conf/home/pages/projects/pages/index'
import mListConstruction from '@/module/components/listConstruction/listConstruction'
export default {
name: 'home',
components: { mProjectHome, mListConstruction }
components: { mProjectHome, mListConstruction },
mounted() {
this.$modal.destroy()
},
}
</script>
......@@ -25,6 +25,9 @@
import mSecondaryMenu from '@/module/components/secondaryMenu/secondaryMenu'
export default {
name: 'monitor-index',
mounted() {
this.$modal.destroy()
},
components: { mSecondaryMenu }
}
</script>
\ No newline at end of file
......@@ -123,7 +123,8 @@
created () {
localStore.removeItem('subProcessId')
},
mounted () {
mounted() {
this.$modal.destroy()
},
components: { mList, mConditions, mSpin, mListConstruction, mSecondaryMenu, mNoData }
}
......
......@@ -163,6 +163,7 @@
}
},
mounted () {
this.$modal.destroy()
// Cycle acquisition status
this.setIntervalP = setInterval(() => {
this._debounceGET('false')
......
......@@ -24,7 +24,7 @@
<m-list :task-instance-list="taskInstanceList" :page-no="searchParams.pageNo" :page-size="searchParams.pageSize">
</m-list>
<div class="page-box">
<x-page :current="parseInt(searchParams.pageNo)" :total="total" show-elevator @on-change="_page"></x-page>
<x-page :current="parseInt(searchParams.pageNo)" :total="total" show-elevator @on-change="_page" show-sizer :page-size-options="[10,30,50]" @on-size-change="_pageSize"></x-page>
</div>
</template>
<template v-if="!taskInstanceList.length">
......@@ -89,6 +89,9 @@
_page (val) {
this.searchParams.pageNo = val
},
_pageSize(val) {
this.searchParams.pageSize = val
},
/**
* get list data
*/
......
......@@ -24,6 +24,9 @@
import mSecondaryMenu from '@/module/components/secondaryMenu/secondaryMenu'
export default {
name: 'resource-index',
components: { mSecondaryMenu }
components: { mSecondaryMenu },
mounted() {
this.$modal.destroy()
},
}
</script>
......@@ -19,6 +19,9 @@
</template>
<script>
export default {
name: 'file-manage-index'
name: 'file-manage-index',
mounted() {
this.$modal.destroy()
},
}
</script>
......@@ -163,6 +163,7 @@
created () {
},
mounted () {
this.$modal.destroy()
this._handlerEditor()
},
destroyed () {
......
......@@ -111,6 +111,7 @@
created () {
},
mounted () {
this.$modal.destroy()
},
components: { mListConstruction, mConditions, mList, mSpin, mNoData }
}
......
......@@ -127,6 +127,7 @@
created () {
},
mounted () {
this.$modal.destroy()
},
components: { mListConstruction, mConditions, mList, mSpin, mCreateUdf, mNoData }
}
......
......@@ -109,6 +109,7 @@
created () {
},
mounted () {
this.$modal.destroy()
},
components: { mListConstruction, mConditions, mList, mSpin, mNoData }
}
......
......@@ -24,6 +24,9 @@
import mSecondaryMenu from '@/module/components/secondaryMenu/secondaryMenu'
export default {
name: 'security-index',
mounted() {
this.$modal.destroy()
},
components: { mSecondaryMenu }
}
</script>
......@@ -134,7 +134,7 @@
created () {
},
mounted () {
this.$modal.destroy()
},
components: { mList, mListConstruction, mConditions, mSpin, mNoData }
}
......
......@@ -134,6 +134,7 @@
created () {
},
mounted () {
this.$modal.destroy()
},
components: { mList, mListConstruction, mConditions, mSpin, mNoData }
}
......
......@@ -21,6 +21,9 @@
import mToken from '@/conf/home/pages/user/pages/token'
export default {
name: 'token-index',
mounted() {
this.$modal.destroy()
},
components: { mToken }
}
</script>
......@@ -132,6 +132,7 @@
created () {
},
mounted () {
this.$modal.destroy()
},
components: { mList, mListConstruction, mConditions, mSpin, mNoData }
}
......
......@@ -134,6 +134,7 @@
created () {
},
mounted () {
this.$modal.destroy()
},
components: { mList, mListConstruction, mConditions, mSpin, mNoData }
}
......
......@@ -133,6 +133,7 @@
created () {
},
mounted () {
this.$modal.destroy()
},
components: { mList, mListConstruction, mConditions, mSpin, mNoData }
}
......
......@@ -25,6 +25,9 @@
import mSecondaryMenu from '@/module/components/secondaryMenu/secondaryMenu'
export default {
name: 'user-index',
mounted() {
this.$modal.destroy()
},
components: { mSecondaryMenu }
}
</script>
\ No newline at end of file
......@@ -27,6 +27,9 @@
export default {
name: 'account-index',
mounted() {
this.$modal.destroy()
},
components: { mListConstruction, mInfo }
}
</script>
\ No newline at end of file
......@@ -27,6 +27,9 @@
export default {
name: 'password-index',
mounted() {
this.$modal.destroy()
},
components: { mListConstruction, mInfo }
}
</script>
\ No newline at end of file
......@@ -133,6 +133,7 @@
created () {
},
mounted () {
this.$modal.destroy()
},
components: { mSecondaryMenu, mList, mListConstruction, mConditions, mSpin, mNoData }
}
......
......@@ -270,7 +270,7 @@ export default {
resolve()
return
}
io.get(`projects/query-project-list`, payload, res => {
io.get(`projects/queryAllProjectList`, payload, res => {
state.projectListS = res.data
resolve(res.data)
}).catch(res => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册