This commit is contained in:
yanran200730
2022-03-09 15:19:33 +08:00
2 changed files with 202 additions and 196 deletions

View File

@@ -37,11 +37,14 @@
<template slot="content"> <template slot="content">
<ai-search-bar class="search-bar"> <ai-search-bar class="search-bar">
<template #left> <template #left>
<el-button size="small" type="primary" :disabled="isShowAdd" icon="iconfont iconAdd" @click="toAdd('')">添加</el-button> <el-button size="small" type="primary" :disabled="isShowAdd" icon="iconfont iconAdd" @click="toAdd('')">添加
<ai-import :instance="instance" :dict="dict" type="appconvenientaddressbook" name="便民通讯录" @success="getList()"> </el-button>
<ai-import :instance="instance" :dict="dict" type="appconvenientaddressbook" name="便民通讯录"
@success="getList()">
<el-button icon="iconfont iconImport">导入</el-button> <el-button icon="iconfont iconImport">导入</el-button>
</ai-import> </ai-import>
<ai-download :instance="instance" url="/app/appconvenientaddressbook/export" :params="search" fileName="便民通讯录" :disabled="tableData.length == 0"> <ai-download :instance="instance" url="/app/appconvenientaddressbook/export" :params="search" fileName="便民通讯录"
:disabled="tableData.length == 0">
<el-button icon="iconfont iconExported" :disabled="tableData.length == 0">导出</el-button> <el-button icon="iconfont iconExported" :disabled="tableData.length == 0">导出</el-button>
</ai-download> </ai-download>
</template> </template>
@@ -91,8 +94,9 @@
</template> </template>
<script> <script>
import { mapState } from 'vuex' import {mapState} from 'vuex'
export default {
export default {
name: 'List', name: 'List',
props: { props: {
@@ -134,20 +138,18 @@
computed: { computed: {
...mapState(['user']), ...mapState(['user']),
isShowAdd () { isShowAdd() {
const str = this.search.areaId.substr(this.search.areaId.length - 3)
return false return false
} }
}, },
watch: { watch: {
unitName (val) { unitName(val) {
this.$refs.tree.filter(val) this.$refs.tree.filter(val)
} }
}, },
mounted() { created() {
this.search.areaId = this.user.info.areaId this.search.areaId = this.user.info.areaId
this.areaName = this.user.info.areaName this.areaName = this.user.info.areaName
this.getTree() this.getTree()
@@ -172,7 +174,7 @@
}) })
}, },
onChange (id) { onChange(id) {
this.instance.post(`/app/appconvenientaddressbook/enable?id=${id}`).then(res => { this.instance.post(`/app/appconvenientaddressbook/enable?id=${id}`).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$message.success('修改成功') this.$message.success('修改成功')
@@ -186,7 +188,7 @@
return data.name.indexOf(value) !== -1 return data.name.indexOf(value) !== -1
}, },
onTreeChange (e) { onTreeChange(e) {
this.search.areaId = e.id this.search.areaId = e.id
this.areaName = e.name this.areaName = e.name
this.search.current = 1 this.search.current = 1
@@ -196,7 +198,7 @@
}) })
}, },
getTree () { getTree() {
this.instance.post(`/admin/area/queryAllArea?id=${this.user.info.areaId}`).then(res => { this.instance.post(`/admin/area/queryAllArea?id=${this.user.info.areaId}`).then(res => {
if (res.code === 0) { if (res.code === 0) {
let parent = res.data.map(v => { let parent = res.data.map(v => {
@@ -218,7 +220,7 @@
}) })
}, },
addChild (parent, list) { addChild(parent, list) {
for (let i = 0; i < list.length; i++) { for (let i = 0; i < list.length; i++) {
if (list[i].parentId === parent.id) { if (list[i].parentId === parent.id) {
parent.children.push(list[i]) parent.children.push(list[i])
@@ -260,7 +262,7 @@
}) })
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@@ -315,6 +317,7 @@
.addressBook-left__list--search { .addressBook-left__list--search {
flex: 1; flex: 1;
::v-deep input { ::v-deep input {
width: 100%; width: 100%;
} }
@@ -336,7 +339,7 @@
background: transparent; background: transparent;
.el-tree-node__expand-icon.is-leaf { .el-tree-node__expand-icon.is-leaf {
color: transparent!important; color: transparent !important;
} }
.el-tree-node__content > .el-tree-node__expand-icon { .el-tree-node__content > .el-tree-node__expand-icon {

View File

@@ -4,9 +4,6 @@
<template #title> <template #title>
<ai-title title="会议详情" isShowBottomBorder isShowBack @onBackClick="$parent.goBack"> <ai-title title="会议详情" isShowBottomBorder isShowBack @onBackClick="$parent.goBack">
<template #rightBtn> <template #rightBtn>
<p class="conference_top_area" v-if="detail.joinStatus==3">
<el-button type="primary" @click="toDo">待定</el-button>
</p>
<p class="conference_top_area" v-if="listType==0"> <p class="conference_top_area" v-if="listType==0">
<!-- <el-button type="primary" v-if="detail.status==0" @click="changeMeeting('是否立即发布会议?')">立即发布</el-button> --> <!-- <el-button type="primary" v-if="detail.status==0" @click="changeMeeting('是否立即发布会议?')">立即发布</el-button> -->
<el-button type="primary" v-if="detail.status==1" @click="noticeMetting()">参会提醒</el-button> <el-button type="primary" v-if="detail.status==1" @click="noticeMetting()">参会提醒</el-button>
@@ -18,6 +15,7 @@
</p> </p>
<!-- v-if="detail.status==0||detail.status==3" --> <!-- v-if="detail.status==0||detail.status==3" -->
<p class="conference_top_area" v-if="listType==1&&info.status==1"> <p class="conference_top_area" v-if="listType==1&&info.status==1">
<el-button @click="toDo" style="width:80px;" class="del-btn-list">待定</el-button>
<el-button @click="innerVisible=true" v-if="info.joinStatus!=2" style="width:80px;" class="del-btn-list"> <el-button @click="innerVisible=true" v-if="info.joinStatus!=2" style="width:80px;" class="del-btn-list">
请假 请假
</el-button> </el-button>
@@ -225,13 +223,13 @@ export default {
methods: { methods: {
toDo() { toDo() {
this.$confirm("是否确认待定会议?").then(_ => { this.$confirm("是否确认待定会议?").then(_ => {
this.$http.post("/app/appmeetinginfo/tobeConfirm", null, { this.instance.post("/app/appmeetinginfo/tobeConfirm", null, {
params: { params: {
meetingId: this.detail.id, meetingId: this.detail.id,
} }
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$u.toast("会议待定"); this.$message.success("会议待定");
setTimeout(_ => { setTimeout(_ => {
this.$parent.goBack(); this.$parent.goBack();
}, 800) }, 800)
@@ -412,6 +410,11 @@ export default {
height: 100%; height: 100%;
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
.conference_top_area {
display: flex;
align-items: center;
}
.user-search { .user-search {
width: 100%; width: 100%;
height: 48px; height: 48px;