Commit dd911c9b authored by 胡占生's avatar 胡占生 🇨🇳

fix: 算法接口地址调整,案例图片接口联调

parent c00b70a8
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="视频流地址" prop="videoUrl"> <el-form-item label="视频流地址" prop="videoUrl">
<el-input v-model="form.videoUrl" placeholder="请输入视频流类型" /> <el-input v-model="form.videoUrl" placeholder="请输入视频流地址" />
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -271,8 +271,9 @@ ...@@ -271,8 +271,9 @@
function handleStatusChange(row) { function handleStatusChange(row) {
let text = row.isOpen === "0" ? "禁用" : "启用"; let text = row.isOpen === "0" ? "禁用" : "启用";
proxy.$modal.confirm('确认要"' + text + '""' + row.deviceName + '"设备吗?').then(function () { proxy.$modal.confirm('确认要"' + text + '""' + row.deviceName + '"设备吗?').then(function () {
return updateStatusDevice({id:row.id,status:row.status}); return updateStatusDevice({id:row.id,status:row.isOpen === "0" ? "1" : "0"});
}).then(() => { }).then(() => {
getList()
proxy.$modal.msgSuccess(text + "成功"); proxy.$modal.msgSuccess(text + "成功");
}).catch(function () { }).catch(function () {
row.status = row.status === "0" ? "1" : "0"; row.status = row.status === "0" ? "1" : "0";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment