BUG 26973
This commit is contained in:
@@ -37,7 +37,8 @@
|
|||||||
<div class="list-item" v-for="(item, index) in list" :key="index">
|
<div class="list-item" v-for="(item, index) in list" :key="index">
|
||||||
<div>
|
<div>
|
||||||
<div class="list-item__title">
|
<div class="list-item__title">
|
||||||
<h2 :style="{color: dict.getColor('questionnaireStatus', item.status)}">{{ dict.getLabel('questionnaireStatus', item.status) }}</h2>
|
<h2 :style="{color: dict.getColor('questionnaireStatus', item.status)}">
|
||||||
|
{{ dict.getLabel('questionnaireStatus', item.status) }}</h2>
|
||||||
<span :class="'type-' + item.type">{{ dict.getLabel('questionnaireType', item.type) }}</span>
|
<span :class="'type-' + item.type">{{ dict.getLabel('questionnaireType', item.type) }}</span>
|
||||||
</div>
|
</div>
|
||||||
<p>{{ item.title }}</p>
|
<p>{{ item.title }}</p>
|
||||||
@@ -271,7 +272,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'FormList',
|
name: 'FormList',
|
||||||
props: {
|
props: {
|
||||||
instance: Function,
|
instance: Function,
|
||||||
@@ -279,7 +280,7 @@
|
|||||||
areaId: String
|
areaId: String
|
||||||
},
|
},
|
||||||
|
|
||||||
data () {
|
data() {
|
||||||
return {
|
return {
|
||||||
search: {
|
search: {
|
||||||
current: 1,
|
current: 1,
|
||||||
@@ -290,7 +291,7 @@
|
|||||||
title: ''
|
title: ''
|
||||||
},
|
},
|
||||||
pickerOptions: {
|
pickerOptions: {
|
||||||
disabledDate (time) {
|
disabledDate(time) {
|
||||||
return time.getTime() < Date.now() - 24 * 60 * 60 * 1000
|
return time.getTime() < Date.now() - 24 * 60 * 60 * 1000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -317,7 +318,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => {
|
this.dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
@@ -325,7 +326,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onClose () {
|
onClose() {
|
||||||
this.id = ''
|
this.id = ''
|
||||||
this.editForm.commitType = '1'
|
this.editForm.commitType = '1'
|
||||||
this.editForm.periodValidityType = '0'
|
this.editForm.periodValidityType = '0'
|
||||||
@@ -336,7 +337,7 @@
|
|||||||
this.editForm.wechatId = '0'
|
this.editForm.wechatId = '0'
|
||||||
},
|
},
|
||||||
|
|
||||||
getList () {
|
getList() {
|
||||||
this.instance.post(`/app/appquestionnairetemplate/list`, null, {
|
this.instance.post(`/app/appquestionnairetemplate/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.search,
|
...this.search,
|
||||||
@@ -349,7 +350,7 @@
|
|||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$initWxOpenData()
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -358,7 +359,7 @@
|
|||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
publish () {
|
publish() {
|
||||||
this.instance.post(`/app/appquestionnairetemplate/release`, null, {
|
this.instance.post(`/app/appquestionnairetemplate/release`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.editForm,
|
...this.editForm,
|
||||||
@@ -381,10 +382,10 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
downloadImg (url) {
|
downloadImg(url) {
|
||||||
let image = new Image()
|
let image = new Image()
|
||||||
image.setAttribute('crossOrigin', 'anonymous')
|
image.setAttribute('crossOrigin', 'anonymous')
|
||||||
image.onload = function() {
|
image.onload = function () {
|
||||||
let canvas = document.createElement('canvas')
|
let canvas = document.createElement('canvas')
|
||||||
canvas.width = image.width
|
canvas.width = image.width
|
||||||
canvas.height = image.height
|
canvas.height = image.height
|
||||||
@@ -400,7 +401,7 @@
|
|||||||
image.src = url
|
image.src = url
|
||||||
},
|
},
|
||||||
|
|
||||||
toStop (id) {
|
toStop(id) {
|
||||||
this.$confirm('确定停止该表单?').then(() => {
|
this.$confirm('确定停止该表单?').then(() => {
|
||||||
this.instance.post(`/app/appquestionnairetemplate/stopRelease?id=${id}`).then(res => {
|
this.instance.post(`/app/appquestionnairetemplate/stopRelease?id=${id}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
@@ -411,19 +412,19 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSizeChange () {
|
handleSizeChange() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
handleChange () {
|
handleChange() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
handleCommand (e, id, type) {
|
handleCommand(e, id, type) {
|
||||||
if (e === 'edit') {
|
if (e === 'edit') {
|
||||||
this.toEdit(id, type)
|
this.toEdit(id, type)
|
||||||
} else if (e === 'share') {
|
} else if (e === 'share') {
|
||||||
@@ -451,7 +452,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
exportFile (id, title) {
|
exportFile(id, title) {
|
||||||
this.instance.post(`/app/appquestionnairetemplate/export?id=${id}`, null, {
|
this.instance.post(`/app/appquestionnairetemplate/export?id=${id}`, null, {
|
||||||
responseType: 'blob'
|
responseType: 'blob'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@@ -466,7 +467,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
showShare (info, isPreview) {
|
showShare(info, isPreview) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.info = info
|
this.info = info
|
||||||
|
|
||||||
@@ -491,7 +492,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
copy (link) {
|
copy(link) {
|
||||||
let oInput = document.createElement('input')
|
let oInput = document.createElement('input')
|
||||||
oInput.value = link
|
oInput.value = link
|
||||||
document.body.appendChild(oInput)
|
document.body.appendChild(oInput)
|
||||||
@@ -504,7 +505,7 @@
|
|||||||
oInput.remove()
|
oInput.remove()
|
||||||
},
|
},
|
||||||
|
|
||||||
toEdit (id, type) {
|
toEdit(id, type) {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
type: 'add',
|
type: 'add',
|
||||||
params: {
|
params: {
|
||||||
@@ -515,7 +516,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
onConfirm () {
|
onConfirm() {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
type: 'add',
|
type: 'add',
|
||||||
params: {
|
params: {
|
||||||
@@ -526,15 +527,15 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.form-list {
|
.form-list {
|
||||||
::v-deep .ai-list__content--right-wrapper {
|
::v-deep .ai-list__content--right-wrapper {
|
||||||
background: transparent!important;
|
background: transparent !important;
|
||||||
box-shadow: none!important;
|
box-shadow: none !important;
|
||||||
padding: 12px 0 12px!important;
|
padding: 12px 0 12px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep.el-pager {
|
::v-deep.el-pager {
|
||||||
@@ -630,6 +631,7 @@
|
|||||||
color: #FF4466;
|
color: #FF4466;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
color: #222222;
|
color: #222222;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@@ -648,12 +650,13 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
padding: 0 40px!important;
|
padding: 0 40px !important;
|
||||||
|
|
||||||
.el-pagination {
|
.el-pagination {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-pager li.active {
|
::v-deep .el-pager li.active {
|
||||||
background-color: #fff !important;
|
background-color: #fff !important;
|
||||||
color: #2266FF !important;
|
color: #2266FF !important;
|
||||||
@@ -743,7 +746,7 @@
|
|||||||
|
|
||||||
.ai-dialog__success {
|
.ai-dialog__success {
|
||||||
::v-deep .ai-dialog__content {
|
::v-deep .ai-dialog__content {
|
||||||
max-height: initial!important;
|
max-height: initial !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -780,6 +783,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
img {
|
img {
|
||||||
width: 120px;
|
width: 120px;
|
||||||
@@ -809,7 +813,7 @@
|
|||||||
height: 130px;
|
height: 130px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border: 1px solid #E4E8EF;
|
border: 1px solid #E4E8EF;
|
||||||
}
|
}
|
||||||
@@ -873,7 +877,7 @@
|
|||||||
h2 {
|
h2 {
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
color: #222222;
|
color: #222222;
|
||||||
font-size: 20ox;
|
font-size: 20 ox;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -949,6 +953,7 @@
|
|||||||
::v-deep .el-button {
|
::v-deep .el-button {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
color: #8899BB;
|
color: #8899BB;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@@ -1072,7 +1077,7 @@
|
|||||||
height: 196px;
|
height: 196px;
|
||||||
margin: 0 20px 20px 0;
|
margin: 0 20px 20px 0;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.05);
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
|
||||||
&:nth-of-type(4n) {
|
&:nth-of-type(4n) {
|
||||||
@@ -1080,5 +1085,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -8,10 +8,12 @@
|
|||||||
<template #content>
|
<template #content>
|
||||||
<ai-wrapper label-width="90px">
|
<ai-wrapper label-width="90px">
|
||||||
<ai-info-item label="表单名称" :value="info.title" isLine></ai-info-item>
|
<ai-info-item label="表单名称" :value="info.title" isLine></ai-info-item>
|
||||||
<ai-info-item label="发布状态"><span :style="{color: dict.getColor('questionnaireStatus', info.status)}">已发布</span></ai-info-item>
|
<ai-info-item label="发布状态"><span
|
||||||
|
:style="{color: dict.getColor('questionnaireStatus', info.status)}">已发布</span></ai-info-item>
|
||||||
<ai-info-item label="创建人" :value="info.createUserName"></ai-info-item>
|
<ai-info-item label="创建人" :value="info.createUserName"></ai-info-item>
|
||||||
<ai-info-item label="创建时间" :value="info.createTime"></ai-info-item>
|
<ai-info-item label="创建时间" :value="info.createTime"></ai-info-item>
|
||||||
<ai-info-item label="截止时间" :value="info.periodValidityEndTime ? info.periodValidityEndTime : '永久有效'"></ai-info-item>
|
<ai-info-item label="截止时间"
|
||||||
|
:value="info.periodValidityEndTime ? info.periodValidityEndTime : '永久有效'"></ai-info-item>
|
||||||
<ai-info-item label="提交次数限制" :value="info.commitType === '1' ? '限提交一次' : '不限次数' "></ai-info-item>
|
<ai-info-item label="提交次数限制" :value="info.commitType === '1' ? '限提交一次' : '不限次数' "></ai-info-item>
|
||||||
</ai-wrapper>
|
</ai-wrapper>
|
||||||
</template>
|
</template>
|
||||||
@@ -33,7 +35,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="statistics-wrapper__body--list">
|
<div class="statistics-wrapper__body--list">
|
||||||
<div class="statistics-wrapper__body--item" v-for="(item, index) in subjectList" :key="index">
|
<div class="statistics-wrapper__body--item" v-for="(item, index) in subjectList" :key="index">
|
||||||
<div class="statistics-wrapper__body--top" :style="{borderBottom: ['input', 'textarea', 'upload'].indexOf(item.type) > -1 ? 'none' : '1px solid #DDDDDD'}">
|
<div class="statistics-wrapper__body--top"
|
||||||
|
:style="{borderBottom: ['input', 'textarea', 'upload'].indexOf(item.type) > -1 ? 'none' : '1px solid #DDDDDD'}">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<h2>{{ item.fieldName }}({{ item.fixedLabel }})</h2>
|
<h2>{{ item.fieldName }}({{ item.fixedLabel }})</h2>
|
||||||
</div>
|
</div>
|
||||||
@@ -43,7 +46,8 @@
|
|||||||
<span>条数据</span>
|
<span>条数据</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="statistics-wrapper__body--bottom" v-if="['radio', 'checkbox', 'select'].indexOf(item.type) > -1">
|
<div class="statistics-wrapper__body--bottom"
|
||||||
|
v-if="['radio', 'checkbox', 'select'].indexOf(item.type) > -1">
|
||||||
<div class="statistics-wrapper__body--select" v-for="(item, i) in item.options" :key="i">
|
<div class="statistics-wrapper__body--select" v-for="(item, i) in item.options" :key="i">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<h2>{{ item.label }}</h2>
|
<h2>{{ item.label }}</h2>
|
||||||
@@ -51,7 +55,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div :style="{width: `${(((item.c || 0) / fieldDataCount[`field_${index}`]) * 100).toFixed(2)}%`}"></div>
|
<div
|
||||||
|
:style="{width: `${(((item.c || 0) / fieldDataCount[`field_${index}`]) * 100).toFixed(2)}%`}"></div>
|
||||||
</div>
|
</div>
|
||||||
<i>{{ (((item.c || 0) / fieldDataCount[`field_${index}`]) * 100).toFixed(2) }}%</i>
|
<i>{{ (((item.c || 0) / fieldDataCount[`field_${index}`]) * 100).toFixed(2) }}%</i>
|
||||||
</div>
|
</div>
|
||||||
@@ -90,7 +95,9 @@
|
|||||||
<div class="userinfo">
|
<div class="userinfo">
|
||||||
<img :src="row.avatarUrl || 'https://cdn.cunwuyun.cn/dvcp/h5/defaultAvatar.png'">
|
<img :src="row.avatarUrl || 'https://cdn.cunwuyun.cn/dvcp/h5/defaultAvatar.png'">
|
||||||
<!-- <h3>{{ row.nickName }}</h3> -->
|
<!-- <h3>{{ row.nickName }}</h3> -->
|
||||||
<el-tooltip effect="dark" :content="row.corpName ? row.nickName + '@' + row.corpFullName : row.nickName + ''" placement="top">
|
<el-tooltip effect="dark"
|
||||||
|
:content="row.corpName ? row.nickName + '@' + row.corpFullName : row.nickName + ''"
|
||||||
|
placement="top">
|
||||||
<div class="userinfo-right__top">
|
<div class="userinfo-right__top">
|
||||||
<h3>{{ row.corpName ? row.nickName : row.nickName }}</h3>
|
<h3>{{ row.corpName ? row.nickName : row.nickName }}</h3>
|
||||||
<span class="ellipsis">{{ row.corpName ? '@' + row.corpName : '' }}</span>
|
<span class="ellipsis">{{ row.corpName ? '@' + row.corpName : '' }}</span>
|
||||||
@@ -102,7 +109,9 @@
|
|||||||
<el-table-column slot="tags" label="标签" align="center" width="240px">
|
<el-table-column slot="tags" label="标签" align="center" width="240px">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="table-tags" v-if="row.tagNames">
|
<div class="table-tags" v-if="row.tagNames">
|
||||||
<el-tag type="info" v-for="(item, index) in row.tagNames.split(',')" size="medium" :key="index">{{ item }}</el-tag>
|
<el-tag type="info" v-for="(item, index) in row.tagNames.split(',')" size="medium" :key="index">
|
||||||
|
{{ item }}
|
||||||
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<span v-else></span>
|
<span v-else></span>
|
||||||
</template>
|
</template>
|
||||||
@@ -146,9 +155,9 @@
|
|||||||
<h2>{{ item.label }}</h2>
|
<h2>{{ item.label }}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="left-item__item--wrapper">
|
<div class="left-item__item--wrapper">
|
||||||
<template v-if="(item.type === 'radio')" >
|
<template v-if="(item.type === 'radio')">
|
||||||
<div class="radio-item" v-for="(field, index) in item.options" :key="index" >
|
<div class="radio-item" v-for="(field, index) in item.options" :key="index">
|
||||||
<input type="radio" disabled :value="field.label" v-model="formInfo[`field_${i}`]" />
|
<input type="radio" disabled :value="field.label" v-model="formInfo[`field_${i}`]"/>
|
||||||
<img :src="field.img[0].url" v-if="field.img.length">
|
<img :src="field.img[0].url" v-if="field.img.length">
|
||||||
<label>{{ field.label }}</label>
|
<label>{{ field.label }}</label>
|
||||||
</div>
|
</div>
|
||||||
@@ -159,8 +168,9 @@
|
|||||||
<span>图片</span>
|
<span>图片</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.type === 'select'" >
|
<template v-if="item.type === 'select'">
|
||||||
<el-input resize="none" class="preview" type="textarea" style="color: #333" :placeholder="item.placeholder" v-model="formInfo[`field_${i}`]" disabled></el-input>
|
<el-input resize="none" class="preview" type="textarea" style="color: #333"
|
||||||
|
:placeholder="item.placeholder" v-model="formInfo[`field_${i}`]" disabled></el-input>
|
||||||
<!-- <span>{{ formInfo[`field_${i}`] }}</span> -->
|
<!-- <span>{{ formInfo[`field_${i}`] }}</span> -->
|
||||||
<!-- <textarea :placeholder="item.placeholder" v-model="formInfo[`field_${i}`]" disabled></textarea> -->
|
<!-- <textarea :placeholder="item.placeholder" v-model="formInfo[`field_${i}`]" disabled></textarea> -->
|
||||||
<!-- <el-select placeholder="请选择" disabled v-model="formInfo[`field_${i}`]" style="width: 100%;">
|
<!-- <el-select placeholder="请选择" disabled v-model="formInfo[`field_${i}`]" style="width: 100%;">
|
||||||
@@ -172,19 +182,19 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select> -->
|
</el-select> -->
|
||||||
</template>
|
</template>
|
||||||
<template v-if="(item.type === 'checkbox')" >
|
<template v-if="(item.type === 'checkbox')">
|
||||||
<div class="radio-item" v-for="(field, index) in item.options" :key="index" >
|
<div class="radio-item" v-for="(field, index) in item.options" :key="index">
|
||||||
<input type="checkbox" disabled :value="field.label" v-model="formInfo[`field_${i}`]" />
|
<input type="checkbox" disabled :value="field.label" v-model="formInfo[`field_${i}`]"/>
|
||||||
<img :src="field.img[0].url" v-if="field.img.length">
|
<img :src="field.img[0].url" v-if="field.img.length">
|
||||||
<label>{{ field.label }}</label>
|
<label>{{ field.label }}</label>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="(item.type === 'input')" >
|
<template v-if="(item.type === 'input')">
|
||||||
<div class="text-item">
|
<div class="text-item">
|
||||||
<input :placeholder="item.placeholder" v-model="formInfo[`field_${i}`]" disabled>
|
<input :placeholder="item.placeholder" v-model="formInfo[`field_${i}`]" disabled>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="(item.type === 'textarea')" >
|
<template v-if="(item.type === 'textarea')">
|
||||||
<div class="textarea-item" resize="none">
|
<div class="textarea-item" resize="none">
|
||||||
<textarea :placeholder="item.placeholder" v-model="formInfo[`field_${i}`]" disabled></textarea>
|
<textarea :placeholder="item.placeholder" v-model="formInfo[`field_${i}`]" disabled></textarea>
|
||||||
</div>
|
</div>
|
||||||
@@ -203,7 +213,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'Statistics',
|
name: 'Statistics',
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
@@ -212,7 +222,7 @@
|
|||||||
params: Object
|
params: Object
|
||||||
},
|
},
|
||||||
|
|
||||||
data () {
|
data() {
|
||||||
return {
|
return {
|
||||||
currIndex: 0,
|
currIndex: 0,
|
||||||
search: {
|
search: {
|
||||||
@@ -233,17 +243,23 @@
|
|||||||
formInfo: {},
|
formInfo: {},
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{slot: 'userinfo'},
|
{slot: 'userinfo'},
|
||||||
{prop: 'residentName', label: '真实姓名', align: 'center', width: '100px' },
|
{prop: 'residentName', label: '真实姓名', align: 'center', width: '100px'},
|
||||||
{prop: 'commitTime', label: '提交时间', align: 'center', width: '160px' },
|
{prop: 'commitTime', label: '提交时间', align: 'center', width: '160px'},
|
||||||
{prop: 'userType', label: '微信类型', align: 'center', width: '100px', formart: v => this.dict.getLabel('wxUserType', v) },
|
{
|
||||||
{prop: 'wxUserNames', label: '所属员工', align: 'center', width: '100px' },
|
prop: 'userType',
|
||||||
|
label: '微信类型',
|
||||||
|
align: 'center',
|
||||||
|
width: '100px',
|
||||||
|
formart: v => this.dict.getLabel('wxUserType', v)
|
||||||
|
},
|
||||||
|
{prop: 'wxUserNames', label: '所属员工', align: 'center', width: '100px'},
|
||||||
{slot: 'tags', label: '标签', align: 'center', width: '268px'},
|
{slot: 'tags', label: '标签', align: 'center', width: '268px'},
|
||||||
{prop: 'totalScore', label: '分值', align: 'center'}
|
{prop: 'totalScore', label: '分值', align: 'center'}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted () {
|
mounted() {
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
this.getFormInfo()
|
this.getFormInfo()
|
||||||
|
|
||||||
@@ -252,7 +268,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList () {
|
getList() {
|
||||||
this.instance.post(`/app/appquestionnairetemplate/statisticsResident?id=${this.params.id}`, null, {
|
this.instance.post(`/app/appquestionnairetemplate/statisticsResident?id=${this.params.id}`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.search
|
...this.search
|
||||||
@@ -261,12 +277,12 @@
|
|||||||
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()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
showForm (id) {
|
showForm(id) {
|
||||||
this.instance.post(`/app/appquestionnairetemplate/queryDataInfoById?id=${this.params.id}&dataId=${id}`).then(res => {
|
this.instance.post(`/app/appquestionnairetemplate/queryDataInfoById?id=${this.params.id}&dataId=${id}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.formInfo = res.data
|
this.formInfo = res.data
|
||||||
@@ -282,7 +298,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
mapType (type) {
|
mapType(type) {
|
||||||
return {
|
return {
|
||||||
upload: '上传图片',
|
upload: '上传图片',
|
||||||
input: '单行填空',
|
input: '单行填空',
|
||||||
@@ -293,7 +309,7 @@
|
|||||||
}[type]
|
}[type]
|
||||||
},
|
},
|
||||||
|
|
||||||
getFormInfo () {
|
getFormInfo() {
|
||||||
this.instance.post(`/app/appquestionnairetemplate/statisticsTable?id=${this.params.id}`, null, {
|
this.instance.post(`/app/appquestionnairetemplate/statisticsTable?id=${this.params.id}`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.search
|
...this.search
|
||||||
@@ -329,30 +345,30 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getInfo () {
|
getInfo() {
|
||||||
this.instance.post(`/app/appquestionnairetemplate/queryDetailById?id=${this.params.id}`).then(res => {
|
this.instance.post(`/app/appquestionnairetemplate/queryDetailById?id=${this.params.id}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.info = res.data
|
this.info = res.data
|
||||||
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()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
cancel (isRefresh) {
|
cancel(isRefresh) {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
type: 'list',
|
type: 'list',
|
||||||
isRefresh: !!isRefresh
|
isRefresh: !!isRefresh
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.statistics {
|
.statistics {
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
@@ -361,7 +377,7 @@
|
|||||||
|
|
||||||
.preview {
|
.preview {
|
||||||
::v-deep .el-textarea.is-disabled, ::v-deep .el-textarea__inner {
|
::v-deep .el-textarea.is-disabled, ::v-deep .el-textarea__inner {
|
||||||
color: #666!important;
|
color: #666 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -585,7 +601,7 @@
|
|||||||
|
|
||||||
.statistics-wrapper {
|
.statistics-wrapper {
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0px 4px 6px -2px rgba(15, 15, 21, 0.15);
|
box-shadow: 0 4px 6px -2px rgba(15, 15, 21, 0.15);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
|
||||||
.statistics-wrapper__title {
|
.statistics-wrapper__title {
|
||||||
@@ -645,7 +661,7 @@
|
|||||||
max-width: 384px;
|
max-width: 384px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow:ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #222222;
|
color: #222222;
|
||||||
@@ -693,7 +709,7 @@
|
|||||||
height: 70px;
|
height: 70px;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
border-radius: 4px 4px 0px 0px;
|
border-radius: 4px 4px 0 0;
|
||||||
border-bottom: 1px solid #DDDDDD;
|
border-bottom: 1px solid #DDDDDD;
|
||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
@@ -704,6 +720,7 @@
|
|||||||
|
|
||||||
.left {
|
.left {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
color: #222222;
|
color: #222222;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@@ -741,5 +758,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'Template',
|
name: 'Template',
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
dict: Object
|
dict: Object
|
||||||
},
|
},
|
||||||
|
|
||||||
data () {
|
data() {
|
||||||
return {
|
return {
|
||||||
search: {
|
search: {
|
||||||
current: 1,
|
current: 1,
|
||||||
@@ -117,23 +117,23 @@
|
|||||||
isShow: false,
|
isShow: false,
|
||||||
total: 10,
|
total: 10,
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{ prop: 'title', label: '模板名称', align: 'left' },
|
{prop: 'title', label: '模板名称', align: 'left'},
|
||||||
{ slot: 'type', label: '项目类型', align: 'center' },
|
{slot: 'type', label: '项目类型', align: 'center'},
|
||||||
{ prop: 'quoteCount', label: '引用次数', align: 'center' },
|
{prop: 'quoteCount', label: '引用次数', align: 'center'},
|
||||||
{ prop: 'createUserName', label: '创建人', align: 'center' },
|
{prop: 'createUserName', label: '创建人', align: 'center'},
|
||||||
{ prop: 'createUnitName', label: '创建单位', align: 'center' },
|
{prop: 'createUnitName', label: '创建单位', align: 'center'},
|
||||||
{ prop: 'createTime', label: '创建时间', align: 'center' }
|
{prop: 'createTime', label: '创建时间', align: 'center'}
|
||||||
],
|
],
|
||||||
tableData: []
|
tableData: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted () {
|
mounted() {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getList () {
|
getList() {
|
||||||
this.instance.post(`/app/appquestionnairetemplate/list`, null, {
|
this.instance.post(`/app/appquestionnairetemplate/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.search
|
...this.search
|
||||||
@@ -142,12 +142,12 @@
|
|||||||
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()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
quote (id, type) {
|
quote(id, type) {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
type: 'add',
|
type: 'add',
|
||||||
params: {
|
params: {
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
remove (id) {
|
remove(id) {
|
||||||
this.$confirm('确定删除该数据?').then(() => {
|
this.$confirm('确定删除该数据?').then(() => {
|
||||||
this.instance.post(`/app/appquestionnairetemplate/deleteShareTemplate?ids=${id}`).then(res => {
|
this.instance.post(`/app/appquestionnairetemplate/deleteShareTemplate?ids=${id}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
@@ -170,7 +170,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
toAdd (id) {
|
toAdd(id) {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
type: 'Add',
|
type: 'Add',
|
||||||
params: {
|
params: {
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
toEdit (id, type) {
|
toEdit(id, type) {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
type: 'add',
|
type: 'add',
|
||||||
params: {
|
params: {
|
||||||
@@ -190,7 +190,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
onConfirm () {
|
onConfirm() {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
type: 'add',
|
type: 'add',
|
||||||
params: {
|
params: {
|
||||||
@@ -201,11 +201,11 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.template {
|
.template {
|
||||||
.tags-wrapper {
|
.tags-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -223,7 +223,6 @@
|
|||||||
height: 64px;
|
height: 64px;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
border-radius: 2px;
|
|
||||||
// box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
|
// box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -279,5 +278,5 @@
|
|||||||
color: rgba(236, 68, 97, 1);
|
color: rgba(236, 68, 97, 1);
|
||||||
background: rgba(236, 68, 97, 0.1);
|
background: rgba(236, 68, 97, 0.1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -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()
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -133,7 +133,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()
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -114,7 +114,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()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<ai-detail>
|
<ai-detail>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<ai-title :title="detail.id ? '编辑公告' : '创建公告'" isShowBack isShowBottomBorder @onBackClick="$parent.goBack"></ai-title>
|
<ai-title :title="detail.id ? '编辑公告' : '创建公告'" isShowBack isShowBottomBorder
|
||||||
|
@onBackClick="$parent.goBack"></ai-title>
|
||||||
</template>
|
</template>
|
||||||
<template #content>
|
<template #content>
|
||||||
<ai-card title="基本信息">
|
<ai-card title="基本信息">
|
||||||
@@ -20,7 +21,7 @@
|
|||||||
<el-row type="flex" align="middle">
|
<el-row type="flex" align="middle">
|
||||||
<div class="text-area">
|
<div class="text-area">
|
||||||
<span v-text="item.name"/>
|
<span v-text="item.name"/>
|
||||||
<span v-if="persons.length">等{{persons.length}}人</span>
|
<span v-if="persons.length">等{{ persons.length }}人</span>
|
||||||
</div>
|
</div>
|
||||||
<ai-wechat-selecter v-model="form.persons" :instance="instance" @change="onChange">
|
<ai-wechat-selecter v-model="form.persons" :instance="instance" @change="onChange">
|
||||||
<el-button type="info">选择</el-button>
|
<el-button type="info">选择</el-button>
|
||||||
@@ -58,7 +59,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "add",
|
name: "add",
|
||||||
props: {
|
props: {
|
||||||
instance: Function,
|
instance: Function,
|
||||||
@@ -76,7 +77,7 @@
|
|||||||
type: 0,
|
type: 0,
|
||||||
releaseTime: null,
|
releaseTime: null,
|
||||||
},
|
},
|
||||||
persons:[],
|
persons: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -101,7 +102,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onChange(e){
|
onChange(e) {
|
||||||
this.form.persons = e;
|
this.form.persons = e;
|
||||||
this.persons = e;
|
this.persons = e;
|
||||||
this.$refs["form"].validateField("persons");
|
this.$refs["form"].validateField("persons");
|
||||||
@@ -109,7 +110,7 @@
|
|||||||
confim(e) {
|
confim(e) {
|
||||||
this.$refs["form"].validate(v => {
|
this.$refs["form"].validate(v => {
|
||||||
if (v) {
|
if (v) {
|
||||||
if(this.form.releaseTime && (new Date(this.form.releaseTime).getTime() <= Date.now())){
|
if (this.form.releaseTime && (new Date(this.form.releaseTime).getTime() <= Date.now())) {
|
||||||
return this.$message.error("发送时间要大于当前时间")
|
return this.$message.error("发送时间要大于当前时间")
|
||||||
}
|
}
|
||||||
this.instance.post("/app/appannouncement/addOrUpdate", {
|
this.instance.post("/app/appannouncement/addOrUpdate", {
|
||||||
@@ -117,67 +118,69 @@
|
|||||||
status: e
|
status: e
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success(e==0?"保存成功":"发布成功");
|
this.$message.success(e == 0 ? "保存成功" : "发布成功");
|
||||||
this.$parent.goBack();
|
this.$parent.goBack();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getDetail(){
|
getDetail() {
|
||||||
this.instance.post("/app/appannouncement/detail",null,{
|
this.instance.post("/app/appannouncement/detail", null, {
|
||||||
params:{
|
params: {
|
||||||
id:this.detail.id
|
id: this.detail.id
|
||||||
}
|
}
|
||||||
}).then(res=>{
|
}).then(res => {
|
||||||
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()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted() {
|
||||||
if(this.detail?.id){
|
if (this.detail?.id) {
|
||||||
this.getDetail();
|
this.getDetail();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
::v-deep .picker {
|
::v-deep .picker {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
|
|
||||||
.el-form-item__content {
|
.el-form-item__content {
|
||||||
margin-left: 0 !important;
|
margin-left: 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-area{
|
.text-area {
|
||||||
width:995px;
|
width: 995px;
|
||||||
height:32px;
|
height: 32px;
|
||||||
background-color:#F5F5F5;
|
background-color: #F5F5F5;
|
||||||
border: 1px solid #d0d4dc;
|
border: 1px solid #d0d4dc;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding:0 6px;
|
padding: 0 6px;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .AiOpenData {
|
||||||
|
height: auto !important;
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
content: "、";
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .AiOpenData{
|
&:nth-child(2):after {
|
||||||
height:auto !important;
|
content: "";
|
||||||
&:after{
|
|
||||||
content:"、";
|
|
||||||
}
|
|
||||||
&:nth-child(2):after{
|
|
||||||
content:"";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<ai-card :title="detailObj.title" class="title">
|
<ai-card :title="detailObj.title" class="title">
|
||||||
<template #content>
|
<template #content>
|
||||||
<el-row type="flex" justify="space-between" class="info">
|
<el-row type="flex" justify="space-between" class="info">
|
||||||
<span>时间:{{detailObj.releaseTime}}</span>
|
<span>时间:{{ detailObj.releaseTime }}</span>
|
||||||
<span style="display:flex">发布单位:
|
<span style="display:flex">发布单位:
|
||||||
<span v-text="detailObj.unitName"/>
|
<span v-text="detailObj.unitName"/>
|
||||||
</span>
|
</span>
|
||||||
@@ -20,9 +20,10 @@
|
|||||||
</ai-card>
|
</ai-card>
|
||||||
<ai-card title="附件" v-if="detailObj.files && detailObj.files.length">
|
<ai-card title="附件" v-if="detailObj.files && detailObj.files.length">
|
||||||
<template #content>
|
<template #content>
|
||||||
<el-row type="flex" justify="space-between" class="file" v-for="(item,index) in detailObj.files" :key="index" @click.native="open(item)">
|
<el-row type="flex" justify="space-between" class="file" v-for="(item,index) in detailObj.files" :key="index"
|
||||||
<span>{{item.fileName}}</span>
|
@click.native="open(item)">
|
||||||
<span>{{(item.size/1024).toFixed(2)}}KB</span>
|
<span>{{ item.fileName }}</span>
|
||||||
|
<span>{{ (item.size / 1024).toFixed(2) }}KB</span>
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
</ai-card>
|
</ai-card>
|
||||||
@@ -31,7 +32,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "detail",
|
name: "detail",
|
||||||
props: {
|
props: {
|
||||||
instance: Function,
|
instance: Function,
|
||||||
@@ -56,22 +57,22 @@
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res && res.data) {
|
if (res && res.data) {
|
||||||
this.detailObj = res.data;
|
this.detailObj = res.data;
|
||||||
this.$initWxOpenData()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
::v-deep .title {
|
::v-deep .title {
|
||||||
.aibar-left {
|
.aibar-left {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.file {
|
.file {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
@@ -82,13 +83,13 @@
|
|||||||
border: 1px solid #d0d4dc;
|
border: 1px solid #d0d4dc;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info {
|
.info {
|
||||||
& > span {
|
& > span {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<ai-card :title="detailObj.title" class="title">
|
<ai-card :title="detailObj.title" class="title">
|
||||||
<template #content>
|
<template #content>
|
||||||
<el-row type="flex" justify="space-between" class="info">
|
<el-row type="flex" justify="space-between" class="info">
|
||||||
<span>时间:{{detailObj.releaseTime}}</span>
|
<span>时间:{{ detailObj.releaseTime }}</span>
|
||||||
<span style="display:flex">发布单位:
|
<span style="display:flex">发布单位:
|
||||||
<span v-text="detailObj.unitName"/>
|
<span v-text="detailObj.unitName"/>
|
||||||
</span>
|
</span>
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<span class="Edit" @click="downFileAll"><i class="iconfont iconDownload"></i>下载全部</span>
|
<span class="Edit" @click="downFileAll"><i class="iconfont iconDownload"></i>下载全部</span>
|
||||||
</template>
|
</template>
|
||||||
<template #content>
|
<template #content>
|
||||||
<ai-file-list :fileList="detailObj.files" :fileOps="{ name: 'fileName', size: 'size' }" ></ai-file-list>
|
<ai-file-list :fileList="detailObj.files" :fileOps="{ name: 'fileName', size: 'size' }"></ai-file-list>
|
||||||
</template>
|
</template>
|
||||||
</ai-card>
|
</ai-card>
|
||||||
</template>
|
</template>
|
||||||
@@ -43,7 +43,8 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<el-input v-model="search.readUserName" @keyup.enter.native="getList()" placeholder="姓名"
|
<el-input v-model="search.readUserName" @keyup.enter.native="getList()" placeholder="姓名"
|
||||||
size="small" suffix-icon="iconfont iconSearch" clearable @clear="search.current=1,getList()"></el-input>
|
size="small" suffix-icon="iconfont iconSearch" clearable
|
||||||
|
@clear="search.current=1,getList()"></el-input>
|
||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
<ai-table
|
<ai-table
|
||||||
@@ -72,12 +73,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "manageDetail",
|
name: "manageDetail",
|
||||||
props: {
|
props: {
|
||||||
instance: Function,
|
instance: Function,
|
||||||
dict: Object,
|
dict: Object,
|
||||||
detail:Object
|
detail: Object
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -95,20 +96,21 @@
|
|||||||
tabTitle() {
|
tabTitle() {
|
||||||
return ["公告详情", "查询情况"];
|
return ["公告详情", "查询情况"];
|
||||||
},
|
},
|
||||||
colConfigs(){
|
colConfigs() {
|
||||||
return [
|
return [
|
||||||
{slot:"readUserName"},
|
{slot: "readUserName"},
|
||||||
{prop:"readUserPhone",label:"手机号",align:"center"},
|
{prop: "readUserPhone", label: "手机号", align: "center"},
|
||||||
{slot:"unitName"},
|
{slot: "unitName"},
|
||||||
{
|
{
|
||||||
prop:"readStatus",label:"查阅状态",align:"center",
|
prop: "readStatus", label: "查阅状态", align: "center",
|
||||||
render:(h,{row})=>[<span style={{color:this.dict.getColor("announcementReadStatus",row.readStatus)}}>{this.dict.getLabel("announcementReadStatus",row.readStatus)}</span>]
|
render: (h, {row}) => [<span
|
||||||
|
style={{color: this.dict.getColor("announcementReadStatus", row.readStatus)}}>{this.dict.getLabel("announcementReadStatus", row.readStatus)}</span>]
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
downFileAll () {
|
downFileAll() {
|
||||||
if (this.detailObj.files.length > 0) {
|
if (this.detailObj.files.length > 0) {
|
||||||
this.instance.post('/app/appannouncement/downLoadAllFileForDetail', null, {
|
this.instance.post('/app/appannouncement/downLoadAllFileForDetail', null, {
|
||||||
responseType: 'blob',
|
responseType: 'blob',
|
||||||
@@ -117,7 +119,7 @@
|
|||||||
}
|
}
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
const link = document.createElement('a')
|
const link = document.createElement('a')
|
||||||
let blob = new Blob([res], { type: 'application/octet-stream' })
|
let blob = new Blob([res], {type: 'application/octet-stream'})
|
||||||
link.style.display = 'none'
|
link.style.display = 'none'
|
||||||
link.href = URL.createObjectURL(blob)
|
link.href = URL.createObjectURL(blob)
|
||||||
var num = ''
|
var num = ''
|
||||||
@@ -133,10 +135,10 @@
|
|||||||
this.$message.error('暂无附件提供下载')
|
this.$message.error('暂无附件提供下载')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onChange(val){
|
onChange(val) {
|
||||||
if(val==0){
|
if (val == 0) {
|
||||||
this.getDetail();
|
this.getDetail();
|
||||||
}else {
|
} else {
|
||||||
this.getList();
|
this.getList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -148,7 +150,7 @@
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res && res.data) {
|
if (res && res.data) {
|
||||||
this.detailObj = res.data;
|
this.detailObj = res.data;
|
||||||
this.$initWxOpenData()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -169,18 +171,18 @@
|
|||||||
created() {
|
created() {
|
||||||
this.dict.load("announcementReadStatus").then(this.getDetail);
|
this.dict.load("announcementReadStatus").then(this.getDetail);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
::v-deep .title {
|
::v-deep .title {
|
||||||
.aibar-left {
|
.aibar-left {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.file {
|
.file {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
@@ -191,12 +193,12 @@
|
|||||||
border: 1px solid #d0d4dc;
|
border: 1px solid #d0d4dc;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info {
|
.info {
|
||||||
& > span {
|
& > span {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "noticeManage",
|
name: "noticeManage",
|
||||||
props: {
|
props: {
|
||||||
instance: Function,
|
instance: Function,
|
||||||
@@ -113,7 +113,7 @@
|
|||||||
total: 0,
|
total: 0,
|
||||||
visible: false,
|
visible: false,
|
||||||
row: {},
|
row: {},
|
||||||
readObj:{},
|
readObj: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -123,14 +123,17 @@
|
|||||||
{prop: 'title', label: '标题'},
|
{prop: 'title', label: '标题'},
|
||||||
{
|
{
|
||||||
prop: 'readNum', label: '查询状态', align: 'center',
|
prop: 'readNum', label: '查询状态', align: 'center',
|
||||||
render:(h,{row})=>[<span class='status' onClick={this.showDialog.bind(this,row)}>{row.readNum}人已读,</span>,<span class='status' onClick={this.showDialog.bind(this,row)}>{row.unReadNum}人未读</span>]
|
render: (h, {row}) => [<span class='status'
|
||||||
|
onClick={this.showDialog.bind(this, row)}>{row.readNum}人已读,</span>,
|
||||||
|
<span class='status' onClick={this.showDialog.bind(this, row)}>{row.unReadNum}人未读</span>]
|
||||||
},
|
},
|
||||||
{slot: 'releaseUserName'},
|
{slot: 'releaseUserName'},
|
||||||
{slot: 'unitName'},
|
{slot: 'unitName'},
|
||||||
{prop: 'releaseTime', label: '发布时间', align: 'center'},
|
{prop: 'releaseTime', label: '发布时间', align: 'center'},
|
||||||
{
|
{
|
||||||
prop: 'status', label: '发布状态', align: 'center',
|
prop: 'status', label: '发布状态', align: 'center',
|
||||||
render:(h,{row})=>[<span style={{color:this.dict.getColor("announcementStatus",row.status)}}>{this.dict.getLabel("announcementStatus",row.status)}</span>]
|
render: (h, {row}) => [<span
|
||||||
|
style={{color: this.dict.getColor("announcementStatus", row.status)}}>{this.dict.getLabel("announcementStatus", row.status)}</span>]
|
||||||
},
|
},
|
||||||
{slot: 'options'},
|
{slot: 'options'},
|
||||||
];
|
];
|
||||||
@@ -142,77 +145,77 @@
|
|||||||
this.row = row;
|
this.row = row;
|
||||||
this.getReadList();
|
this.getReadList();
|
||||||
},
|
},
|
||||||
toDetail(row){
|
toDetail(row) {
|
||||||
this.$emit('goPage', {
|
this.$emit('goPage', {
|
||||||
comp: 'manageDetail',
|
comp: 'manageDetail',
|
||||||
row
|
row
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
toEdit(row){
|
toEdit(row) {
|
||||||
this.$emit('goPage', {
|
this.$emit('goPage', {
|
||||||
comp: 'add',
|
comp: 'add',
|
||||||
row
|
row
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
publish(row,status){
|
publish(row, status) {
|
||||||
this.$confirm(`是否要${status==0?'发布':'撤回'}该公告?`).then(()=>{
|
this.$confirm(`是否要${status == 0 ? '发布' : '撤回'}该公告?`).then(() => {
|
||||||
this.instance.post("/app/appannouncement/update-status",null,{
|
this.instance.post("/app/appannouncement/update-status", null, {
|
||||||
params: {
|
params: {
|
||||||
id:row.id
|
id: row.id
|
||||||
}
|
}
|
||||||
}).then(res=>{
|
}).then(res => {
|
||||||
if(res.code==0){
|
if (res.code == 0) {
|
||||||
this.$message.success(status==0?'发布成功':'撤回成功');
|
this.$message.success(status == 0 ? '发布成功' : '撤回成功');
|
||||||
this.getList();
|
this.getList();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleDel(row){
|
handleDel(row) {
|
||||||
this.$confirm("是否要删除该公布?").then(()=>{
|
this.$confirm("是否要删除该公布?").then(() => {
|
||||||
this.instance.post("/app/appannouncement/delete",null,{
|
this.instance.post("/app/appannouncement/delete", null, {
|
||||||
params:{
|
params: {
|
||||||
ids:row.id
|
ids: row.id
|
||||||
}
|
}
|
||||||
}).then(res=>{
|
}).then(res => {
|
||||||
if(res.code==0){
|
if (res.code == 0) {
|
||||||
this.$message.success("删除成功");
|
this.$message.success("删除成功");
|
||||||
this.getList();
|
this.getList();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
add(){
|
add() {
|
||||||
this.$emit('goPage', {
|
this.$emit('goPage', {
|
||||||
comp: 'add',
|
comp: 'add',
|
||||||
row: {},
|
row: {},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getReadList(){
|
getReadList() {
|
||||||
this.instance.post("/app/appannouncementreader/list-unread",null,{
|
this.instance.post("/app/appannouncementreader/list-unread", null, {
|
||||||
params:{
|
params: {
|
||||||
id:this.row.id
|
id: this.row.id
|
||||||
}
|
}
|
||||||
}).then(res=>{
|
}).then(res => {
|
||||||
if(res && res.data){
|
if (res && res.data) {
|
||||||
this.readObj = res.data;
|
this.readObj = res.data;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
this.$initWxOpenData()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
this.instance.post("/app/appannouncement/list-mgr",null,{
|
this.instance.post("/app/appannouncement/list-mgr", null, {
|
||||||
params:{
|
params: {
|
||||||
...this.search,
|
...this.search,
|
||||||
startTime: this.date?.length ? this.date[0] : null,
|
startTime: this.date?.length ? this.date[0] : null,
|
||||||
endTime: this.date?.length ? this.date[1] : null,
|
endTime: this.date?.length ? this.date[1] : null,
|
||||||
}
|
}
|
||||||
}).then(res=>{
|
}).then(res => {
|
||||||
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()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -220,22 +223,22 @@
|
|||||||
created() {
|
created() {
|
||||||
this.dict.load("announcementStatus").then(this.getList)
|
this.dict.load("announcementStatus").then(this.getList)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
::v-deep .status {
|
::v-deep .status {
|
||||||
color: rgba(41, 107, 251, 100);
|
color: rgba(41, 107, 251, 100);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
header{
|
header {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .wrap {
|
::v-deep .wrap {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@@ -254,11 +257,11 @@
|
|||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
span{
|
span {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
<!-- <em v-if="item.readStatus==0"></em>-->
|
<!-- <em v-if="item.readStatus==0"></em>-->
|
||||||
<div class="status" v-if="item.readStatus==0">未读</div>
|
<div class="status" v-if="item.readStatus==0">未读</div>
|
||||||
<div class="status read" v-else>已读</div>
|
<div class="status read" v-else>已读</div>
|
||||||
{{item.title}}</label>
|
{{ item.title }}</label>
|
||||||
<el-row type="flex" justify="space-between" class="row">
|
<el-row type="flex" justify="space-between" class="row">
|
||||||
<span style="display:flex">
|
<span style="display:flex">
|
||||||
<b>发布人:</b>
|
<b>发布人:</b>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
<b>发布日期:</b>
|
<b>发布日期:</b>
|
||||||
{{item.releaseTime}}</span>
|
{{ item.releaseTime }}</span>
|
||||||
</el-row>
|
</el-row>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
layout="slot,->,prev, pager, next,sizes,jumper"
|
layout="slot,->,prev, pager, next,sizes,jumper"
|
||||||
:total="total">
|
:total="total">
|
||||||
<div class="page" style="text-align: left">共
|
<div class="page" style="text-align: left">共
|
||||||
<em>{{total}}</em>
|
<em>{{ total }}</em>
|
||||||
条记录
|
条记录
|
||||||
</div>
|
</div>
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "recentNotice",
|
name: "recentNotice",
|
||||||
props: {
|
props: {
|
||||||
instance: Function,
|
instance: Function,
|
||||||
@@ -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()
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -128,11 +128,11 @@
|
|||||||
created() {
|
created() {
|
||||||
this.dict.load("announcementReadStatus").then(_ => this.getList())
|
this.dict.load("announcementReadStatus").then(_ => this.getList())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.body {
|
.body {
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -172,7 +172,7 @@
|
|||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.read{
|
.read {
|
||||||
background: #EEEEEE;
|
background: #EEEEEE;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
@@ -203,9 +203,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .page {
|
::v-deep .page {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #555555;
|
color: #555555;
|
||||||
|
|
||||||
@@ -213,5 +213,5 @@
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
color: rgb(34, 102, 255);
|
color: rgb(34, 102, 255);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user