Commit e9f6116e by ext.wangyuman1

Merge branch 'vue3-master' of https://e.coding.net/linkwechat/linkwechat-front/l…

…inkwechat into bs-dev-wangyuman
2 parents 728cf469 091177cd
...@@ -2,9 +2,19 @@ ...@@ -2,9 +2,19 @@
2023.xx.xx 2023.xx.xx
1. 客群 sop 基础类型字段值调整,校验调整 1.
2. 岗位组件岗位值去重 2.
3. 新增暗黑主题模式 3.
### v5.1.0
2023.06.30
1. 新增暗黑主题模式
2. 客群 sop 基础类型字段值调整,校验调整
3. 岗位组件岗位值去重
4. 表单导出修改
5. 其他已知 bug 修复等
### v5.0.1 ### v5.0.1
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
--color-light-8: hsl(var(--h), var(--s), calc(var(--step) * 8 + var(--l))); /* hsl(149, 93%, 88%) */ --color-light-8: hsl(var(--h), var(--s), calc(var(--step) * 8 + var(--l))); /* hsl(149, 93%, 88%) */
--color-light-9: hsl(var(--h), var(--s), calc(var(--step) * 9 + var(--l))); /* hsl(149, 93%, 94%) */ --color-light-9: hsl(var(--h), var(--s), calc(var(--step) * 9 + var(--l))); /* hsl(149, 93%, 94%) */
--color-light-10: hsl(var(--h), var(--s), calc(var(--step) * 9.5 + var(--l))); /* :hsl(149, 93%, 97%) */ --color-light-10: hsl(var(--h), var(--s), calc(var(--step) * 9.5 + var(--l))); /* :hsl(149, 93%, 97%) */
--test: hsl(149, 93%, 88%); /* --test: hsl(149, 93%, 88%); */
/* ------ 通用字体白色 ------ */ /* ------ 通用字体白色 ------ */
--font-white: #fff; --font-white: #fff;
......
...@@ -30,7 +30,7 @@ export function insertInfoToSurvey(data) { ...@@ -30,7 +30,7 @@ export function insertInfoToSurvey(data) {
return request({ return request({
url: service + '/survey/add', url: service + '/survey/add',
method: 'post', method: 'post',
data, data
}) })
} }
...@@ -39,7 +39,7 @@ export function surveyList(data) { ...@@ -39,7 +39,7 @@ export function surveyList(data) {
return request({ return request({
url: service + '/survey/list', url: service + '/survey/list',
method: 'GET', method: 'GET',
params: data, params: data
}) })
} }
...@@ -47,7 +47,7 @@ export function surveyList(data) { ...@@ -47,7 +47,7 @@ export function surveyList(data) {
export function deleteInfoToSurvey(ids) { export function deleteInfoToSurvey(ids) {
return request({ return request({
url: service + '/survey/delete/' + ids, url: service + '/survey/delete/' + ids,
method: 'DELETE', method: 'DELETE'
}) })
} }
...@@ -55,7 +55,7 @@ export function deleteInfoToSurvey(ids) { ...@@ -55,7 +55,7 @@ export function deleteInfoToSurvey(ids) {
export function selectInfoToSurvey(id) { export function selectInfoToSurvey(id) {
return request({ return request({
url: service + '/survey/getInfo/' + id, url: service + '/survey/getInfo/' + id,
method: 'GET', method: 'GET'
}) })
} }
...@@ -64,7 +64,7 @@ export function submitForm(data) { ...@@ -64,7 +64,7 @@ export function submitForm(data) {
return request({ return request({
url: service + '/answer/add', url: service + '/answer/add',
method: 'post', method: 'post',
data, data
}) })
} }
...@@ -73,7 +73,7 @@ export function isCompleteSurvey(data) { ...@@ -73,7 +73,7 @@ export function isCompleteSurvey(data) {
return request({ return request({
url: service + '/answer/isCompleteSurvey', url: service + '/answer/isCompleteSurvey',
method: 'post', method: 'post',
data, data
}) })
} }
...@@ -82,7 +82,7 @@ export function insertPieValue(data) { ...@@ -82,7 +82,7 @@ export function insertPieValue(data) {
return request({ return request({
url: service + '/statistic/insertPieValue', url: service + '/statistic/insertPieValue',
method: 'post', method: 'post',
data, data
}) })
} }
...@@ -91,7 +91,7 @@ export function updateSurveyStatus(data) { ...@@ -91,7 +91,7 @@ export function updateSurveyStatus(data) {
return request({ return request({
url: service + '/survey/updateStatus', url: service + '/survey/updateStatus',
method: 'put', method: 'put',
data, data
}) })
} }
...@@ -100,7 +100,7 @@ export function getAccessToken(data) { ...@@ -100,7 +100,7 @@ export function getAccessToken(data) {
return request({ return request({
url: service + '/Statistics/getAccessToken' + data, url: service + '/Statistics/getAccessToken' + data,
method: 'get', method: 'get',
data, data
}) })
} }
...@@ -109,7 +109,7 @@ export function updateSurveyGroup(data) { ...@@ -109,7 +109,7 @@ export function updateSurveyGroup(data) {
return request({ return request({
url: service + '/updateSurveyGroup', url: service + '/updateSurveyGroup',
method: 'post', method: 'post',
data, data
}) })
} }
...@@ -120,7 +120,7 @@ export function selectStatistics(data) { ...@@ -120,7 +120,7 @@ export function selectStatistics(data) {
return request({ return request({
url: service + '/statistic/getStatistics', url: service + '/statistic/getStatistics',
method: 'get', method: 'get',
params: data, params: data
}) })
} }
...@@ -129,7 +129,7 @@ export function lineChart(data) { ...@@ -129,7 +129,7 @@ export function lineChart(data) {
return request({ return request({
url: service + '/statistic/lineChart', url: service + '/statistic/lineChart',
method: 'post', method: 'post',
data, data
}) })
} }
...@@ -138,7 +138,7 @@ export function StatisticsDataList(data) { ...@@ -138,7 +138,7 @@ export function StatisticsDataList(data) {
return request({ return request({
url: service + '/statistic/dataList', url: service + '/statistic/dataList',
method: 'post', method: 'post',
data, data
}) })
} }
...@@ -147,7 +147,7 @@ export function updateInfoToSurvey(data) { ...@@ -147,7 +147,7 @@ export function updateInfoToSurvey(data) {
return request({ return request({
url: service + '/survey/update', url: service + '/survey/update',
method: 'put', method: 'put',
data, data
}) })
} }
...@@ -156,7 +156,7 @@ export function selectAnswerInfo(data) { ...@@ -156,7 +156,7 @@ export function selectAnswerInfo(data) {
return request({ return request({
url: service + '/answer/getAnswerList', url: service + '/answer/getAnswerList',
method: 'post', method: 'post',
data, data
}) })
} }
...@@ -165,7 +165,7 @@ export function pieChart(data) { ...@@ -165,7 +165,7 @@ export function pieChart(data) {
return request({ return request({
url: service + '/statistic/pieChart', url: service + '/statistic/pieChart',
method: 'post', method: 'post',
data, data
}) })
} }
...@@ -186,6 +186,7 @@ export function overviewExport(data) { ...@@ -186,6 +186,7 @@ export function overviewExport(data) {
url: service + '/statistic/data/export', url: service + '/statistic/data/export',
method: 'post', method: 'post',
data, data,
responseType: 'blob'
}) })
} }
...@@ -195,7 +196,7 @@ export function answerExport(data) { ...@@ -195,7 +196,7 @@ export function answerExport(data) {
url: service + '/statistic/answer/export', url: service + '/statistic/answer/export',
method: 'get', method: 'get',
params: data, params: data,
responseType: 'blob', responseType: 'blob'
}) })
} }
...@@ -205,6 +206,7 @@ export function userExport(data) { ...@@ -205,6 +206,7 @@ export function userExport(data) {
url: service + '/statistic/user/export', url: service + '/statistic/user/export',
method: 'post', method: 'post',
data, data,
responseType: 'blob'
}) })
} }
...@@ -213,7 +215,7 @@ export function statisticsCustomer(data) { ...@@ -213,7 +215,7 @@ export function statisticsCustomer(data) {
return request({ return request({
url: service + '/statistic/customer', url: service + '/statistic/customer',
method: 'post', method: 'post',
data, data
}) })
} }
...@@ -222,7 +224,7 @@ export function areaStatistic(data) { ...@@ -222,7 +224,7 @@ export function areaStatistic(data) {
return request({ return request({
url: service + '/statistic/areaStatistic', url: service + '/statistic/areaStatistic',
method: 'post', method: 'post',
data, data
}) })
} }
...@@ -239,6 +241,6 @@ export function siteStas(data) { ...@@ -239,6 +241,6 @@ export function siteStas(data) {
return request({ return request({
url: service + '/statistic/siteStas', url: service + '/statistic/siteStas',
method: 'post', method: 'post',
data, data
}) })
} }
...@@ -45,7 +45,7 @@ const common = { ...@@ -45,7 +45,7 @@ const common = {
// 以下仅用于系统信息展示,不作为项目变量使用,请勿在代码中使用 // 以下仅用于系统信息展示,不作为项目变量使用,请勿在代码中使用
const project = { const project = {
// _version: 'v5.0.0', // 当前版本信息 _version: 'v5.1.0', // 当前版本信息
_packDateTime: __PACK_DATETIME__, // 打包时间 _packDateTime: __PACK_DATETIME__, // 打包时间
_env: process.env.VUE_APP_ENV, // 前端系统环境模式 _env: process.env.VUE_APP_ENV, // 前端系统环境模式
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<div class="data-content"> <div class="data-content">
<div class="chart-content"> <div class="chart-content">
<search-title @search="getLineData"></search-title> <search-title @search="getLineData"></search-title>
<chart-line style="height: 300px" :legend="legend" :xData="xdata" :series="series"></chart-line> <chart-line style="height: 300px;" :legend="legend" :xData="xdata" :series="series"></chart-line>
</div> </div>
</div> </div>
</div> </div>
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
</div> </div>
<div> <div>
<div> <div>
<search-title :showToday="true" @search="getTableData" style="margin-top: 20px"></search-title> <search-title :showToday="true" @search="getTableData" style="margin-top: 20px;"></search-title>
</div> </div>
<div class="data-content" style="margin-top: 20px"> <div class="data-content" style="margin-top: 20px;">
<DataDetail :tableList="tableList" :resourceType="2" /> <DataDetail :tableList="tableList" :timeObj="query" :resourceType="2" />
</div> </div>
</div> </div>
</div> </div>
...@@ -35,191 +35,191 @@ ...@@ -35,191 +35,191 @@
</template> </template>
<script> <script>
import { getCount } from '@/api/contentCenter/common.js' import { getCount } from '@/api/contentCenter/common.js'
import { getTalkMaterial } from '@/api/contentCenter/scriptCenter.js' import { getTalkMaterial } from '@/api/contentCenter/scriptCenter.js'
import PreviewClient from '@/components/previewInMobileClient.vue' import PreviewClient from '@/components/previewInMobileClient.vue'
import ChartBar from '@/components/ChartBar.vue' import ChartBar from '@/components/ChartBar.vue'
import ChartLine from '@/components/ChartLine.vue' import ChartLine from '@/components/ChartLine.vue'
import SearchTitle from '../components/SearchTitle.vue' import SearchTitle from '../components/SearchTitle.vue'
import DataDetail from '@/views/contentCenter/components/DataDetail.vue' import DataDetail from '@/views/contentCenter/components/DataDetail.vue'
export default { export default {
components: { components: {
SearchTitle, SearchTitle,
ChartLine, ChartLine,
ChartBar, ChartBar,
PreviewClient, PreviewClient,
DataDetail, DataDetail
}, },
data() { data() {
return { return {
detailForm: {}, //详情请求参数 detailForm: {}, //详情请求参数
submitLoading: false, submitLoading: false,
typeTitle: [ typeTitle: [
'图片', '图片',
'语音', '语音',
'视频', '视频',
'文件', '文件',
'文本', '文本',
'海报', '海报',
'活码', '活码',
'人群', '人群',
'旅程', '旅程',
'图文', '图文',
'链接', '链接',
'小程序', '小程序',
'文章', '文章'
], ],
disabled: true, disabled: true,
mobForm: { mobForm: {
welcomeMsg: '', welcomeMsg: '',
materialMsgList: [], materialMsgList: [],
userIds: '', userIds: '',
userNames: '', userNames: ''
},
exportLoading: false,
// barLegend1: ['访问客户总数'],
// barLegend2: ['咨询客户总数'],
form: {}, // 素材表单
legend: ['发送次数', '查看次数', '查看人数'],
xdata: [],
series: [],
activeName: 'first',
cardData: [
{
title: '发送总次数 ',
value: 0,
noArrow: true,
},
{
title: '查看总次数',
value: 0,
},
{
title: '查看总人数',
value: 0,
},
{
title: '今日发送次数',
value: 0,
},
{
title: '今日查看次数',
value: 0,
}, },
{ exportLoading: false,
title: '今日查看人数', // barLegend1: ['访问客户总数'],
value: 0, // barLegend2: ['咨询客户总数'],
form: {}, // 素材表单
legend: ['发送次数', '查看次数', '查看人数'],
xdata: [],
series: [],
activeName: 'first',
cardData: [
{
title: '发送总次数 ',
value: 0,
noArrow: true
},
{
title: '查看总次数',
value: 0
},
{
title: '查看总人数',
value: 0
},
{
title: '今日发送次数',
value: 0
},
{
title: '今日查看次数',
value: 0
},
{
title: '今日查看人数',
value: 0
}
],
total: 0,
query: {
pageSize: 10,
pageNum: 1
}, },
], tableList: [],
total: 0, loading: false,
query: { searchData: {},
pageSize: 10, bar1: [],
pageNum: 1, bar2: [],
}, value1: [],
tableList: [], value2: [],
loading: false, tableSearch: {},
searchData: {}, treeData: [{}], // 树
bar1: [], talkId: ''
bar2: [], }
value1: [],
value2: [],
tableSearch: {},
treeData: [{}], // 树
talkId: '',
}
},
methods: {
contentChange(e) {
this.mobForm.welcomeMsg = e
},
getTableData(data) {
this.query.talkId = this.talkId
this.query.beginTime = data.beginTime
this.query.endTime = data.endTime
this.getTableChangeSize()
},
getLineData(data) {
// this.searchData = data
data.talkId = this.talkId
data.moduleType = 2
data.talkType = 0
data.resourceType = 2
this.legend = ['发送次数', '查看次数', '查看人数']
// this.$forceUpdate()
getCount(data).then((res) => {
this.cardData[0].value = res.data.sendTotalNum
this.cardData[1].value = res.data.viewTotalNum
this.cardData[2].value = res.data.viewByTotalNum
this.cardData[3].value = res.data.sendTodayNum
this.cardData[4].value = res.data.viewTotalTodayNum
this.cardData[5].value = res.data.viewByTotalTodayNum
this.xdata = []
this.series = []
let arr1 = []
let arr2 = []
let arr3 = []
if (res.data && res.data.contentAxisVoList.length) {
res.data.contentAxisVoList.forEach((dd) => {
this.xdata.push(dd.dateStr)
arr1.push(dd.sendNum)
arr2.push(dd.viewNum)
arr3.push(dd.viewByNum)
})
this.series = [arr1, arr2, arr3]
}
})
}, },
getTableChangeSize() { methods: {
this.loading = true contentChange(e) {
this.query.talkType = 0 this.mobForm.welcomeMsg = e
this.query.resourceType = 2 },
getTalkMaterial(this.query).then((res) => { getTableData(data) {
this.tableList = res.data this.query.talkId = this.talkId
// this.total = Number(res.total) this.query.beginTime = data.beginTime
this.loading = false this.query.endTime = data.endTime
}) this.getTableChangeSize()
},
getLineData(data) {
// this.searchData = data
data.talkId = this.talkId
data.moduleType = 2
data.talkType = 0
data.resourceType = 2
this.legend = ['发送次数', '查看次数', '查看人数']
// this.$forceUpdate()
getCount(data).then((res) => {
this.cardData[0].value = res.data.sendTotalNum
this.cardData[1].value = res.data.viewTotalNum
this.cardData[2].value = res.data.viewByTotalNum
this.cardData[3].value = res.data.sendTodayNum
this.cardData[4].value = res.data.viewTotalTodayNum
this.cardData[5].value = res.data.viewByTotalTodayNum
this.xdata = []
this.series = []
let arr1 = []
let arr2 = []
let arr3 = []
if (res.data && res.data.contentAxisVoList.length) {
res.data.contentAxisVoList.forEach((dd) => {
this.xdata.push(dd.dateStr)
arr1.push(dd.sendNum)
arr2.push(dd.viewNum)
arr3.push(dd.viewByNum)
})
this.series = [arr1, arr2, arr3]
}
})
},
getTableChangeSize() {
this.loading = true
this.query.talkType = 0
this.query.resourceType = 2
getTalkMaterial(this.query).then((res) => {
this.tableList = res.data
// this.total = Number(res.total)
this.loading = false
})
}
}, },
}, created() {
created() { this.talkId = this.$route.query.talkId
this.talkId = this.$route.query.talkId }
}, }
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.group { .group {
font-size: 12px; font-size: 12px;
background: var(--color); background: var(--color);
color: var(--font-white, #fff); color: var(--font-white, #fff);
display: block; display: block;
padding: 0 5px; padding: 0 5px;
height: 24px; height: 24px;
line-height: 24px; line-height: 24px;
border-radius: 5px; border-radius: 5px;
text-align: center; text-align: center;
margin-left: 20px; margin-left: 20px;
} }
.data-content { .data-content {
margin-top: 10px;
.chart-content {
margin-top: 10px; margin-top: 10px;
.my_button { .chart-content {
float: right; margin-top: 10px;
.my_button {
float: right;
}
.column {
display: flex;
.column-item {
flex: 1;
}
}
} }
.column { .search-content {
display: flex; display: flex;
.column-item { justify-content: space-between;
flex: 1; }
} .table-content {
margin-top: 10px;
} }
} }
.search-content {
display: flex;
justify-content: space-between;
}
.table-content {
margin-top: 10px;
}
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!