提交: 场景运行状态 更改: 0启动 1停止
This commit is contained in:
parent
30293db4da
commit
09df859f8e
|
@ -72,7 +72,7 @@
|
|||
>
|
||||
<template slot-scope="scope">
|
||||
<span class="lay-table-textarea">
|
||||
{{ scope.row.runStatus ? "启用" : "停止" }}
|
||||
{{ scope.row.runStatus == '0' ? "启用" : "停止" }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -110,9 +110,9 @@
|
|||
<el-button
|
||||
size="mini"
|
||||
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)"
|
||||
>{{ scope.row.runStatus ? '停止' : '启用' }}</el-button
|
||||
>{{ scope.row.runStatus == '0' ? '停止' : '启用' }}</el-button
|
||||
>
|
||||
|
||||
<el-button
|
||||
|
@ -524,7 +524,7 @@ export default {
|
|||
.then(function () {
|
||||
return projectSceneChangeStatus({
|
||||
recordId: row.recordId,
|
||||
runStatus: row.runStatus ? false : true
|
||||
runStatus: row.runStatus == '0' ? '1' : '0'
|
||||
});
|
||||
})
|
||||
.then(() => {
|
||||
|
|
Loading…
Reference in New Issue