V0.37
This commit is contained in:
parent
27290451d9
commit
6c404c1c6b
@ -23,27 +23,27 @@
|
|||||||
<!-- <el-button type="primary" style="margin-top: 48px;" @click="factorySetting">
|
<!-- <el-button type="primary" style="margin-top: 48px;" @click="factorySetting">
|
||||||
{{ $t('table.factorySettings') }}
|
{{ $t('table.factorySettings') }}
|
||||||
</el-button> -->
|
</el-button> -->
|
||||||
<!-- <div class="formbox">-->
|
<div class="formbox">
|
||||||
<!-- <div class="formbox-l">{{ $t('table.NetworkPacketCapture') }}</div>-->
|
<div class="formbox-l">{{ $t('table.NetworkPacketCapture') }}</div>
|
||||||
<!-- <el-button type="primary" v-if="DataDB.status === 0 || DataDB.status === 2" @click.stop="StartPacketCapture(1)">-->
|
<el-button type="primary" v-if="DataDB.status === 0 || DataDB.status === 2" @click.stop="StartPacketCapture(1)">
|
||||||
<!-- {{ $t('table.StartPacketCapture') }}-->
|
{{ $t('table.StartPacketCapture') }}
|
||||||
<!-- </el-button>-->
|
</el-button>
|
||||||
<!-- <el-button type="danger" v-else @click.stop="StartPacketCapture(0)">-->
|
<el-button type="danger" v-else @click.stop="StartPacketCapture(0)">
|
||||||
<!-- {{ $t('table.StopPacketCapture') }}-->
|
{{ $t('table.StopPacketCapture') }}
|
||||||
<!-- </el-button>-->
|
</el-button>
|
||||||
<!-- <el-button type="primary" @click.stop="DownloadFile" :disabled="DataDB.status !== 2">-->
|
<el-button type="primary" @click.stop="DownloadFile" :disabled="DataDB.status !== 2">
|
||||||
<!-- {{ $t('table.Download') }}-->
|
{{ $t('table.Download') }}
|
||||||
<!-- </el-button>-->
|
</el-button>
|
||||||
<!-- <el-button type="primary" @click.stop="DeletePacketCaptureRecords" :disabled="DataDB.status !== 2">-->
|
<el-button type="primary" @click.stop="DeletePacketCaptureRecords" :disabled="DataDB.status !== 2">
|
||||||
<!-- {{ $t('table.Delete') }}-->
|
{{ $t('table.Delete') }}
|
||||||
<!-- </el-button>-->
|
</el-button>
|
||||||
<!-- <span v-if="DataDB.status === 1" class="SpanBox1">-->
|
<span v-if="DataDB.status === 1" class="SpanBox1">
|
||||||
<!-- {{ $t('table.CapturingPacket') }}-->
|
{{ $t('table.CapturingPacket') }}
|
||||||
<!-- </span>-->
|
</span>
|
||||||
<!-- <span v-else-if="DataDB.status === 2" class="SpanBox1">-->
|
<span v-else-if="DataDB.status === 2" class="SpanBox1">
|
||||||
<!-- {{ $t('table.PacketCaptureHasBeenStopped') }}-->
|
{{ $t('table.PacketCaptureHasBeenStopped') }}
|
||||||
<!-- </span>-->
|
</span>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -138,6 +138,15 @@ export default {
|
|||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getPacketInfo() {
|
||||||
|
getPacketCaptureInfo({}).then(res => {
|
||||||
|
const data = res.data
|
||||||
|
this.DataDB.status = data.status
|
||||||
|
this.DataDB.file = data.file
|
||||||
|
}).catch(() => {
|
||||||
|
|
||||||
|
})
|
||||||
|
},
|
||||||
StartPacketCapture(Flag) {
|
StartPacketCapture(Flag) {
|
||||||
if (Flag === 1) {
|
if (Flag === 1) {
|
||||||
startPacketCapture({}).then(res => {
|
startPacketCapture({}).then(res => {
|
||||||
@ -153,15 +162,6 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getPacketInfo() {
|
|
||||||
getPacketCaptureInfo({}).then(res => {
|
|
||||||
const data = res.data
|
|
||||||
this.DataDB.status = data.status
|
|
||||||
this.DataDB.file = data.file
|
|
||||||
}).catch(() => {
|
|
||||||
|
|
||||||
})
|
|
||||||
},
|
|
||||||
DeletePacketCaptureRecords() {
|
DeletePacketCaptureRecords() {
|
||||||
const data = {
|
const data = {
|
||||||
name: this.DataDB.file
|
name: this.DataDB.file
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user