<template>
|
<div class="app_fixed">
|
<transition name="fade" v-for="(i, j) in item" :key="j + '-fixed-box'">
|
<v-f
|
:title="i.title"
|
:w="i.width"
|
:h="i.height"
|
:move="i.move"
|
:ids="i.id"
|
:type="i.type"
|
:pad="i.padding"
|
:sty="i.class"
|
:scroll="i.scroll"
|
@on-save="onSave"
|
@on-next="onNext"
|
v-if="i.show"
|
>
|
<v-m-a
|
v-if="i.type === 'member-add'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-m-a>
|
<v-m-i
|
v-if="i.type === 'member-import'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-m-i>
|
<v-p-a
|
v-if="i.type === 'party-add'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-p-a>
|
<v-c-c
|
v-if="i.type === 'com-cancel'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-c-c>
|
<v-s-c
|
v-if="i.type === 'com-cancel-serve'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-s-c>
|
<v-c-e
|
v-if="i.type === 'clap-examine'"
|
:door="door.t === i.type ? door : {}"
|
:doorNext="doorNext.t === i.type ? doorNext : {}"
|
:item="i.data"
|
></v-c-e>
|
<v-c-m
|
v-if="i.type === 'clap-examinemore'"
|
:door="door.t === i.type ? door : {}"
|
:doorNext="doorNext.t === i.type ? doorNext : {}"
|
:item="i.data"
|
></v-c-m>
|
<v-c-f
|
v-if="i.type === 'clap-feedback'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-c-f>
|
<v-c-e-g
|
v-if="i.type === 'grideGovernance-examine'"
|
:door="door.t === i.type ? door : {}"
|
:doorNext="doorNext.t === i.type ? doorNext : {}"
|
:item="i.data"
|
></v-c-e-g>
|
<v-c-m-g
|
v-if="i.type === 'grideGovernance-examinemore'"
|
:door="door.t === i.type ? door : {}"
|
:doorNext="doorNext.t === i.type ? doorNext : {}"
|
:item="i.data"
|
></v-c-m-g>
|
<v-c-f-g
|
v-if="i.type === 'grideGovernance-feedback'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-c-f-g>
|
<v-w-d
|
v-if="i.type === 'wish-distribution'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-w-d>
|
<v-w-e
|
v-if="i.type === 'wish-examine'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-w-e>
|
<v-w-f
|
v-if="i.type === 'wish-feedback'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-w-f>
|
<v-a-c
|
v-if="i.type === 'act-cancel'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-a-c>
|
<v-v-c
|
v-if="i.type === 'act-cancel-voluteer'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-v-c>
|
<v-f-c
|
v-if="i.type === 'face-cancel'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-f-c>
|
<v-p-s
|
v-if="i.type === 'pop-set'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-p-s>
|
<v-p-s-s
|
v-if="i.type === 'pop-set1'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-p-s-s>
|
<v-v-a
|
v-if="i.type === 'village-add'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-v-a>
|
<v-v-f-a
|
v-if="i.type === 'village-fast-add'"
|
:item="i.data"
|
:door="door.t === i.type ? door : {}"
|
></v-v-f-a>
|
<v-v-e
|
v-if="i.type === 'village-edit'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-v-e>
|
<v-o-a
|
v-if="i.type === 'volunteer-add'"
|
:item="i.data"
|
:door="door.t === i.type ? door : {}"
|
></v-o-a>
|
<v-o-e
|
v-if="i.type === 'volunteer-examine'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-o-e>
|
<v-g-a
|
v-if="i.type === 'grid-member-add'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-g-a>
|
<v-g-p
|
v-if="i.type === 'grid-patrol-detail'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-g-p>
|
<v-s-u
|
v-if="i.type === 'sys-user'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-s-u>
|
<v-t-a
|
v-if="i.type === 'talk-add'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-t-a>
|
<v-t-e
|
v-if="i.type === 'talk-edit'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-t-e>
|
<v-t-s
|
v-if="i.type === 'talk-send'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-t-s>
|
<v-t-r
|
v-if="i.type === 'talk-result'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-t-r>
|
<v-t-c
|
v-if="i.type === 'talk-comment'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-t-c>
|
<v-s-a
|
v-if="i.type === 'service-add'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-s-a>
|
<v-s-K
|
v-if="i.type === 'workPeople-add'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-s-K>
|
<v-m-ad
|
v-if="i.type === 'menu-add'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-m-ad>
|
<v-q-d
|
v-if="i.type === 'quest-detail'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-q-d>
|
<v-u-c
|
v-if="i.type === 'user-card'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-u-c>
|
<v-n-s
|
v-if="i.type === 'neigh-send'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-n-s>
|
<v-n-a
|
v-if="i.type === 'neigh-add'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-n-a>
|
<v-n-c
|
v-if="i.type === 'neigh-comment'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-n-c>
|
<v-a-s
|
v-if="i.type === 'auth-send'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-a-s>
|
<v-a-sw
|
v-if="i.type === 'auth-show'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-a-sw>
|
<v-a-o-c
|
v-if="i.type === 'aff-old-cer'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-a-o-c>
|
<v-a-o-c-s
|
v-if="i.type === 'aff-old-cer-send'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-a-o-c-s>
|
<v-a-v
|
v-if="i.type === 'aff-voc'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-a-v>
|
<v-a-a
|
v-if="i.type === 'aff-act'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-a-a>
|
<v-a-o
|
v-if="i.type === 'aff-ino'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-a-o>
|
<v-o-c
|
v-if="i.type === 'old-cer'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-o-c>
|
<v-o-s
|
v-if="i.type === 'old-see'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-o-s>
|
<v-o-r
|
v-if="i.type === 'old-rec'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-o-r>
|
<v-o-rs
|
v-if="i.type === 'old-recs'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-o-rs>
|
<v-a-tc
|
v-if="i.type === 'act-topic'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-a-tc>
|
<v-a-ec
|
v-if="i.type === 'act-editpic'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-a-ec>
|
<v-fi-s
|
v-if="i.type === 'fin-sum'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-fi-s>
|
<v-s-r
|
v-if="i.type === 'sa-report'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
></v-s-r>
|
<v-y-c
|
v-if="i.type === 'dynamic-show'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
>
|
</v-y-c>
|
<v-y-e
|
v-if="i.type === 'dynamic-edits'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
>
|
</v-y-e>
|
<v-y-d
|
v-if="i.type === 'dynamic-add'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
>
|
</v-y-d>
|
<v-r-k
|
v-if="i.type === 'workPeople-add'"
|
:door="door.t === i.type ? door : {}"
|
:item="i.data"
|
>
|
</v-r-k>
|
</v-f>
|
</transition>
|
</div>
|
</template>
|
|
<script>
|
import vF from "./_model";
|
import vMA from "./child/member_add"; // 党员管理-添加
|
import vMI from "./child/member_import"; // 党员管理-导入
|
import vPA from "./child/party_add"; // 社区党委-新增
|
import vCC from "./child/com_cancel"; // 社区党建-党员活动-取消
|
import vSC from "./child/com_cancel2"; // 社区党建-党员活动-取消
|
import vCE from "./child/clap/clap_examine"; // 社区活动-随手拍-审核
|
import vCM from "./child/clap/clap_examinemore"; // 社区活动-随手拍-批量处理
|
import vCF from "./child/clap/clap_feedback"; // 社区活动-随手拍-反馈
|
|
import vCEG from "./child/clap_examine"; // 社区活动-随手拍-审核
|
import vCMG from "./child/clap_examinemore"; // 社区活动-随手拍-批量处理
|
import vCFG from "./child/clap_feedback"; // 社区活动-随手拍-反馈
|
|
import vWF from "./child/wish_feedback"; // 微心愿-反馈
|
import vWD from "./child/wish_distribution"; // 社区活动-微心愿-分配
|
import vWE from "./child/wish_examine"; // 社区活动-微心愿-审核心愿
|
import vAC from "./child/act_cancel"; // 社区活动-社区活动-取消
|
import vVC from "./child/act-cancel-voluteer"; // 志愿者活动-志愿者活动-取消
|
import vFC from "./child/face_cancel"; // 社区管理-人脸-驳回
|
import vPS from "./child/pop_set"; // 社区管理-人口管理-设置标签
|
import vPSS from "./child/pop_set1"; // 社区管理-人口管理-设置标签
|
import vVA from "./child/village_add"; // 社区管理-小区管理-新增
|
import vVFA from "./child/village_fast_add"; // 社区管理-小区管理-详情-批量添加 批量添加[楼栋] 批量添加[单元] 批量添加[楼层] 批量添加[门户]
|
import vVE from "./child/village_edit"; // 社区管理-小区管理-详情-编辑
|
import vOA from "./child/volunteer_add"; // 社区管理-志愿者管理-新增 编辑
|
import vOE from "./child/volunteer_examine"; // 社区管理-志愿者管理-审核
|
import vGA from "./child/grid_member_add"; // 网格管理-网格员-新增
|
import vGP from "./child/grid_patrol_detail"; // 网格管理-巡逻-详情
|
import vSU from "./child/sys_user"; // 系统设置-角色管理-新增
|
import vTA from "./child/talk_add"; // 一起议-添加议事
|
import vTS from "./child/talk_send"; // 一起议-回复议事
|
import vTE from "./child/talk_edit"; //编辑
|
import vTR from "./child/talk_result"; // 一起议-公布内容
|
import vTC from "./child/talk_comment"; // 一起议-查看评论
|
import vSA from "./child/service_add"; // 服务-添加
|
import vSK from "./child/workPeople_add"; // 服务-添加
|
import vMAd from "./child/menu_add"; // 菜单-添加
|
import vQD from "./child/quest_detail"; // 问卷调查-调查结果-详细信息
|
import vUC from "./child/user_cards"; // 电子档案
|
import vNS from "./child/neigh_send"; // 邻里圈-审核
|
import vNA from "./child/neigh_add"; // 邻里圈-新增
|
import vNC from "./child/neigh_comment"; // 邻里圈-评论查看
|
import vAS from "./child/authentication_send"; // 党员认证-审核
|
import vASw from "./child/authentication_show"; // 党员认证-查看
|
import vAOC from "./child/aff_old_cer"; // 高龄查看
|
import vAOCS from "./child/aff_old_cer_send"; // 高龄反馈
|
import vAA from "./child/aff_act";
|
import vAV from "./child/aff_voc";
|
import vAO from "./child/aff_ico";
|
import vOC from "./child/old_cer"; // [新]高龄老人-查看/编辑
|
import vOS from "./child/old_see"; // [新]高龄老人-查看/编辑
|
import vOR from "./child/old_rec"; // [新]高龄老人-生存认证 查看
|
import vORs from "./child/old_rec_send"; // [新]高龄老人-生存认证 反馈
|
import vATc from "./child/act_topic.vue"; // 话题
|
import vAEc from "./child/act-editpic.vue"; // 编辑话题
|
import vFiS from "./child/fin_sum.vue"; // 结算
|
import vSR from "./child/safety_report.vue"; // 安全隐患报告 - 处理
|
import vYC from "./child/dynamic_details.vue"; //查看分类动态
|
import vYE from "./child/dynamic_edits.vue"; //修改分类动态
|
import vYD from "./child/dynamic_add.vue"; //修改分类动态
|
import defaultItem from "./f";
|
import { mapState } from "vuex";
|
export default {
|
props: {},
|
components: {
|
vSR,
|
vFiS,
|
vATc,
|
vOR,
|
vSC,
|
vORs,
|
vOC,
|
vOS,
|
vAO,
|
vAA,
|
vAV,
|
vAOC,
|
vAOCS,
|
vF,
|
vMA,
|
vMI,
|
vPA,
|
vCC,
|
vPSS,
|
vCE,
|
vCM,
|
vCF,
|
vCEG,
|
vCMG,
|
vCFG,
|
vWD,
|
vWE,
|
vAC,
|
vVC,
|
vFC,
|
vPS,
|
vVA,
|
vVFA,
|
vTR,
|
vTE,
|
vVE,
|
vOA,
|
vOE,
|
vGA,
|
vGP,
|
vSU,
|
vWF,
|
vSK,
|
vTA,
|
vTS,
|
vTC,
|
vSA,
|
vMAd,
|
vQD,
|
vUC,
|
vNS,
|
vNA,
|
vNC,
|
vASw,
|
vAS,
|
vYC,
|
vYE,
|
vYD,
|
vAEc,
|
},
|
data() {
|
return {
|
item: [],
|
default: [],
|
door: { t: "", r: 0 },
|
doorNext: { t: "", r: 0 },
|
};
|
},
|
watch: {
|
item: {
|
handler() {
|
this.changeItemLen();
|
},
|
deep: true,
|
},
|
vuex_fixed: {
|
handler(n) {
|
this.changeFixed(n);
|
},
|
deep: true,
|
},
|
"$route.path"() {
|
this.item = [];
|
},
|
},
|
computed: {
|
...mapState({ vuex_fixed: "fixed" }),
|
},
|
methods: {
|
onSave(v) {
|
this.door = { t: v, r: Math.random() };
|
},
|
onNext(v) {
|
this.doorNext = { t: v, r: Math.random() };
|
},
|
changeItemLen() {
|
let a = this.item.filter((k) => {
|
return k.show;
|
});
|
if (!a.length) {
|
this.$store.dispatch("setZIndex", 1);
|
}
|
},
|
changeFixed(i) {
|
switch (i.event) {
|
case "del": // 删除某一个
|
this.item = this.item.filter((k) => {
|
return k.type !== i.type;
|
});
|
break;
|
case "add":
|
let rs = i.data || {};
|
let or = this.default.filter((k) => {
|
return k.type === rs.type;
|
});
|
if (or.length) {
|
or = or[0];
|
if (rs.title) {
|
or.title = rs.title;
|
}
|
if (rs.scroll !== undefined) {
|
or.scroll = rs.scroll;
|
}
|
or.data = Object.assign(or.data, rs.data);
|
or.show = true;
|
// console.log(or);
|
this.item.push(or);
|
}
|
break;
|
default:
|
console.log(i);
|
}
|
},
|
},
|
mounted() {
|
this.default = defaultItem;
|
},
|
};
|
</script>
|
<style lang='less' scope>
|
.member_add_main {
|
background-color: #fff;
|
}
|
.app_fixed {
|
position: absolute;
|
left: 0;
|
top: 0;
|
z-index: 100;
|
}
|
</style>
|