提交 cb184436 编写于 作者: vino's avatar vino

广场管理和活动管理开发

上级 022a8d77
...@@ -563,6 +563,16 @@ const vueFilter = { ...@@ -563,6 +563,16 @@ const vueFilter = {
} }
}, },
tagsFilter: (value) => {
let text = "";
if(value != null && value.length > 0){
for (let i = 0; i < value.length; i++) {
text = text + value[i].name;
}
}
return text;
}
} }
export default vueFilter export default vueFilter
...@@ -63,12 +63,14 @@ export const delPlaza = (params) => { ...@@ -63,12 +63,14 @@ export const delPlaza = (params) => {
}; };
export const getPlaza = () => { export const getPlaza = (params) => {
return fetch({ return fetch({
headers, headers,
url: getBaseUrl(`circle/sso/square/info`), url: getBaseUrl(`circle/sso/square/info?id=${params.id}`),
method: 'get', method: 'get',
data: params,
description: '后台管理--广场内专区信息(查看)', description: '后台管理--广场内专区信息(查看)',
withCredentials: true
}) })
}; };
......
<template> <template>
<div class="organization"> <div class="yqrange-index-wrapper">
<bread-crumb :curmbFirst="curmbFirst" :curmbSecond="curmbSecond" :jumPathFirst="jumPathFirst"></bread-crumb>
<div class="yqrange-index-content screenSet" id="screenSet">
<el-row type="flex" class="row-bg"> <el-row type="flex" class="row-bg">
<el-col class="add-organization" v-if="showImportFlag"> <el-col class="add-organization" v-if="showImportFlag">
<!--<el-upload--> <!--<el-upload-->
...@@ -47,7 +49,7 @@ ...@@ -47,7 +49,7 @@
</el-table-column> </el-table-column>
<div slot="empty"> <div slot="empty">
<div class="table-empty"> <div class="table-empty">
<img src="../../../assets/image/no-content1.png"> <img src="../../assets/image/no-content1.png">
<p>没有人员信息</p> <p>没有人员信息</p>
</div> </div>
</div> </div>
...@@ -179,20 +181,19 @@ ...@@ -179,20 +181,19 @@
</div> </div>
</el-dialog> </el-dialog>
</div>
</div> </div>
</template> </template>
<script> <script>
import * as operationData from "@/utils/operation"; import BreadCrumb from "@/components/breadcrumb.vue";
import { openLoading, closeLoading } from "@/utils/utils"; import { openLoading, closeLoading } from "@/utils/utils";
import { doUpload, getFilePath } from "@/utils/qiniu-util"; import { doUpload, getFilePath } from "@/utils/qiniu-util";
import { mpRelSearch, mprDeleteOrg } from '@/utils/yqrange/memberApi'; import { getActivityDocList, removeDoc, importDoc } from '@/utils/activitymanagement/activitymanagementApi';
import { uploadDoc } from '@/utils/yqrange/yqrangeApi';
import addMember from './addMember.vue'
let vm = null; let vm = null;
export default { export default {
components: { components: {
addMember BreadCrumb
}, },
props: { props: {
circleId: { circleId: {
...@@ -237,6 +238,10 @@ ...@@ -237,6 +238,10 @@
} }
} }
}, },
curmbFirst: '活动管理',
// curmbSecond: '直播管理',
curmbThird: '新建直播',// /live-manage?id=
jumPathFirst: '/activity-management',
administrativeValue: "", administrativeValue: "",
optionsRegion: [], optionsRegion: [],
sourceList: [ sourceList: [
...@@ -279,8 +284,13 @@ ...@@ -279,8 +284,13 @@
}, },
created() { created() {
vm = this; vm = this;
this.id = this.$route.query.id;
this.name = this.$route.query.name;
this.curmbSecond = "活动成员管理-" + this.name;
//Idtype:1,内部 2.外部 //Idtype:1,内部 2.外部
vm.idType = localStorage.getItem("storageIdType"); vm.idType = localStorage.getItem("storageIdType");
this.initRange(); this.initRange();
if(vm.idType == 1){ if(vm.idType == 1){
this.showImportFlag = true; this.showImportFlag = true;
...@@ -345,7 +355,7 @@ ...@@ -345,7 +355,7 @@
source: this.formOrganization.source, source: this.formOrganization.source,
}; };
openLoading(vm); openLoading(vm);
mpRelSearch(req).then(res => { getActivityDocList(req).then(res => {
if (!first) { if (!first) {
closeLoading(vm); closeLoading(vm);
} }
...@@ -545,7 +555,7 @@ ...@@ -545,7 +555,7 @@
.add-organization { .add-organization {
margin-left: 20px; margin-left: 20px;
line-height: 20px; line-height: 20px;
width: 120px; width: 60px;
cursor: pointer; cursor: pointer;
padding-top: 10px; padding-top: 10px;
i { i {
......
...@@ -92,20 +92,24 @@ ...@@ -92,20 +92,24 @@
</el-table-column> </el-table-column>
<el-table-column prop="diseaseTags" label="疾病标签" min-width="100" align="center"> <el-table-column prop="diseaseTags" label="疾病标签" min-width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.streamType | streamTypeFilter }}</span> <span>{{ scope.row.diseaseTags | tagsFilter }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="deptTags" label="科室标签" min-width="100" align="center"> <el-table-column prop="deptTags" label="科室标签" min-width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.streamType | streamTypeFilter }}</span> <span>{{ scope.row.deptTags | tagsFilter }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="subjectTags" label="学科标签" min-width="100" align="center"> <el-table-column prop="subjectTags" label="学科标签" min-width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.streamType | streamTypeFilter }}</span> <span>{{ scope.row.subjectTags | tagsFilter }}</span>
</template>
</el-table-column>
<el-table-column prop="createdTime" label="添加时间" min-width="100" align="center">
<template slot-scope="scope">
<span>{{ scope.row.createdTime | liveDateFilter }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="createdTime" label="添加时间" min-width="100" align="center"></el-table-column>
<el-table-column label="操作" min-width="300" align="center"> <el-table-column label="操作" min-width="300" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="editPlaza(scope.row)" type="text" size="small">编辑</el-button> <el-button @click="editPlaza(scope.row)" type="text" size="small">编辑</el-button>
...@@ -565,8 +569,14 @@ ...@@ -565,8 +569,14 @@
savePlaza(){ savePlaza(){
let params = vm.plazaForm; let params = {
id: vm.plazaForm.id,
businessId: vm.plazaForm.businessId,
diseaseIdList: vm.plazaForm.diseaseIdList,
deptIdList: vm.plazaForm.deptIdList,
subjectIdList: vm.plazaForm.subjectIdList
};
openLoading(this);
savePlaza(params).then((res) => { savePlaza(params).then((res) => {
closeLoading(this); closeLoading(this);
if(res.code == "000000") { if(res.code == "000000") {
...@@ -581,9 +591,32 @@ ...@@ -581,9 +591,32 @@
}) })
}, },
cancle(){
vm.dialogVisible = false;
},
//编辑专区 //编辑专区
editPlaza(row) { editPlaza(row) {
vm.plazaForm.id = row.id;
vm.plazaForm.businessId = row.businessId;
if(vm.selectPlazaList.length == 0){
vm.getSelectPlazaList();
}
let params = {
id:row.id
}
openLoading(this);
getPlaza(params).then((res) => {
closeLoading(this);
if(res.code == "000000") {
vm.dialogVisible = true;
vm.plazaForm = res.data;
} else {
this.$message.error("添加失败,请重试");
}
}).catch((error) => {
this.$message.error("请重试");
})
}, },
//删除专区 //删除专区
...@@ -663,7 +696,7 @@ ...@@ -663,7 +696,7 @@
if (res.code == "000000") { if (res.code == "000000") {
// console.log(res); // console.log(res);
let listData = []; let listData = [];
if (res.data.pageContents == null) { if (res.data.list == null) {
return; return;
} }
// for (let i = 0; i < res.data.pageContents.length; i++) { // for (let i = 0; i < res.data.pageContents.length; i++) {
...@@ -682,9 +715,9 @@ ...@@ -682,9 +715,9 @@
// }; // };
// listData.push(obj); // listData.push(obj);
// } // }
this.tableData = res.data.pageContents; this.tableData = res.data.list;
this.totalRows = res.data.totalRows; this.totalRows = res.data.total;
} else { } else {
this.tableData = []; this.tableData = [];
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册