This commit is contained in:
2024-07-11 17:35:11 +08:00
parent 6fbeaf0cb4
commit 6661b1d2e2
15 changed files with 26 additions and 39 deletions

View File

@ -144,7 +144,7 @@ export default {
this.queryParams.departmentId = item.itemid this.queryParams.departmentId = item.itemid
this.queryParams.departmentName = item.itemName this.queryParams.departmentName = item.itemName
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },
@ -182,7 +182,7 @@ export default {
resetQuery() { resetQuery() {
this.$refs.DepartmentList.resetQuery() this.$refs.DepartmentList.resetQuery()
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); // this.handleQuery();
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {

View File

@ -35,14 +35,7 @@
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
:disabled="queryParams.hospitalAgencyId ? false : true" :disabled="queryParams.hospitalAgencyId ? false : true"
v-hasPermi="['manage:template:add']">新增短信模版</el-button> v-hasPermi="['manage:template:add']">新增短信模版</el-button>
<el-button <el-button type="warning" plain icon="el-icon-upload2" size="mini" @click="handleUpload">导入</el-button>
type="warning"
plain
icon="el-icon-upload2"
size="mini"
@click="handleUpload"
>导入</el-button
>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@ -99,7 +92,7 @@
<el-form-item label="短信模板名称" prop="textMessageName"> <el-form-item label="短信模板名称" prop="textMessageName">
<el-input v-model="form.textMessageName" placeholder="请输入短信模板名称" /> <el-input v-model="form.textMessageName" placeholder="请输入短信模板名称" />
</el-form-item> </el-form-item>
<el-form-item label="短信通道" prop="textMessageChannel"> <el-form-item label="短信通道" prop="textMessageChannel">
<el-select v-model="form.textMessageChannel" placeholder="请选择短信通道" style="width:206px"> <el-select v-model="form.textMessageChannel" placeholder="请选择短信通道" style="width:206px">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
@ -137,11 +130,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="短信排序" prop="textMessageSort"> <el-form-item label="短信排序" prop="textMessageSort">
<el-input-number v-model="form.textMessageSort" controls-position="right" :min="0" placeholder="请输入短信排序" <el-input-number v-model="form.textMessageSort" controls-position="right" :min="0" placeholder="请输入短信排序" />
/>
</el-form-item> </el-form-item>
<el-form-item label="适用任务类型" prop="suitTaskTypeIds"> <el-form-item label="适用任务类型" prop="suitTaskTypeIds">
<el-select v-model="form.suitTaskTypeIds" placeholder="请选择适用任务类型" multiple style="width:206px"> <el-select v-model="form.suitTaskTypeIds" placeholder="请选择适用任务类型" multiple style="width:206px">
<el-option v-for="item in type" :key="item.id" :label="item.dictLabel" :value="item.dictCode"> <el-option v-for="item in type" :key="item.id" :label="item.dictLabel" :value="item.dictCode">
</el-option> </el-option>
</el-select> </el-select>
@ -212,14 +204,8 @@
<myPagination v-show="diseasetotal > 0" :total="diseasetotal" :pageSize="querydisease.pageSize" <myPagination v-show="diseasetotal > 0" :total="diseasetotal" :pageSize="querydisease.pageSize"
:indexFromWrap="querydisease.pageNum" @updateCPage="updateCPagethree"></myPagination> :indexFromWrap="querydisease.pageNum" @updateCPage="updateCPagethree"></myPagination>
</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"
>
<messageexport @submit="submit" ref="childComponent"></messageexport> <messageexport @submit="submit" ref="childComponent"></messageexport>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitexport"> </el-button> <el-button type="primary" @click="submitexport"> </el-button>
@ -389,8 +375,8 @@ export default {
if (this.queryParams.departmentId) { if (this.queryParams.departmentId) {
this.innerexport = true this.innerexport = true
if (this.exportlist.length > 0) { if (this.exportlist.length > 0) {
this.$refs.childComponent.resetTable(); this.$refs.childComponent.resetTable();
} }
this.Nameinfo = this.departmentName this.Nameinfo = this.departmentName
} else { } else {
this.$modal.msgError("请先选择左侧科室"); this.$modal.msgError("请先选择左侧科室");
@ -408,7 +394,7 @@ export default {
this.departmentName = item.itemName this.departmentName = item.itemName
this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },
@ -670,10 +656,11 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .el-textarea__inner{ ::v-deep .el-textarea__inner {
width: 533px !important; width: 533px !important;
height: 100px; height: 100px;
} }
::v-deep .el-dialog__body { ::v-deep .el-dialog__body {
padding-bottom: 60px !important; padding-bottom: 60px !important;
} }

View File

@ -1061,7 +1061,7 @@ export default {
this.departmentName = item.itemName this.departmentName = item.itemName
this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },

View File

@ -507,7 +507,7 @@ export default {
this.departmentName = item.itemName this.departmentName = item.itemName
this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },

View File

@ -547,7 +547,7 @@ export default {
this.departmentName = item.itemName this.departmentName = item.itemName
this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },

View File

@ -414,7 +414,7 @@ export default {
this.departmentName = item.itemName this.departmentName = item.itemName
this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },

View File

@ -366,7 +366,7 @@ export default {
this.departmentName = item.itemName this.departmentName = item.itemName
this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },

View File

@ -145,7 +145,7 @@ export default {
this.queryParams.departmentId = item.itemid this.queryParams.departmentId = item.itemid
this.queryParams.departmentName = item.itemName this.queryParams.departmentName = item.itemName
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },

View File

@ -150,7 +150,7 @@ export default {
this.queryParams.departmentId = item.itemid this.queryParams.departmentId = item.itemid
this.queryParams.departmentName = item.itemName this.queryParams.departmentName = item.itemName
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },

View File

@ -136,7 +136,7 @@ export default {
this.queryParams.departmentId = item.itemid this.queryParams.departmentId = item.itemid
this.queryParams.departmentName = item.itemName this.queryParams.departmentName = item.itemName
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },

View File

@ -218,7 +218,7 @@ export default {
this.queryParams.departmentId = item.itemid this.queryParams.departmentId = item.itemid
this.queryParams.departmentName = item.itemName this.queryParams.departmentName = item.itemName
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },

View File

@ -144,7 +144,7 @@ export default {
this.queryParams.departmentId = item.itemid this.queryParams.departmentId = item.itemid
this.queryParams.departmentName = item.itemName this.queryParams.departmentName = item.itemName
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },

View File

@ -165,7 +165,7 @@ export default {
this.queryParams.departmentId = item.itemid this.queryParams.departmentId = item.itemid
this.queryParams.departmentName = item.itemName this.queryParams.departmentName = item.itemName
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },

View File

@ -365,7 +365,7 @@ export default {
this.queryParams.departmentId = item.itemid this.queryParams.departmentId = item.itemid
this.departmentName = item.itemName this.departmentName = item.itemName
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },

View File

@ -245,7 +245,7 @@ export default {
this.queryParams.departmentId = item.itemid this.queryParams.departmentId = item.itemid
this.addDepartmentquery.hospitalAgencyId = item.hospitalAgencyId this.addDepartmentquery.hospitalAgencyId = item.hospitalAgencyId
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.handleQuery();
} }
this.$forceUpdate() this.$forceUpdate()
}, },