整合通讯录组件渲染

This commit is contained in:
aixianling
2022-07-19 14:55:51 +08:00
parent bd410a9559
commit b5a0522fb9
14 changed files with 35 additions and 35 deletions

View File

@@ -139,7 +139,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.loading = false this.loading = false
this.$initWxOpenData() this.$store.dispatch('initOpenData')
}) })
} else { } else {
this.loading = false this.loading = false

View File

@@ -16,7 +16,7 @@
</div> </div>
</div> </div>
<el-calendar v-model="calendarDate"> <el-calendar v-model="calendarDate">
<template <template
slot="dateCell" slot="dateCell"
slot-scope="{date, data}" > slot-scope="{date, data}" >
<div class="flex-date"> <div class="flex-date">
@@ -155,7 +155,7 @@
if(this.chooseMonth != month) { // 日历点击不同月 if(this.chooseMonth != month) { // 日历点击不同月
this.searchMonth = '' this.searchMonth = ''
} }
} }
this.chooseDay = date this.chooseDay = date
@@ -168,11 +168,11 @@
this.chooseMonth = month this.chooseMonth = month
this.chooseYear = year this.chooseYear = year
} }
}, },
created() { created() {
this.$initWxOpenData() this.$store.dispatch('initOpenData')
var year = this.calendarDate.getFullYear(); var year = this.calendarDate.getFullYear();
var month = this.calendarDate.getMonth() + 1; var month = this.calendarDate.getMonth() + 1;
var date = this.calendarDate.getDate() var date = this.calendarDate.getDate()
@@ -196,7 +196,7 @@
if (res.code == 0) { if (res.code == 0) {
this.dateList = res.data this.dateList = res.data
this.getTaskList(this.chooseDay) this.getTaskList(this.chooseDay)
} }
}) })
}, },
getTaskList(day) { getTaskList(day) {
@@ -221,7 +221,7 @@
this.setLineChart(xData, createData, 'createChart', ['#2891FF']) this.setLineChart(xData, createData, 'createChart', ['#2891FF'])
this.setLineChart(xData, executeData, 'executeChart', ['#FFB865']) this.setLineChart(xData, executeData, 'executeChart', ['#FFB865'])
this.setLineChart(xData, receiveData, 'receiveChart', ['#26D52B']) this.setLineChart(xData, receiveData, 'receiveChart', ['#26D52B'])
} }
}) })
}, },
setLineChart(xData, yData, id, colorList) { setLineChart(xData, yData, id, colorList) {
@@ -266,9 +266,9 @@
if (res.code == 0) { if (res.code == 0) {
// this.dateList = res.data // this.dateList = res.data
// this.getTaskList(this.chooseDay) // this.getTaskList(this.chooseDay)
this.setBarChart() this.setBarChart()
} }
}) })
// var items = [{type: 'departmentName', id: '10', corpid: 'ww596787bb70f08288'}] // var items = [{type: 'departmentName', id: '10', corpid: 'ww596787bb70f08288'}]
@@ -278,7 +278,7 @@
// } // }
// console.log(data) // console.log(data)
// }) // })
}, },
setBarChart() { setBarChart() {
this.departBarChart = echarts.init(document.querySelector(`#departBarChart`)) this.departBarChart = echarts.init(document.querySelector(`#departBarChart`))
@@ -340,7 +340,7 @@
} }
] ]
}; };
// { // {
// tooltip: { // tooltip: {
// trigger: 'axis', // trigger: 'axis',
@@ -553,16 +553,16 @@
} }
} }
} }
} }
#departBarChart{ #departBarChart{
width: 100%; width: 100%;
height: 300px; height: 300px;
} }
} }
::v-deep .el-calendar-table:not(.is-range) td.next,
::v-deep .el-calendar-table:not(.is-range) td.next,
::v-deep .el-calendar-table:not(.is-range) td.prev { ::v-deep .el-calendar-table:not(.is-range) td.prev {
color: #ccc; color: #ccc;
} }
@@ -599,7 +599,7 @@
border-right: 1px solid #eee; border-right: 1px solid #eee;
} }
::v-deep .el-timeline-item__timestamp.is-top{ ::v-deep .el-timeline-item__timestamp.is-top{
margin-bottom: 0; margin-bottom: 0;
padding-top: 0; padding-top: 0;
} }
::v-deep .el-timeline-item__node{ ::v-deep .el-timeline-item__node{

View File

@@ -574,7 +574,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.loading = false this.loading = false
this.$initWxOpenData() this.$store.dispatch('initOpenData')
}) })
} else { } else {
this.loading = false this.loading = false

View File

@@ -167,7 +167,7 @@
</div> </div>
<p>可以将生成的二维码或链接分享给居民</p> <p>可以将生成的二维码或链接分享给居民</p>
<el-input size="small" :value="info.linkUrl"> <el-input size="small" :value="info.linkUrl">
<el-button slot="append" type="primary" @click="copy(info.linkUrl)">复制链接</el-button> <el-button slot="append" type="primary" @click="copy(info.linkUrl)">复制链接</el-button>
</el-input> </el-input>
</div> </div>
<div class="step-right"> <div class="step-right">
@@ -346,7 +346,7 @@
this.list = res.data.records this.list = res.data.records
this.total = res.data.total this.total = res.data.total
this.$initWxOpenData() this.$store.dispatch('initOpenData')
this.loading = false this.loading = false
} else { } else {
this.loading = false this.loading = false
@@ -359,7 +359,7 @@
this.instance.post(`/app/appquestionnairetemplate/release`, null, { this.instance.post(`/app/appquestionnairetemplate/release`, null, {
params: { params: {
...this.editForm, ...this.editForm,
id: this.id, id: this.id,
periodValidityEndTime: this.editForm.periodValidityType === '1' ? this.editForm.periodValidityEndTime : '' periodValidityEndTime: this.editForm.periodValidityType === '1' ? this.editForm.periodValidityEndTime : ''
} }
}).then(res => { }).then(res => {
@@ -538,7 +538,7 @@
li.active + li { li.active + li {
border-left: 1px solid #D0D4DC; border-left: 1px solid #D0D4DC;
} }
} }
.publish { .publish {
.tips { .tips {
@@ -737,7 +737,7 @@
min-height: 450px; min-height: 450px;
margin: 0 auto; margin: 0 auto;
} }
.ai-dialog__success { .ai-dialog__success {
::v-deep .ai-dialog__content { ::v-deep .ai-dialog__content {
max-height: initial!important; max-height: initial!important;

View File

@@ -232,7 +232,7 @@
mounted () { mounted () {
this.getInfo() this.getInfo()
this.getFormInfo() this.getFormInfo()
this.dict.load(['wxUserType']).then(() => { this.dict.load(['wxUserType']).then(() => {
this.getList() this.getList()
}) })
@@ -247,7 +247,7 @@
if (res.code == 0) { if (res.code == 0) {
this.tableData = res.data.records this.tableData = res.data.records
this.total = res.data.total this.total = res.data.total
this.$initWxOpenData() this.$store.dispatch('initOpenData')
} }
}) })
}, },
@@ -322,7 +322,7 @@
this.targetList = res.data.fields.map(item => { this.targetList = res.data.fields.map(item => {
return JSON.parse(item.fieldInfo) return JSON.parse(item.fieldInfo)
}) })
this.$initWxOpenData() this.$store.dispatch('initOpenData')
} }
}) })
}, },
@@ -608,7 +608,7 @@
.statistics-wrapper__body--item { .statistics-wrapper__body--item {
margin-bottom: 20px; margin-bottom: 20px;
background: #FFFFFF; background: #FFFFFF;
border-radius: 4px; border-radius: 4px;
border: 1px solid #DDDDDD; border: 1px solid #DDDDDD;
} }

View File

@@ -142,7 +142,7 @@
if (res.code == 0) { if (res.code == 0) {
this.tableData = res.data.records this.tableData = res.data.records
this.total = res.data.total this.total = res.data.total
this.$initWxOpenData() this.$store.dispatch('initOpenData')
} }
}) })
}, },

View File

@@ -246,7 +246,7 @@ export default {
if (res?.data) { if (res?.data) {
this.info.attendees = res.data.records; this.info.attendees = res.data.records;
this.total = res.data.total; this.total = res.data.total;
this.$initWxOpenData() this.$store.dispatch('initOpenData')
} }
}); });
}, },

View File

@@ -135,7 +135,7 @@ export default {
if (res && res.data) { if (res && res.data) {
this.tableData = res.data.records; this.tableData = res.data.records;
this.total = res.data.total; this.total = res.data.total;
this.$initWxOpenData() this.$store.dispatch('initOpenData')
} }
}); });
}, },

View File

@@ -108,7 +108,7 @@ export default {
if (res?.data) { if (res?.data) {
this.tableData = res.data.records this.tableData = res.data.records
this.page.total = res.data.total this.page.total = res.data.total
this.$initWxOpenData() this.$store.dispatch('initOpenData')
} }
}) })
}, },

View File

@@ -138,7 +138,7 @@
if(res && res.data){ if(res && res.data){
Object.keys(this.form).map(e=>this.form[e] = res.data[e]); Object.keys(this.form).map(e=>this.form[e] = res.data[e]);
this.form.type = res.data.releaseTime ? 1 : 0; this.form.type = res.data.releaseTime ? 1 : 0;
this.$initWxOpenData() this.$store.dispatch('initOpenData')
} }
}) })
}, },

View File

@@ -56,7 +56,7 @@
}).then(res => { }).then(res => {
if (res && res.data) { if (res && res.data) {
this.detailObj = res.data; this.detailObj = res.data;
this.$initWxOpenData() this.$store.dispatch('initOpenData')
} }
}) })
} }

View File

@@ -156,7 +156,7 @@
}).then(res => { }).then(res => {
if (res && res.data) { if (res && res.data) {
this.detailObj = res.data; this.detailObj = res.data;
this.$initWxOpenData() this.$store.dispatch('initOpenData')
} }
}) })
}, },

View File

@@ -197,7 +197,7 @@
if(res && res.data){ if(res && res.data){
this.readObj = res.data; this.readObj = res.data;
this.visible = true; this.visible = true;
this.$initWxOpenData() this.$store.dispatch('initOpenData')
} }
}) })
}, },
@@ -213,7 +213,7 @@
if(res && res.data){ if(res && res.data){
this.tableData = res.data.records; this.tableData = res.data.records;
this.total = res.data.total; this.total = res.data.total;
this.$initWxOpenData() this.$store.dispatch('initOpenData')
} }
}) })
} }

View File

@@ -112,7 +112,7 @@
if (res && res.data) { if (res && res.data) {
this.tableData = res.data.records; this.tableData = res.data.records;
this.total = res.data.total; this.total = res.data.total;
this.$initWxOpenData() this.$store.dispatch('initOpenData')
} }
}); });
}, },