Commit 12d53168 by 杨明

fixed

1 parent d9794659
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-02 14:10:14 * @Date: 2023-06-02 14:10:14
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-08 15:32:05 * @LastEditTime: 2023-06-09 14:03:45
* @FilePath: \scrm-micro-home\src\views\home\ai\index.vue * @FilePath: \scrm-micro-home\src\views\home\ai\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
<script> <script>
const ANSWER = [ const ANSWER = [
{ label: '全部', value: null }, { label: '全部', value: null },
{ label: '成功', value: 'success' },
{ label: '空号', value: 'notexist' }, { label: '空号', value: 'notexist' },
{ labe: '关机', value: 'poweroff' }, { labe: '关机', value: 'poweroff' },
{ label: '停机', value: 'stopped' }, { label: '停机', value: 'stopped' },
...@@ -319,8 +318,8 @@ export default { ...@@ -319,8 +318,8 @@ export default {
contentEcho() { contentEcho() {
this.$apis.aiCall.contentEcho({ id: this.id }).then(res => { this.$apis.aiCall.contentEcho({ id: this.id }).then(res => {
this.detail = res || {} this.detail = res || {}
console.log(res) const notConnectPhoneStatusList = res.notConnectPhoneStatusList || []
this.notConnectPhoneStatusList = res.notConnectPhoneStatusList || this.statusItem this.notConnectPhoneStatusList = (notConnectPhoneStatusList.length && notConnectPhoneStatusList) || this.statusItem
}) })
}, },
beforeSearchFn() { beforeSearchFn() {
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDel(scope.scope)" v-if="scope.scope.taskStatus == 1">删除</el-button> <el-button type="text" @click="handleDel(scope.scope)" v-if="scope.scope.taskStatus == 1">删除</el-button>
<el-button type="text" @click="goDetail(scope.scope)">详情</el-button> <el-button type="text" @click="goDetail(scope.scope)">详情</el-button>
<el-button type="text" @click="handleAdd(scope.scope)">编辑</el-button> <el-button type="text" @click="handleAdd(scope.scope)" v-if="scope.scope.taskStatus != 4">编辑</el-button>
</div> </div>
<template slot="taskStatus" slot-scope="scope"> <template slot="taskStatus" slot-scope="scope">
<div :class="['task_icon', `task_icon${scope.scope.taskStatus}`]">{{ findStatus(scope.scope.taskStatus) }}</div> <div :class="['task_icon', `task_icon${scope.scope.taskStatus}`]">{{ findStatus(scope.scope.taskStatus) }}</div>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-07 14:22:41 * @Date: 2023-06-07 14:22:41
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-09 10:54:51 * @LastEditTime: 2023-06-09 11:54:55
* @FilePath: \scrm-micro-home\src\views\home\components\ai\addTask.vue * @FilePath: \scrm-micro-home\src\views\home\components\ai\addTask.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -30,12 +30,12 @@ ...@@ -30,12 +30,12 @@
</div> </div>
<a href="https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/AI续保提醒 - 模板.xlsx">下载模板</a> <a href="https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/AI续保提醒 - 模板.xlsx">下载模板</a>
</div> </div>
<div class="file-tips" v-if="!fileName && !importVisible"> <div class="file-tips" v-if="!addForm.fileName && !importVisible">
支持扩展名:xls,xlsx 支持扩展名:xls,xlsx
</div> </div>
<div class="file-tips" v-if="fileName"> <div class="file-tips" v-if="addForm.fileName">
<i class="el-icon-success"></i> <i class="el-icon-success"></i>
文件已上传({{ fileName }}) 文件已上传({{ addForm.fileName }})
</div> </div>
<div class="file-tips" v-if="importVisible"> <div class="file-tips" v-if="importVisible">
<i class="el-icon-error"></i> <i class="el-icon-error"></i>
...@@ -79,6 +79,7 @@ export default { ...@@ -79,6 +79,7 @@ export default {
autoSend: 0, autoSend: 0,
businessType: 1, businessType: 1,
messageContent: '选择AI后展示', messageContent: '选择AI后展示',
fileName: '',
merchantNameParam: this.$globalState.session.merchantName merchantNameParam: this.$globalState.session.merchantName
}, },
addRules: { addRules: {
...@@ -98,10 +99,9 @@ export default { ...@@ -98,10 +99,9 @@ export default {
//获取详情 //获取详情
conditionPage(id) { conditionPage(id) {
this.$apis.aiCall.contentEcho({ id }).then(res => { this.$apis.aiCall.contentEcho({ id }).then(res => {
const { id, messageContent, robotId, aiStartTime, merchantNameParam, excelUrl } = res const { id, messageContent, robotId, aiStartTime, merchantNameParam, excelUrl, excelName } = res
this.addForm = { autoSend: 0, taskId: id, messageContent, robotId, merchantNameParam, aiStartTime: dayjs(+aiStartTime).format('YYYY-MM-DD HH:mm:ss') } this.addForm = { fileName: excelName, autoSend: 0, taskId: id, messageContent, robotId, merchantNameParam, aiStartTime: dayjs(+aiStartTime).format('YYYY-MM-DD HH:mm:ss') }
this.excelUrl = this.url = excelUrl this.excelUrl = this.url = excelUrl
this.fileName = excelUrl.split('/').pop()
}) })
}, },
//选择ai //选择ai
...@@ -170,7 +170,7 @@ export default { ...@@ -170,7 +170,7 @@ export default {
if (res.error > 0) { if (res.error > 0) {
this.importVisible = true this.importVisible = true
} else { } else {
this.fileName = fileName this.addForm.fileName = fileName
this.url = url this.url = url
} }
} }
......
...@@ -36,6 +36,26 @@ ...@@ -36,6 +36,26 @@
</div> </div>
</div> </div>
</div> </div>
<GLDialog title="提示" :hasFooter="true" :visible.sync="dialogVisible">
<div class="dialog-body-panel">
<div class="dialog-header">
<i class="el-icon-warning"></i>
<span>AI续保提醒为付费订阅功能</span>
</div>
<div class="dialog-tips">
试用期内您有
<i>500</i>
个通话的体验额度。若需开通订阅请扫码申请开通,将有运营人员与您对接。
</div>
<div class="dialog-qrcode">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/aicode.png" alt="" />
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogVisible = false">取消</el-button>
<el-button size="small" type="primary" @click="handleJump('/home/aiCall')">已知晓,并开启试用</el-button>
</span>
</GLDialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -64,7 +84,8 @@ import { mapGetters } from 'vuex' ...@@ -64,7 +84,8 @@ import { mapGetters } from 'vuex'
export default { export default {
data() { data() {
return { return {
sceneData sceneData,
dialogVisible: false
} }
}, },
computed: { computed: {
...@@ -79,6 +100,11 @@ export default { ...@@ -79,6 +100,11 @@ export default {
}, },
handleJump(path) { handleJump(path) {
if (path == '/home/aiCall') { if (path == '/home/aiCall') {
if (!sessionStorage.getItem('isClick_AI')) {
this.dialogVisible = true
sessionStorage.setItem('isClick_AI', true)
return
}
this.$router.push(path) this.$router.push(path)
return return
} }
...@@ -96,6 +122,38 @@ export default { ...@@ -96,6 +122,38 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.dialog-body-panel {
padding: 10px;
.dialog-header {
line-height: 40px;
i {
font-size: 32px;
color: #5850ff;
vertical-align: sub;
}
span {
font-weight: 600;
font-size: 20px;
color: #333333;
}
}
.dialog-tips {
padding: 10px 20px;
color: #333333ff;
font-size: 16px;
line-height: 24px;
i {
color: #5850ff;
}
}
.dialog-qrcode {
width: 160px;
height: 160px;
margin: 10px auto;
padding: 2px;
border: 1px dashed #999;
}
}
.subscript-wrap { .subscript-wrap {
margin-bottom: 16px; margin-bottom: 16px;
padding: 17px 20px 15px; padding: 17px 20px 15px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!