提交: 场景运行状态 更改: 0启动 1停止

This commit is contained in:
23688nl 2022-09-26 11:29:26 +08:00
parent 30293db4da
commit 09df859f8e
1 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span class="lay-table-textarea"> <span class="lay-table-textarea">
{{ scope.row.runStatus ? "启用" : "停止" }} {{ scope.row.runStatus == '0' ? "启用" : "停止" }}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
@ -110,9 +110,9 @@
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
:icon="scope.row.runStatus ? 'el-icon-video-pause' : 'el-icon-video-play'" :icon="scope.row.runStatus == '0' ? 'el-icon-video-pause' : 'el-icon-video-play'"
@click="handleChangeStatus(scope.row)" @click="handleChangeStatus(scope.row)"
>{{ scope.row.runStatus ? '停止' : '启用' }}</el-button >{{ scope.row.runStatus == '0' ? '停止' : '启用' }}</el-button
> >
<el-button <el-button
@ -524,7 +524,7 @@ export default {
.then(function () { .then(function () {
return projectSceneChangeStatus({ return projectSceneChangeStatus({
recordId: row.recordId, recordId: row.recordId,
runStatus: row.runStatus ? false : true runStatus: row.runStatus == '0' ? '1' : '0'
}); });
}) })
.then(() => { .then(() => {