|
|
@@ -2,6 +2,16 @@
|
|
|
<el-container>
|
|
|
<el-header height="220">
|
|
|
<h3>对象列表</h3>
|
|
|
+ <el-row style="margin-top: 10px">
|
|
|
+ <el-button type="plain" icon="el-icon-files">存储节点</el-button>
|
|
|
+ <el-select
|
|
|
+ v-model="selectedValue"
|
|
|
+ style="margin-left: 5px"
|
|
|
+ @change="onSelectChange"
|
|
|
+ >
|
|
|
+ <el-option v-for="(item, index) in tableList" :key="index" :label="item.label" :value="item.value" />
|
|
|
+ </el-select>
|
|
|
+ </el-row>
|
|
|
</el-header>
|
|
|
<el-main>
|
|
|
<el-table
|
|
|
@@ -17,27 +27,19 @@
|
|
|
/>
|
|
|
<el-table-column
|
|
|
prop="nodeAddr"
|
|
|
- label="地址"
|
|
|
+ label="文件名"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
prop="httpPort"
|
|
|
- label="HTTP 端口"
|
|
|
+ label="修改时间"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
prop="rpcPort"
|
|
|
- label="RPC 端口"
|
|
|
+ label="大小"
|
|
|
/>
|
|
|
- <el-table-column
|
|
|
- prop="total"
|
|
|
- label="存储空间"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-progress :percentage="scope.row.percent"></el-progress>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="status"
|
|
|
- label="状态"
|
|
|
+ label="文件类型"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
fixed="right"
|
|
|
@@ -117,7 +119,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getStoreDisks, getStoreList } from '@/api/oss'
|
|
|
+import {getChannelList, getStoreDisks, getStoreList, getUserNodeKeyValue} from '@/api/oss'
|
|
|
|
|
|
export default {
|
|
|
name: 'AdminStoreObject',
|
|
|
@@ -148,10 +150,13 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getData() {
|
|
|
- this.dataList = []
|
|
|
- getStoreList().then(resp => {
|
|
|
+ this.tableList = []
|
|
|
+ getUserNodeKeyValue().then(resp => {
|
|
|
if (resp.code === 0) {
|
|
|
- this.dataList = resp.data
|
|
|
+ this.tableList = resp.data
|
|
|
+
|
|
|
+ this.selectedValue = this.tableList[0].value
|
|
|
+ this.dataList = []
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -166,11 +171,6 @@ export default {
|
|
|
},
|
|
|
handleEdit(index, row) {
|
|
|
this.showEditScopeDialog = true
|
|
|
- getStoreDisks((row.id)).then(resp => {
|
|
|
- if (resp.code === 0) {
|
|
|
- this.tableList = resp.data
|
|
|
- }
|
|
|
- })
|
|
|
},
|
|
|
handleDelete(index, row) {
|
|
|
this.$confirm('确定要删除 ' + row.title + '?', '提示', {
|
|
|
@@ -186,7 +186,7 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- onUpdateScope() {
|
|
|
+ onAddChannel() {
|
|
|
this.showEditScopeDialog = false
|
|
|
},
|
|
|
onSelectChange() {
|