|
@@ -343,6 +343,24 @@
|
|
|
v-if="scope.row.fastGptRoleName!=null"
|
|
v-if="scope.row.fastGptRoleName!=null"
|
|
|
@click="relieveFastGptRole(scope.row)"
|
|
@click="relieveFastGptRole(scope.row)"
|
|
|
>解绑AI客服</el-button>
|
|
>解绑AI客服</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-unlock"
|
|
|
|
|
+ plain
|
|
|
|
|
+ v-hasPermi="['qw:user:aiStatus']"
|
|
|
|
|
+ v-if="scope.row.aiStatus == 0 && projectFrom === 'sxjz'"
|
|
|
|
|
+ @click="updateFastGptRoleStatus(scope.row)"
|
|
|
|
|
+ >Ai客服下线</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-unlock"
|
|
|
|
|
+ plain
|
|
|
|
|
+ v-hasPermi="['qw:user:aiStatus']"
|
|
|
|
|
+ v-if="scope.row.aiStatus == 1 && projectFrom === 'sxjz'"
|
|
|
|
|
+ @click="updateFastGptRoleStatus(scope.row)"
|
|
|
|
|
+ >Ai客服上线</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -568,7 +586,8 @@ import {
|
|
|
outLoginQwIpad,
|
|
outLoginQwIpad,
|
|
|
changeVideoStatus,
|
|
changeVideoStatus,
|
|
|
handleAllocateRemoteHost,
|
|
handleAllocateRemoteHost,
|
|
|
- qwBindCloudHost, qwUnbindCloudHost, handleAuthAppKey, handleInputAuthAppKey, selectCloudAP, staffListUser, exportStaff
|
|
|
|
|
|
|
+ qwBindCloudHost, qwUnbindCloudHost, handleAuthAppKey,
|
|
|
|
|
+ handleInputAuthAppKey, selectCloudAP, staffListUser, exportStaff,updateFastGptRoleStatusById
|
|
|
} from '../../../api/qw/user'
|
|
} from '../../../api/qw/user'
|
|
|
import fastGptRole from "@/views/fastGpt/fastGptRole/fastGptRole";
|
|
import fastGptRole from "@/views/fastGpt/fastGptRole/fastGptRole";
|
|
|
import { treeselect } from "@/api/qw/qwDept";
|
|
import { treeselect } from "@/api/qw/qwDept";
|
|
@@ -590,6 +609,7 @@ export default {
|
|
|
id:null,
|
|
id:null,
|
|
|
newIp:null,
|
|
newIp:null,
|
|
|
},
|
|
},
|
|
|
|
|
+ projectFrom:process.env.VUE_APP_PROJECT_FROM,
|
|
|
authorizeKeyOpen:false,
|
|
authorizeKeyOpen:false,
|
|
|
authorizeKeyFrom:{
|
|
authorizeKeyFrom:{
|
|
|
id:null,
|
|
id:null,
|
|
@@ -1214,6 +1234,19 @@ export default {
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ updateFastGptRoleStatus(row) {
|
|
|
|
|
+ this.$confirm('是否修改该销售的AI客服?', "警告", {
|
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
|
+ type: "warning"
|
|
|
|
|
+ }).then(function () {
|
|
|
|
|
+ return updateFastGptRoleStatusById(row.id);
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
/** 搜索按钮操作 */
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
handleQuery() {
|
|
|
this.queryParams.pageNum = 1;
|
|
this.queryParams.pageNum = 1;
|