支持全局异常和统一返回结果
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
<i class="el-icon-video-camera" ></i>
|
||||
{{ item.substring(0,17)}}
|
||||
</el-tag>
|
||||
<!-- <a class="el-icon-download" style="color: #409EFF;font-weight: 600;margin-left: 10px;" :href="`${basePath}/${mediaServerId}/record/${recordFile.app}/${recordFile.stream}/${chooseDate}/${item}`" download />-->
|
||||
<a class="el-icon-download" style="color: #409EFF;font-weight: 600;margin-left: 10px;" :href="`${basePath}/download.html?url=record/${recordFile.app}/${recordFile.stream}/${chooseDate}/${item}`" target="_blank" />
|
||||
</li>
|
||||
</ul>
|
||||
@@ -392,7 +391,7 @@
|
||||
endTime: moment(this.taskTimeRange[1]).format('YYYY-MM-DD HH:mm:ss'),
|
||||
}
|
||||
}).then(function (res) {
|
||||
if (res.data.code === 0 && res.data.msg === "success") {
|
||||
if (res.data.code === 0 ) {
|
||||
that.showTaskBox = false
|
||||
that.getTaskList(false);
|
||||
}else {
|
||||
@@ -414,7 +413,7 @@
|
||||
isEnd: isEnd,
|
||||
}
|
||||
}).then(function (res) {
|
||||
if (res.data.code == 0) {
|
||||
if (res.data.code === 0) {
|
||||
if (isEnd){
|
||||
that.taskListEnded = res.data.data;
|
||||
}else {
|
||||
|
||||
Reference in New Issue
Block a user