Commit 991aef90 by 杨明

fixed

1 parent 3ab15cbc
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-10-10 10:56:40
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-30 10:46:41
* @LastEditTime: 2022-12-01 16:07:27
* @FilePath: \scrm-micro-provider\src\views\home\components\activityList.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -12,7 +12,8 @@
<GLTable v-loading="loading" ref="table" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<template slot="optionBtns" slot-scope="scope">
<el-button type="text" v-if="scope.scope.status == 2 || scope.scope.status == 3" @click="handleLook(scope.scope)">查看</el-button>
<el-button type="text" v-else @click="handleOpen(scope.scope)">去处理</el-button>
<!-- <el-button type="text" v-else @click="handleOpen(scope.scope)">去处理</el-button> -->
<el-button type="text" v-else @click="handleLight(scope.scope)">点亮场景</el-button>
</template>
<template slot="status" slot-scope="scope">
<div :class="['task_icon', `task_icon_${scope.scope.status == 2 || scope.scope.status == 3 ? 'green' : 'grey'}`]">{{ taskStatus(scope.scope.status) }}</div>
......@@ -134,7 +135,7 @@ export default {
{
label: '操作',
prop: 'optionBtns',
width: '80px',
width: '100px',
addHtml: 'optionBtns',
fixed: 'right'
}
......@@ -163,6 +164,15 @@ export default {
},
handleOpen(scope) {
this.$refs.activityRef.init(scope)
},
handleLight(scope) {
const { id } = scope
this.$apis.application.lightScene({ activityId: id }).then(res => {
if (res) {
this.$message.success('操作成功')
this.handleSearch()
}
})
}
}
}
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-10-10 10:56:40
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-12-01 11:04:49
* @LastEditTime: 2022-12-01 16:04:31
* @FilePath: \scrm-micro-provider\src\views\home\components\activityList.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!