|
@@ -2,7 +2,7 @@
|
|
|
<el-container>
|
|
<el-container>
|
|
|
<el-header height="220">
|
|
<el-header height="220">
|
|
|
<h3>Nginx 配置管理</h3>
|
|
<h3>Nginx 配置管理</h3>
|
|
|
- <el-row style="margin-top: 10px">
|
|
|
|
|
|
|
+ <el-row style="margin-top: 5px">
|
|
|
<el-select
|
|
<el-select
|
|
|
v-model="env"
|
|
v-model="env"
|
|
|
size="mini"
|
|
size="mini"
|
|
@@ -32,6 +32,17 @@
|
|
|
/>
|
|
/>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
<el-button size="mini" type="warning" icon="el-icon-refresh" style="margin-left: 5px" @click="onRefresh">刷新</el-button>
|
|
<el-button size="mini" type="warning" icon="el-icon-refresh" style="margin-left: 5px" @click="onRefresh">刷新</el-button>
|
|
|
|
|
+ <el-row style="margin-top: 5px">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="queryInfo.path"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ style="margin :5px; width: 20%"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ placeholder="输入路径(回车搜索)"
|
|
|
|
|
+ @clear="onClear"
|
|
|
|
|
+ @keyup.enter.native="onSearch"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-row>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-header>
|
|
</el-header>
|
|
|
<el-main>
|
|
<el-main>
|
|
@@ -170,6 +181,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
handleNodeClick(data) {
|
|
handleNodeClick(data) {
|
|
|
if (data.type !== 'file') {
|
|
if (data.type !== 'file') {
|
|
|
|
|
+ this.$message.warning('not file')
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -197,6 +209,12 @@ export default {
|
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
|
this.showEditDialog = false
|
|
this.showEditDialog = false
|
|
|
})
|
|
})
|
|
|
|
|
+ },
|
|
|
|
|
+ onClear() {
|
|
|
|
|
+ this.queryInfo.path = ''
|
|
|
|
|
+ },
|
|
|
|
|
+ onSearch() {
|
|
|
|
|
+ this.getData()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|