Commit 05fb3dba authored by 智勇's avatar 智勇

关闭窗口事件

parent 2b7b5125
......@@ -102,7 +102,7 @@ export default {
getCluster() {
getCluster().then(res => {
this.clusterArray = res.data
this.clusterArray = res.data.map(i => i.clusterName)
})
},
......
......@@ -128,10 +128,10 @@
<svg-icon icon-class="restart"/>
重置服务
</el-dropdown-item>
<el-dropdown-item v-permission="['admin']" v-if="scope.row.serviceName!=='mysql'" style="color: red" @click.native="deleteService(scope.row) ">
<!-- <el-dropdown-item v-permission="['admin']" style="color: red" @click.native="deleteService(scope.row) ">
<svg-icon icon-class="delete"/>
删除服务
</el-dropdown-item>
</el-dropdown-item> -->
</el-dropdown-menu>
</el-dropdown>
</template>
......
......@@ -56,7 +56,7 @@
<!-- <pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" /> -->
<el-dialog :title="dialogStatus" :visible.sync="dialogFormVisible" :show-close="showClose">
<el-dialog :title="dialogStatus" :visible.sync="dialogFormVisible" @close="handleFilter">
<el-form ref="dataForm" :rules="rules" :model="temp" label-position="left" label-width="80px" style="width: 90%; margin-left:40px;">
<el-form-item label="应用名称" prop="application_name" >
<el-input v-model="temp.application_name"/>
......@@ -105,7 +105,7 @@
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="handleFilter">{{ $t('table.cancel') }}</el-button>
<el-button @click="dialogFormVisible = false">{{ $t('table.cancel') }}</el-button>
<el-button type="primary" @click="createData()">{{ $t('table.confirm') }}</el-button>
</div>
</el-dialog>
......@@ -175,8 +175,7 @@ export default {
refs: {},
ref: undefined,
clusterArray: [],
nsArray: [],
showClose: false
nsArray: []
}
},
computed: {
......@@ -243,7 +242,6 @@ export default {
},
handleFilter() {
this.dialogFormVisible = false
this.getApplications()
},
......
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