修改
This commit is contained in:
parent
47325a5608
commit
6bea1e9813
303
src/views/system/components/message.vue
Normal file
303
src/views/system/components/message.vue
Normal file
@ -0,0 +1,303 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-button size="small" @click="classificationOpen = true" style="width: 200px;font-size:14px;text-align:left"
|
||||||
|
:style="handleselectName ? 'color:black' : 'color:#C0C4CC'">{{ handleselectName ? handleselectName : '选择短信模板'
|
||||||
|
}}</el-button>
|
||||||
|
<el-dialog title="短信库模板选择" :visible.sync="classificationOpen" width="70%" :before-close="classificationOpenfalse">
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<!--部门数据-->
|
||||||
|
<el-col :span="6" :xs="24">
|
||||||
|
<div class="leftmessage" ref="box">
|
||||||
|
<div class="name">科室名称</div>
|
||||||
|
<div>
|
||||||
|
<el-input v-model="name" placeholder="请输入科室名称" clearable @keyup.enter.native="handleQuery" />
|
||||||
|
</div>
|
||||||
|
<div class="listitem">
|
||||||
|
<div :class="itemname == null ? 'allactive' : 'all'" @click="itemdata()">
|
||||||
|
全部
|
||||||
|
</div>
|
||||||
|
<span class="count">{{ count }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="listitem" v-for="(item, index) in DepartmentoList" :key="index" @click="itemdata(item)">
|
||||||
|
<div :class="itemname == item.id ? 'allactive' : 'all'">
|
||||||
|
{{ item.departmentName }}
|
||||||
|
</div>
|
||||||
|
<span class="count">{{ item.countNum }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
<!--用户数据-->
|
||||||
|
<el-col :span="18" :xs="24">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
|
||||||
|
label-width="68px">
|
||||||
|
<el-form-item label="短信模板名称" prop="textMessageName" label-width="100px">
|
||||||
|
<el-input v-model="queryParams.textMessageName" placeholder="请输入微信模版名称" clearable
|
||||||
|
@keyup.enter.native="handleQuery" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="模板ID" prop="textMessageId">
|
||||||
|
<el-input v-model="queryParams.textMessageId" placeholder="请输入模板ID" clearable
|
||||||
|
@keyup.enter.native="handleQuery" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="短信状态" prop="textMessageStatus">
|
||||||
|
<el-select v-model="queryParams.textMessageStatus" placeholder="请选择短信通道">
|
||||||
|
<el-option v-for="item in optionstext" :key="item.value" :label="item.label" :value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<el-table v-loading="loading" :data="templateList">
|
||||||
|
<el-table-column type="index" width="55" align="center" label="序号" />
|
||||||
|
<el-table-column label="短信模板名称" align="center" prop="textMessageName" :show-overflow-tooltip="true" />
|
||||||
|
<el-table-column label="短信ID" align="center" prop="textMessageId" />
|
||||||
|
<el-table-column label="短信内容" align="center" prop="textMessageContent" :show-overflow-tooltip="true" />
|
||||||
|
<el-table-column :show-overflow-tooltip="true" label="适用任务类型" align="center" prop="suitTaskTypeName">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.suitTaskTypeName != "null" ? scope.row.suitTaskTypeName : '' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="短信通道" align="center" prop="textMessageChannel">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.textMessageChannel == "WATER_DROPLET_PLATFORM" ? "水滴平台" : "" }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="病种名称" align="center" prop="diseaseTypeName" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button size="mini" type="text" @click="handleselect(scope.row)"
|
||||||
|
v-if="handleselectId != scope.row.textMessageId">选择</el-button>
|
||||||
|
<el-button size="mini" type="text" @click="nohandleselect(scope.row)"
|
||||||
|
v-if="handleselectId == scope.row.textMessageId">取消选择</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize" @pagination="getList" />
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listMessage, getMessage, delMessage, addMessage, updateMessage, listMessageNum } from "@/api/manage/message";
|
||||||
|
import { typelist } from "@/api/manage/template";
|
||||||
|
import { department, listDisease } from "@/api/manage/script";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Template",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
handleselectName: '',
|
||||||
|
handleselectId: '',
|
||||||
|
classificationOpen: false,
|
||||||
|
itemname: null,
|
||||||
|
departmentName: null,
|
||||||
|
diseaseTypeName: null,
|
||||||
|
name: '',
|
||||||
|
departmentId: null,
|
||||||
|
count: '',//全部
|
||||||
|
DepartmentoList: [],//左侧数组
|
||||||
|
// 左侧传值
|
||||||
|
querydepartmen: {
|
||||||
|
departmentName: "",
|
||||||
|
// pageNum: 1,
|
||||||
|
// pageSize: 10,
|
||||||
|
},
|
||||||
|
optionstext: [{
|
||||||
|
value: 'GROUNDING',
|
||||||
|
label: '上架'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'OFF_SHELF',
|
||||||
|
label: '下架'
|
||||||
|
}],
|
||||||
|
options: [{
|
||||||
|
value: 'WATER_DROPLET_PLATFORM',
|
||||||
|
label: '水滴平台'
|
||||||
|
},],
|
||||||
|
// 遮罩层
|
||||||
|
loading: false,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 微信模板信息表格数据
|
||||||
|
templateList: [],
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
textMessageId: null,
|
||||||
|
departmentId: null,
|
||||||
|
departmentName: null,
|
||||||
|
diseaseTypeId: null,
|
||||||
|
diseaseTypeName: null,
|
||||||
|
textMessageName: null,
|
||||||
|
textMessageContent: null,
|
||||||
|
textMessageChannel: null,
|
||||||
|
textMessageStatus: null,
|
||||||
|
textMessageSort: null,
|
||||||
|
textMessageRemark: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
name(val) {
|
||||||
|
this.querydepartmen.departmentName = val
|
||||||
|
this.Departmentlist();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
this.Departmentlist();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
nohandleselect() {
|
||||||
|
this.handleselectId = ''
|
||||||
|
this.handleselectName = ''
|
||||||
|
this.$emit("on-template", { templateId: '', templateName: '' });
|
||||||
|
},
|
||||||
|
handleselect(item) {
|
||||||
|
this.handleselectId = item.textMessageId
|
||||||
|
this.handleselectName = item.textMessageName
|
||||||
|
this.$emit("on-template", { templateId: item.textMessageId, templateName: item.textMessageName });
|
||||||
|
this.classificationOpen = false
|
||||||
|
},
|
||||||
|
classificationOpenfalse() {
|
||||||
|
this.classificationOpen = false
|
||||||
|
},
|
||||||
|
/** 查询微信模板信息列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
this.queryParams.textMessageStatus = "GROUNDING"
|
||||||
|
listMessage(this.queryParams).then(response => {
|
||||||
|
this.templateList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 左侧科室列表
|
||||||
|
Departmentlist() {
|
||||||
|
this.loading = true;
|
||||||
|
this.querydepartmen.textMessageStatus = "GROUNDING"
|
||||||
|
listMessageNum(this.querydepartmen).then(response => {
|
||||||
|
this.DepartmentoList = response.data;
|
||||||
|
let sum = 0;
|
||||||
|
this.DepartmentoList.forEach((item) => {
|
||||||
|
if (item.countNum != null) {
|
||||||
|
sum += item.countNum;
|
||||||
|
}
|
||||||
|
this.count = sum;
|
||||||
|
});
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 左侧科室
|
||||||
|
itemdata(item) {
|
||||||
|
if (item) {
|
||||||
|
this.itemname = item.id
|
||||||
|
this.departmentName = item.departmentName
|
||||||
|
this.loading = true;
|
||||||
|
this.queryParams.departmentId = item.id
|
||||||
|
this.getList()
|
||||||
|
} else {
|
||||||
|
this.queryParams.departmentId = ''
|
||||||
|
this.itemname = null
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.queryParams.departmentId = null;
|
||||||
|
this.itemname = null;
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.app-container {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-input-number .el-input__inner {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leftmessage {
|
||||||
|
height: 600px;
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
.name {
|
||||||
|
font-weight: 700;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.listitem {
|
||||||
|
width: 100%;
|
||||||
|
height: 50px;
|
||||||
|
border-bottom: 1px solid #dcdfe6;
|
||||||
|
|
||||||
|
.count {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
// right: -172px;
|
||||||
|
left: 210px;
|
||||||
|
color: #a4a6aa;
|
||||||
|
top: -35px;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.all {
|
||||||
|
height: 50px;
|
||||||
|
line-height: 50px;
|
||||||
|
padding-left: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.allactive {
|
||||||
|
background: #e8f4ff;
|
||||||
|
height: 50px;
|
||||||
|
line-height: 50px;
|
||||||
|
padding-left: 13px;
|
||||||
|
border-left: 3px solid #4d9de7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
left: 20px;
|
||||||
|
top: -11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dotClass {
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
border-radius: 50%;
|
||||||
|
display: block;
|
||||||
|
// margin-left: 10px; //这个用于圆点居中
|
||||||
|
position: relative;
|
||||||
|
top: 16px;
|
||||||
|
left: 25px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
476
src/views/system/components/propaganda.vue
Normal file
476
src/views/system/components/propaganda.vue
Normal file
@ -0,0 +1,476 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-button size="small" @click="classificationOpen = true" style="width: 200px;font-size:14px;text-align:left"
|
||||||
|
:style="handleselectName ? 'color:black' : 'color:#C0C4CC'">{{ handleselectName ? handleselectName :
|
||||||
|
'选择宣教模板' }}</el-button>
|
||||||
|
<el-dialog title="宣教库模板选择" :visible.sync="classificationOpen" width="70%"
|
||||||
|
:before-close="classificationOpenfalse">
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<!--部门数据-->
|
||||||
|
<el-col :span="6" :xs="24">
|
||||||
|
<div class="leftpro" ref="box">
|
||||||
|
<div class="name">科室名称</div>
|
||||||
|
<div>
|
||||||
|
<el-input v-model="name" placeholder="请输入科室名称" clearable
|
||||||
|
@keyup.enter.native="handleQuery" />
|
||||||
|
</div>
|
||||||
|
<div class="listitem">
|
||||||
|
<div :class="itemname == null ? 'allactive' : 'all'" @click="itemdata()">
|
||||||
|
全部
|
||||||
|
</div>
|
||||||
|
<span class="count">{{ count }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="listitem" v-for="(item, index) in DepartmentoList" :key="index"
|
||||||
|
@click="itemdata(item)">
|
||||||
|
<div :class="itemname == item.id ? 'allactive' : 'all'">
|
||||||
|
{{ item.departmentName }}
|
||||||
|
</div>
|
||||||
|
<span class="count">{{ item.countNum }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
<!--用户数据-->
|
||||||
|
<el-col :span="18" :xs="24">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
|
||||||
|
label-width="68px">
|
||||||
|
<el-form-item label="宣教名称" prop="propagandaTitle">
|
||||||
|
<el-input v-model="queryParams.propagandaTitle" placeholder="请输入宣教名称" clearable
|
||||||
|
@keyup.enter.native="handleQuery" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="宣教类型" prop="propagandaType">
|
||||||
|
<el-select v-model="queryParams.propagandaType" placeholder="请选择">
|
||||||
|
<el-option v-for="item in optionstype" :key="item.value" :label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" size="mini"
|
||||||
|
@click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<el-table v-loading="loading" :data="propagandaList">
|
||||||
|
<el-table-column label="序号" align="center" prop="id" type="index" />
|
||||||
|
<el-table-column label="病种名称" align="center" prop="diseaseTypeName" />
|
||||||
|
<el-table-column label="宣教名称" align="center" prop="propagandaTitle"
|
||||||
|
:show-overflow-tooltip="true">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="宣教ID" align="center" prop="propagandaCode"
|
||||||
|
:show-overflow-tooltip="true" />
|
||||||
|
<el-table-column label="宣教类型" align="center" prop="propagandaType">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.propagandaType == "MEDICATION_KNOWLEDGE" ? "用药知识" : "" }}
|
||||||
|
{{ scope.row.propagandaType == "DISEASE_POPULARIZATION" ? "疾病科普" : "" }}
|
||||||
|
{{ scope.row.propagandaType == "SPORT_NUTRITION" ? "运动营养" : "" }}
|
||||||
|
{{ scope.row.propagandaType == "OTHER_KNOWLEDGE" ? "其他知识" : "" }}
|
||||||
|
{{ scope.row.propagandaType == "CUSTOMIZED_CONTENT" ? "定制内容" : "" }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button size="mini" type="text" @click="handleselect(scope.row)"
|
||||||
|
v-if="handleselectId != scope.row.id">选择</el-button>
|
||||||
|
<el-button size="mini" type="text" @click="nohandleselect(scope.row)"
|
||||||
|
v-if="handleselectId == scope.row.id">取消选择</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize" @pagination="getList" />
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listPropaganda, getPropaganda, delPropaganda, addPropaganda, updatePropaganda, selectNumByDept, copy, updateStatus } from "@/api/manage/propaganda";
|
||||||
|
import stationAcatar from "../../system/stationAvatar/index.vue";
|
||||||
|
export default {
|
||||||
|
name: "propaganda",
|
||||||
|
components: { stationAcatar },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
handleselectName: '',
|
||||||
|
handleselectId: '',
|
||||||
|
classificationOpen: false,
|
||||||
|
itemname: null,
|
||||||
|
departmentName: null,
|
||||||
|
name: '',
|
||||||
|
count: '',//全部
|
||||||
|
DepartmentoList: [],//左侧数组
|
||||||
|
// 左侧传值
|
||||||
|
querydepartmen: {
|
||||||
|
departmentName: "",
|
||||||
|
// pageNum: 1,
|
||||||
|
// pageSize: 10,
|
||||||
|
},
|
||||||
|
optionstype: [{
|
||||||
|
value: 'MEDICATION_KNOWLEDGE',
|
||||||
|
label: '用药知识'
|
||||||
|
}, {
|
||||||
|
value: 'DISEASE_POPULARIZATION',
|
||||||
|
label: '疾病科普'
|
||||||
|
}, {
|
||||||
|
value: 'SPORT_NUTRITION',
|
||||||
|
label: '运动营养'
|
||||||
|
}, {
|
||||||
|
value: 'OTHER_KNOWLEDGE',
|
||||||
|
label: '其他知识'
|
||||||
|
}, {
|
||||||
|
value: 'CUSTOMIZED_CONTENT',
|
||||||
|
label: '定制内容'
|
||||||
|
}],
|
||||||
|
loading: false,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 患者宣教信息表格数据
|
||||||
|
propagandaList: [],
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
patientId: null,
|
||||||
|
propagandaId: null,
|
||||||
|
departmentName: null,
|
||||||
|
createTimeStart: null,
|
||||||
|
createTimeEnd: null,
|
||||||
|
propagandaTitle: null,
|
||||||
|
propagandaType: null,
|
||||||
|
propagandaCode: null,
|
||||||
|
propagandaContent: null,
|
||||||
|
propagandaCoverPath: null,
|
||||||
|
articleSummary: null,
|
||||||
|
voicebroadcast: null,
|
||||||
|
diseaseTypeName: null,
|
||||||
|
propagandaLink: null,
|
||||||
|
propagandaBarcodePath: null,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
pickerStartTime() {
|
||||||
|
return {
|
||||||
|
disabledDate: (time) => {
|
||||||
|
if (this.queryParams.createTimeEnd) {
|
||||||
|
let edtTime = this.queryParams.createTimeEnd.replace(/-/g, "/");
|
||||||
|
return time.getTime() > new Date(edtTime);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
pickerEndTime() {
|
||||||
|
return {
|
||||||
|
disabledDate: (time) => {
|
||||||
|
if (this.queryParams.createTimeStart) {
|
||||||
|
let startTime = this.queryParams.createTimeStart.replace(/-/g, "/");
|
||||||
|
return time.getTime() < new Date(startTime);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.Departmentlist();
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
name(val) {
|
||||||
|
this.querydepartmen.departmentName = val
|
||||||
|
this.Departmentlist();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
nohandleselect() {
|
||||||
|
this.handleselectId = ''
|
||||||
|
this.handleselectName = ''
|
||||||
|
this.$emit("on-template", { templateId: '', templateName: '' });
|
||||||
|
},
|
||||||
|
handleselect(item) {
|
||||||
|
this.handleselectId = item.id
|
||||||
|
this.handleselectName = item.propagandaTitle
|
||||||
|
this.$emit("on-template", { templateId: item.id, templateName: item.propagandaTitle });
|
||||||
|
this.classificationOpen = false
|
||||||
|
},
|
||||||
|
classificationOpenfalse() {
|
||||||
|
this.classificationOpen = false
|
||||||
|
},
|
||||||
|
// 开始时间
|
||||||
|
changecreateTimeStart(e) {
|
||||||
|
this.queryParams.createTimeStart = e
|
||||||
|
},
|
||||||
|
// 结束时间
|
||||||
|
changecreateTimeEnd(e) {
|
||||||
|
this.queryParams.createTimeEnd = e
|
||||||
|
},
|
||||||
|
// 左侧科室列表
|
||||||
|
Departmentlist() {
|
||||||
|
this.loading = true;
|
||||||
|
this.querydepartmen.propagandaStatus = 'APPROVED'
|
||||||
|
selectNumByDept(this.querydepartmen).then(response => {
|
||||||
|
this.DepartmentoList = response.data;
|
||||||
|
let sum = 0;
|
||||||
|
this.DepartmentoList.forEach((item) => {
|
||||||
|
if (item.countNum != null) {
|
||||||
|
sum += item.countNum;
|
||||||
|
}
|
||||||
|
this.count = sum;
|
||||||
|
});
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 左侧科室
|
||||||
|
itemdata(item) {
|
||||||
|
if (item) {
|
||||||
|
this.itemname = item.id
|
||||||
|
// this.departmentName = item.departmentName
|
||||||
|
this.loading = true;
|
||||||
|
this.queryParams.departmentId = item.id
|
||||||
|
this.getList()
|
||||||
|
} else {
|
||||||
|
this.queryParams.departmentId = ''
|
||||||
|
this.itemname = null
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/** 查询患者宣教信息列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
this.queryParams.propagandaStatus = 'APPROVED'
|
||||||
|
listPropaganda(this.queryParams).then(response => {
|
||||||
|
this.propagandaList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.app-container {
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.propagandaselect {
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
background: #fafafa;
|
||||||
|
|
||||||
|
.add {
|
||||||
|
color: #b6b6b7;
|
||||||
|
font-size: 22px;
|
||||||
|
line-height: 100px;
|
||||||
|
text-align: center; //水平居中
|
||||||
|
// margin: 0 auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.leftpro {
|
||||||
|
height: 760px;
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
.name {
|
||||||
|
font-weight: 700;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.listitem {
|
||||||
|
width: 100%;
|
||||||
|
height: 50px;
|
||||||
|
border-bottom: 1px solid #dcdfe6;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.count {
|
||||||
|
display: inline-block;
|
||||||
|
position: absolute;
|
||||||
|
left: 210px;
|
||||||
|
color: #a4a6aa;
|
||||||
|
top: 10px;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.all {
|
||||||
|
height: 50px;
|
||||||
|
line-height: 50px;
|
||||||
|
padding-left: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.allactive {
|
||||||
|
background: #e8f4ff;
|
||||||
|
height: 50px;
|
||||||
|
line-height: 50px;
|
||||||
|
padding-left: 13px;
|
||||||
|
border-left: 3px solid #4d9de7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
left: 20px;
|
||||||
|
top: -11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
audio {
|
||||||
|
width: 350px;
|
||||||
|
|
||||||
|
// background: #4d9de7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titletop {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bodytop {
|
||||||
|
position: relative;
|
||||||
|
top: 20px;
|
||||||
|
height: 500px;
|
||||||
|
overflow: auto;
|
||||||
|
border: 1px solid #e2e2e2;
|
||||||
|
|
||||||
|
.titledata {
|
||||||
|
margin: 30px 0px 15px 30px;
|
||||||
|
top: 14px;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.audiotop {
|
||||||
|
margin: 10px 0px 10px 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
// width: 100%;
|
||||||
|
// width: 362px;
|
||||||
|
// height: 127px;
|
||||||
|
margin: 0px 0px 0px 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.know {
|
||||||
|
margin: 11px 0px 10px 30px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.knowlist {
|
||||||
|
margin: 10px 0px 10px 30px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewbody {
|
||||||
|
width: 100%;
|
||||||
|
height: 500px;
|
||||||
|
// background: #409eff;
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
.left {
|
||||||
|
overflow: auto;
|
||||||
|
width: 77%;
|
||||||
|
height: 500px;
|
||||||
|
|
||||||
|
// background: #989992;
|
||||||
|
video {
|
||||||
|
height: 500px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
// height: 100%;
|
||||||
|
// width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right {
|
||||||
|
width: 20%;
|
||||||
|
// background: red;
|
||||||
|
overflow: auto;
|
||||||
|
margin-left: 30px;
|
||||||
|
|
||||||
|
.nametitle {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nameitem {
|
||||||
|
color: #959595;
|
||||||
|
margin: 13px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.bodytopxj {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
white-space: wrap;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: flex-start;
|
||||||
|
|
||||||
|
// align-content: space-between;
|
||||||
|
.bodylist {
|
||||||
|
width: 31%;
|
||||||
|
height: 221px;
|
||||||
|
border: 2px solid #e2e3e5;
|
||||||
|
border-radius: 10px;
|
||||||
|
position: relative;
|
||||||
|
// margin-bottom: 10px;
|
||||||
|
margin: 6px;
|
||||||
|
|
||||||
|
.texttitle {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
font-weight: 700;
|
||||||
|
margin: 5px 0px 5px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
.dataliat {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
margin: 0px 0px 5px 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #989992;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bq {
|
||||||
|
width: 155px;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.label {
|
||||||
|
position: absolute;
|
||||||
|
right: 18px;
|
||||||
|
color: #409eff;
|
||||||
|
bottom: 23px;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -58,7 +58,7 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="text" @click="handleselect(scope.row)"
|
<el-button size="mini" type="text" @click="handleselect(scope.row)"
|
||||||
v-if="handleselectId != scope.row.id">选择</el-button>
|
v-if="handleselectId != scope.row.id">选择</el-button>
|
||||||
<el-button size="mini" type="text" @click="handleselect(scope.row)"
|
<el-button size="mini" type="text" @click="nohandleselect(scope.row)"
|
||||||
v-if="handleselectId == scope.row.id">取消选择</el-button>
|
v-if="handleselectId == scope.row.id">取消选择</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -79,7 +79,6 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
classificationOpen: false,
|
classificationOpen: false,
|
||||||
classificationform: {},
|
|
||||||
//科室名称
|
//科室名称
|
||||||
departmentName: '',
|
departmentName: '',
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
@ -124,6 +123,11 @@ export default {
|
|||||||
this.queryParams.departmentId = item.id;
|
this.queryParams.departmentId = item.id;
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
|
nohandleselect() {
|
||||||
|
this.handleselectId = ''
|
||||||
|
this.handleselectName = ''
|
||||||
|
this.$emit("on-template", { templateId: '', templateName: '' });
|
||||||
|
},
|
||||||
handleselect(item) {
|
handleselect(item) {
|
||||||
this.handleselectId = item.id
|
this.handleselectId = item.id
|
||||||
this.handleselectName = item.questionnaireName
|
this.handleselectName = item.questionnaireName
|
||||||
@ -132,7 +136,6 @@ export default {
|
|||||||
},
|
},
|
||||||
classificationOpenfalse() {
|
classificationOpenfalse() {
|
||||||
this.classificationOpen = false
|
this.classificationOpen = false
|
||||||
this.classificationform = {}
|
|
||||||
},
|
},
|
||||||
// 节点单击事件
|
// 节点单击事件
|
||||||
handleNodeClick(data) {
|
handleNodeClick(data) {
|
||||||
|
|||||||
@ -89,15 +89,18 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="topform">
|
<div class="topform">
|
||||||
<el-form ref="form" :inline="true" :model="form" class="form">
|
<el-form ref="form" :inline="true" :model="form" class="form">
|
||||||
<el-form-item label="问卷库模板选择" prop="">
|
<el-form-item label="问卷库模板选择" prop="">
|
||||||
<question @on-template="ontemplate"></question>
|
<question @on-template="questionontemplate"></question>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="宣教库模板选择" prop="">
|
||||||
|
<propaganda @on-template="propagandaontemplate"></propaganda>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="bottomform">
|
<div class="bottomform">
|
||||||
<wangeditor style="width:100%;" ref="editor" v-if="wangeditorshow" />
|
<!-- <wangeditor style="width:100%;" ref="editor" v-if="wangeditorshow" /> -->
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
@ -108,16 +111,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
模板:
|
模板:
|
||||||
<span>
|
<message></message>
|
||||||
<el-select v-model="value" style="width:200px;">
|
|
||||||
<el-option v-for="item in taskStatusDictList" :key="item.id" style="color:black"
|
|
||||||
:label="item.taskStatusName" :value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
<el-switch v-model="form.value" active-color="#13ce66">
|
<el-switch v-model="form.messagePushSign" active-color="#13ce66" active-value="1"
|
||||||
|
inactive-value="0">
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -270,7 +268,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="TemporaryStorage">暂 存</el-button>
|
<el-button @click="TemporaryStorage">暂 存</el-button>
|
||||||
<el-button type="primary" @click="">审核完成</el-button>
|
<el-button type="primary">审核完成</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -278,11 +276,13 @@
|
|||||||
<script>
|
<script>
|
||||||
import wangeditor from '../components/wangEditor.vue'
|
import wangeditor from '../components/wangEditor.vue'
|
||||||
import question from '../components/question.vue'
|
import question from '../components/question.vue'
|
||||||
|
import message from '../components/message.vue'
|
||||||
|
import propaganda from '../components/propaganda.vue'
|
||||||
import {
|
import {
|
||||||
selectTaskTypeList, taskPartitionList, taskStatusDictList
|
selectTaskTypeList, taskPartitionList, taskStatusDictList
|
||||||
} from '@/api/system/specialDiseaseNode'
|
} from '@/api/system/specialDiseaseNode'
|
||||||
export default {
|
export default {
|
||||||
components: { wangeditor, question },
|
components: { wangeditor, question, propaganda, message },
|
||||||
name: "specialDiseaseNode",
|
name: "specialDiseaseNode",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -292,11 +292,11 @@ export default {
|
|||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
templateId: '',
|
templateId: '',
|
||||||
templateName: ' ',
|
templateName: '',
|
||||||
taskType: '',
|
taskType: '',
|
||||||
taskTypeName: '',
|
taskTypeName: '',
|
||||||
taskSubdivision: '',
|
taskSubdivision: '',
|
||||||
taskSubdivisionName: ' ',
|
taskSubdivisionName: '',
|
||||||
taskStatus: '',
|
taskStatus: '',
|
||||||
secondClassifyDescribe: '',
|
secondClassifyDescribe: '',
|
||||||
executionTime: '',
|
executionTime: '',
|
||||||
@ -311,7 +311,7 @@ export default {
|
|||||||
taskTypeName: '',
|
taskTypeName: '',
|
||||||
taskSubdivisionName: '',
|
taskSubdivisionName: '',
|
||||||
templateId: '',
|
templateId: '',
|
||||||
templateName: ' ',
|
templateName: '',
|
||||||
taskType: '',
|
taskType: '',
|
||||||
taskTypeName: '',
|
taskTypeName: '',
|
||||||
taskSubdivision: '',
|
taskSubdivision: '',
|
||||||
@ -343,14 +343,19 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.form = this.lists[0].list[0]
|
this.form = this.lists[0].list[0]
|
||||||
// console.log(this.$refs.editor.html)
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//暂存
|
//暂存
|
||||||
TemporaryStorage() {
|
TemporaryStorage() {
|
||||||
console.log(this.lists)
|
console.log(this.lists)
|
||||||
},
|
},
|
||||||
ontemplate(item) {
|
//问卷传值
|
||||||
|
questionontemplate(item) {
|
||||||
|
this.form.templateId = item.templateId
|
||||||
|
this.form.templateName = item.templateName
|
||||||
|
},
|
||||||
|
//宣教传值
|
||||||
|
propagandaontemplate(item) {
|
||||||
this.form.templateId = item.templateId
|
this.form.templateId = item.templateId
|
||||||
this.form.templateName = item.templateName
|
this.form.templateName = item.templateName
|
||||||
},
|
},
|
||||||
@ -402,7 +407,7 @@ export default {
|
|||||||
taskTypeName: '',
|
taskTypeName: '',
|
||||||
taskSubdivisionName: '',
|
taskSubdivisionName: '',
|
||||||
templateId: '',
|
templateId: '',
|
||||||
templateName: ' ',
|
templateName: '',
|
||||||
taskType: '',
|
taskType: '',
|
||||||
taskTypeName: '',
|
taskTypeName: '',
|
||||||
taskSubdivision: '',
|
taskSubdivision: '',
|
||||||
@ -419,7 +424,7 @@ export default {
|
|||||||
taskTypeName: '',
|
taskTypeName: '',
|
||||||
taskSubdivisionName: '',
|
taskSubdivisionName: '',
|
||||||
templateId: '',
|
templateId: '',
|
||||||
templateName: ' ',
|
templateName: '',
|
||||||
taskType: '',
|
taskType: '',
|
||||||
taskTypeName: '',
|
taskTypeName: '',
|
||||||
taskSubdivision: '',
|
taskSubdivision: '',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user