Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
shidongli 2024-07-12 11:14:40 +08:00
commit 5200769be2
5 changed files with 77 additions and 213 deletions

View File

@ -55,6 +55,7 @@ export default {
} }
}, },
created() { created() {
localStorage.removeItem('questionquery')
localStorage.removeItem('manualReviewquery') localStorage.removeItem('manualReviewquery')
localStorage.removeItem('signRecordquery') localStorage.removeItem('signRecordquery')
localStorage.removeItem('followupquery') localStorage.removeItem('followupquery')

View File

@ -112,6 +112,9 @@ const actions = {
}, },
delView({ dispatch, state }, view) { delView({ dispatch, state }, view) {
if (view.fullPath == "/knowledge/question") {
localStorage.removeItem('questionquery')
}
if (view.fullPath == '/task/manualReview') { if (view.fullPath == '/task/manualReview') {
localStorage.removeItem('manualReviewquery') localStorage.removeItem('manualReviewquery')
} }
@ -144,6 +147,9 @@ const actions = {
}, },
delOthersViews({ dispatch, state }, view) { delOthersViews({ dispatch, state }, view) {
if (view.fullPath == "/knowledge/question") {
localStorage.removeItem('questionquery')
}
if (view.fullPath != '/task/manualReview') { if (view.fullPath != '/task/manualReview') {
localStorage.removeItem('manualReviewquery') localStorage.removeItem('manualReviewquery')
} }

View File

@ -79,6 +79,7 @@ export default {
switchvalue: true, switchvalue: true,
// //
itemid: null, itemid: null,
departmentName: '',
// //
DepartmentoList: [], DepartmentoList: [],
count: '', count: '',
@ -236,12 +237,18 @@ export default {
this.count += item.countNum; this.count += item.countNum;
} }
}); });
this.$emit("clickdepartment", { if (localStorage.getItem('questionquery')) {
hospitalAgencyId: this.querydepartmen.hospitalAgencyId, this.itemid = JSON.parse(localStorage.getItem('questionquery')).departmentId
itemid: this.itemid, this.departmentName = JSON.parse(localStorage.getItem('questionquery')).departmentName
itemName: this.departmentName, }
hospitalAgencyName: this.hospitalAgencyName if (this.methods != 'getDepartmentList') {
}); this.$emit("clickdepartment", {
hospitalAgencyId: this.querydepartmen.hospitalAgencyId,
itemid: this.itemid,
itemName: this.departmentName,
hospitalAgencyName: this.hospitalAgencyName
});
}
} }
}); });
}, },

View File

@ -286,14 +286,6 @@
<div class="lefttext"> <div class="lefttext">
文字提醒 文字提醒
</div> </div>
<div class="righttextarea">
{{ item.textRemindContent }}
</div>
</div>
<div class="tabtext" v-else>
<div class="lefttext">
内容
</div>
<div class="righttextarea" v-html="item.nodeContent"> <div class="righttextarea" v-html="item.nodeContent">
</div> </div>
</div> </div>

View File

@ -3,256 +3,105 @@
<el-row :gutter="20"> <el-row :gutter="20">
<!--部门数据--> <!--部门数据-->
<el-col :span="5" :xs="24"> <el-col :span="5" :xs="24">
<DepartmentList <DepartmentList ref="DepartmentList" @clickdepartment="clickdepartment" :methods="'getDepartmentList'">
ref="DepartmentList"
@clickdepartment="clickdepartment"
:methods="'getDepartmentList'"
>
</DepartmentList> </DepartmentList>
</el-col> </el-col>
<!--用户数据--> <!--用户数据-->
<el-col :span="19" :xs="24"> <el-col :span="19" :xs="24">
<div ref="topform" class="form"> <div ref="topform" class="form">
<el-form <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="70px">
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
label-width="70px"
>
<el-form-item label="问卷标题" prop="questionnaireName"> <el-form-item label="问卷标题" prop="questionnaireName">
<el-input <el-input v-model="queryParams.questionnaireName" placeholder="请输入问卷标题" clearable
v-model="queryParams.questionnaireName" @keyup.enter.native="handleQuery" />
placeholder="请输入问卷标题"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item label="病种名称" prop="diseaseTypeName"> <el-form-item label="病种名称" prop="diseaseTypeName">
<el-input <el-input v-model="queryParams.diseaseTypeName" placeholder="请输入病种名称" clearable
v-model="queryParams.diseaseTypeName" @keyup.enter.native="handleQuery" />
placeholder="请输入病种名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
type="primary" <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
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-item>
</el-form> </el-form>
</div> </div>
<div ref="mb8" class="mb8"> <div ref="mb8" class="mb8">
<el-row :gutter="10" class=""> <el-row :gutter="10" class="">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button type="primary" size="mini" @click="handleAdd"
type="primary" v-hasPermi="['system:question:add']">新增问卷模板</el-button>
size="mini" <el-button type="warning" plain icon="el-icon-upload2" size="mini" @click="handleUpload">导入</el-button>
@click="handleAdd"
v-hasPermi="['system:question:add']"
>新增问卷模板</el-button
>
<el-button
type="warning"
plain
icon="el-icon-upload2"
size="mini"
@click="handleUpload"
>导入</el-button
>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<div ref="table"> <div ref="table">
<el-table <el-table :max-height="maxTableHeight" v-loading="loading" :data="questionList">
:max-height="maxTableHeight" <el-table-column label="序号" type="index" width="55" align="center" />
v-loading="loading" <el-table-column label="问卷模板名称" align="center" prop="questionnaireName" />
:data="questionList" <el-table-column label="问题个数" align="center" prop="questionCount" />
> <el-table-column label="问卷模板ID" align="center" prop="questionnaireId" />
<el-table-column <el-table-column label="问卷类型" align="center" prop="questionType">
label="序号"
type="index"
width="55"
align="center"
/>
<el-table-column
label="问卷模板名称"
align="center"
prop="questionnaireName"
/>
<el-table-column
label="问题个数"
align="center"
prop="questionCount"
/>
<el-table-column
label="问卷模板ID"
align="center"
prop="questionnaireId"
/>
<el-table-column
label="问卷类型"
align="center"
prop="questionType"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.questionType == 'REGULAR_QUESTIONNAIRE'"> <div v-if="scope.row.questionType == 'REGULAR_QUESTIONNAIRE'">
普通问卷 普通问卷
</div> </div>
<div <div v-if="scope.row.questionType == 'SATISFACTION_QUESTIONNAIRE'">
v-if="scope.row.questionType == 'SATISFACTION_QUESTIONNAIRE'"
>
满意度问卷 满意度问卷
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="问卷状态" align="center" prop="questionnaireStatus">
label="问卷状态"
align="center"
prop="questionnaireStatus"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag <el-tag type="success" v-if="scope.row.questionnaireStatus == 'PUBLISHED'">已发布</el-tag>
type="success"
v-if="scope.row.questionnaireStatus == 'PUBLISHED'"
>已发布</el-tag
>
<el-tag type="warning" v-else>未发布</el-tag> <el-tag type="warning" v-else>未发布</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="病种名称" align="center" prop="diseaseTypeName" />
label="病种名称" <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
align="center"
prop="diseaseTypeName"
/>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-switch v-model="scope.row.questionnaireStatus" active-color="#13ce66" inactive-color="#ff4949" <!-- <el-switch v-model="scope.row.questionnaireStatus" active-color="#13ce66" inactive-color="#ff4949"
active-value="PUBLISHED" inactive-value="UNPUBLISHED" @change="switchstatus($event, scope.row)"> active-value="PUBLISHED" inactive-value="UNPUBLISHED" @change="switchstatus($event, scope.row)">
</el-switch> --> </el-switch> -->
<el-button <el-button size="mini" type="text" @click="switchstatus('UNPUBLISHED', scope.row)"
size="mini" v-if="scope.row.questionnaireStatus == 'PUBLISHED'">取消发布</el-button>
type="text" <el-button size="mini" type="text" @click="switchstatus('PUBLISHED', scope.row)" v-else>发布</el-button>
@click="switchstatus('UNPUBLISHED', scope.row)" <el-button size="mini" type="text" @click="handleClassification(scope.row)"
v-if="scope.row.questionnaireStatus == 'PUBLISHED'" v-hasPermi="['system:question:edit']">分类管理</el-button>
>取消发布</el-button <el-button size="mini" type="text" @click="handleUpdate(scope.row)"
> v-hasPermi="['system:question:edit']">编辑</el-button>
<el-button <el-button size="mini" type="text" @click="handleDelete(scope.row)"
size="mini" v-hasPermi="['system:question:remove']">删除</el-button>
type="text"
@click="switchstatus('PUBLISHED', scope.row)"
v-else
>发布</el-button
>
<el-button
size="mini"
type="text"
@click="handleClassification(scope.row)"
v-hasPermi="['system:question:edit']"
>分类管理</el-button
>
<el-button
size="mini"
type="text"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:question:edit']"
>编辑</el-button
>
<el-button
size="mini"
type="text"
@click="handleDelete(scope.row)"
v-hasPermi="['system:question:remove']"
>删除</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" <!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" @pagination="getList" /> --> :limit.sync="queryParams.pageSize" @pagination="getList" /> -->
<myPagination <myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
v-show="total > 0" :indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
:total="total"
:pageSize="queryParams.pageSize"
:indexFromWrap="queryParams.pageNum"
@updateCPage="updateCPage"
></myPagination>
</el-col> </el-col>
</el-row> </el-row>
<el-dialog <el-dialog title="提示" :visible.sync="classificationOpen" width="30%" :before-close="classificationOpenfalse">
title="提示" <el-form ref="form" :model="classificationform" label-width="80px" :rules="rules">
:visible.sync="classificationOpen"
width="30%"
:before-close="classificationOpenfalse"
>
<el-form
ref="form"
:model="classificationform"
label-width="80px"
:rules="rules"
>
<el-form-item label="科室名称" prop="departmentId"> <el-form-item label="科室名称" prop="departmentId">
<el-select <el-select v-model="classificationform.departmentId" placeholder="请选择科室" clearable style="width: 300px"
v-model="classificationform.departmentId" @clear="cleardepartment" @change="changedepartment">
placeholder="请选择科室" <el-option v-for="item in departmentlist" :key="item.id" :label="item.departmentName" :value="item.id" />
clearable
style="width: 300px"
@clear="cleardepartment"
@change="changedepartment"
>
<el-option
v-for="item in departmentlist"
:key="item.id"
:label="item.departmentName"
:value="item.id"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="病种名称"> <el-form-item label="病种名称">
<el-select <el-select v-model="classificationform.diseaseTypeId" placeholder="请选择病种" clearable style="width: 300px"
v-model="classificationform.diseaseTypeId" @change="changediseaseType">
placeholder="请选择病种" <el-option v-for="item in diseaselist" :key="item.id" :label="item.diseaseTypeName" :value="item.id" />
clearable
style="width: 300px"
@change="changediseaseType"
>
<el-option
v-for="item in diseaselist"
:key="item.id"
:label="item.diseaseTypeName"
:value="item.id"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="classificationupload" <el-button type="primary" @click="classificationupload"> </el-button>
> </el-button
>
<el-button @click="classificationOpenfalse"> </el-button> <el-button @click="classificationOpenfalse"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 导入弹框 --> <!-- 导入弹框 -->
<el-dialog <el-dialog title="" :visible.sync="innerexport" width="1000px" append-to-body :before-close="exportcancel">
title=""
:visible.sync="innerexport"
width="1000px"
append-to-body
:before-close="exportcancel"
>
<questionexport @submit="submit" ref="childComponent"></questionexport> <questionexport @submit="submit" ref="childComponent"></questionexport>
<div slot="footer" class="dialog-footer footerlist"> <div slot="footer" class="dialog-footer footerlist">
<el-button type="primary" @click="submitexport"> </el-button> <el-button type="primary" @click="submitexport"> </el-button>
@ -317,7 +166,12 @@ export default {
}; };
}, },
created() { created() {
// this.getList(); if (localStorage.getItem('questionquery')) {
this.queryParams = JSON.parse(localStorage.getItem('questionquery'))
} else {
this.queryParams.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId
}
this.getList();
}, },
mounted() { mounted() {
this.getMaxTableHeight() this.getMaxTableHeight()
@ -351,7 +205,6 @@ export default {
} }
} else { } else {
this.$modal.msgError("请先选择左侧科室"); this.$modal.msgError("请先选择左侧科室");
} }
}, },
// //
@ -363,6 +216,7 @@ export default {
this.queryParams.hospitalAgencyId = item.hospitalAgencyId this.queryParams.hospitalAgencyId = item.hospitalAgencyId
this.queryParams.hospitalAgencyName = item.hospitalAgencyName this.queryParams.hospitalAgencyName = item.hospitalAgencyName
this.queryParams.departmentId = item.itemid this.queryParams.departmentId = item.itemid
this.queryParams.departmentName = item.itemName
this.departmentName = item.itemName this.departmentName = item.itemName
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.handleQuery(); this.handleQuery();
@ -469,6 +323,8 @@ export default {
/** 查询问卷基本信息列表 */ /** 查询问卷基本信息列表 */
getList() { getList() {
this.loading = true; this.loading = true;
console.log(this.queryParams)
localStorage.setItem('questionquery', JSON.stringify(this.queryParams))
listQuestion(this.queryParams).then(response => { listQuestion(this.queryParams).then(response => {
this.questionList = response.rows; this.questionList = response.rows;
this.total = response.total; this.total = response.total;
@ -606,10 +462,12 @@ export default {
.app-container { .app-container {
padding: 20px 0 0 20px !important; padding: 20px 0 0 20px !important;
} }
::v-deep .el-dialog__footer{
padding-top: 33px !important;
} ::v-deep .el-dialog__footer {
padding-top: 33px !important;
}
::v-deep .el-row { ::v-deep .el-row {
height: 100% !important; height: 100% !important;
} }