|
|
@@ -31,7 +31,7 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="任务时间" prop="planStartTime">
|
|
|
+ <!-- <el-form-item label="任务时间" prop="planStartTime">
|
|
|
<DataRangePicker
|
|
|
type="daterange"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
@@ -42,7 +42,7 @@
|
|
|
:picker-options="pickerOptions"
|
|
|
>
|
|
|
</DataRangePicker>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
</el-form>
|
|
|
|
|
|
<el-row :gutter="10">
|
|
|
@@ -77,10 +77,10 @@
|
|
|
</el-col>
|
|
|
<el-col :span="19">
|
|
|
<div class="numCls">
|
|
|
- <div>监控主机总数:100</div>
|
|
|
- <div>硬盘总数:94</div>
|
|
|
+ <div>监控主机总数:{{dvrdiskStatistic.dvrTotal}}</div>
|
|
|
+ <div>硬盘总数:{{dvrdiskStatistic.diskTotal}}</div>
|
|
|
<div>
|
|
|
- 异常总数:<span :style="{ color: '#fb5d70' }">6</span>
|
|
|
+ 异常总数:<span :style="{ color: '#fb5d70' }">{{dvrdiskStatistic.diskExceptionCount}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
@@ -93,7 +93,7 @@
|
|
|
|
|
|
<el-table
|
|
|
v-loading="loading"
|
|
|
- :data="taskList"
|
|
|
+ :data="tableData"
|
|
|
border
|
|
|
height="600"
|
|
|
size="small"
|
|
|
@@ -115,13 +115,13 @@
|
|
|
<el-table-column
|
|
|
label="组织机构"
|
|
|
align="center"
|
|
|
- prop="taskName"
|
|
|
+ prop="orgName"
|
|
|
width="220"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="监控主机"
|
|
|
align="center"
|
|
|
- prop="sbmc"
|
|
|
+ prop="equipmentName"
|
|
|
width="220"
|
|
|
show-overflow-tooltip="true"
|
|
|
/>
|
|
|
@@ -129,7 +129,7 @@
|
|
|
<el-table-column
|
|
|
label="品牌"
|
|
|
align="center"
|
|
|
- prop="pp"
|
|
|
+ prop="brand"
|
|
|
width="220"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
@@ -138,7 +138,7 @@
|
|
|
prop="ip"
|
|
|
width="160"
|
|
|
/>
|
|
|
- <el-table-column label="网络状态" align="center" prop="wlzt">
|
|
|
+ <el-table-column label="网络状态" align="center" prop="netStateStr">
|
|
|
<!-- <template slot-scope="scope">
|
|
|
<span>
|
|
|
<dict-tag
|
|
|
@@ -148,7 +148,7 @@
|
|
|
</span>
|
|
|
</template> -->
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="硬盘总数" align="center" prop="ypzs">
|
|
|
+ <el-table-column label="硬盘总数" align="center" prop="diskCount">
|
|
|
<!-- <template slot-scope="scope">
|
|
|
{{ scope.row.planStartTime }}~{{ scope.row.planEndTime }}
|
|
|
</template> -->
|
|
|
@@ -157,15 +157,25 @@
|
|
|
<el-table-column
|
|
|
label="异常数量(序号)"
|
|
|
align="center"
|
|
|
- prop="exceptionCount"
|
|
|
+ prop="diskExceptionCount"
|
|
|
width="150"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- label="剩余空间/总空间"
|
|
|
+ label="已用空间/总空间"
|
|
|
align="center"
|
|
|
prop="sykj"
|
|
|
width="160"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot-scope="r">
|
|
|
+ <el-tag
|
|
|
+ v-for="disk in r.row.diskInfos"
|
|
|
+ :key="disk.index"
|
|
|
+ class="diskinfo-el-tag"
|
|
|
+ type="info"
|
|
|
+ >{{ renderDiskInfo(disk, r.row) }}</el-tag
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
label="操作"
|
|
|
@@ -186,7 +196,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <dialog-info ref="infoDialog" @success="refresh(true)"></dialog-info>
|
|
|
+ <detail-dialog ref="infoDialog" @success="refresh(true)"></detail-dialog>
|
|
|
<pagination
|
|
|
v-show="total > 0"
|
|
|
:total="total"
|
|
|
@@ -201,60 +211,35 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listTask } from "@/api/core/task";
|
|
|
import OrgTree from "@/components/orgTree/orgQuerySelector.vue";
|
|
|
-import DialogInfo from "./dialog.vue";
|
|
|
-import { listPlanRole } from "@/api/core/edu/plan";
|
|
|
-import { formatTime } from "@/utils/ruoyi";
|
|
|
+import DetailDialog from "./detail.dialog.vue";
|
|
|
import DataRangePicker from "@/components/dateTime/daterange.picker.vue";
|
|
|
import dayjs from "dayjs";
|
|
|
-import { mapGetters } from "vuex";
|
|
|
+import api from "@/api/iot/dvrDisk.js";
|
|
|
+
|
|
|
export default {
|
|
|
- components: { OrgTree, DialogInfo, DataRangePicker },
|
|
|
+ components: { OrgTree, DetailDialog, DataRangePicker },
|
|
|
name: "Task",
|
|
|
dicts: ["sys_access_cycle"],
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
|
loading: false,
|
|
|
- // 选中数组
|
|
|
- ids: [],
|
|
|
- // 非单个停用
|
|
|
- single: true,
|
|
|
- // 非多个停用
|
|
|
- multiple: true,
|
|
|
// 显示搜索条件
|
|
|
showSearch: true,
|
|
|
// 总条数
|
|
|
total: 0,
|
|
|
- // 监控调阅任务表格数据
|
|
|
- taskList: [
|
|
|
- {
|
|
|
- taskName: "长乐农商行",
|
|
|
- sbmc: "三楼海康",
|
|
|
- pp: "海康视频存储设备",
|
|
|
- ip: "10.87.10.166",
|
|
|
- wlzt: "正常",
|
|
|
- ypzs: "50",
|
|
|
- exceptionCount: "2",
|
|
|
- sykj: "995G/7449G",
|
|
|
- },
|
|
|
- ],
|
|
|
- // 弹出层标题
|
|
|
- title: "",
|
|
|
- // 是否显示弹出层
|
|
|
- open: false,
|
|
|
+ //
|
|
|
+ tableData: [],
|
|
|
+ dvrdiskStatistic:{},
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
- taskName: null,
|
|
|
- cycle: null,
|
|
|
- dateRange: [],
|
|
|
- planStartTime: null,
|
|
|
- status: null,
|
|
|
- roleId: null,
|
|
|
- checkSub: true,
|
|
|
+ equipmentName: null,
|
|
|
+ checkSub: false,
|
|
|
+ orgId: null,
|
|
|
+ // range:[],
|
|
|
},
|
|
|
selectedOrgName: "",
|
|
|
// 表单参数
|
|
|
@@ -274,38 +259,19 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
/** 查询监控调阅任务列表 */
|
|
|
- getList() {
|
|
|
- this.taskList = [
|
|
|
- {
|
|
|
- taskName: "长乐农商行",
|
|
|
- sbmc: "长乐农商行1楼-02主机",
|
|
|
- pp: "海康视频存储设备",
|
|
|
- ip: "10.87.10.166",
|
|
|
- wlzt: "正常",
|
|
|
- ypzs: "50",
|
|
|
- exceptionCount: "2",
|
|
|
- sykj: "995G/7449G",
|
|
|
- },
|
|
|
- {
|
|
|
- taskName: "闽侯县联社",
|
|
|
- sbmc: "闽侯县联社大厅-01主机",
|
|
|
- pp: "大华视频存储设备",
|
|
|
- ip: "10.87.10.187",
|
|
|
- wlzt: "正常",
|
|
|
- ypzs: "50",
|
|
|
- exceptionCount: "0",
|
|
|
- sykj: "0G/1024G",
|
|
|
- },
|
|
|
- ];
|
|
|
- return;
|
|
|
- this.loading = true;
|
|
|
- listTask(this.queryParams).then((response) => {
|
|
|
- this.taskList = response.rows;
|
|
|
- this.total = response.total;
|
|
|
+ async getList() {
|
|
|
+ api.list(this.queryParams).then((r) => {
|
|
|
+ this.tableData = r.rows;
|
|
|
+ this.total = r.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ async getDvrdiskStatistic() {
|
|
|
+ let { orgId, checkSub } = this.queryParams;
|
|
|
+ api.dvrdiskStatistic({ orgId, checkSub }).then(r=>this.dvrdiskStatistic=r.data);
|
|
|
+ },
|
|
|
+
|
|
|
getDefaultOrg(org) {
|
|
|
this.orgName = org.name;
|
|
|
this.selectedOrgName = org.shortName;
|
|
|
@@ -314,10 +280,12 @@ export default {
|
|
|
getDefaultKey(key) {
|
|
|
this.queryParams.orgId = key;
|
|
|
this.getList();
|
|
|
+ this.getDvrdiskStatistic();
|
|
|
},
|
|
|
checkChange(state) {
|
|
|
this.queryParams.checkSub = state;
|
|
|
this.handleQuery();
|
|
|
+ this.getDvrdiskStatistic();
|
|
|
},
|
|
|
// 节点单击事件
|
|
|
clickTreeNode(data) {
|
|
|
@@ -325,46 +293,7 @@ export default {
|
|
|
this.orgName = data.name;
|
|
|
this.selectedOrgName = data.shortName;
|
|
|
this.handleQuery();
|
|
|
- },
|
|
|
- /** 下穿状态改变*/
|
|
|
- changeCheckBox() {
|
|
|
- this.getList();
|
|
|
- },
|
|
|
- // 取消按钮
|
|
|
- cancel() {
|
|
|
- this.open = false;
|
|
|
- this.reset();
|
|
|
- },
|
|
|
- // 表单重置
|
|
|
- reset() {
|
|
|
- this.form = {
|
|
|
- id: null,
|
|
|
- planId: null,
|
|
|
- taskName: null,
|
|
|
- orgId: null,
|
|
|
- orgPath: null,
|
|
|
- orgName: null,
|
|
|
- ymdDate: null,
|
|
|
- ymdYear: null,
|
|
|
- ymdHalfyear: null,
|
|
|
- ymdQuarter: null,
|
|
|
- ymdMonth: null,
|
|
|
- ymdWeek: null,
|
|
|
- ymdDay: null,
|
|
|
- cycle: null,
|
|
|
- planStartTime: null,
|
|
|
- planEndTime: null,
|
|
|
- startTime: null,
|
|
|
- endTime: null,
|
|
|
- status: null,
|
|
|
- roleId: null,
|
|
|
- retrievalUser: null,
|
|
|
- orderNum: null,
|
|
|
- batchNum: null,
|
|
|
- submitTime: null,
|
|
|
- exceptionCount: null,
|
|
|
- };
|
|
|
- this.resetForm("form");
|
|
|
+ this.getDvrdiskStatistic();
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
|
@@ -378,41 +307,12 @@ export default {
|
|
|
this.queryParams.orgId = this.orgId;
|
|
|
this.selectedOrgName = this.orgName;
|
|
|
this.queryParams.checkSub = true;
|
|
|
- this.queryParams.dateRange = ["", ""];
|
|
|
- this.queryParams.planStartTime = null;
|
|
|
+ // this.queryParams.dateRange = ["", ""];
|
|
|
+ // this.queryParams.planStartTime = null;
|
|
|
this.$refs["orgTree"].setCheckSub(this.queryParams.checkSub);
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
- // 多选框选中数据
|
|
|
- handleSelectionChange(selection) {
|
|
|
- this.ids = selection.map((item) => item.id);
|
|
|
- this.single = selection.length !== 1;
|
|
|
- this.multiple = !selection.length;
|
|
|
- },
|
|
|
- /** 新增按钮操作 */
|
|
|
- handleAdd() {
|
|
|
- this.reset();
|
|
|
- this.open = true;
|
|
|
- this.title = "添加监控调阅任务";
|
|
|
- },
|
|
|
- /** 修改按钮操作 */
|
|
|
- lookView(row) {
|
|
|
- this.$refs["infoDialog"].show(row.id, {});
|
|
|
- },
|
|
|
-
|
|
|
- /** 导出按钮操作 */
|
|
|
- handleExport() {
|
|
|
- console.log(this);
|
|
|
- this.download(
|
|
|
- "core/retrievalTask/export",
|
|
|
- {
|
|
|
- ...this.queryParams,
|
|
|
- },
|
|
|
- `${
|
|
|
- this.selectedOrgName
|
|
|
- }-${this.$tab.getCurrentTabName()}-${dayjs().format("YYYYMMDD")}.xlsx`
|
|
|
- );
|
|
|
- },
|
|
|
+
|
|
|
},
|
|
|
};
|
|
|
</script>
|