Browse Source

事件管理样式修改,

feature
mk 3 years ago
parent
commit
2eb5de50b9
  1. 2
      src/App.vue
  2. 69
      src/views/modules/communityService/gxxq/addForm.vue
  3. 2
      src/views/modules/shequzhili/event/cpts/event-detail.vue
  4. 33
      src/views/modules/shequzhili/event/cpts/process-form-demand.vue
  5. 2
      src/views/modules/shequzhili/event/cpts/process-form-project.vue
  6. 920
      src/views/modules/shequzhili/event/eventList.vue
  7. 2
      src/views/modules/shequzhili/issue/cpts/add.vue
  8. 13
      src/views/modules/shequzhili/issue/cpts/eventDetail.vue
  9. 2
      src/views/modules/shequzhili/issue/cpts/process-form.vue
  10. 200
      src/views/modules/shequzhili/issue/cpts/suggestDetail.vue

2
src/App.vue

@ -155,7 +155,7 @@ export default {
position: relative; position: relative;
max-height: 83vh; max-height: 83vh;
box-sizing: border-box; box-sizing: border-box;
padding: 0 0 20px !important; padding: 0 0 16px !important;
.dialog-h-content { .dialog-h-content {
max-height: calc(83vh - 80px); max-height: calc(83vh - 80px);
box-sizing: border-box; box-sizing: border-box;

69
src/views/modules/communityService/gxxq/addForm.vue

@ -108,7 +108,12 @@
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item label="指派服务" label-width="150px"> <el-form-item label="指派服务" label-width="150px">
<el-switch v-model="formData.assignFlag"> </el-switch> <el-switch
v-model="formData.assignFlag"
:active-value="1"
:inactive-value="0"
>
</el-switch>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form :model="newFormData" :rules="newDataRule" ref="ref_gxxq_form1"> <el-form :model="newFormData" :rules="newDataRule" ref="ref_gxxq_form1">
@ -334,7 +339,7 @@ export default {
formData: { formData: {
serviceTypeLevel1Id: "", // id serviceTypeLevel1Id: "", // id
commonServiceTypeId: "", // id commonServiceTypeId: "", // id
assignFlag: false, assignFlag: 0,
resiSearchTagId: "", // resiSearchTagId: "", //
resiSearchTagName: "", // resiSearchTagName: "", //
title: "", // title: "", //
@ -362,7 +367,7 @@ export default {
], ],
content: [ content: [
{ required: true, message: "详细说明不能为空", trigger: "bulr" }, { required: true, message: "详细说明不能为空", trigger: "bulr" },
{ max: 1000, message: "不能超出1000个字符" , trigger: 'blur'}, { max: 1000, message: "不能超出1000个字符", trigger: "blur" },
], ],
}, },
newDataRule: { newDataRule: {
@ -437,17 +442,14 @@ export default {
this.formData.commonServiceTypeId = data.commonServiceTypeId; this.formData.commonServiceTypeId = data.commonServiceTypeId;
this.formData.title = data.title; this.formData.title = data.title;
this.formData.content = data.content; this.formData.content = data.content;
this.formData.assignFlag = data.assignFlag
this.formData.resiSearchTagId = data.resiSearchTagId; this.formData.resiSearchTagId = data.resiSearchTagId;
this.newFormData.serviceTimeStart = data.assignInfo.serviceTimeStart; this.newFormData.serviceTimeStart = data.assignInfo.serviceTimeStart;
this.newFormData.serviceTimeEnd = data.assignInfo.serviceTimeEnd; this.newFormData.serviceTimeEnd = data.assignInfo.serviceTimeEnd;
this.newFormData.serverOrgType = data.assignInfo.serverOrgType; this.newFormData.serverOrgType = data.assignInfo.serverOrgType;
this.newFormData.serverOrgId = data.assignInfo.serverOrgId; this.newFormData.serverOrgId = data.assignInfo.serverOrgId;
this.newFormData.noticeApproches = data.assignInfo.noticeApproches; this.newFormData.noticeApproches = data.assignInfo.noticeApproches;
if (data.assignFlag == 1) {
this.formData.assignFlag = true;
} else {
this.formData.assignFlag = false;
}
for (let i in data.assignInfo.serviceScopeList) { for (let i in data.assignInfo.serviceScopeList) {
this.newFormData.serviceScopeList.push( this.newFormData.serviceScopeList.push(
data.assignInfo.serviceScopeList[i].objectId data.assignInfo.serviceScopeList[i].objectId
@ -628,7 +630,6 @@ export default {
// console.log(item[key]); // console.log(item[key]);
for (let i of vals) { for (let i of vals) {
if (item[key] === i) { if (item[key] === i) {
console.log(item[key]);
this.sarr.push(item); this.sarr.push(item);
} else if (item["objectType"] == "district") { } else if (item["objectType"] == "district") {
this.getLastItem(item.children, vals, key); this.getLastItem(item.children, vals, key);
@ -673,12 +674,6 @@ export default {
}, },
async addFuwu() { async addFuwu() {
// 01
if (this.formData.assignFlag) {
this.formData.assignFlag = 1;
} else {
this.formData.assignFlag = 0;
}
// ,'0' // ,'0'
if (this.newFormData.noticeApproches.length == 0) { if (this.newFormData.noticeApproches.length == 0) {
this.newFormData.noticeApproches.push(0); this.newFormData.noticeApproches.push(0);
@ -706,9 +701,27 @@ export default {
this.newFormData.serviceScopeList.forEach((item) => { this.newFormData.serviceScopeList.forEach((item) => {
if (typeof item != "string") { if (typeof item != "string") {
arr.push(item); arr.push(item);
}; }
});
//
let isOk = false;
arr.findIndex((item) => {
if (
item.objectType == "neighborhood" ||
item.objectType == "agency" ||
item.objectType == "grid"
) {
isOk = true;
} else {
return (isOk = false);
}
}); });
//, console.log(isOk);
if (!isOk) {
this.newArr = [];
this.$message.error("请选择正确的网格,社区,楼栋!");
return;
}
this.newFormData.serviceScopeList = arr; this.newFormData.serviceScopeList = arr;
var url = ""; var url = "";
var params = {}; var params = {};
@ -736,15 +749,15 @@ export default {
} }
// const url = 'http://yapi.elinkservice.cn/mock/245/governance/icServiceProject/service/initiate' // const url = 'http://yapi.elinkservice.cn/mock/245/governance/icServiceProject/service/initiate'
console.log(params); console.log(params);
const { data, code, msg } = await requestPost(url, params); // const { data, code, msg } = await requestPost(url, params);
if (code === 0) { // if (code === 0) {
this.$message.success("添加成功"); // this.$message.success("");
this.resetData(); // this.resetData();
this.$emit("handleComfirm"); // this.$emit("handleComfirm");
} else if(code>=8000){ // } else if(code>=8000){
this.$message.error(msg); // this.$message.error(msg);
} // }
}, },
handleCancle() { handleCancle() {
@ -756,7 +769,7 @@ export default {
this.formData = { this.formData = {
serviceTypeLevel1Id: "", // id serviceTypeLevel1Id: "", // id
commonServiceTypeId: "", // id commonServiceTypeId: "", // id
assignFlag: false, assignFlag: 0,
resiSearchTagId: "", // resiSearchTagId: "", //
resiSearchTagName: "", // resiSearchTagName: "", //
title: "", // title: "", //
@ -770,7 +783,7 @@ export default {
serviceTimeEnd: "", //yyyy-MM-dd serviceTimeEnd: "", //yyyy-MM-dd
serverOrgType: "", // community_org ic_user_volunteer party_unit serverOrgType: "", // community_org ic_user_volunteer party_unit
serverOrgId: "", //Id serverOrgId: "", //Id
} };
}, },
// //
startLoading() { startLoading() {

2
src/views/modules/shequzhili/event/cpts/event-detail.vue

@ -61,7 +61,7 @@
</div> </div>
<div :class="['m-info-prop',{'m-info-prop-vis':source==='visiual'}]"> <div :class="['m-info-prop',{'m-info-prop-vis':source==='visiual'}]">
<span class="u-info-title-2">痛点难点</span> <span class="u-info-title-2">痛点难点</span>
<span>{{ info.difficultPointName }}</span> <span>{{ info.markTypeName|| '--' }}</span>
</div> </div>
<div v-if="info.operationType==='1'" <div v-if="info.operationType==='1'"
:class="['m-info-prop',{'m-info-prop-vis':source==='visiual'}]"> :class="['m-info-prop',{'m-info-prop-vis':source==='visiual'}]">

33
src/views/modules/shequzhili/event/cpts/process-form-demand.vue

@ -501,26 +501,33 @@ export default {
} }
}, },
handleServiceChange (type, val) { async handleServiceChange(serverOrgType,val) {
if (val === "social_org") { if (!val) return false;
if (type === "add") { if (this.formData.categoryCode == "") {
this.getServiceuserList(val, "add_demand"); this.$message.error("请先选择服务类型!");
} else { return;
this.getServiceuserList(val, "query_demand"); }
} const url = "/actual/base/serviceitem/listServerOrg";
} else { let params = {
this.getServiceuserList(val, ""); serviceTypeId: this.formData.categoryCode,
serverOrgType: val,
businessType: "common_service",
};
let { data, code, msg } = await requestPost(url, params);
if (code == 0) {
this.serviceOptiondList = data;
} else if (code >= 8000) {
this.$message.error(msg);
} }
}, },
async getServiceuserList (serviceType) {
async getServiceuserList (serviceType, query) {
if (!serviceType) return false; if (!serviceType) return false;
const { demandUserId } = this.formData; const { demandUserId } = this.formData;
const params = { const params = {
serviceName: "", serviceName: this.formData.categoryCode,
serviceType: serviceType, serviceType: serviceType,
queryPurpose: query, queryPurpose: 'query',
}; };

2
src/views/modules/shequzhili/event/cpts/process-form-project.vue

@ -120,7 +120,7 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="图片/附件" <el-form-item label="图片/附件"
label-width="150px" label-width="150px"
:class="{'form-item':source==='visiual'}" :class="{'form-item':source==='visiual'}"
prop="internalFile"> prop="internalFile">

920
src/views/modules/shequzhili/event/eventList.vue

File diff suppressed because it is too large

2
src/views/modules/shequzhili/issue/cpts/add.vue

@ -767,7 +767,7 @@ export default {
<style lang="scss"> <style lang="scss">
.el-dialog__body { .el-dialog__body {
padding: 0 10px 20px !important; padding: 0 10px 16px !important;
} }
.hide { .hide {

13
src/views/modules/shequzhili/issue/cpts/eventDetail.vue

@ -81,15 +81,12 @@
</div> </div>
<div class="div-btn"> <el-row>
<el-button size="small" <el-col :span="24" align="right">
<el-button size="small" style="margin-right:16px"
@click="handleCancle"> </el-button> @click="handleCancle"> </el-button>
<!-- <el-button v-if="formType != 'detail'" </el-col>
size="small" </el-row>
type="primary"
:disabled="btnDisable"
@click="handleComfirm"> </el-button> -->
</div>
</div> </div>
</template> </template>

2
src/views/modules/shequzhili/issue/cpts/process-form.vue

@ -325,6 +325,6 @@ export default {
<style> <style>
.el-dialog__body { .el-dialog__body {
padding: 0 10px 20px !important; padding: 0 10px 16px !important;
} }
</style> </style>

200
src/views/modules/shequzhili/issue/cpts/suggestDetail.vue

@ -1,82 +1,87 @@
<template> <template>
<div class="epidemic-form"> <div class="epidemic-form">
<div class="dialog-h-content scroll-h"> <div class="dialog-h-content scroll-h">
<el-table :data="suggestionList" <el-table
border :data="suggestionList"
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}" border
class="table" class="table"
style="width: 100%" style="width: 100%"
:height="maxTableHeight"> :height="maxTableHeight"
>
<el-table-column label="序号" <el-table-column
fixed="left" label="序号"
type="index" fixed="left"
align="center" type="index"
width="50" /> align="center"
width="50"
<el-table-column prop="userShowName" />
align="center"
width="80" <el-table-column
label="姓名" prop="userShowName"
:show-overflow-tooltip="true"> align="center"
width="80"
label="姓名"
:show-overflow-tooltip="true"
>
</el-table-column> </el-table-column>
<el-table-column prop="aititudeShow" <el-table-column
label="投票" prop="aititudeShow"
width="80" label="投票"
align="center" width="80"
:show-overflow-tooltip="true"> align="center"
:show-overflow-tooltip="true"
>
</el-table-column> </el-table-column>
<el-table-column prop="timeShow" <el-table-column
align="center" prop="timeShow"
width="150" align="center"
label="时间" width="150"
:show-overflow-tooltip="true"> label="时间"
:show-overflow-tooltip="true"
>
</el-table-column> </el-table-column>
<el-table-column prop="suggestion" <el-table-column
align="center" prop="suggestion"
min-width="180" align="center"
:show-overflow-tooltip="true" min-width="180"
label="建议"> :show-overflow-tooltip="true"
label="建议"
>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div> <div>
<el-pagination @size-change="handleSizeChange" <el-pagination
@current-change="handleCurrentChange" @size-change="handleSizeChange"
:current-page.sync="pageNo" @current-change="handleCurrentChange"
:page-sizes="[20, 50, 100, 200]" :current-page.sync="pageNo"
:page-size="parseInt(pageSize)" :page-sizes="[20, 50, 100, 200]"
layout="sizes, prev, pager, next"> :page-size="parseInt(pageSize)"
layout="sizes, prev, pager, next"
>
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
<div class="div-btn"> <el-row>
<el-button size="small" <el-col :span="24" align="right">
@click="handleCancle"> </el-button> <el-button size="small" @click="handleCancle" style="margin-left:16px;"> </el-button></el-col
<!-- <el-button v-if="formType != 'detail'" >
size="small" </el-row>
type="primary"
:disabled="btnDisable"
@click="handleComfirm"> </el-button> -->
</div>
</div> </div>
</template> </template>
<script> <script>
import { Loading } from "element-ui"; // Loading
import { Loading } from 'element-ui' // Loading import { requestPost } from "@/js/dai/request";
import { requestPost } from '@/js/dai/request'
import dateFormat from "dai-js/tools/dateFormat"; import dateFormat from "dai-js/tools/dateFormat";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
let loading // let loading; //
export default { export default {
data () { data() {
return { return {
initLoading: false, initLoading: false,
@ -84,111 +89,100 @@ export default {
pageNo: 1, pageNo: 1,
pageSize: window.localStorage.getItem("pageSize") || 20, pageSize: window.localStorage.getItem("pageSize") || 20,
total: 1, total: 1,
};
}
}, },
components: {}, components: {},
async mounted () { async mounted() {
const { user } = this.$store.state const { user } = this.$store.state;
this.agencyId = user.agencyId this.agencyId = user.agencyId;
}, },
methods: { methods: {
async initForm() {
this.startLoading();
await this.getSuggestion();
async initForm () { this.initLoading = true;
this.startLoading() this.endLoading();
await this.getSuggestion()
this.initLoading = true
this.endLoading()
}, },
async getSuggestion () { async getSuggestion() {
const url = "/governance/issuesuggestion/list" const url = "/governance/issuesuggestion/list";
let params = { let params = {
issueId: this.issueId, issueId: this.issueId,
pageNo: this.pageNo, pageNo: this.pageNo,
pageSize: this.pageSize, pageSize: this.pageSize,
} };
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params);
if (code === 0) { if (code === 0) {
data.forEach(element => { data.forEach((element) => {
element.userShowName = element.userShowName || '匿名' element.userShowName = element.userShowName || "匿名";
element.aititudeShow = element.aititude === 'opposition' ? '反对' : '支持' element.aititudeShow =
element.aititude === "opposition" ? "反对" : "支持";
element.timeShow = dateFormat( element.timeShow = dateFormat(
new Date(element.publishTime * 1000), new Date(element.publishTime * 1000),
"yyyy-MM-dd hh:mm" "yyyy-MM-dd hh:mm"
); );
}); });
this.suggestionList = data this.suggestionList = data;
} else { } else {
this.$message.error(msg) this.$message.error(msg);
} }
}, },
handleSizeChange (val) { handleSizeChange(val) {
this.pageSize = val; this.pageSize = val;
window.localStorage.setItem("pageSize", val); window.localStorage.setItem("pageSize", val);
this.getSuggestion(); this.getSuggestion();
}, },
handleCurrentChange (val) { handleCurrentChange(val) {
this.pageNo = val; this.pageNo = val;
this.getSuggestion(); this.getSuggestion();
}, },
handleCancle () { handleCancle() {
// this.resetData() // this.resetData()
this.$emit('diaDetailClose') this.$emit("diaDetailClose");
}, },
watchImg (src) { watchImg(src) {
window.open(src); window.open(src);
}, },
resetData () { resetData() {
this.topicInfo = {};
this.topicInfo = {}
}, },
// //
startLoading () { startLoading() {
loading = Loading.service({ loading = Loading.service({
lock: true, // lock: true, //
text: '正在加载……', // text: "正在加载……", //
background: 'rgba(0,0,0,.7)' // background: "rgba(0,0,0,.7)", //
}) });
}, },
// //
endLoading () { endLoading() {
// clearTimeout(timer); // clearTimeout(timer);
if (loading) { if (loading) {
loading.close() loading.close();
} }
} },
}, },
computed: { computed: {
maxTableHeight () { maxTableHeight() {
return this.$store.state.inIframe return this.$store.state.inIframe
? this.clientHeight - 410 + this.iframeHeigh ? this.clientHeight - 410 + this.iframeHeigh
: this.clientHeight - 410; : this.clientHeight - 410;
}, },
...mapGetters(["clientHeight", "iframeHeight"]), ...mapGetters(["clientHeight", "iframeHeight"]),
}, },
props: { props: {
issueId: { issueId: {
type: String, type: String,
default: '' default: "",
}, },
} },
} };
</script> </script>

Loading…
Cancel
Save