端口分组

This commit is contained in:
xuefm
2023-03-17 22:38:51 +08:00
parent 3d6c83a11b
commit 78cf5d95e5
2 changed files with 13 additions and 12 deletions
@@ -37,19 +37,19 @@
<span>{{ scope.row.updateTime | parseTime('{y}-{m}-{d} {h}:{i}') }}</span> <span>{{ scope.row.updateTime | parseTime('{y}-{m}-{d} {h}:{i}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column class-name="status-col" :label="$t('table.enableStatus')" width="150"> <!-- <el-table-column class-name="status-col" :label="$t('table.enableStatus')" width="150">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<el-tag :type="scope.row.enable | statusFilter">{{ scope.row.enable | statusName }}</el-tag> <!-- <el-tag :type="scope.row.enable | statusFilter">{{ scope.row.enable | statusName }}</el-tag>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column align="center" :label="$t('table.actions')" width="250" class-name="small-padding fixed-width"> <el-table-column align="center" :label="$t('table.actions')" width="250" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.enable =='1'" size="mini" type="danger" @click="handleModifyStatus(scope.row,2)"> <!-- <el-button v-if="scope.row.enable =='1'" size="mini" type="danger" @click="handleModifyStatus(scope.row,2)">-->
{{ $t('table.disable') }} <!-- {{ $t('table.disable') }}-->
</el-button> <!-- </el-button>-->
<el-button v-if="scope.row.enable =='2'" size="mini" type="success" @click="handleModifyStatus(scope.row,1)"> <!-- <el-button v-if="scope.row.enable =='2'" size="mini" type="success" @click="handleModifyStatus(scope.row,1)">-->
{{ $t('table.enable') }} <!-- {{ $t('table.enable') }}-->
</el-button> <!-- </el-button>-->
<!-- <el-button v-if="scope.row.status!='deleted'" size="mini" type="danger" @click="handleDelete(scope.row,'deleted')">{{$t('table.delete')}}</el-button>--> <!-- <el-button v-if="scope.row.status!='deleted'" size="mini" type="danger" @click="handleDelete(scope.row,'deleted')">{{$t('table.delete')}}</el-button>-->
<ButtonPopover @handleCommitClick="handleDelete(scope.row)" style="margin-left: 10px"/> <ButtonPopover @handleCommitClick="handleDelete(scope.row)" style="margin-left: 10px"/>
</template> </template>
@@ -60,7 +60,7 @@
</el-form-item> </el-form-item>
<el-form-item :label="$t('table.group')" prop="group"> <el-form-item :label="$t('table.group')" prop="group">
<el-select style="width: 330px" class="filter-item" v-model="temp.groupId" placeholder="请选择" <el-select style="width: 330px" class="filter-item" v-model="temp.groupId"
:disabled="dialogStatus=='update'"> :disabled="dialogStatus=='update'">
<el-option v-for="item in portGroupList" :key="item.id" :label="item.name" :value="item.id"> <el-option v-for="item in portGroupList" :key="item.id" :label="item.name" :value="item.id">
</el-option> </el-option>
@@ -235,6 +235,7 @@
this.resetTemp() this.resetTemp()
this.dialogStatus = 'create' this.dialogStatus = 'create'
this.dialogFormVisible = true this.dialogFormVisible = true
this.temp.groupId = 1
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].clearValidate() this.$refs['dataForm'].clearValidate()
}) })