This commit is contained in:
2024-07-01 14:53:34 +08:00
parent 34a21daaed
commit 6e754d0c3b
6 changed files with 46 additions and 58 deletions

View File

@ -481,6 +481,7 @@ export default {
this.$router.push({
path: "/knowledge/preview",
query: {
path: "/knowledge/script",
id: row.id,
scriptId: row.scriptId
},
@ -490,6 +491,7 @@ export default {
this.$router.push({
path: "/knowledge/Scriptpreview",
query: {
path: "/knowledge/script",
id: row.id,
},
});

View File

@ -114,8 +114,8 @@
<el-table-column label="备注" align="center" prop="packageRemark" />
<el-table-column label="是否发布" align="center" prop="whetherRelease">
<template slot-scope="scope">
{{ scope.row.whetherRelease == "0" ? "否" : "" }}
{{ scope.row.whetherRelease == "1" ? "是" : "" }}
<el-tag type="warning" v-if="scope.row.whetherRelease == '0'">未发布</el-tag>
<el-tag type="success" v-else-if="scope.row.whetherRelease == '1'">已发布</el-tag>
</template>
</el-table-column>
<el-table-column label="病种名称" align="center" prop="diseaseTypeName" />

View File

@ -281,11 +281,9 @@ export default {
},
methods: {
change(e) {
console.log(e);
this.form.termLevel = this.treeOptions?.find(
(f) => f.termCode == e
)?.termLevel;
console.log(this.form.termLevel, "this.form.termLevel");
},
//
submitForms() {
@ -310,11 +308,8 @@ export default {
cancels() {
this.opens = false
this.reset();
},
// change(e) {
// console.log(e, "78");
// // console.log(this.$refs.cascader)
// // this.form.parentId = e;
// if (e) {
// this.form.parentId = e[e.length - 1];
@ -324,7 +319,6 @@ export default {
// agencyList().then((res) => {
// //
// this.deptOptions = res.data;
// this.treeOptions = res.data.map((item) => {
// return { value: item.id, ...item };
// });
@ -333,7 +327,6 @@ export default {
// // checkStrictly: true,
// // lazyLoad: this.lazyLoad,
// // };
// // console.log(res.data, "58", this.treeOptions);
// });
// },
//
@ -345,7 +338,6 @@ export default {
// let sum = 0;
// this.DepartmentoList.forEach((item) => {
// if (item.serviceContentNum) {
// console.log(item.countNum);
// sum += item.serviceContentNum;
// }
// this.count = sum;
@ -355,32 +347,23 @@ export default {
},
//
itemdata(item) {
if (item) {
console.log(item, "9999");
this.queryParams.parentTermCode = item.termCode;
this.queryParams.termLevel = 2;
this.bankList = [];
this.getList();
this.itemname = item.id;
} else {
this.itemname = null;
this.queryParams.termLevel = 2;
this.queryParams.parentTermCode = '';
this.bankList = [];
this.getList();
}
},
//
handleedit() {
this.resetformat();
console.log(this.itemname);
this.format.id = this.itemname;
if (this.itemname) {
getBank(this.itemname).then((response) => {
@ -397,7 +380,6 @@ export default {
handledelete() {
this.resetformat();
const id = this.itemname;
console.log(id, "111111111");
this.$modal
.confirm("是否确认删除此内容?")
.then(function () {
@ -425,13 +407,11 @@ export default {
response.rows.forEach((e) => {
// if(e.termLevel==1){
// this.DepartmentoList.push(e);
// }
// else
if (e.termLevel == 2) {
this.bankList.push(e);
// this.bankList.push(e);
console.log(this.bankList);
this.total = this.bankList.length;
}
});
@ -509,11 +489,11 @@ export default {
this.title = "添加常用术语(知识库)";
},
handle(row) {
console.log(row, "row");
// this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.push({
path: "/knowledge/bankSpecialization",
query: {
path: "/knowledge/bank",
parentTermCode: row.termCode,
termLevel: row.termLevel,
termContent: row.termContent,

View File

@ -302,22 +302,26 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.push({
path: "/knowledge/addQuestionnaire",
});
})
// this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.push({
path: "/knowledge/addQuestionnaire",
query: {
path: "/knowledge/question",
},
});
// })
},
/** 修改按钮操作 */
handleUpdate(row) {
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.push({
path: "/knowledge/addQuestionnaire",
query: {
id: row.id,
},
});
})
// this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.push({
path: "/knowledge/addQuestionnaire",
query: {
path: "/knowledge/question",
id: row.id,
},
});
// })
},
updateCPage(index, size) {
this.queryParams.pageNum = index

View File

@ -136,28 +136,29 @@ export default {
},
//
goQuestionnaireDetails(row) {
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.push({
path: "/satisfactionSurvey/SatisfactionQuestionnaireDetails",
query: {
patientQuestionSubmitResultId: row.patientQuestionSubmitResultId,
taskContent: row.taskContent,
taskType: row.taskType,
templateId: row.templateId,
cardNo: row.cardNo,
patientName: row.patientName,
patientPhone: row.patientPhone,
sex: row.sex,
routeHandleRemark: row.routeHandleRemark,
textRemindContent: row.textRemindContent,
birthDate: row.birthDate,
address: row.address,
patientSource: row.patientSource,
createTime: row.createTime,
age: row.birthDate ? getAge(row.birthDate) : "",
},
});
})
// this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.push({
path: "/satisfactionSurvey/SatisfactionQuestionnaireDetails",
query: {
path: "/satisfactionSurvey/satisfactionSurvey",
patientQuestionSubmitResultId: row.patientQuestionSubmitResultId,
taskContent: row.taskContent,
taskType: row.taskType,
templateId: row.templateId,
cardNo: row.cardNo,
patientName: row.patientName,
patientPhone: row.patientPhone,
sex: row.sex,
routeHandleRemark: row.routeHandleRemark,
textRemindContent: row.textRemindContent,
birthDate: row.birthDate,
address: row.address,
patientSource: row.patientSource,
createTime: row.createTime,
age: row.birthDate ? getAge(row.birthDate) : "",
},
});
// })
},
/** 搜索按钮操作 */
handleQuery() {

View File

@ -439,6 +439,7 @@ export default {
this.$router.push({
path: "/unitconfig/PatientConfigurationVisitRecords",
query: {
path: "/unitconfig/patientConfiguration",
patientId: row.id,
cardNo: row.cardNo,
patientName: row.patientName,