会话监管

This commit is contained in:
liuye
2023-08-17 11:36:33 +08:00
parent 378f4eba0b
commit 8e167df7e3
4 changed files with 13 additions and 11 deletions

View File

@@ -18,7 +18,7 @@
<span class="tips">当前机位1有效期为{{configInfo.validity}}&nbsp;&nbsp;&nbsp;&nbsp;ip地址为{{configInfo.xbotIp}}</span>
</template>
<template #right>
<el-button size="small" :type="configInfo.status == 1 ? 'info' : 'primary'" @click="openWechat()" :disabled="configInfo.status == 1">启动</el-button>
<el-button size="small" :type="configInfo.status != 1 ? 'info' : 'primary'" @click="openWechat()" :disabled="configInfo.status != 1">{{configInfo.status != 1 ? '已启动' : '启动'}}</el-button>
</template>
</ai-search-bar>
<ai-table :tableData="tableData" :total="total" :current.sync="search.current" :size.sync="search.size"
@@ -131,7 +131,7 @@ export default {
openWechat() {
this.instance.post(`/app/appxbotconfig/openWechat?id=${this.configInfo.id}`).then(res => {
if(res.code === 0) {
this.configInfo.status = 1
this.configInfo.status = 0
this.$message.success('启动成功!')
}
})
@@ -210,10 +210,11 @@ export default {
height: 50px;
border-radius: 50%;
}
:deep .ai-dialog__content {
:deep .ai-dialog__content--wrapper {
// height: 1000px;
// overflow-y: scroll;
.ai-table {
max-height: 1000px;
overflow-y: scroll;
// height: 1000px;
}
}
}

View File

@@ -461,6 +461,7 @@
startTime: this.time ? this.time[0] : '',
endTime: this.time ? this.time[1] : '',
seq: this.listInfo.seq,
msgId: !this.listInfo.seq ? this.params.msgId : ''
}
}).then(res => {
if (res.code === 0) {

View File

@@ -2,7 +2,7 @@
<ai-list>
<template #title>
<ai-title :title="menuName" isShowBottomBorder>
<el-button type="primary" slot="rightBtn" @click="toSetting">设置</el-button>
<el-button type="primary" slot="rightBtn" @click="toSetting">工单特征库设置</el-button>
</ai-title>
</template>
<template #content>

View File

@@ -17,7 +17,7 @@
</ai-search-bar>
<ai-table :tableData="tableData" :total="total" :current.sync="search.current" :size.sync="search.size"
@getList="getTableData()" :col-configs="colConfigs" :dict="dict">
<el-table-column slot="options" label="操作" align="center">
<el-table-column slot="options" label="操作" width="200" align="center">
<template slot-scope="{ row }">
<el-button type="text" @click="changeStatus(row, '停用')" v-if="row.status == 1">停用</el-button>
<el-button type="text" @click="changeStatus(row, '启用')" v-else>启用</el-button>
@@ -83,10 +83,10 @@ export default {
colConfigs() {
return [
{ prop: "wordName", label: '特征词', align: "left"},
{ prop: "createTime", label: '创建时间', width: 200},
{ prop: "createUserName", label: '创建人', width: 200},
{ prop: "status", label: '状态', width: 200, dict: 'processDefStatus'},
{ slot: "options" },
{ prop: "createTime", label: '创建时间', width: 200, align: 'center'},
{ prop: "createUserName", label: '创建人', width: 200, align: 'center'},
{ prop: "status", label: '状态', width: 200, dict: 'processDefStatus', align: 'center'},
{ slot: "options"},
]
},
rules() {