Commit b8787dfc by 潘建波

提交高亮显示当前任务

1 parent 60eb16b6
No preview for this file type
......@@ -47,11 +47,11 @@
<body>
<div class="easyui-layout" data-options="fit:true">
<div data-options="region:'west',split:true" style="width:300px;" class='treE'>
<div data-options="region:'west',split:true" style="width:240px;" >
<div id="ptree" class="easyui-tree" data-options="fit:true,lines:true,onClick:clickTreeNode,filter:searchTree">
</div>
</div>
<div data-options="region:'center'" style="padding:5px">
<div data-options="region:'center'" style="padding:5px;margin-left: 10px;">
<div id="pgrid" class="easyui-propertygrid" data-options="showGroup:false,fit:true,fitColumns:true,
columns:myColumns,onAfterEdit:onEndEditParameter,onClickRow:onClickPropertyRow">
</div>
......
......@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.png">
<title>fanxing</title>
<title>视频分析平台</title>
<script src="<%= BASE_URL %>js/kinetic-v5.1.0.min.js"></script>
<script src="<%= BASE_URL %>js/ObjTree.js"></script>
<script src="<%= BASE_URL %>js/jquery.min.js"></script>
......
......@@ -6,11 +6,11 @@ import search from "./search";
import device from "./device";
import resource from "./resource";
import codes from "./codes";
import ops from "./ops"
let wsIP = "vion-panda.51vip.biz:52510";
import ops from "./ops";
let wsIP = "";
switch (process.env.NODE_ENV) {
case "development":
wsIP = "192.168.9.233:20080"; // 测试环境url
wsIP = "192.168.9.149:20080"; // 测试环境url
// baseUrl = "http://192.168.9.61:8086";
break;
case "pre":
......
......@@ -80,13 +80,18 @@ service.interceptors.request.use(
);
// 添加响应拦截器
service.interceptors.response.use(
response => {
// endLoading();
service.interceptors.response.use(response => {
// endLoading();
if (response.data && response.data.ecode && response.data.ecode == 401) {
localStorage.removeItem("atoken");
router.replace({
path: "/"
});
// location.reload();
} else {
let { data } = response;
return data;
},
}
err => {
// endLoading();
if (err && err.response) {
......@@ -95,8 +100,25 @@ service.interceptors.response.use(
Message.error({ message: "连接服务器失败!" });
}
return Promise.reject(err);
}
);
};
});
// service.interceptors.response.use(
// response => {
// // endLoading();
// let { data } = response;
// return data;
// },
// err => {
// // endLoading();
// if (err && err.response) {
// Message.error({ message: err.response.data.enote });
// } else {
// Message.error({ message: "连接服务器失败!" });
// }
// return Promise.reject(err);
// }
// );
/**
* 创建统一封装过的 axios 实例
......
......@@ -4,7 +4,7 @@ console.log(process.env.NODE_ENV);
switch (process.env.NODE_ENV) {
case "development":
// baseUrl = "http://192.168.9.234:20080"; // 测试环境url
baseUrl = "http://192.168.9.62:20080"; // 测试环境url
baseUrl = "http://192.168.9.149:20080"; // 测试环境url
// baseUrl = "http://192.168.9.82:8080"; // 测试环境url
// baseUrl = "http://192.168.9.61:8086";
// baseUrl = 'http://vion-panda.51vip.biz:52510';
......
......@@ -7,17 +7,23 @@
>
<el-row>
<el-col :span="24">
<div @mousemove="picMove" class="pic-wrap">
<img
v-if="curPicData.picsEmpty"
:src="carImg"
alt="暂无图片"
title="暂无图片"
slot="reference"
class="pictures small"
/>
<div class="pic-wrap">
<el-image
style="width: 100%;"
:src="curPicData.bigpic"
:preview-src-list="srcList"
>
<div slot="error" class="image-slot">
<img
:src="curPicData.bigpic"
alt=""
style="width: 30%;display: block;margin: 0 auto;"
/>
</div>
</el-image>
<!-- <img v-if="curPicData.pics" :src="carImg" alt="暂无图片" slot="reference" class='pictures small' /> -->
<el-popover
<!-- <el-popover
placement="left-end"
width="305"
trigger="hover"
......@@ -38,7 +44,7 @@
slot="reference"
class="pictures small"
/>
</el-popover>
</el-popover> -->
</div>
</el-col>
<!-- 交通 -->
......@@ -243,7 +249,10 @@
</el-col>
</el-row>
<span slot="footer">
<button class="el-button el-button--default el-button--small" @click="beforeHideModal" >
<button
class="el-button el-button--default el-button--small"
@click="beforeHideModal"
>
关闭
</button>
</span>
......@@ -257,14 +266,20 @@ export default {
return {
carImg: "",
isShow: false,
curPicData: {}
curPicData: {},
srcList: []
};
},
methods: {
detailInfo: function(data) {
this.curPicData = {};
this.curPicData = data;
console.log("detail",data)
this.srcList = [];
setTimeout(() => {
if (data.bigpic) {
this.srcList.push(data.bigpic);
}
}, 0);
this.isShow = true;
this.$store.commit("setocxstate", 0);
},
......
......@@ -321,9 +321,10 @@ export default {
margin-bottom 5px
width 15vw
height 30px
padding-left 30px
margin-left 15px
line-height 30px
font-size 13px
padding-left 8px
color #666666
// width calc(100% - 30px);
overflow hidden
......@@ -341,6 +342,18 @@ export default {
cursor text
}
.subtaskActive {
// background #0c3b87
position relative
color #333
}
.subtaskActive::before{
position absolute
content ""
top 11px
left 0px
display inline-block
height 8px
width 8px
background rgba(42, 225, 47, 0.74)
border-radius 10px
}
</style>
......@@ -3,7 +3,7 @@
<el-dialog
title="参数设置"
:visible.sync="dialogVisible"
width="50%"
width="60%"
:before-close="handleClose"
>
<span>
......
......@@ -245,7 +245,9 @@ export default {
message: "添加成功",
type: "success"
});
this.tableData.push(vchan);
res.name = vchan.name;
res.subtask_id = res.id;
this.tableData.push(res);
} else {
this.$message.error(res.enote);
}
......
......@@ -94,6 +94,7 @@
:freeList="freeList"
>
</subTaskInfo>
<div v-if="props.row.subTaskData.length <= 0" class="notaskinfo">暂无子任务</div>
</template>
</el-table-column>
<el-table-column
......@@ -314,6 +315,7 @@ export default {
? data[i].running_status
: "";
data[i].vchan.enableStatus = data[i].enableStatus ? data[i].enableStatus : "";
data[i].vchan.info = data[i].info ? data[i].info : "";
}
ary.push(data[i].vchan);
}
......@@ -630,4 +632,8 @@ export default {
.statusbox {
background: red;
}
.notaskinfo{
text-align: center;
color: #c4c4c4;
}
</style>
......@@ -6,13 +6,13 @@
<span class="subtask-info">{{ subTaskData.vchan_name }}</span>
<span class="label">任务ID</span>
<span class="subtask-info">{{ subTaskData.subtask_id }}</span>
<span class="label">设备地址</span>
<span class="subtask-info">{{ subTaskData.device_ip }}</span>
<span class="label">已用资源</span>
<!-- <span class="label">设备地址</span>
<span class="subtask-info">{{ subTaskData.device_ip }}</span> -->
<!-- <span class="label">已用资源</span>
<span class="subtask-info">{{ subTaskData.video_busy }}</span>
<span class="label">设备容量</span>
<span class="subtask-info">{{ subTaskData.video_total }}</span>
<span class="label">指定设备下发</span>
<span class="subtask-info">{{ subTaskData.video_total }}</span> -->
<span class="label">分析设备</span>
<span class="subtask-info">
<el-select v-model="assign_id">
<el-option
......@@ -38,7 +38,7 @@
</el-option>
</el-select>
</span>
<span class="label sub-btn" @click="subMove">确定</span>
<span class="label sub-btn" @click="subMove" hidden>确定</span>
</div>
</template>
......@@ -106,11 +106,7 @@ export default {
console.log(this.subTaskData);
},
watch: {},
mounted() {
this.assign_id = this.subTaskData.assign_id
? this.subTaskData.assign_id
: "";
}
mounted() {}
};
</script>
......@@ -123,11 +119,13 @@ export default {
border-bottom: 1px solid #ccc;
overflow: hidden;
}
span:last-child{
border-bottom: 1px solid #333;
}
.label {
width: 5vw;
text-align: center;
border-left: 1px solid $border-color;
// border-left: 1px solid $border-color;
background: #f0f0f0;
height: 40px;
line-height: 40px;
......@@ -136,7 +134,7 @@ export default {
width: 3vw;
}
.taskstatus {
width: 5vw;
width: 6vw;
}
.subtask-info {
border-left: 1px solid #f0f0f0;
......@@ -146,14 +144,14 @@ export default {
line-height: 40px;
}
.subtask-info:nth-child(4) {
width: 7vw;
width: 8vw;
overflow: hidden;
}
.subtask-info:nth-child(6) {
width: 8vw;
width: 15vw;
}
.subtask-info:nth-child(8) {
width: 6vw;
width: 12vw;
}
.subtask-info:nth-child(10) {
width: 3vw;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!