Browse Source

人民建议征集

feature
是小王呀\24601 8 months ago
parent
commit
395d6028bc
  1. BIN
      src/assets/images/peoSuggestion/15.png
  2. 4
      src/views/home/index.vue
  3. 10
      src/views/peoSuggestion/SpecialsolicitationFill.vue
  4. 7
      src/views/peoSuggestion/goldenIdeaDetail.vue
  5. 2
      src/views/peoSuggestion/index.vue
  6. 12
      src/views/peoSuggestion/solicitationDaily.vue
  7. 8
      src/views/peoSuggestion/topicListDetail.vue

BIN
src/assets/images/peoSuggestion/15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

4
src/views/home/index.vue

@ -52,7 +52,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="flex flex-center1 flex-center2 " style="width: 100%;margin-top: 10px;"> <div class="flex flex-center1 flex-center2 " style="width: 100%;margin-top: 10px;" v-if="agencyId=='3be8c116c6536aed33fa83cbcd97ce4f'">
<img style="width: 100%;height: 75px;" src="../../assets/images/home/jianyi.png" @click="topeoSuggestion"></img> <img style="width: 100%;height: 75px;" src="../../assets/images/home/jianyi.png" @click="topeoSuggestion"></img>
</div > </div >
<div class="card m-top10"> <div class="card m-top10">
@ -148,6 +148,7 @@ import { inspRecord } from '@/api/satisfaction';
export default { export default {
data() { data() {
return { return {
agencyId:"",
searchKey: null,// searchKey: null,//
tabList: [ tabList: [
{ {
@ -200,6 +201,7 @@ export default {
}; };
}, },
created() { created() {
console.log(this.$store.state.app.agencyId,"sdjflsjklfds");
this.agencyId = this.$store.state.app.agencyId; this.agencyId = this.$store.state.app.agencyId;
this.userId = this.$store.state.app.userInfo.id; this.userId = this.$store.state.app.userInfo.id;
this.customerId = this.$store.state.app.userInfo.customerId; this.customerId = this.$store.state.app.userInfo.customerId;

10
src/views/peoSuggestion/SpecialsolicitationFill.vue

@ -100,6 +100,7 @@ export default {
showPopup:false, showPopup:false,
ideaIdentityList:[], ideaIdentityList:[],
formData:{ formData:{
attachmentList:[],
openId:"", openId:"",
fileList:[], fileList:[],
identityTypeCode:[], identityTypeCode:[],
@ -211,13 +212,14 @@ export default {
file.message = '上传成功' file.message = '上传成功'
file.url = res.data.url file.url = res.data.url
let fileInfo = { let fileInfo = {
type: type, // type: type,
format: format, // format: format,
name: name, name: name,
url: url url: url
}; };
this.formData.imageList.push(res.data.url) // this.formData.imageList.push(res.data.url)
console.log(fileInfo,"sdlkjdslgfjdgls"); // console.log(fileInfo,"sdlkjdslgfjdgls");
this.formData.attachmentList.push(fileInfo)
// this.attrs.push(fileInfo) // this.attrs.push(fileInfo)
}) })
.catch(() => { .catch(() => {

7
src/views/peoSuggestion/goldenIdeaDetail.vue

@ -5,9 +5,10 @@
<h2>{{ ProblemDescription.subjectTitle }}</h2> <h2>{{ ProblemDescription.subjectTitle }}</h2>
<div class="m-bottom5">{{ ProblemDescription.eventContent }}</div> <div class="m-bottom5">{{ ProblemDescription.eventContent }}</div>
<div class="font-size13 gray">{{ ProblemDescription.createdTime }}</div> <div class="font-size13 gray">{{ ProblemDescription.createdTime }}</div>
<div class="image-grid" v-for="item in ProblemDescription.imageList" >
<div class="grid-item "> <div class="" v-for="item in ProblemDescription.imageList">
<img :src="item" style="width: 105px; height: 75px;"> <div class=" flex flex-center1 flex-center2">
<img :src="item" style="width: 100%; height: 100%;">
</div> </div>
</div> </div>
<!-- <div class="flex flex-y flex-center1 flex-center2 gray back_color m-top15"> <!-- <div class="flex flex-y flex-center1 flex-center2 gray back_color m-top15">

2
src/views/peoSuggestion/index.vue

@ -72,7 +72,7 @@
</div> </div>
<span class="van-multi-ellipsis--l2" style="flex: 1; line-height: 1.5;"> <span class="van-multi-ellipsis--l2" style="flex: 1; line-height: 1.5;">
<van-tag size="medium" style="margin-right: 5px; width: 40px;" <van-tag size="medium" style="margin-right: 5px; "
:color="item.status == '1' ? '#07c160' : '#b6b6b6'"> :color="item.status == '1' ? '#07c160' : '#b6b6b6'">
{{ item.status == '1' ? "征集中" : "已结束" }} {{ item.status == '1' ? "征集中" : "已结束" }}
</van-tag> </van-tag>

12
src/views/peoSuggestion/solicitationDaily.vue

@ -2,7 +2,7 @@
<div class="container"> <div class="container">
<div class="block"> <div class="block">
<div class=""> <div class="">
<van-cell required is-link title="建议主题" @click="onShowPicker()" label="描述信息" :value="ideaTitleName"> <van-cell required is-link title="建议主题" @click="onShowPicker()" :value="ideaTitleName">
<!-- <div>{{ cascaderValue }}</div> --> <!-- <div>{{ cascaderValue }}</div> -->
</van-cell> </van-cell>
@ -22,7 +22,7 @@
<van-uploader max-size="10 * 1024 * 1024" v-model="fileList1" show-upload <van-uploader max-size="10 * 1024 * 1024" v-model="fileList1" show-upload
:after-read="afterReadFile" accept=".doc,.docx,.pdf" /> :after-read="afterReadFile" accept=".doc,.docx,.pdf" />
<span <span
style="color:#C1C1C1; font-size: 15px;line-height: 18px">您也可以将建议内容整理成文档上传支持wordpdf格式文件大小不超过5Mb.</span> style="color:#C1C1C1; font-size: 15px;line-height: 18px">您也可以将建议内容整理成文档上传支持wordpdf格式文件大小不超过5Mb</span>
</div> </div>
</template> </template>
</van-field> </van-field>
@ -117,6 +117,7 @@ export default {
ideaTitleTypeList:[], ideaTitleTypeList:[],
adviceType:false, adviceType:false,
formData:{ formData:{
attachmentList:[],
age:"", age:"",
ideaTitleType:"", ideaTitleType:"",
operationType:"4", operationType:"4",
@ -208,12 +209,13 @@ export default {
file.message = '上传成功' file.message = '上传成功'
file.url = res.data.url file.url = res.data.url
let fileInfo = { let fileInfo = {
type: type, // type: type,
format: format, // format: format,
name: name, name: name,
url: url url: url
}; };
this.formData.imageList.push(res.data.url) this.formData.attachmentList.push(fileInfo)
}) })
.catch(() => { .catch(() => {

8
src/views/peoSuggestion/topicListDetail.vue

@ -7,12 +7,12 @@
<div class="font-size15 gray">{{ ProblemDescription.agencyName }}</div> <div class="font-size15 gray">{{ ProblemDescription.agencyName }}</div>
<div class="font-size15 gray">{{ ProblemDescription.updatedTime }}</div> <div class="font-size15 gray">{{ ProblemDescription.updatedTime }}</div>
</div> </div>
<div class="m-bottom5 font-size18">{{ ProblemDescription.subjectContent }}</div> <div class="m-bottom5 font-size18" ><div v-html="ProblemDescription.subjectContent"></div></div>
<div class="image-grid" v-for="item in ProblemDescription.attachmentList" > <!-- <div class="image-grid" v-for="item in ProblemDescription.attachmentList" >
<div class="grid-item "> <div class="grid-item ">
<img :src="item" style="width: 105px; height: 75px;"> <img :src="item" style="width: 105px; height: 75px;">
</div> </div>
</div> </div> -->
</div> </div>
<div class="flex flex-center1 " style="position: fixed; bottom:60px; left: 0px; right:0px;"> <div class="flex flex-center1 " style="position: fixed; bottom:60px; left: 0px; right:0px;">
@ -117,7 +117,7 @@ export default {
} }
await getDetailSpecial(parm).then(res => { await getDetailSpecial(parm).then(res => {
this.ProblemDescription = res.data; this.ProblemDescription = res.data;
this.ProblemDescription.subjectContent= this.ProblemDescription.subjectContent.replace(/<[^>]*>/g, '') this.ProblemDescription.subjectContent= this.ProblemDescription.subjectContent.replace(/<img/gi,'<img style="max-width:100%;height:auto;margin:0 auto;display:block"')
this.dataValue = res.data.opposeNum + res.data.supportNum this.dataValue = res.data.opposeNum + res.data.supportNum
}) })
}, },

Loading…
Cancel
Save