Browse Source

Merge branch 'dev-shujirizhi' into dev

bugfix/member_move_out
jiangyy 4 years ago
parent
commit
9a7e4742e3
  1. BIN
      src/assets/img/unopen-hint.png
  2. 2
      src/assets/scss/c/config.scss
  3. 15
      src/assets/scss/c/function.scss
  4. 49
      src/assets/scss/modules/management/secretaryLog.scss
  5. 62
      src/assets/scss/modules/shujirizhi-notice.scss
  6. 37
      src/js/store/index.js
  7. 34
      src/router/index.js
  8. 91
      src/views/main-content.vue
  9. 44
      src/views/main.vue
  10. 10
      src/views/modules/base/resi.vue
  11. 300
      src/views/modules/communityService/dqfwzx/index.vue
  12. 8
      src/views/modules/communityService/sqzzz/index.vue
  13. 102
      src/views/modules/secretaryLog/cpts/notice.vue
  14. 177
      src/views/modules/secretaryLog/difficulty/difficultyDetail.vue
  15. 383
      src/views/modules/secretaryLog/difficulty/difficultyForm.vue
  16. 531
      src/views/modules/secretaryLog/difficulty/difficultyList.vue
  17. 182
      src/views/modules/secretaryLog/humanisticCare/careDetail.vue
  18. 457
      src/views/modules/secretaryLog/humanisticCare/careForm.vue
  19. 603
      src/views/modules/secretaryLog/humanisticCare/careList.vue
  20. 51
      src/views/modules/unopen.vue
  21. 8
      src/views/pages/index.vue
  22. 103
      src/views/tips.vue

BIN
src/assets/img/unopen-hint.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

2
src/assets/scss/c/config.scss

@ -11,7 +11,7 @@ $w1: 1200px;
//网站主色 primary color bgcolor
$c1: #ff4c52; // dd000f
$c2: #3b7cff;
$c2: #3e8ef7;
//灰度色 用于字体
$fc0: #010033;

15
src/assets/scss/c/function.scss

@ -87,6 +87,15 @@
text-overflow: ellipsis;
word-wrap: normal;
}
// 强制文本换行 多行
@mixin toeM($num) {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: $num;
-webkit-box-orient: vertical;
}
// 图片居中
@mixin img_hub {
position: absolute;
@ -206,7 +215,7 @@
}
//党员积分排行榜
@mixin img123 {
width:20px;
width: 20px;
height: 20px;
border-radius: 50%;
position: absolute;
@ -225,7 +234,7 @@
width: 67.15px;
height: 67.15px;
position: absolute;
display: block;
display: block;
top: 4px;
border-radius: 100%;
}
@ -258,11 +267,9 @@
display: block;
z-index: 10;
margin-top: 40px;
}
@mixin list {
list-style-type: none;
position: absolute;
padding: 0px;
}

49
src/assets/scss/modules/management/secretaryLog.scss

@ -0,0 +1,49 @@
.div_form {
margin: 20px 50px;
}
.form_item {
display: flex;
justify-content: flex-start;
font-size: 15px;
.item_title {
text-align: right;
flex: 0 0 150px;
line-height: 36px;
}
.item_content {
margin-left: 30px;
line-height: 36px;
}
.attach_item {
display: flex;
justify-content: flex-start;
align-items: center;
margin-left: 30px;
line-height: 36px;
.attach_item_name {
margin-left: 10px;
color: #3e8ef7;
text-decoration: underline;
}
.attach_item_name:hover {
cursor: pointer;
color: #1461c7;
}
}
}
.div_btn {
margin-top: 15px;
display: flex;
width: 100%;
justify-content: center;
.btn_right {
margin-left: 50px;
}
}

62
src/assets/scss/modules/shujirizhi-notice.scss

@ -0,0 +1,62 @@
@import "../c/anime";
@import "../c/config";
@import "../c/function";
.m-notice {
position: fixed;
z-index: 10000;
bottom: 0;
right: 0;
background-color: #fff;
box-shadow: 0 0 10px 0 rgba(#000, 0.1);
width: 500px;
height: 300px;
box-sizing: border-box;
padding: 25px;
.header {
margin-bottom: 20px;
font-size: 24px;
font-weight: bold;
color: #3e8ef7;
}
.type {
margin-bottom: 10px;
font-size: 20px;
font-weight: bold;
color: #333;
}
.content {
@include toeM(2);
margin-bottom: 10px;
font-size: 16px;
color: #333;
line-height: 30px;
}
.date {
margin-bottom: 30px;
font-size: 16px;
color: #999;
line-height: 30px;
}
.operate {
display: flex;
justify-content: space-around;
.btn {
box-sizing: border-box;
padding: 0 20px;
width: 180px;
text-align: center;
font-size: 20px;
color: #3e8ef7;
line-height: 40px;
cursor: pointer;
&.z-stress {
background-color: #3e8ef7;
color: #fff;
}
}
}
}

37
src/js/store/index.js

@ -4,6 +4,7 @@ import cloneDeep from "lodash/cloneDeep";
import user from "./modules/user";
import app from "./modules/app";
import tagsView from "./modules/tagsView";
import { requestPost } from "@/js/dai/request";
Vue.use(Vuex);
@ -37,7 +38,8 @@ export default new Vuex.Store({
menuList: [],
activeName: "",
},
tipsList: [],
tipsTime: [],
inIframe: window.self !== window.top,
},
modules: {
@ -52,5 +54,38 @@ export default new Vuex.Store({
state[key] = cloneDeep(window.SITE_CONFIG["storeState"][key]);
});
},
SET_TIPS_LIST(state, tipsList) {
let _list = state.tipsList
state.tipsList = _list.concat(tipsList)
},
SET_TIPS_TIME(state, time) {
state.tipsTime = time
}
},
actions: {
setTipsList({ commit }, time) {
return new Promise(async (resolve, reject) => {
const url = '/gov/project/memoAttr/memosToRemind'
const params = {
remindTime: time || ''
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
commit('SET_TIPS_LIST', data)
resolve()
} else reject(msg)
})
},
setTipsTime({ commit }) {
return new Promise(async (resolve, reject) => {
const url = '/gov/project/memoAttr/memoTime'
const { data, code, msg } = await requestPost(url)
if (code === 0) {
commit('SET_TIPS_TIME', data)
resolve()
} else reject(msg)
})
}
}
});

34
src/router/index.js

@ -67,6 +67,15 @@ export const moduleRoutes = {
isTab: true,
},
},
{
path: "unopen",
component: () => import("@/views/modules/unopen"),
name: "unopen",
meta: {
title: "未开放功能",
isTab: true,
},
},
],
};
@ -328,9 +337,9 @@ router.beforeEach((to, from, next) => {
.then(({ data: res }) => {
if (res.code !== 0) {
// Vue.prototype.$message.error(res.msg)
return next({
name: "login",
});
// return next({
// name: "login",
// });
}
window.SITE_CONFIG["menuList"] = res.data;
fnAddDynamicMenuRoutes(window.SITE_CONFIG["menuList"]);
@ -341,9 +350,9 @@ router.beforeEach((to, from, next) => {
});
})
.catch(() => {
next({
name: "login",
});
// next({
// name: "login",
// });
});
});
@ -397,14 +406,23 @@ function fnAddDynamicMenuRoutes(menuList = [], routes = []) {
route["meta"]["iframeURL"] = URL;
} else {
URL = URL.replace(/^\//, "").replace(/_/g, "-");
route["path"] = route["name"] = URL.replace(/\//g, "-");
route["component"] = () => import(`@/views/modules/${URL}`);
if (URL.startsWith("unopen")) {
route["path"] = route["name"] = URL.replace(/\//g, "-");
route["component"] = () => import(`@/views/modules/unopen`);
} else if (menuList[i].children && menuList[i].children.length >= 1) {
route["path"] = route["name"] = URL;
route["redirect"] = URL.replace(/\//g, "-");
} else {
route["path"] = route["name"] = URL.replace(/\//g, "-");
route["component"] = () => import(`@/views/modules/${URL}`);
}
}
routes.push(route);
}
if (temp.length >= 1) {
return fnAddDynamicMenuRoutes(temp, routes);
}
// routers.reverse();
// 添加路由
router.addRoutes([
{

91
src/views/main-content.vue

@ -69,18 +69,53 @@
<router-view />
</keep-alive>
</template>
<template v-for="(item, index) in $store.state.tipsList">
<Tips :key="item.memoId"
:info="item"
@look="handleLook(item)" @close="handleClose(item, index)" />
</template>
<el-dialog title="提示信息" :visible.sync="dialogFormVisible" :close-on-click-modal="false" append-to-body>
<el-form :model="form">
<el-form-item label="活动名称" :label-width="formLabelWidth">
<el-input v-model="form.name" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="活动区域" :label-width="formLabelWidth">
<el-select v-model="form.region" placeholder="请选择活动区域">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false"> </el-button>
<el-button type="primary" @click="dialogFormVisible = false"> </el-button>
</div>
</el-dialog>
</main>
</template>
<script>
import { isURL } from "@/utils/validate";
import Cookie from "js-cookie";
import Tips from './tips.vue'
import { requestPost } from "@/js/dai/request";
export default {
components: {
Tips
},
data() {
return {
dialogFormVisible: false,
iframeUrl: "",
token: "",
customerId: "",
form: {
},
formLabelWidth: '120px',
tipsList: []
};
},
created() {
@ -89,6 +124,8 @@ export default {
// })
this.token = localStorage.getItem("token");
this.customerId = localStorage.getItem("customerId");
this.loopTips()
},
methods: {
changeCustomerName(customerName) {
@ -174,6 +211,60 @@ export default {
// }, '*')
iframe.postMessage({ name: "lalalal" }, "*");
},
loopTips() {
this.$store.dispatch('setTipsList')
this.$store.dispatch('setTipsTime')
// let id = 1
// this.timer = setInterval(() => {
// id = id + 1
// if (id == 5) clearInterval(this.timer)
// this.tipsList.push(id)
// console.log('id------0', id)
// }, 1000)
},
async closeTips(memoId) {
const url = '/gov/project/memoAttr/setReaded'
const params = {
memoId
}
const { data, code, msg } = await requestPost(url, params)
if (code != 0) this.$message.error(msg)
},
async getInfo(item) {
const urls = {
work_diary: '/gov/project/memoWorkDiary',
concern: '/gov/project/memoConcern',
difficulty: '/gov/project/memoDifficulty/detail'
}
const params = {
id: item.memoId,
readFlag: 0
}
const { data, code, msg } = await requestPost(urls[item.type], params)
if (code == 0) {
this.form = { ...data }
} else this.$message.error(msg)
},
handleClose(item, index) {
console.log('close-----', item)
this.$store.state.tipsList.splice(index, 1)
this.closeTips(item.memoId)
},
async handleLook(item) {
console.log('look-----', item)
await this.getInfo(item)
this.dialogFormVisible = true
}
},
};
</script>
<style lang="scss" scoped>
.aui-content {
position: relative;
// height: calc(100vh -50px) !important;
overflow: hidden;
}
</style>

44
src/views/main.vue

@ -1,24 +1,30 @@
<template>
<div v-loading.fullscreen.lock="loading"
:element-loading-text="$t('loading')"
:class="[
<div
v-loading.fullscreen.lock="loading"
:element-loading-text="$t('loading')"
:class="[
'aui-wrapper',
{ 'aui-sidebar--fold': $store.state.sidebarFold },
{
'aui-sidebar--noside':
$store.state.sidebarActiveSubMenuList.length == 0 || $store.state.inIframe,
$store.state.sidebarActiveSubMenuList.length == 0 ||
$store.state.inIframe,
},
{ 'z-iframe': $store.state.inIframe },
]">
]"
>
<template v-if="!loading">
<main-navbar ref="ref_navbar"
v-if="!$store.state.inIframe" />
<main-navbar ref="ref_navbar" v-if="!$store.state.inIframe" />
<main-sidebar v-if="!$store.state.inIframe" />
<div class="aui-content__wrapper">
<main-content v-if="!$store.state.contentIsNeedRefresh"
@changeCustomerName="changeCustomerName" />
<main-content
v-if="!$store.state.contentIsNeedRefresh"
@changeCustomerName="changeCustomerName"
/>
</div>
<main-theme-tools v-if="!$store.state.inIframe" />
<!-- <secretary-log-notice v-if="!$store.state.inIframe" /> -->
</template>
</div>
</template>
@ -28,16 +34,17 @@ import MainNavbar from "./main-navbar";
import MainSidebar from "./main-sidebar";
import MainContent from "./main-content";
import MainThemeTools from "./main-theme-tools";
import SecretaryLogNotice from "./modules/secretaryLog/cpts/notice";
import debounce from "lodash/debounce";
import { mapGetters } from "vuex";
import nextTick from "dai-js/tools/nextTick";
import { requestPost } from "@/js/dai/request";
export default {
provide () {
provide() {
return {
//
refresh () {
refresh() {
this.$store.state.contentIsNeedRefresh = true;
this.$nextTick(() => {
this.$store.state.contentIsNeedRefresh = false;
@ -45,7 +52,7 @@ export default {
},
};
},
data () {
data() {
return {
loading: true,
userType: localStorage.getItem("userType"),
@ -56,12 +63,13 @@ export default {
MainSidebar,
MainContent,
MainThemeTools,
SecretaryLogNotice,
},
watch: {
$route: "routeHandle",
},
async created () {
async created() {
this.$store.state.sidebarMenuList = window.SITE_CONFIG["menuList"];
console.log(this.$store.state.sidebarMenuList);
@ -73,11 +81,11 @@ export default {
},
computed: {},
methods: {
changeCustomerName (customerName) {
changeCustomerName(customerName) {
this.$refs["ref_navbar"].changeCustomerName(customerName);
},
//
windowResizeHandle () {
windowResizeHandle() {
this.$store.state.sidebarFold =
document.documentElement["clientWidth"] <= 992 || false;
window.addEventListener(
@ -89,7 +97,7 @@ export default {
);
},
// ,
routeHandle (route) {
routeHandle(route) {
if (!route.meta.isTab) {
return false;
}
@ -112,7 +120,7 @@ export default {
this.$store.state.contentTabsActiveName = tab.name;
this.syncLevelOneMenuActive(tab.menuId);
},
async syncLevelOneMenuActive (menuId) {
async syncLevelOneMenuActive(menuId) {
await nextTick();
console.log(
"*******************************",
@ -135,7 +143,7 @@ export default {
idx !== -1 ? this.$store.state.sidebarMenuList[idx].children : [];
},
//
async getWorkUserInfo () {
async getWorkUserInfo() {
const url = "/epmetuser/customerstaff/staffbasicinfo";
let params = {};
const { data, code, msg } = await requestPost(url, params);

10
src/views/modules/base/resi.vue

@ -12,11 +12,12 @@
@click="handleAdd">新增</el-button>
<el-button class="diy-button--export"
size="small"
@click="handleExportModule('room')">下载人口模板</el-button>
@click="handleExportModule('room')">下载模板</el-button>
<el-upload ref="upload"
class="upload-demo"
action="uploadUlr"
:limit="1"
:accept="'.xls,xlsx'"
:with-credentials="true"
:show-file-list="false"
:auto-upload="true"
@ -62,7 +63,8 @@
align="center"
:fixed="item.columnName == 'NAME' ? 'left' : false"
:show-overflow-tooltip="true"
:width="item.itemType === 'radio' ? computedWidth(item.label) : 180">
>
<!-- :width="item.itemType === 'radio' ? computedWidth(item.label) : 180" -->
<template slot-scope="scope">
<a v-if="item.columnName == 'NAME'"
class="name-a"
@ -277,7 +279,7 @@ export default {
return {
exportBtn: false,
exportBtnTitle: '导出',
importBtnTitle: '导入人员数据',
importBtnTitle: '导入',
importLoading: false,
rowVisible: false,
tableLoading: false,
@ -659,7 +661,7 @@ export default {
// this.$message.error('')
// })
this.importLoading = false
this.importBtnTitle = '导入人员数据'
this.importBtnTitle = '导入'
this.$refs.upload.clearFiles()
},
handleClick (tab, event) {

300
src/views/modules/communityService/dqfwzx/index.vue

@ -2,25 +2,26 @@
<div>
<el-card class="resi-card-table">
<div class="resi-row-btn">
<el-button class="diy-button--add"
size="small"
@click="handleAdd">新增</el-button>
<el-button class="diy-button--add" size="small" @click="handleAdd"
>新增</el-button
>
</div>
<div class="m-center"
v-if="tableData.length > 0">
<div class="m-center" v-if="tableData.length > 0">
<div class="center-left">
<div class="list">
<div @click="currentIndex = index"
class="item"
:class="{ 'z-on': currentIndex == index }"
:key="'ct' + index"
v-for="(item, index) in tableData">
<div class="item-btn"
v-if="currentIndex == index"
@click="handleEdit">
修改
<div
@click="currentIndex = index"
class="item"
:class="{ 'z-on': currentIndex == index }"
:key="'ct' + index"
v-for="(item, index) in tableData"
>
<div class="item-btns">
<a v-if="currentIndex == index" @click="handleEdit">修改</a>
<a v-if="currentIndex == index" @click="handleDel">删除</a>
</div>
<div class="item-name">{{ item.centerName }}</div>
<div class="item-prop">
<div class="prop-field">社区地址</div>
@ -48,94 +49,113 @@
>
</div> -->
<div id="centerIndexApp"
class="div_map"></div>
<el-table :data="tableData[currentIndex].matterList"
border
style="width: 100%"
class="resi-table"
:max-height="maxTableHeight">
<el-table-column label="序号"
type="index"
align="center"
width="50" />
<el-table-column prop="matterName"
label="事项名称">
<div id="centerIndexApp" class="div_map"></div>
<el-table
:data="tableData[currentIndex].matterList"
border
style="width: 100%"
class="resi-table"
:max-height="maxTableHeight"
>
<el-table-column
label="序号"
type="index"
align="center"
width="50"
/>
<el-table-column prop="matterName" label="事项名称">
</el-table-column>
<el-table-column prop="allowTime"
label="可预约时间 ">
<el-table-column prop="allowTime" label="可预约时间 ">
</el-table-column>
<el-table-column fixed="right"
label="操作"
align="center"
width="120">
<el-table-column
fixed="right"
label="操作"
align="center"
width="120"
>
<template slot-scope="scope">
<el-button @click="handleOrder(scope.$index)"
type="text"
size="small">预约</el-button>
<el-button @click="handleOrderList(scope.$index)"
type="text"
size="small"
style="margin-right: 10px; color: #00a7a9">预约记录</el-button>
<el-button
@click="handleOrder(scope.$index)"
type="text"
size="small"
>预约</el-button
>
<el-button
@click="handleOrderList(scope.$index)"
type="text"
size="small"
style="margin-right: 10px; color: #00a7a9"
>预约记录</el-button
>
</template>
</el-table-column>
</el-table>
</div>
</div>
<div class="m-hint"
v-else>
<el-empty description="暂无内容"
:image-size="200"></el-empty>
<div class="m-hint" v-else>
<el-empty description="暂无内容" :image-size="200"></el-empty>
</div>
</el-card>
<!-- 修改弹出框 -->
<el-dialog :visible.sync="formShow"
:close-on-click-modal="false"
:close-on-press-escape="false"
:title="formTitle"
width="850px"
top="5vh"
class="dialog-h"
@closed="handleClose">
<edit-form ref="eleEditForm"
@dialogCancle="handleClose"
@dialogOk="handleEditSuccess"></edit-form>
<el-dialog
:visible.sync="formShow"
:close-on-click-modal="false"
:close-on-press-escape="false"
:title="formTitle"
width="850px"
top="5vh"
class="dialog-h"
@closed="handleClose"
>
<edit-form
ref="eleEditForm"
@dialogCancle="handleClose"
@dialogOk="handleEditSuccess"
></edit-form>
</el-dialog>
<!-- 修改弹出框 -->
<el-dialog :visible.sync="form2Show"
:close-on-click-modal="false"
:close-on-press-escape="false"
title="预约"
width="850px"
top="5vh"
class="dialog-h"
@closed="handleCloseForm2">
<order-form ref="eleOrderForm"
@dialogCancle="handleCloseForm2"
@dialogOk="handleOrderSuccess"></order-form>
<el-dialog
:visible.sync="form2Show"
:close-on-click-modal="false"
:close-on-press-escape="false"
title="预约"
width="850px"
top="5vh"
class="dialog-h"
@closed="handleCloseForm2"
>
<order-form
ref="eleOrderForm"
@dialogCancle="handleCloseForm2"
@dialogOk="handleOrderSuccess"
></order-form>
</el-dialog>
<!-- 修改弹出框 -->
<el-dialog :visible.sync="orderListShow"
:close-on-click-modal="false"
:close-on-press-escape="false"
title="预约记录"
width="850px"
top="5vh"
class="dialog-h"
@closed="handleCloseOrderList">
<order-list ref="eleOrderList"
@dialogCancle="handleCloseOrderList"></order-list>
<el-dialog
:visible.sync="orderListShow"
:close-on-click-modal="false"
:close-on-press-escape="false"
title="预约记录"
width="850px"
top="5vh"
class="dialog-h"
@closed="handleCloseOrderList"
>
<order-list
ref="eleOrderList"
@dialogCancle="handleCloseOrderList"
></order-list>
</el-dialog>
</div>
</template>
<script>
import { requestPost } from "@/js/dai/request";
import { requestPost } from "@/js/dai/request2";
import nextTick from "dai-js/tools/nextTick";
import { mapGetters } from "vuex";
import editForm from "./cpts/edit";
@ -150,7 +170,7 @@ let loading; // 加载动画
export default {
components: { editForm, orderForm, orderList },
data () {
data() {
return {
openSearch: false,
@ -167,23 +187,23 @@ export default {
};
},
computed: {
maxTableHeight () {
return this.clientHeight - 410;
maxTableHeight() {
return this.clientHeight - 520;
},
...mapGetters(["clientHeight"]),
},
watch: {
currentIndex () {
currentIndex() {
this.setMap();
},
},
async mounted () {
async mounted() {
await this.loadAgency();
await this.getTableData();
},
methods: {
// init
initMap () {
initMap() {
//
var center = new window.TMap.LatLng(36.0722275, 120.38945519);
// map TMap.Map()
@ -203,7 +223,7 @@ export default {
infoWindowList = Array(10);
},
setMarker (lat, lng, centerName) {
setMarker(lat, lng, centerName) {
markers.setGeometries([]);
markers.add([
{
@ -217,11 +237,11 @@ export default {
]);
},
setCenter (lat, lng) {
setCenter(lat, lng) {
map.setCenter(new window.TMap.LatLng(lat, lng));
},
setMap () {
setMap() {
const { tableData, currentIndex } = this;
let item = tableData[currentIndex];
if (item) {
@ -230,24 +250,24 @@ export default {
}
},
handleClose () {
handleClose() {
this.formShow = false;
},
handleCloseForm2 () {
handleCloseForm2() {
this.form2Show = false;
},
handleCloseOrderList () {
handleCloseOrderList() {
this.orderListShow = false;
},
async handleAdd () {
async handleAdd() {
this.formShow = true;
await nextTick();
console.log(this.$refs);
this.$refs.eleEditForm.initForm("add");
},
async handleWatch () {
async handleWatch() {
this.formShow = true;
await nextTick();
this.$refs.eleEditForm.initForm(
@ -256,7 +276,7 @@ export default {
);
},
async handleEdit () {
async handleEdit() {
this.formShow = true;
await nextTick();
this.$refs.eleEditForm.initForm(
@ -265,12 +285,12 @@ export default {
);
},
handleEditSuccess () {
handleEditSuccess() {
this.handleClose();
this.getTableData();
},
async handleOrder (index) {
async handleOrder(index) {
this.form2Show = true;
await nextTick();
this.$refs.eleOrderForm.initForm(
@ -280,36 +300,34 @@ export default {
);
},
handleOrderSuccess () {
handleOrderSuccess() {
this.handleCloseForm2();
},
async handleOrderList (index) {
async handleOrderList(index) {
this.orderListShow = true;
await nextTick(0);
console.log(this.$refs);
this.$refs.eleOrderList.init(this.tableData[this.currentIndex], index);
},
async handleDel (rowData, rowIndex) {
console.log(rowData, rowIndex);
const url =
"/heart/iccommunityselforganization/delcommunityselforganization";
const { tableData } = this;
async handleDel() {
if (!confirm("删除后不可恢复,确定删除?")) return;
const { data, code, msg } = await requestPost(url, {
orgId: tableData[rowIndex].orgId,
});
const item = this.tableData[this.currentIndex];
const url = "/gov/org/icpartyservicecenter/del";
const { data, code, msg } = await requestPost(url, [
item.partyServiceCenterId,
]);
if (code === 0) {
this.$message.success("删除成功!");
this.getTableData();
} else {
this.$message.success("操作失败!");
}
},
async getTableData () {
async getTableData() {
const oldLen = this.tableData.length;
const url = "/gov/org/icpartyservicecenter/partyservicecenterlist";
const { data, code, msg } = await requestPost(url, {
@ -330,7 +348,7 @@ export default {
},
//
async loadAgency () {
async loadAgency() {
const url = "/epmetuser/customerstaff/staffbasicinfo";
let params = {};
@ -338,8 +356,6 @@ export default {
if (code === 0) {
this.agencyId = data.agencyId;
} else {
this.$message.error(msg);
}
},
},
@ -358,6 +374,27 @@ export default {
.center-left {
width: 25%;
.list {
padding-right: 10px;
height: calc(100vh - 210px);
overflow-y: auto;
&::-webkit-scrollbar {
/*滚动条整体样式*/
width: 8px; /*高宽分别对应横竖滚动条的尺寸*/
height: 1px;
}
&::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 8px;
box-shadow: inset 0 0 5px rgba(#333, 0.1);
background: linear-gradient(270deg, #eee, #aaa);
}
&::-webkit-scrollbar-track {
/*滚动条里面轨道*/
box-shadow: inset 0 0 5px rgba(#333, 0.1);
border-radius: 8px;
background: #eee;
}
.item {
position: relative;
box-sizing: border-box;
@ -372,21 +409,37 @@ export default {
background-color: #ffffff;
box-shadow: 0 0 10px #6aa;
}
.item-btn {
.item-btns {
position: absolute;
top: 5px;
right: 5px;
font-size: 14px;
color: rgb(235, 192, 4);
width: 50px;
line-height: 30px;
text-align: center;
cursor: pointer;
&:hover {
// text-decoration: underline;
color: rgb(250, 208, 23);
// width: 120px;
a {
display: inline-block;
margin-left: 1px;
font-size: 14px;
color: rgb(235, 192, 4);
width: 40px;
line-height: 30px;
text-align: center;
cursor: pointer;
&:nth-child(2) {
color: #aaa;
&:hover {
// text-decoration: underline;
color: #666;
}
}
&:hover {
// text-decoration: underline;
color: rgb(250, 208, 23);
}
}
}
.item-name {
font-size: 16px;
font-weight: bold;
@ -420,6 +473,7 @@ export default {
}
.div_map {
margin-bottom: 10px;
height: 300px;
}
}
}
@ -448,7 +502,7 @@ export default {
}
.resi-card-table {
margin-top: 20px;
// margin-top: 20px;
}
.resi-row-btn {
margin-bottom: 13px;

8
src/views/modules/communityService/sqzzz/index.vue

@ -54,7 +54,7 @@
</el-upload>
<el-button @click="handleChu" class="diy-button--reset" size="small"
>excel导出</el-button
>导出</el-button
>
</div>
<el-table
@ -203,7 +203,7 @@ export default {
createTime: ["", ""],
},
importBtnTitle: "excel导入",
importBtnTitle: "导入",
importLoading: false,
//
@ -293,7 +293,7 @@ export default {
// })
// .then((res) => {
// this.importLoading = false;
// this.importBtnTitle = "excel";
// this.importBtnTitle = "";
// console.log("resresresresresresres", res);
// this.getTableData();
@ -307,7 +307,7 @@ export default {
// console.log("", err);
// });
this.importLoading = false
this.importBtnTitle = 'excel导入'
this.importBtnTitle = '导入'
this.$refs.upload.clearFiles();
},

102
src/views/modules/secretaryLog/cpts/notice.vue

@ -0,0 +1,102 @@
<template>
<div class="m-notice a-fade-in-up" v-if="displayed && list.length > 0">
<div class="header">通知提醒</div>
<div class="type">{{ list[0].typeName }}</div>
<div class="content">{{ list[0].content }}</div>
<div class="date">{{ list[0].remindTime }}</div>
<div class="operate">
<div class="btn" @click="read">我知道了</div>
<div class="btn z-stress" @click="checkInfo">查看详情</div>
</div>
</div>
</template>
<script>
import { requestPost } from "@/js/dai/request2";
import nextTick from "dai-js/tools/nextTick";
export default {
components: {},
data() {
return {
displayed: false,
lastTime: 0,
list: [
{
memoId: "1",
type: "work_diary",
typeName: "工作日志",
content:
"提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容",
remindTime: "2022-02-22 22:22",
},
],
};
},
computed: {},
watch: {
currentIndex() {},
},
async mounted() {
this.poll();
},
methods: {
async poll() {
let nowTime = new Date().getTime();
if (nowTime - this.lastTime > 60 * 1000) {
this.lastTime = nowTime;
this.getList();
}
await nextTick(1000);
this.poll();
},
checkInfo() {
const { memoId, type } = this.list[0];
if (type == "work_diary") {
this.$router.push({
path: `/main/visual-basicinfo-people/${uid}`,
});
} else if (type == "concern") {
} else if (type == "difficulty") {
}
this.read();
},
async read() {
const item = this.list[0];
const url = "/gov/project/memoAttr/setReaded";
const { data, code, msg } = await requestPost(url, {
memoId: item.memoId,
});
if (code === 0) {
// this.$message.success("");
this.displayed = false;
this.getList();
}
},
async getList() {
const url = "/gov/project/memoAttr/memosToRemind";
const { data, code, msg } = await requestPost(url, {});
if (code === 0) {
console.log("列表请求成功!!!!!!!!!!!!!!");
this.displayed = true;
this.lastTime = new Date().getTime();
// this.list = data;
}
},
},
};
</script>
<style
lang="scss"
src="@/assets/scss/modules/shujirizhi-notice.scss"
scoped
></style>

177
src/views/modules/secretaryLog/difficulty/difficultyDetail.vue

@ -0,0 +1,177 @@
<template>
<div>
<div class="dialog-h-content scroll-h div_form">
<div class="form_item">
<div class="item_title">关怀类型</div>
<div class="item_content"> {{formData.concernType}}</div>
</div>
<div class="form_item">
<div class="item_title">关怀人员</div>
<div class="item_content"> {{formData.resiName}}</div>
</div>
<div v-if="formData.phone"
class="form_item">
<div class="item_title">电话</div>
<div class="item_content"> {{formData.phone}}</div>
</div>
<div v-if="formData.address"
class="form_item">
<div class="item_title">地址</div>
<div class="item_content"> {{formData.address}}</div>
</div>
<div class="form_item">
<div class="item_title">关怀事项</div>
<div class="item_content"> {{formData.content}}</div>
</div>
<div v-if="formData.scheduledTime"
class="form_item">
<div class="item_title">预计关怀时间</div>
<div class="item_content"> {{formData.scheduledTime}}</div>
</div>
<div v-if="formData.remindTime"
class="form_item">
<div class="item_title">提醒时间</div>
<div class="item_content"> {{formData.remindTime}}</div>
</div>
<div v-if="formData.status"
class="form_item">
<div class="item_title">状态</div>
<div class="item_content"> {{formData.status==='0'?'未完成':'已完成'}}</div>
</div>
<div v-if="formData.attachmentList.length>0"
class="form_item">
<div class="item_title">附件</div>
<div>
<div class="attach_item"
v-for="(item, index) in formData.attachmentList"
:key="index">
<i class="el-icon-tickets"></i>
<div class="attach_item_name"
@click="handleFileDownload(item)">{{item.fileName}}</div>
</div>
</div>
</div>
</div>
<div class="div_btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import { Loading } from 'element-ui' // Loading
import { requestPost } from '@/js/dai/request'
let loading //
export default {
data () {
return {
difficultyId: '',
formData: {
content: '',//
resolveWay: '',//
remark: '',//
scheduledTime: '',//yyyy-mm-dd hh:mm
remindTime: '',//yyyy-mm-dd hh:mm
attachmentList: []
},
}
},
components: {},
mounted () {
},
methods: {
async initForm (row) {
this.startLoading()
this.difficultyId = row.id
await this.loadFormData()
this.endLoading()
},
async loadFormData () {
// const url = 'http://yapi.elinkservice.cn/mock/245/gov/project/memoDifficulty/detail'
const url = '/gov/project/memoDifficulty/detail'
let params = {
id: this.difficultyId,
readFlag: '0',
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.formData = data
} else {
this.$message.error(msg)
}
},
handleCancle () {
this.$emit('diaClose')
},
//
handleFileDownload (file) {
var a = document.createElement('a');
var event = new MouseEvent('click');
a.download = file.fileName;
console.log(a)
a.href = file.attachmentUrl;
a.dispatchEvent(event);
},
//
startLoading () {
loading = Loading.service({
lock: true, //
text: '正在加载……', //
background: 'rgba(0,0,0,.7)' //
})
},
//
endLoading () {
// clearTimeout(timer);
if (loading) {
loading.close()
}
}
},
computed: {},
props: {}
}
</script>
<style lang="scss" scoped >
@import "@/assets/scss/modules/management/secretaryLog.scss";
</style>
<style lang="scss" scoped>
</style>

383
src/views/modules/secretaryLog/difficulty/difficultyForm.vue

@ -0,0 +1,383 @@
<template>
<div>
<div class="dialog-h-content scroll-h">
<el-form ref="ref_form"
:inline="true"
:model="formData"
:rules="dataRule"
class="form">
<el-form-item label="内容"
prop="content"
label-width="150px"
style="display: block">
<el-input class="item_width_1"
type="textarea"
maxlength="100"
show-word-limit
:rows="3"
placeholder="请输入内容"
v-model="formData.content"></el-input>
</el-form-item>
<el-form-item label="解决方式"
prop="resolveWay"
label-width="150px"
style="display: block">
<el-input class="item_width_1"
type="textarea"
maxlength="100"
show-word-limit
:rows="3"
placeholder="请输入解决方式"
v-model="formData.resolveWay"></el-input>
</el-form-item>
<el-form-item label="预计处理时间"
style="display: block"
prop="scheduledTime"
label-width="150px">
<el-date-picker class="item_width_1"
v-model="formData.scheduledTime"
format="yyyy-MM-dd HH:mm"
value-format="yyyy-MM-dd HH:mm"
type="datetime"
placeholder="选择时间">
</el-date-picker>
</el-form-item>
<el-form-item label="提醒时间"
style="display: block"
prop="remindTime"
label-width="150px">
<el-date-picker class="item_width_1"
v-model="formData.remindTime"
format="yyyy-MM-dd HH:mm"
value-format="yyyy-MM-dd HH:mm"
type="datetime"
placeholder="选择时间">
</el-date-picker>
</el-form-item>
<el-form-item label="备注"
prop="remark"
label-width="150px"
style="display: block">
<el-input class="item_width_1"
type="textarea"
maxlength="100"
show-word-limit
:rows="3"
placeholder="请输入备注"
v-model="formData.remark"></el-input>
</el-form-item>
<el-form-item class="block"
label-width="150px"
style="display: block"
label="添加附件"
prop="attach">
<el-upload class="upload-demo"
:action="uploadUlr"
accept=".doc,.pdf,.xls,.docx,.xlsx"
:on-success="handleFileSuccess"
:on-remove="handleFileRemove"
:on-preview="handleFileDownload"
:limit="3"
:before-upload="beforeUpload"
:file-list="fileList">
<el-button size="small"
:disabled="fileList.length==3"
type="primary">点击上传</el-button>
<div slot="tip"
class="el-upload__tip">最多三个附件只能上传wordexcelpdf文件</div>
</el-upload>
</el-form-item>
</el-form>
</div>
<div class="div_btn">
<el-button size="small"
@click="handleCancle"> </el-button>
<el-button size="small"
type="primary"
:disabled="btnDisable"
@click="handleComfirm"> </el-button>
</div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import { Loading } from 'element-ui' // Loading
import { requestPost } from '@/js/dai/request'
let loading //
export default {
data () {
return {
formType: 'add', // addeditdetail
btnDisable: false,
difficultyId: '',
formData: {
content: '',//
resolveWay: '',//
remark: '',//
scheduledTime: '',//yyyy-mm-dd hh:mm
remindTime: '',//yyyy-mm-dd hh:mm
attachmentList: []
},
fileList: [],
uploadUlr: window.SITE_CONFIG['apiURL'] + '/oss/file/uploadvariedfile',
dialogImageUrl: '',
dialogVisible: false
}
},
components: {},
mounted () {
},
methods: {
async initForm (type, difficultyId) {
this.startLoading()
this.$refs.ref_form.resetFields();
this.formType = type
if (difficultyId) {
this.difficultyId = difficultyId
this.formData.id = difficultyId
await this.loadFormData()
}
this.endLoading()
},
async loadFormData () {
// const url = 'http://yapi.elinkservice.cn/mock/245/gov/project/memoDifficulty/detail'
const url = '/gov/project/memoDifficulty/detail'
let params = {
id: this.difficultyId,
readFlag: '0',
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.formData = data
if (data.attachmentList) {
data.attachmentList.forEach(element => {
element.name = element.fileName
element.type = element.attachmentType
element.size = element.attachmentSize
});
this.fileList = data.attachmentList
}
} else {
this.$message.error(msg)
}
},
async handleComfirm () {
this.btnDisable = true
setTimeout(() => {
this.btnDisable = false
}, 10000)
this.$refs['ref_form'].validate((valid, messageObj) => {
if (!valid) {
app.util.validateRule(messageObj)
this.btnDisable = false
} else {
this.addDifficulty()
}
})
},
async addDifficulty () {
if (this.fileList.length > 0) {
this.formData.attachmentList = this.fileList
}
let url = ''
if (this.formType === 'add') {
url = '/gov/project/memoDifficulty/save'
// url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoDifficulty/save"
this.formData.id = ''
} else {
url = '/gov/project/memoDifficulty/update'
// url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoDifficulty/update"
}
const { data, code, msg } = await requestPost(url, this.formData)
if (code === 0) {
this.$message({
type: 'success',
message: '操作成功'
})
this.resetData()
this.$emit('dialogOk')
this.btnDisable = false
} else {
this.btnDisable = false
this.$message.error(msg)
}
},
handleCancle () {
this.resetData()
this.$emit('dialogCancle')
},
beforeUpload (file) {
const array = file.name.split('.')
const extension = array[array.length - 1]
if (extension !== 'xls'
&& extension !== 'xlsx'
&& extension !== 'doc'
&& extension !== 'docx'
&& extension !== 'pdf') {
this.$message.error('只能上传word、excel、pdf文件!')
return false
}
},
handleFileRemove (file) {
if (file && file.status === "success") {
this.fileList.splice(this.fileList.findIndex(item => item.uid === file.uid), 1)
}
},
handleFileSuccess (res, file) {
if (res.code === 0 && res.msg === 'success') {
const array = file.name.split('.')
const fileType = array[array.length - 1]
file.fileName = file.name
file.attachmentUrl = res.data.url
file.attachmentSize = file.size
file.attachmentType = 'doc'
file.attachmentFormat = fileType
this.fileList.push(file)
console.log(this.fileList)
} else this.$message.error(res.msg)
},
//
handleFileDownload (file) {
var a = document.createElement('a');
var event = new MouseEvent('click');
a.download = file.name;
console.log(a)
a.href = file.url;
a.dispatchEvent(event);
},
resetData () {
this.difficultyId = ''
this.formData = {
content: '',//
resolveWay: '',//
remark: '',//
scheduledTime: '',//yyyy-mm-dd hh:mm
remindTime: '',//yyyy-mm-dd hh:mm
attachmentList: []
}
},
//
startLoading () {
loading = Loading.service({
lock: true, //
text: '正在加载……', //
background: 'rgba(0,0,0,.7)' //
})
},
//
endLoading () {
// clearTimeout(timer);
if (loading) {
loading.close()
}
}
},
computed: {
dataRule () {
return {
resiName: [
{ required: true, message: '关怀人员不能为空', trigger: 'blur' }
],
content: [
{ required: true, message: '关怀事项不能为空', trigger: 'blur' },
],
}
},
},
props: {
// serviceList: {
// type: Array,
// default: []
// },
}
}
</script>
<style lang="scss" scoped >
@import "@/assets/scss/modules/visual/communityManageForm.scss";
</style>
<style lang="scss" scoped>
.item_width_1 {
width: 560px;
}
.item_width_2 {
width: 220px;
}
.text_p {
margin: 0;
padding: 0 10px;
border: 1px solid #d9d9d9;
border-radius: 5px;
> p {
margin: 0;
}
}
</style>

531
src/views/modules/secretaryLog/difficulty/difficultyList.vue

@ -0,0 +1,531 @@
<template>
<div class="div_main">
<div class="div_search">
<el-form :inline="true"
:model="formData"
ref="ref_searchform"
:label-width="'100px'">
<div>
<el-form-item label="内容摘要"
prop="content">
<el-input v-model="formData.content"
size="small"
class="item_width_1"
clearable
placeholder="请输入内容摘要">
</el-input>
</el-form-item>
<el-form-item label="预计处理时间"
prop="scheduledStartTime">
<el-date-picker v-model="scheduledTimeRange"
size="small"
type="daterange"
value-format="yyyy-MM-dd"
@change="handleScheduledTimeChange"
range-separator="至"
start-placeholder="开始时间"
end-placeholder="结束时间">
</el-date-picker>
</el-form-item>
<el-form-item label="创建时间"
prop="startTime">
<el-date-picker v-model="timeRange"
size="small"
type="daterange"
value-format="yyyy-MM-dd"
@change="handleTimeChange"
range-separator="至"
start-placeholder="开始时间"
end-placeholder="结束时间">
</el-date-picker>
</el-form-item>
<el-button style="margin-left:10px"
class="diy-button--search"
size="small"
@click="handleSearch">查询</el-button>
<el-button style="margin-left:10px"
class="diy-button--reset"
size="small"
@click="resetSearch">重置</el-button>
</div>
</el-form>
</div>
<div class="div_table">
<div class="div_btn">
<el-button style=""
class="diy-button--add"
size="small"
@click="handleAdd">新增</el-button>
</div>
<el-table class="table"
:data="tableData"
border
:height="tableHeight"
v-loading="tableLoading"
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}"
style="width: 100%">
<el-table-column label="序号"
header-align="center"
align="center"
type="index"
width="50"></el-table-column>
<el-table-column prop="content"
header-align="center"
align="center"
label="内容"
min-width="180">
<template slot-scope="scope">
<div class="twoline">{{scope.row.content}}</div>
</template>
</el-table-column>
<el-table-column prop="resolveWay"
header-align="center"
align="center"
label="解决方式"
min-width="120">
</el-table-column>
<el-table-column prop="scheduledTime"
header-align="center"
align="center"
label="预计处理时间"
width="170">
</el-table-column>
<el-table-column prop="remindTime"
header-align="center"
align="center"
label="提醒时间"
width="170">
</el-table-column>
<el-table-column prop="remark"
header-align="center"
align="center"
label="备注"
width="180">
</el-table-column>
<el-table-column prop="createdTime"
header-align="center"
align="center"
label="创建时间"
width="170">
</el-table-column>
<el-table-column label="操作"
fixed="right"
width="170"
header-align="center"
align="center"
class="operate">
<template slot-scope="scope">
<el-button type="text"
class="div-table-button--detail"
size="small"
@click="handleDetail(scope.row)">查看</el-button>
<el-button v-if="!scope.row.actId"
type="text"
class="div-table-button--edit"
size="small"
@click="handleEdit(scope.row)">修改</el-button>
<el-button v-if="!scope.row.actId"
type="text"
class="div-table-button--detail"
size="small"
@click="handleExport(scope.row)">导出</el-button>
<el-button type="text"
class="div-table-button--delete"
size="small"
@click="handleDelete(scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
<div>
<el-pagination @size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="pageNo"
:page-sizes="[10, 20, 50]"
:page-size="pageSize"
layout="sizes, prev, pager, next, total"
:total="total">
</el-pagination>
</div>
</div>
<!-- 修改弹出框 -->
<el-dialog :visible.sync="formShow"
:close-on-click-modal="false"
:close-on-press-escape="false"
:title="formTitle"
width="950px"
top="5vh"
class="dialog-h"
@closed="diaClose">
<difficulty-form ref="ref_form"
@dialogCancle="addFormCancle"
@dialogOk="addFormOk"></difficulty-form>
</el-dialog>
<el-dialog :visible.sync="detailShow"
:close-on-click-modal="false"
:close-on-press-escape="false"
:title="'详情'"
width="950px"
top="5vh"
class="dialog-h"
@closed="diaClose">
<difficulty-detail ref="ref_detail"
@diaClose="diaClose"></difficulty-detail>
</el-dialog>
</div>
</template>
<script>
import difficultyForm from './difficultyForm'
import difficultyDetail from './difficultyDetail'
import util from '@js/util.js';
import { requestPost } from "@/js/dai/request";
import { mapGetters } from 'vuex'
import { Loading } from 'element-ui' // Loading
let loading //
export default {
data () {
return {
loading: false,
total: 0,
pageSize: 10,
pageNo: 0,
tableLoading: false,
scheduledTimeRange: [],
timeRange: [],
formData: {
content: '',//
startTime: '',//yyyy-mm-dd
endTime: '',//yyyy-mm-dd
scheduledStartTime: '',//yyyy-mm-dd
scheduledEndTime: '',// yyyy-mm-dd
},
tableData: [],
//form
formShow: false,
formTitle: '新增',
detailShow: false,
}
},
components: {
difficultyForm, difficultyDetail
},
async created () {
},
async mounted () {
//
await this.loadTable()
},
methods: {
handleSearch () {
this.loadTable()
},
async loadTable () {
this.tableLoading = true
const url = "/gov/project/memoDifficulty/page"
// const url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoDifficulty/page"
let params = {
pageSize: this.pageSize,
pageNo: this.pageNo,
...this.formData
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.total = data.total
this.tableData = data.list
} else {
this.$message.error(msg)
}
this.tableLoading = false
},
diaClose () {
if (this.formShow) {
this.$refs.ref_form.resetData()
this.formShow = false
} else {
this.detailShow = false
}
},
handleDetail (row) {
this.detailShow = true
this.formTitle = '详情'
this.$nextTick(() => {
this.$refs.ref_detail.initForm(row)
})
},
handleAdd () {
this.formTitle = '新增'
this.formShow = true
this.$nextTick(() => {
this.$refs.ref_form.initForm('add', null)
})
},
handleEdit (row) {
this.formTitle = '修改'
this.formShow = true
this.$nextTick(() => {
this.$refs.ref_form.initForm('edit', row.id)
})
},
addFormCancle () {
this.formShow = false
},
addFormOk () {
this.formShow = false
this.loadTable()
},
async handleDelete (row) {
this.$confirm("确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.deleteDifficulty(row)
})
.catch(err => {
if (err == "cancel") {
}
});
},
async deleteDifficulty (row) {
const url = "/gov/project/memoDifficulty/delete"
// const url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoDifficulty/delete"
let ids = [row.id]
let params = {
ids: ids
}
const { data, code, msg } = await requestPost(url, ids)
if (code === 0) {
this.$message({
type: "success",
message: "删除成功"
});
this.loadTable()
} else {
this.$message.error(msg)
}
},
//
resetSearch () {
this.scheduledTimeRange = []
this.timeRange = []
this.formData = {
content: '',//
startTime: '',//yyyy-mm-dd
endTime: '',//yyyy-mm-dd
scheduledStartTime: '',//yyyy-mm-dd
scheduledEndTime: '',// yyyy-mm-dd
}
this.pageSize = 10
this.pageNo = 0
this.loadTable()
},
//
async handleExport (row) {
let title = '难点堵点详情'
let url = `/gov/project/memoDifficulty/${row.id}/exportWord`
let params = {}
app.ajax.exportFilePost(
url,
params,
(data, rspMsg) => {
this.download(data, title + '.doc')
},
(rspMsg, data) => {
this.$message.error(rspMsg);
}
);
},
//
download (data, fileName) {
if (!data) {
return
}
var csvData = new Blob([data])
if (window.navigator && window.navigator.msSaveOrOpenBlob) {
window.navigator.msSaveOrOpenBlob(csvData, fileName);
}
// for Non-IE (chrome, firefox etc.)
else {
var a = document.createElement('a');
document.body.appendChild(a);
a.style = 'display: none';
var url = window.URL.createObjectURL(csvData);
a.href = url;
a.download = fileName;
a.click();
a.remove();
window.URL.revokeObjectURL(url);
}
},
handleScheduledTimeChange (time) {
if (time) {
this.formData.scheduledStartTime = time[0]
this.formData.scheduledEndTime = time[1]
} else {
this.formData.scheduledStartTime = ''
this.formData.scheduledEndTime = ''
}
},
handleTimeChange (time) {
if (time) {
this.formData.startTime = time[0]
this.formData.endTime = time[1]
} else {
this.formData.startTime = ''
this.formData.endTime = ''
}
},
handleSizeChange (val) {
this.pageSize = val
this.pageNo = 1
this.loadTable()
},
handleCurrentChange (val) {
this.pageNo = val
this.loadTable()
},
//
startLoading () {
loading = Loading.service({
lock: true, //
text: '正在加载……', //
background: 'rgba(0,0,0,.7)' //
})
},
//
endLoading () {
// clearTimeout(timer);
if (loading) {
loading.close()
}
}
},
computed: {
tableHeight () {
return (this.clientHeight - 380)
},
...mapGetters(['clientHeight'])
},
watch: {
},
props: {
}
}
</script>
<style lang="scss" scoped >
.div_main {
width: 100%;
}
.div_search {
background: #ffffff;
border-radius: 4px;
padding: 30px 20px 5px;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1);
}
.item_width_1 {
width: 260px;
}
.div_table {
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1);
border-radius: 4px;
margin-top: 15px;
padding: 23px 30px 10px;
.table {
margin-top: 20px;
}
}
.el-row {
/* margin-bottom: 20px; */
display: flex;
flex-wrap: wrap;
margin-top: 10px;
margin-right: 50px;
}
.twoline {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
</style>

182
src/views/modules/secretaryLog/humanisticCare/careDetail.vue

@ -0,0 +1,182 @@
<template>
<div>
<div class="dialog-h-content scroll-h div_form">
<div v-if="formData.concernType"
class="form_item">
<div class="item_title">关怀类型</div>
<div class="item_content"> {{formData.concernType}}</div>
</div>
<div class="form_item">
<div class="item_title">关怀人员</div>
<div class="item_content"> {{formData.resiName}}</div>
</div>
<div v-if="formData.phone"
class="form_item">
<div class="item_title">电话</div>
<div class="item_content"> {{formData.phone}}</div>
</div>
<div v-if="formData.address"
class="form_item">
<div class="item_title">地址</div>
<div class="item_content"> {{formData.address}}</div>
</div>
<div class="form_item">
<div class="item_title">关怀事项</div>
<div class="item_content"> {{formData.content}}</div>
</div>
<div v-if="formData.scheduledTime"
class="form_item">
<div class="item_title">预计关怀时间</div>
<div class="item_content"> {{formData.scheduledTime}}</div>
</div>
<div v-if="formData.remindTime"
class="form_item">
<div class="item_title">提醒时间</div>
<div class="item_content"> {{formData.remindTime}}</div>
</div>
<div v-if="formData.status"
class="form_item">
<div class="item_title">状态</div>
<div class="item_content"> {{formData.status==='0'?'未完成':'已完成'}}</div>
</div>
<div v-if="formData.attachmentList.length>0"
class="form_item">
<div class="item_title">附件</div>
<div>
<div class="attach_item"
v-for="(item, index) in formData.attachmentList"
:key="index">
<i class="el-icon-tickets"></i>
<div class="attach_item_name"
@click="handleFileDownload(item)">{{item.fileName}}</div>
</div>
</div>
</div>
</div>
<div class="div_btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import { Loading } from 'element-ui' // Loading
import { requestPost } from '@/js/dai/request'
let loading //
export default {
data () {
return {
careId: '',
formData: {
content: '',//怀
concernType: '',//怀
resiName: '',//怀
status: '',// 0 1
phone: '',//
address: '',//
scheduledTime: '',//怀yyyy-mm-dd hh:mm
remindTime: '',//yyyy-mm-dd hh:mm
attachmentList: []
},
}
},
components: {},
mounted () {
},
methods: {
async initForm (row) {
this.startLoading()
this.careId = row.id
await this.loadFormData()
this.endLoading()
},
async loadFormData () {
// const url = 'http://yapi.elinkservice.cn/mock/245/gov/project/memoConcern'
const url = '/gov/project/memoConcern'
let params = {
id: this.careId,
readFlag: '0',
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.formData = data
} else {
this.$message.error(msg)
}
},
handleCancle () {
this.$emit('diaClose')
},
//
handleFileDownload (file) {
var a = document.createElement('a');
var event = new MouseEvent('click');
a.download = file.fileName;
console.log(a)
a.href = file.attachmentUrl;
a.dispatchEvent(event);
},
//
startLoading () {
loading = Loading.service({
lock: true, //
text: '正在加载……', //
background: 'rgba(0,0,0,.7)' //
})
},
//
endLoading () {
// clearTimeout(timer);
if (loading) {
loading.close()
}
}
},
computed: {},
props: {}
}
</script>
<style lang="scss" scoped >
@import "@/assets/scss/modules/management/secretaryLog.scss";
</style>
<style lang="scss" scoped>
</style>

457
src/views/modules/secretaryLog/humanisticCare/careForm.vue

@ -0,0 +1,457 @@
<template>
<div>
<div class="dialog-h-content scroll-h">
<el-form ref="ref_form"
:inline="true"
:model="formData"
:rules="dataRule"
class="form">
<el-form-item label="关怀类型"
prop="concernType"
label-width="150px"
style="display: block">
<el-input class="item_width_2"
placeholder="请输入关怀类型"
v-model="formData.concernType">
</el-input>
</el-form-item>
<el-form-item label="关怀人员"
prop="resiName"
label-width="150px"
style="display: block">
<el-input class="item_width_2"
placeholder="请输入关怀人员"
v-model="formData.resiName">
</el-input>
</el-form-item>
<el-form-item label="电话"
prop="phone"
label-width="150px"
style="display: block">
<el-input class="item_width_2"
placeholder="请输入电话"
v-model="formData.phone">
</el-input>
</el-form-item>
<el-form-item label="地址"
prop="address"
label-width="150px"
style="display: block">
<el-input class="item_width_1"
placeholder="请输入地址"
v-model="formData.address">
</el-input>
</el-form-item>
<el-form-item label="关怀事项"
prop="content"
label-width="150px"
style="display: block">
<el-input class="item_width_1"
type="textarea"
maxlength="100"
show-word-limit
:rows="3"
placeholder="请输入关怀事项"
v-model="formData.content"></el-input>
</el-form-item>
<el-form-item label="预计关怀时间"
style="display: block"
prop="scheduledTime"
label-width="150px">
<el-date-picker class="item_width_2"
v-model="formData.scheduledTime"
format="yyyy-MM-dd HH:mm"
value-format="yyyy-MM-dd HH:mm"
type="datetime"
placeholder="选择时间">
</el-date-picker>
</el-form-item>
<el-form-item label="提醒时间"
style="display: block"
prop="remindTime"
label-width="150px">
<el-date-picker class="item_width_2"
v-model="formData.remindTime"
format="yyyy-MM-dd HH:mm"
value-format="yyyy-MM-dd HH:mm"
type="datetime"
placeholder="选择时间">
</el-date-picker>
</el-form-item>
<el-form-item label="状态"
label-width="150px"
prop="status">
<el-select class="item_width_2"
v-model="formData.status"
placeholder="请选择"
clearable>
<el-option class="item_width_2"
v-for="item in stateList"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item class="block"
label-width="150px"
style="display: block"
label="添加附件"
prop="attach">
<el-upload class="upload-demo"
:action="uploadUlr"
accept=".doc,.pdf,.xls,.docx,.xlsx"
:on-success="handleFileSuccess"
:on-remove="handleFileRemove"
:on-preview="handleFileDownload"
:limit="3"
:before-upload="beforeUpload"
:file-list="fileList">
<el-button size="small"
:disabled="fileList.length==3"
type="primary">点击上传</el-button>
<div slot="tip"
class="el-upload__tip">最多三个附件只能上传wordexcelpdf文件</div>
</el-upload>
</el-form-item>
</el-form>
</div>
<div class="div_btn">
<el-button size="small"
@click="handleCancle"> </el-button>
<el-button size="small"
type="primary"
:disabled="btnDisable"
@click="handleComfirm"> </el-button>
</div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import { Loading } from 'element-ui' // Loading
import { requestPost } from '@/js/dai/request'
let loading //
export default {
data () {
return {
formType: 'add', // addeditdetail
stateList: [
{
value: 1,
label: '已完成'
},
{
value: 0,
label: '未完成'
},
],
btnDisable: false,
careId: '',
formData: {
content: '',//怀
concernType: '',//怀
resiName: '',//怀
status: '',// 0 1
phone: '',//
address: '',//
scheduledTime: '',//怀yyyy-mm-dd hh:mm
remindTime: '',//yyyy-mm-dd hh:mm
attachmentList: []
},
fileList: [],
uploadUlr: window.SITE_CONFIG['apiURL'] + '/oss/file/uploadvariedfile',
dialogImageUrl: '',
dialogVisible: false
}
},
components: {},
mounted () {
},
methods: {
async initForm (type, careId) {
this.startLoading()
this.$refs['ref_form'].resetFields();
this.formType = type
if (careId) {
this.careId = careId
this.formData.id = careId
await this.loadFormData()
}
this.endLoading()
},
async loadFormData () {
// const url = 'http://yapi.elinkservice.cn/mock/245/gov/project/memoConcern'
const url = '/gov/project/memoConcern'
let params = {
id: this.careId,
readFlag: '0',
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.formData = data
if (data.attachmentList) {
data.attachmentList.forEach(element => {
element.name = element.fileName
element.type = element.attachmentType
element.size = element.attachmentSize
});
this.fileList = data.attachmentList
}
} else {
this.$message.error(msg)
}
},
async handleComfirm () {
this.btnDisable = true
setTimeout(() => {
this.btnDisable = false
}, 10000)
this.$refs['ref_form'].validate((valid, messageObj) => {
if (!valid) {
app.util.validateRule(messageObj)
this.btnDisable = false
} else {
this.addCare()
}
})
},
async addCare () {
const regPhone = /^1(3|4|5|6|7|8|9)\d{9}$/; //
// if (regPhone.test(this.formData.mobile) === false) {
// this.btnDisable = false
// this.$message({
// type: 'warning',
// message: ''
// })
// return false;
// }
if (this.fileList.length > 0) {
this.formData.attachmentList = this.fileList
}
let url = ''
if (this.formType === 'add') {
url = '/gov/project/memoConcern/save'
// url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoConcern/save"
this.formData.id = ''
} else {
url = '/gov/project/memoConcern/update'
// url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoConcern/update"
}
const { data, code, msg } = await requestPost(url, this.formData)
if (code === 0) {
this.$message({
type: 'success',
message: '操作成功'
})
this.resetData()
this.$emit('dialogOk')
this.btnDisable = false
} else {
this.btnDisable = false
this.$message.error(msg)
}
},
handleCancle () {
this.resetData()
this.$emit('dialogCancle')
},
beforeUpload (file) {
const array = file.name.split('.')
const extension = array[array.length - 1]
if (extension !== 'xls'
&& extension !== 'xlsx'
&& extension !== 'doc'
&& extension !== 'docx'
&& extension !== 'pdf') {
this.$message.error('只能上传word、excel、pdf文件!')
return false
}
},
handleFileRemove (file) {
if (file && file.status === "success") {
this.fileList.splice(this.fileList.findIndex(item => item.uid === file.uid), 1)
}
},
handleFileSuccess (res, file) {
if (res.code === 0 && res.msg === 'success') {
const array = file.name.split('.')
const fileType = array[array.length - 1]
file.fileName = file.name
file.attachmentUrl = res.data.url
file.attachmentSize = file.size
file.attachmentType = 'doc'
file.attachmentFormat = fileType
this.fileList.push(file)
console.log(this.fileList)
} else this.$message.error(res.msg)
},
//
handleFileDownload (file) {
var a = document.createElement('a');
var event = new MouseEvent('click');
a.download = file.name;
console.log(a)
a.href = file.url;
a.dispatchEvent(event);
},
resetData () {
this.careId = ''
this.formData = {
content: '',//怀
concernType: '',//怀
resiName: '',//怀
status: '',// 0 1
phone: '',//
address: '',//
scheduledTime: '',//怀yyyy-mm-dd hh:mm
remindTime: '',//yyyy-mm-dd hh:mm
attachmentList: []
}
},
//
startLoading () {
loading = Loading.service({
lock: true, //
text: '正在加载……', //
background: 'rgba(0,0,0,.7)' //
})
},
//
endLoading () {
// clearTimeout(timer);
if (loading) {
loading.close()
}
}
},
computed: {
dataRule () {
return {
resiName: [
{ required: true, message: '关怀人员不能为空', trigger: 'blur' }
],
content: [
{ required: true, message: '关怀事项不能为空', trigger: 'blur' },
],
concernType: [
{ required: false },
],
status: [
{ required: false },
],
phone: [
{ required: false },
],
address: [
{ required: false },
],
scheduledTime: [
{ required: false },
],
remindTime: [
{ required: false },
],
}
},
},
props: {
// serviceList: {
// type: Array,
// default: []
// },
}
}
</script>
<style lang="scss" scoped >
@import "@/assets/scss/modules/visual/communityManageForm.scss";
</style>
<style lang="scss" scoped>
.item_width_1 {
width: 560px;
}
.item_width_2 {
width: 220px;
}
.text_p {
margin: 0;
padding: 0 10px;
border: 1px solid #d9d9d9;
border-radius: 5px;
> p {
margin: 0;
}
}
</style>

603
src/views/modules/secretaryLog/humanisticCare/careList.vue

@ -0,0 +1,603 @@
<template>
<div class="div_main">
<div class="div_search">
<el-form :inline="true"
:model="formData"
ref="ref_searchform"
:label-width="'100px'">
<div>
<el-form-item label="关怀类型"
prop="concernType">
<el-input v-model="formData.concernType"
size="small"
class="item_width_1"
clearable
placeholder="请输入内容">
</el-input>
</el-form-item>
<el-form-item label="关怀人员"
prop="resiName">
<el-input v-model="formData.resiName"
size="small"
class="item_width_1"
clearable
placeholder="请输入内容">
</el-input>
</el-form-item>
<el-form-item label="关怀事项"
prop="content">
<el-input v-model="formData.content"
size="small"
class="item_width_1"
clearable
placeholder="请输入内容">
</el-input>
</el-form-item>
<el-form-item label="状态"
prop="status">
<el-select class="item_width_1"
v-model="formData.status"
size="small"
placeholder="全部"
clearable>
<el-option v-for="item in stateList"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
</div>
<div>
<el-form-item label="预计关怀时间"
prop="scheduledStartTime">
<el-date-picker v-model="scheduledTimeRange"
size="small"
type="daterange"
value-format="yyyy-MM-dd"
@change="handleScheduledTimeChange"
range-separator="至"
start-placeholder="开始时间"
end-placeholder="结束时间">
</el-date-picker>
</el-form-item>
<el-form-item label="创建时间"
prop="startTime">
<el-date-picker v-model="timeRange"
size="small"
type="daterange"
value-format="yyyy-MM-dd"
@change="handleTimeChange"
range-separator="至"
start-placeholder="开始时间"
end-placeholder="结束时间">
</el-date-picker>
</el-form-item>
<el-button style="margin-left:10px"
class="diy-button--search"
size="small"
@click="handleSearch">查询</el-button>
<el-button style="margin-left:10px"
class="diy-button--reset"
size="small"
@click="resetSearch">重置</el-button>
</div>
</el-form>
</div>
<div class="div_table">
<div class="div_btn">
<el-button style=""
class="diy-button--add"
size="small"
@click="handleAdd">新增</el-button>
</div>
<el-table class="table"
:data="tableData"
border
:height="tableHeight"
v-loading="tableLoading"
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}"
style="width: 100%">
<el-table-column label="序号"
header-align="center"
align="center"
type="index"
width="50"></el-table-column>
<el-table-column prop="concernType"
header-align="center"
align="center"
label="关怀类型"
width="180">
</el-table-column>
<el-table-column prop="resiName"
header-align="center"
align="center"
label="关怀人员"
min-width="120">
</el-table-column>
<el-table-column prop="phnoe"
header-align="center"
align="center"
label="电话"
width="120">
</el-table-column>
<el-table-column prop="address"
header-align="center"
align="center"
label="地址"
min-width="150">
</el-table-column>
<el-table-column prop="content"
header-align="center"
align="center"
label="关怀事项"
min-width="200">
</el-table-column>
<el-table-column prop="scheduledTime"
header-align="center"
align="center"
label="预计关怀时间"
width="170">
</el-table-column>
<el-table-column prop="remindTime"
header-align="center"
align="center"
label="提醒时间"
width="170">
</el-table-column>
<el-table-column prop="status"
header-align="center"
align="center"
label="状态"
width="80">
<template slot-scope="scope">
<div>{{scope.row.status===0?'未完成':'已完成'}}</div>
</template>
</el-table-column>
<el-table-column prop="createdTime"
header-align="center"
align="center"
label="创建时间"
width="170">
</el-table-column>
<el-table-column label="操作"
fixed="right"
width="170"
header-align="center"
align="center"
class="operate">
<template slot-scope="scope">
<el-button type="text"
class="div-table-button--detail"
size="small"
@click="handleDetail(scope.row)">查看</el-button>
<el-button v-if="!scope.row.actId"
type="text"
class="div-table-button--edit"
size="small"
@click="handleEdit(scope.row)">修改</el-button>
<el-button v-if="!scope.row.actId"
type="text"
class="div-table-button--detail"
size="small"
@click="handleExport(scope.row)">导出</el-button>
<el-button type="text"
class="div-table-button--delete"
size="small"
@click="handleDelete(scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
<div>
<el-pagination @size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="pageNo"
:page-sizes="[10, 20, 50]"
:page-size="pageSize"
layout="sizes, prev, pager, next, total"
:total="total">
</el-pagination>
</div>
</div>
<!-- 修改弹出框 -->
<el-dialog :visible.sync="formShow"
:close-on-click-modal="false"
:close-on-press-escape="false"
:title="formTitle"
width="950px"
top="5vh"
class="dialog-h"
@closed="diaClose">
<care-form ref="ref_form"
@dialogCancle="addFormCancle"
@dialogOk="addFormOk"></care-form>
</el-dialog>
<el-dialog :visible.sync="detailShow"
:close-on-click-modal="false"
:close-on-press-escape="false"
:title="'详情'"
width="950px"
top="5vh"
class="dialog-h"
@closed="diaClose">
<care-detail ref="ref_detail"
@diaClose="diaClose"></care-detail>
</el-dialog>
</div>
</template>
<script>
import careForm from './careForm'
import careDetail from './careDetail'
import util from '@js/util.js';
import { requestPost } from "@/js/dai/request";
import { mapGetters } from 'vuex'
import { Loading } from 'element-ui' // Loading
let loading //
export default {
data () {
return {
loading: false,
total: 0,
pageSize: 10,
pageNo: 0,
tableLoading: false,
stateList: [
{
value: 1,
label: '已完成'
},
{
value: 0,
label: '未完成'
},
],
scheduledTimeRange: [],
timeRange: [],
formData: {
content: '',//怀
concernType: '',//怀
resiName: '',//怀
status: '',// 0 1
startTime: '',// yyyy-mm-dd
endTime: '',// yyyy-mm-dd
scheduledStartTime: '',//怀 yyyy-mm-dd
scheduledEndTime: '',//怀 yyyy-mm-dd
},
tableData: [],
//form
formShow: false,
formTitle: '新增',
detailShow: false,
}
},
components: {
careForm, careDetail
},
async created () {
},
async mounted () {
//
await this.loadTable()
},
methods: {
handleSearch () {
this.loadTable()
},
async loadTable () {
this.tableLoading = true
const url = "/gov/project/memoConcern/page"
// const url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoConcern/page"
let params = {
pageSize: this.pageSize,
pageNo: this.pageNo,
...this.formData
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.total = data.total
this.tableData = data.list
} else {
this.$message.error(msg)
}
this.tableLoading = false
},
diaClose () {
if (this.formShow) {
// this.$refs.ref_form.resetData()
this.formShow = false
} else {
this.detailShow = false
}
},
handleDetail (row) {
this.detailShow = true
this.formTitle = '详情'
this.$nextTick(() => {
this.$refs.ref_detail.initForm(row)
})
},
handleAdd () {
this.formTitle = '新增'
this.formShow = true
this.$nextTick(() => {
this.$refs.ref_form.initForm('add', null)
})
},
handleEdit (row) {
this.formTitle = '修改'
this.formShow = true
this.$nextTick(() => {
this.$refs.ref_form.initForm('edit', row.id)
})
},
addFormCancle () {
this.formShow = false
},
addFormOk () {
this.formShow = false
this.loadTable()
},
async handleDelete (row) {
this.$confirm("确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.deleteCare(row)
})
.catch(err => {
if (err == "cancel") {
}
});
},
async deleteCare (row) {
const url = "/gov/project/memoConcern/delete"
// const url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoConcern/delete"
let ids = [row.id]
let params = {
ids: ids
}
const { data, code, msg } = await requestPost(url, ids)
if (code === 0) {
this.$message({
type: "success",
message: "删除成功"
});
this.loadTable()
} else {
this.$message.error(msg)
}
},
//
resetSearch () {
this.scheduledTimeRange = []
this.timeRange = []
this.formData = {
content: '',//怀
concernType: '',//怀
resiName: '',//怀
status: '',// 0 1
startTime: '',// yyyy-mm-dd
endTime: '',// yyyy-mm-dd
scheduledStartTime: '',//怀 yyyy-mm-dd
scheduledEndTime: '',//怀 yyyy-mm-dd
}
this.pageSize = 10
this.pageNo = 0
this.loadTable()
},
//
async handleExport (row) {
let title = '人员关怀'
let url = `/gov/project/memoConcern/${row.id}/exportWord`
let params = {}
app.ajax.exportFilePost(
url,
params,
(data, rspMsg) => {
this.download(data, title + '.doc')
},
(rspMsg, data) => {
this.$message.error(rspMsg);
}
);
},
//
download (data, fileName) {
if (!data) {
return
}
var csvData = new Blob([data])
if (window.navigator && window.navigator.msSaveOrOpenBlob) {
window.navigator.msSaveOrOpenBlob(csvData, fileName);
}
// for Non-IE (chrome, firefox etc.)
else {
var a = document.createElement('a');
document.body.appendChild(a);
a.style = 'display: none';
var url = window.URL.createObjectURL(csvData);
a.href = url;
a.download = fileName;
a.click();
a.remove();
window.URL.revokeObjectURL(url);
}
},
handleScheduledTimeChange (time) {
if (time) {
this.formData.scheduledStartTime = time[0]
this.formData.scheduledEndTime = time[1]
} else {
this.formData.scheduledStartTime = ''
this.formData.scheduledEndTime = ''
}
},
handleTimeChange (time) {
if (time) {
this.formData.startTime = time[0]
this.formData.endTime = time[1]
} else {
this.formData.startTime = ''
this.formData.endTime = ''
}
},
handleSizeChange (val) {
this.pageSize = val
this.pageNo = 1
this.loadTable()
},
handleCurrentChange (val) {
this.pageNo = val
this.loadTable()
},
//
startLoading () {
loading = Loading.service({
lock: true, //
text: '正在加载……', //
background: 'rgba(0,0,0,.7)' //
})
},
//
endLoading () {
// clearTimeout(timer);
if (loading) {
loading.close()
}
}
},
computed: {
tableHeight () {
return (this.clientHeight - 430)
},
...mapGetters(['clientHeight'])
},
watch: {
},
props: {
}
}
</script>
<style lang="scss" scoped >
.div_main {
width: 100%;
}
.div_search {
background: #ffffff;
border-radius: 4px;
padding: 30px 20px 5px;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1);
}
.item_width_1 {
width: 260px;
}
.item_width_2 {
width: 495px;
}
.div_table {
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1);
border-radius: 4px;
margin-top: 15px;
padding: 23px 30px 10px;
.table {
margin-top: 20px;
}
}
.div_btn {
}
.el-row {
/* margin-bottom: 20px; */
display: flex;
flex-wrap: wrap;
margin-top: 10px;
margin-right: 50px;
}
</style>

51
src/views/modules/unopen.vue

@ -0,0 +1,51 @@
<template>
<div>
<div class="m-hint">
<div class="wrap">
<img src="@/assets/img/unopen-hint.png" alt="" />
<span>功能暂未开放</span>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {};
},
components: {},
mounted() {},
methods: {
changeCustomerName(customerName) {},
},
};
</script>
<style lang="scss" scoped>
.m-hint {
position: relative;
background-color: #ffffff;
height: calc(100vh - 150px);
.wrap {
position: absolute;
display: block;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
width: 271px;
height: 240px;
font-size: 20px;
line-height: 30px;
font-weight: bold;
color: #aaa;
text-align: center;
img {
margin-bottom: 10px;
}
}
}
</style>

8
src/views/pages/index.vue

@ -5,13 +5,15 @@
<div class="list">
<div class="item" @click="handleClickItem(1)">
<img class="logo" src="@/assets/img/index/logo-1.png" alt="" />
<div class="name">党建引领基层治理互联管理平台</div>
<!-- 党建引领基层治理互联管理平台 -->
<div class="name">数字社区管理平台</div>
<img src="@/assets/img/index/zhuangshi.png" class="tip" />
</div>
<div class="item z-on" @click="handleClickItem(2)">
<img class="logo" src="@/assets/img/index/logo-2.png" alt="" />
<div class="name">数据分析可视化平台</div>
<!-- 数据分析可视化平台 -->
<div class="name">数字社区可视化平台</div>
<img src="@/assets/img/index/zhuangshi.png" class="tip" />
</div>
</div>
@ -19,7 +21,7 @@
<div class="m-footer">
<div class="login-footer">
<p>
<a href="" target="_blank">{{ $t('login.copyright') }}</a>
<a href="http://www.elinkchina.com.cn/" target="_blank">{{ $t('login.copyright') }}</a>
</p>
</div>
</div>

103
src/views/tips.vue

@ -0,0 +1,103 @@
<template>
<div class="msg-tips" :class="showTips ? 'show-tips' : 'hide-tips'">
<el-card class="tips-card">
<div class="tips-wr">
<div class="tips-wr-title">通知提醒</div>
<div class="tips-wr-name">{{ info.typeName }}</div>
<div class="tips-wr-desc">{{ info.content }}</div>
<div class="tips-wr-time">{{ info.remindTime }}</div>
<div class="tips-btn">
<el-button type="text" size="small" @click="handleClose">我知道了</el-button>
<el-button class="diy-button--search" size="small" @click="handleLook">查看详情</el-button>
</div>
</div>
</el-card>
</div>
</template>
<script>
export default {
props: {
show: {
type: Boolean,
default: true
},
info: {
type: Object,
default: () => {}
}
},
data() {
return {
showTips: false
}
},
created() {
this.showTips = this.show
},
methods: {
handleClose() {
this.showTips = false
this.$emit('close')
},
handleLook() {
this.$emit('look')
}
}
}
</script>
<style lang="scss" scoped>
.msg-tips {
position: fixed;
right: 0;
z-index: 999;
transition: bottom .5s;
.tips-card {
width: 400px;
height: 200px;
background: #fff;
}
.tips-wr-title {
font-size: 16px;
color: #3E8EF7;
}
.tips-wr-name {
margin-top: 10px;
padding-left: 20px;
font-weight: bold;
}
.tips-wr-desc {
width: 100%;
height: 33px;
margin-top: 10px;
padding-left: 20px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.tips-wr-time {
margin-top: 10px;
padding-left: 20px;
}
.tips-btn {
display: flex;
align-items: center;
justify-content: space-around;
width: 100%;
box-sizing: border-box;
margin-top: 10px;
padding: 0 20px;
text-align: center;
}
}
.hide-tips {
bottom: -220px;
}
.show-tips {
bottom: 0px;
}
</style>
Loading…
Cancel
Save