¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <el-dialog |
| | | title="æ´¾åæ£è
éæ©" |
| | | :visible.sync="dialogVisiblepatient" |
| | | width="70%" |
| | | :before-close="handleClosehz" |
| | | > |
| | | <div class="examine-jic"> |
| | | <div style="margin: 0 10px 20px 10px"> |
| | | <el-card class="box-card"> |
| | | <el-tag |
| | | v-for="item in overallCase" |
| | | :key="item.icdid" |
| | | type="primary" |
| | | closables |
| | | @close="handleClose(item)" |
| | | > |
| | | {{ item.icdname }} |
| | | </el-tag> |
| | | <div style="margin-top: 20px; text-align: right"> |
| | | å
±éæ©<span |
| | | style="font-size: 18px; color: #409eff; margin: 0 10px" |
| | | >{{ overallCase.length }}</span |
| | | >æ¡æ°æ® |
| | | </div> |
| | | </el-card> |
| | | </div> |
| | | <div class="jic-value"> |
| | | <el-row :gutter="20"> |
| | | <!--ç¨æ·æ°æ®--> |
| | | <el-form |
| | | :model="patientqueryParams" |
| | | ref="queryForm" |
| | | size="small" |
| | | :inline="true" |
| | | label-width="98px" |
| | | > |
| | | <el-form-item label="ç¾ç
åç§°" prop="name"> |
| | | <el-input |
| | | v-model="patientqueryParams.icdname" |
| | | placeholder="请è¾å
¥ç¾ç
åç§°" |
| | | @keyup.enter.native="handleAddpatient" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | size="medium" |
| | | @click="handleAddpatient" |
| | | >æç´¢</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-refresh" |
| | | size="medium" |
| | | @click="resetQuery" |
| | | >éç½®</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | <!-- éæ©å¨å®å表 --> |
| | | <el-table |
| | | ref="multipleTable" |
| | | :data="donorchargeList" |
| | | tooltip-effect="dark" |
| | | style="width: 100%" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column class="checkall" type="selection" width="55"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="icdid" |
| | | label="ç¾ç
ç¼å·" |
| | | width="100" |
| | | show-overflow-tooltip |
| | | > |
| | | </el-table-column> |
| | | <el-table-column label="ç¾ç
åç§°" show-overflow-tooltip> |
| | | <template slot-scope="scope">{{ scope.row.icdname }}</template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column prop="icdcode" label="ç¾ç
ç¼ç " width="150"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-row> |
| | | <pagination |
| | | v-show="patienttotal > 0" |
| | | :total="patienttotal" |
| | | :page.sync="patientqueryParams.pageNum" |
| | | :limit.sync="patientqueryParams.pageSize" |
| | | @pagination="handleAddpatient" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="$emit('addoption')">å æ¶</el-button> |
| | | <el-button type="primary" @click="AddDispatchpatients" |
| | | >ç¡®å®æ·»å </el-button |
| | | > |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getillnesslist, deltargetillness } from "@/api/AiCentre/index"; |
| | | export default { |
| | | name: "Diseasetotality", |
| | | data() { |
| | | return { |
| | | patienttotal: 0, // |
| | | // å½å页é䏿°æ® |
| | | multipleSelection: [], |
| | | // æ»é䏿°æ® |
| | | // overallCase: [], |
| | | patientqueryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | | donorchargeList: [], |
| | | donorchargeanlList: [], //æ¡ä¾å表 |
| | | }; |
| | | }, |
| | | |
| | | props: { |
| | | dialogVisiblepatient: { |
| | | type: Boolean, |
| | | default: () => { |
| | | return false; |
| | | }, |
| | | }, |
| | | // éä¸ |
| | | overallCase: { |
| | | type: Array, |
| | | required: true, |
| | | default: () => [], |
| | | }, |
| | | pids: { |
| | | type: Array, |
| | | required: true, |
| | | default: () => [], |
| | | }, |
| | | allhosp: { |
| | | type: String, |
| | | required: true, |
| | | default: () => [], |
| | | }, |
| | | // 5é®å·æ¨¡æ¿ã3é访模æ¿ã6宣æ |
| | | type: { |
| | | type: Number, |
| | | default: () => { |
| | | return 5; |
| | | }, |
| | | }, |
| | | }, |
| | | |
| | | created() {}, |
| | | |
| | | mounted() { |
| | | // this.handleAddpatient(); |
| | | }, |
| | | |
| | | watch: {}, |
| | | |
| | | methods: { |
| | | handleClosehz() { |
| | | this.$emit("addoption"); |
| | | }, |
| | | // éæ©æ°æ®æ ç¾å é¤äºä»¶ |
| | | handleClose(item) { |
| | | console.log(item); |
| | | if (this.multipleSelection.indexOf(item) == -1 && !item.outid) { |
| | | console.log(1); |
| | | this.overallCase.splice(this.overallCase.indexOf(item), 1); |
| | | } else if (item.outid) { |
| | | this.$modal |
| | | .confirm('æ¯å¦ç¡®è®¤å é¤å称为"' + item.icd10name + '"çæ°æ®é¡¹ï¼') |
| | | .then(() => { |
| | | this.multipleSelection.splice( |
| | | this.multipleSelection.indexOf(item), |
| | | 1 |
| | | ); |
| | | deltargetillness(item.id).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("å 餿å"); |
| | | this.overallCase.splice(this.overallCase.indexOf(item), 1); |
| | | } |
| | | }); |
| | | // åæ¶æè½½ç¶æ |
| | | this.$refs.multipleTable.toggleRowSelection(item, false); |
| | | }) |
| | | .catch(() => {}); |
| | | } else { |
| | | this.overallCase.splice(this.overallCase.indexOf(item), 1); |
| | | this.multipleSelection.splice(this.multipleSelection.indexOf(item), 1); |
| | | // åæ¶æè½½ç¶æ |
| | | this.$refs.multipleTable.toggleRowSelection(item, false); |
| | | } |
| | | }, |
| | | resetQuery() { |
| | | this.patientqueryParams.icdname = null; |
| | | this.handleAddpatient(); |
| | | }, |
| | | // è§¦åæ¥è¯¢äºä»¶ |
| | | handleAddpatient(row) { |
| | | this.$emit("kkoption"); |
| | | |
| | | getillnesslist(this.patientqueryParams).then((res) => { |
| | | this.donorchargeList = res.rows; |
| | | this.patienttotal = res.total; |
| | | this.Restorecheck(); |
| | | }); |
| | | }, |
| | | // å¤éæ¡é䏿°æ® |
| | | handleSelectionChange(selection) { |
| | | if (this.decision) return; |
| | | // 夿æ¯å¦æå é¤ |
| | | if (this.multipleSelection.length <= selection.length) { |
| | | this.multipleSelection = selection; |
| | | } else { |
| | | this.multipleSelection.forEach((item) => { |
| | | if (selection.includes(item)) { |
| | | } else { |
| | | if (this.multipleSelection.length == 1) { |
| | | this.multipleSelection = []; |
| | | } else { |
| | | this.multipleSelection.splice( |
| | | this.multipleSelection.indexOf(item), |
| | | 1 |
| | | ); |
| | | } |
| | | if (this.overallCase.length == 1) { |
| | | this.overallCase = []; |
| | | } else { |
| | | this.overallCase.splice(this.overallCase.indexOf(item), 1); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | // èµå¼ç»æ´ä½é䏿°ç» |
| | | this.multipleSelection.forEach((item) => { |
| | | |
| | | if (this.overallCase.every((obj) => obj.icdname != item.icdname)) { |
| | | this.overallCase.push(item); |
| | | } |
| | | }); |
| | | console.log(this.multipleSelection, "触åéæ©åmultipleSelection"); |
| | | }, |
| | | // 忢页忢å¤éä¸ |
| | | Restorecheck() { |
| | | console.log(this.overallCase, "this.overallCase"); |
| | | const allid = this.overallCase.map((item) => item.icdname); |
| | | const overlap = this.donorchargeList.filter((value) => { |
| | | return allid.includes(value.icdname); |
| | | }); |
| | | // ä¿æidsåå½å页é¢çåæ¥æ§ |
| | | this.multipleSelection = overlap; |
| | | console.log(this.multipleSelection, "è¿å
¥å页multipleSelection"); |
| | | |
| | | this.toggleSelection(overlap); |
| | | }, |
| | | // æè½½éæ©ç¶æ |
| | | toggleSelection(rows) { |
| | | if (rows) { |
| | | this.decision = true; |
| | | this.$nextTick(() => { |
| | | rows.forEach((row) => { |
| | | this.$refs.multipleTable.toggleRowSelection(row, true); |
| | | }); |
| | | this.decision = false; |
| | | }); |
| | | console.log(123); |
| | | } else { |
| | | this.$refs.multipleTable.clearSelection(); |
| | | } |
| | | }, |
| | | AddDispatchpatients() { |
| | | this.$emit("addoption"); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .examine-jic { |
| | | .headline { |
| | | font-size: 24px; |
| | | border-left: 5px solid #41a1be; |
| | | padding-left: 5px; |
| | | margin-bottom: 10px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .Add-details { |
| | | font-size: 18px; |
| | | color: #02a7f0; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | .jic-value { |
| | | font-size: 20px; |
| | | border-top: 1px solid #a7abac; |
| | | padding: 10px; |
| | | margin-bottom: 10px; |
| | | .details-jic { |
| | | padding: 10px 15px; |
| | | border: 1px solid #dcdfe6; |
| | | -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), |
| | | 0 0 6px 0 rgba(0, 0, 0, 0.04); |
| | | .details-title { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | margin-bottom: 10px; |
| | | div:nth-child(2) { |
| | | color: #02a7f0; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | .details-renw { |
| | | background: #e4ebfc; |
| | | padding: 15px 5px; |
| | | border-radius: 5px; |
| | | margin-bottom: 20px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ::v-deep.el-table .el-table__header th:first-child .el-checkbox { |
| | | display: none; |
| | | } |
| | | .el-tag + .el-tag { |
| | | margin-left: 10px; |
| | | margin-bottom: 10px; |
| | | } |
| | | </style> |
| | |
| | | size="medium" |
| | | type="text" |
| | | @click="handleUpdate(scope.row, 1)" |
| | | ><span class="button-xj" |
| | | ><i class="el-icon-circle-plus-outline"></i>ä¾ç
§æ°å¢</span |
| | | ><span class="button-xj">ä¾ç
§æ°å¢</span></el-button |
| | | > |
| | | <el-button |
| | | size="medium" |
| | | type="text" |
| | | @click="handleAddpatient(scope.row)" |
| | | ><span class="button-hz" |
| | | ><i class="el-icon-circle-plus-outline"></i>æ°å¢æ£è
</span |
| | | ></el-button |
| | | > |
| | | <el-button |
| | |
| | | size="medium" |
| | | type="text" |
| | | @click="stop(scope.row)" |
| | | ><span class="button-zt" |
| | | ><i class="el-icon-circle-plus-outline"></i>æå</span |
| | | ></el-button |
| | | ><span class="button-zt">æå</span></el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | |
| | | > |
| | | </div> |
| | | </el-dialog> |
| | | <!-- éæ©æ£è
å¼¹æ¡ --> |
| | | <Patient-Selection |
| | | ref="Patient" |
| | | :dialogVisiblepatient="dialogVisiblepatient" |
| | | :overallCase="Patientlist" |
| | | :tableLabel="tableLabelhz" |
| | | @addoption="dialogVisiblepatient = false" |
| | | @kkoption="dialogVisiblepatient = true" |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | TaskTemplateSendExecution, |
| | | } from "@/api/AiCentre/index"; |
| | | import store from "@/store"; |
| | | |
| | | import PatientSelection from "@/components/PatientSelection"; //æ£åç»ä»¶ |
| | | import SFtable from "@/components/SFtable"; //è¡¨æ ¼ç»ä»¶ |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| | | |
| | |
| | | showTimeNight: [], |
| | | showTimeNoon: [], |
| | | }, |
| | | dialogVisiblepatient: false, |
| | | Patientlist: [], |
| | | taskformVisible: false, |
| | | dynamicTags: ["é项ä¸", "é项äº", "é项ä¸"], //é项 |
| | | inputVisible: false, |
| | |
| | | const item = data.find((item) => item.value === value); |
| | | return item ? item.label : null; |
| | | }, |
| | | //æ£è
æ·»å ç¸å
³ |
| | | handleAddpatient(row) { |
| | | this.allpids = []; |
| | | this.overallCase.forEach((item) => { |
| | | this.allpids.push(item.patid); |
| | | }); |
| | | if (this.patientqueryParams.allhosp == 4) { |
| | | this.tableLabelhz = [ |
| | | // { label: "å
¥é¢æ¥æ", width: "170", prop: "starttime" }, |
| | | { label: "åºé¢æ¥æ", width: "150", prop: "endtime" }, |
| | | { label: "æ£è
", width: "", prop: "name" }, |
| | | { label: "æ£è
è¯æ", width: "", prop: "leavediagname" }, |
| | | { label: "身份è¯", width: "200", prop: "idcardno" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "åºé¢å¤©æ°", width: "", prop: "endDay" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "å»ç", width: "", prop: "drname" }, |
| | | { label: "ç§å®¤", width: "180", prop: "dept" }, |
| | | { label: "ç
åº", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ]; |
| | | } else if (this.patientqueryParams.allhosp == 1) { |
| | | this.tableLabelhz = [ |
| | | { label: "å
¥é¢æ¥æ", width: "150", prop: "starttime" }, |
| | | { label: "æ£è
", width: "", prop: "name" }, |
| | | { label: "æ£è
è¯æ", width: "", prop: "leavediagname" }, |
| | | { label: "身份è¯", width: "200", prop: "idcardno" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "åºé¢å¤©æ°", width: "", prop: "endDay" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "å»ç", width: "", prop: "drname" }, |
| | | { label: "ç§å®¤", width: "180", prop: "dept" }, |
| | | { label: "ç
åº", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ]; |
| | | } |
| | | if (this.allpids[0]) { |
| | | this.patientqueryParams.pids = this.allpids; |
| | | } else { |
| | | this.patientqueryParams.pids = null; |
| | | } |
| | | // æ¥æºå¤æ |
| | | |
| | | if (this.patientqueryParams.allhosp == 4) { |
| | | this.patientqueryParams.hospitaldistrictcodes = []; |
| | | this.patientqueryParams.deptcodes = []; |
| | | } else if (this.patientqueryParams.allhosp == 1) { |
| | | this.patientqueryParams.deptcodes = |
| | | this.patientqueryParams.leaveldeptcodes; |
| | | this.patientqueryParams.hospitaldistrictcodes = |
| | | this.patientqueryParams.leavehospitaldistrictcodes; |
| | | this.patientqueryParams.leavehospitaldistrictcodes = []; |
| | | this.patientqueryParams.leaveldeptcodes = []; |
| | | } |
| | | getTaskpatientQC(this.patientqueryParams).then((response) => { |
| | | this.patientuserList = response.rows; |
| | | this.patientuserList.forEach((item) => { |
| | | if (item.endtime) { |
| | | item.endDay = this.daysBetween(item.endtime); |
| | | } |
| | | }); |
| | | this.patienttotal = response.total; |
| | | this.loading = false; |
| | | this.Restorecheck(); |
| | | }); |
| | | this.dialogVisiblepatient = true; |
| | | }, |
| | | // æ¥è¯¢ |
| | | handleQuery() { |
| | | // è·åå¤é¨æ£è
|
| | | |
| | | if (this.patientqueryParams.allhosp == 6) { |
| | | this.Externallist(); |
| | | console.log(); |
| | | |
| | | return; |
| | | } |
| | | if (this.patientqueryParams.searchscope == 1) { |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map( |
| | | (obj) => obj.deptCode |
| | | ); |
| | | this.patientqueryParams.leavehospitaldistrictcodes = []; |
| | | } else if (this.patientqueryParams.searchscope == 2) { |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.belongWards.map((obj) => obj.districtCode); |
| | | this.patientqueryParams.leaveldeptcodes = []; |
| | | } else { |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map( |
| | | (obj) => obj.deptCode |
| | | ); |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.belongWards.map((obj) => obj.districtCode); |
| | | } |
| | | if ( |
| | | !this.patientqueryParams.leavehospitaldistrictcodes || |
| | | !this.patientqueryParams.leavehospitaldistrictcodes[0] |
| | | ) |
| | | this.patientqueryParams.leavehospitaldistrictcodes = null; |
| | | if ( |
| | | !this.patientqueryParams.leaveldeptcodes || |
| | | !this.patientqueryParams.leaveldeptcodes[0] |
| | | ) |
| | | this.patientqueryParams.leaveldeptcodes = null; |
| | | this.handleAddpatient(); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | border-radius: 1px; |
| | | color: #ffffff; |
| | | } |
| | | .button-hz { |
| | | background: #63d37b; |
| | | padding: 5px; |
| | | border-radius: 1px; |
| | | color: #ffffff; |
| | | } |
| | | |
| | | ::v-deep.el-radio-group { |
| | | span { |
| | |
| | | orgid: "H41010500003", |
| | | }, |
| | | options: [ |
| | | { value: "H41010500003", label: "æ²³åä¸å»è¯å¤§å¦ç¬¬ä¸éå±å»é¢" }, |
| | | { value: "H41082200269", label: "åç±å¿äººæ°å»é¢" }, |
| | | { value: "H41078202417", label: "è¾å¿å¸ä¸å»é¢" }, |
| | | ], |
| | | loginRules: { |
| | | username: [ |
| | |
| | | {{ |
| | | kcb |
| | | ? kcb |
| | | : "亲ç±çæ£è
-å®¶å±ï¼æä»¬æ¯"+localStorage.getItem("orgname")+"ç廿¤äººåï¼ä¸ºäºæ´å¥½å°äºè§£æ¨çåº·å¤æ
åµï¼è¯·æ¨æ½ä¸ç¹å®è´µæ¶é´ï¼å®æè¿ä»½é访é®å·ã" |
| | | : "亲ç±çæ£è
-å®¶å±ï¼æä»¬æ¯" + |
| | | localStorage.getItem("orgname") + |
| | | "ç廿¤äººåï¼ä¸ºäºæ´å¥½å°äºè§£æ¨çåº·å¤æ
åµï¼è¯·æ¨æ½ä¸ç¹å®è´µæ¶é´ï¼å®æè¿ä»½é访é®å·ã" |
| | | }} |
| | | <!-- 亲ç±çæ£è
/家屿¨å¥½ï¼ä¸ºäºæ´å¥½çäºè§£æ¨åºé¢åçåº·å¤æ
åµï¼ç»æ¨éå½åæ¶çå¥åº·æå¯¼ï¼è¯·æ¨æ½ä¸ç¹å®è´µæ¶é´ï¼å®æè¿ä»½åºé¢é访é®å·è°æ¥ã --> |
| | | </div> |
| | |
| | | |
| | | geturlinfo( url ).then((res) => { |
| | | if (res.code==200) { |
| | | this.getQuestionnaire(res.data.param1,res.data.param2,res.data.param3,res.data.param5,) |
| | | this.getQuestionnaire( |
| | | res.data.param1, |
| | | res.data.param2, |
| | | res.data.param3, |
| | | res.data.param5 |
| | | ); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | var obj = item.svyLibTemplateTargetoptions.find( |
| | | (items) => items.optioncontent == item.scriptResult |
| | | ); |
| | | console.log(obj,'obj'); |
| | | console.log(obj, "obj"); |
| | | |
| | | if (obj) { |
| | | if (obj.isabnormal) { |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-button type="success" @click="nextstep('ruleForm')">{{ |
| | | quote ? "ç«å³å建" : "ä»»å¡è¯¦æ
é
ç½®" |
| | | <el-button type="primary" @click="nextstep('ruleForm')">{{ |
| | | quote ? "ç«å³å建" : "æ´¾åæ£è
é
ç½®" |
| | | }}</el-button> |
| | | <el-button type="success" @click="submitForm('ruleForm')">{{ |
| | | quote ? "ç«å³å建" : "确认æå¡é
ç½®" |
| | | }}</el-button> |
| | | <el-button @click="resetForm('ruleForm')">éç½®</el-button> |
| | | </div> |
| | |
| | | </div> |
| | | <el-button type="primary" @click="laststep()">ä¸ä¸æ¥</el-button> |
| | | <el-button type="success" @click="submitForm('ruleForm')">{{ |
| | | quote ? "ç«å³å建" : "确认任å¡é
ç½®" |
| | | quote ? "ç«å³å建" : "确认æå¡é
ç½®" |
| | | }}</el-button> |
| | | <el-button @click="resetForm('ruleForm')">éç½®</el-button> |
| | | </div> |
| | |
| | | taskdiaggetlist, |
| | | taskopergetlist, |
| | | } from "@/api/AiCentre/index"; |
| | | import OptionalForm from "@/components/OptionalForm"; //æ£åç»ä»¶ |
| | | import OptionalForm from "@/components/OptionalForm"; //ç¾ç
æ·»å ç»ä»¶ |
| | | import SFtable from "@/components/SFtable"; //è¡¨æ ¼ç»ä»¶ |
| | | import { MessageBox } from "element-ui"; |
| | | |
| | |
| | | value: "5", |
| | | label: "微信å
¬ä¼å·", |
| | | }, |
| | | { label: "微信å°ç¨åº", value: '6' }, |
| | | { label: "微信å°ç¨åº", value: "6" }, |
| | | ]; |
| | | } else if (this.form.serviceType == 6||this.form.serviceType == 14||this.form.serviceType == 15) { |
| | | } else if ( |
| | | this.form.serviceType == 6 || |
| | | this.form.serviceType == 14 || |
| | | this.form.serviceType == 15 |
| | | ) { |
| | | this.checkboxlist = [ |
| | | { |
| | | value: "3", |
| | |
| | | this.$modal.msgError("è¯·éæ©ä»»å¡å
³èæ¡ä»¶"); |
| | | return; |
| | | } |
| | | |
| | | if (!this.form.patTaskRelevances[0] && !this.form.longTask) { |
| | | this.$modal.msgError("è¯·éæ©ç
人"); |
| | | return; |
| | | } |
| | | //æå任塿£è
éå¶ |
| | | // if (!this.form.patTaskRelevances[0] && !this.form.longTask) { |
| | | // this.$modal.msgError("è¯·éæ©ç
人"); |
| | | // return; |
| | | // } |
| | | |
| | | if (!this.form.templatename && !this.templateor) { |
| | | this.$modal.msgError("æªéæ©æ¨¡æ¿"); |
| | |
| | | <div class="pull-right">{{ user.email }}</div> |
| | | </li> |
| | | <li class="list-group-item" v-if="user.belongWards[0]"> |
| | | <svg-icon icon-class="tree" />æå±é¢åº |
| | | <div class="pull-right" >{{ user.belongWards[0].districtName }}</div> |
| | | <svg-icon icon-class="tree" />æå±ç
åº |
| | | <div class="pull-right"> |
| | | <el-popover |
| | | v-model="showAllWardsPopover" |
| | | placement="right-start" |
| | | :width="300" |
| | | trigger="manual" |
| | | popper-class="ward-popover" |
| | | > |
| | | <div class="popover-content"> |
| | | <p |
| | | v-for="ward in user.belongWards" |
| | | :key="ward.districtId" |
| | | class="popover-item" |
| | | > |
| | | {{ ward.districtName }} |
| | | </p> |
| | | </div> |
| | | <!-- éè¦ä¸ä¸ªç©ºå
ç´ ä½ä¸ºè§¦åå¨çå¼ç¨ --> |
| | | <!-- <div style="display: none" slot="reference"></div> --> |
| | | <div slot="reference"> |
| | | <el-tag |
| | | v-for="(ward, index) in displayWards" |
| | | :key="ward.districtId" |
| | | size="small" |
| | | class="ward-tag" |
| | | >{{ ward.districtName }}</el-tag |
| | | > |
| | | <!-- æ¾ç¤ºéèæ°éçæ ç¾ï¼ç¹å»è§¦åPopover --> |
| | | <el-tag |
| | | v-if="user.belongWards.length > maxTagCount" |
| | | size="small" |
| | | class="more-tag" |
| | | @click="showAllWardsPopover = !showAllWardsPopover" |
| | | >+{{ user.belongWards.length - maxTagCount }}</el-tag |
| | | > |
| | | </div> |
| | | </el-popover> |
| | | </div> |
| | | </li> |
| | | <li class="list-group-item" v-else> |
| | | <svg-icon icon-class="tree" />æå±é¢åº |
| | |
| | | </li> |
| | | <li class="list-group-item" v-if="user.belongDepts[0]"> |
| | | <svg-icon icon-class="tree" />æå±ç§å®¤ |
| | | <div class="pull-right" >{{ user.belongDepts[0].deptName }}</div> |
| | | <div class="pull-right"> |
| | | <el-popover |
| | | v-model="showAllDeptsPopover" |
| | | placement="right-start" |
| | | :width="300" |
| | | style="top: 130px; left: 0px" |
| | | trigger="manual" |
| | | popper-class="dept-popover" |
| | | > |
| | | <div class="popover-content"> |
| | | <p |
| | | v-for="dept in user.belongDepts" |
| | | :key="dept.deptId" |
| | | class="popover-item" |
| | | > |
| | | {{ dept.deptName }} |
| | | </p> |
| | | </div> |
| | | <!-- <div style="display: none" slot="reference"></div> --> |
| | | <div slot="reference"> |
| | | <el-tag |
| | | v-for="(dept, index) in displayDepts" |
| | | :key="dept.deptId" |
| | | size="small" |
| | | class="dept-tag" |
| | | >{{ dept.deptName }}</el-tag |
| | | > |
| | | <el-tag |
| | | v-if="user.belongDepts.length > maxTagCount" |
| | | size="small" |
| | | class="more-tag" |
| | | @click="showAllDeptsPopover = !showAllDeptsPopover" |
| | | >+{{ user.belongDepts.length - maxTagCount }}</el-tag |
| | | > |
| | | </div> |
| | | </el-popover> |
| | | </div> |
| | | </li> |
| | | <li class="list-group-item" v-else> |
| | | <svg-icon icon-class="tree" />æå±ç§å®¤ |
| | |
| | | user: {}, |
| | | roleGroup: {}, |
| | | postGroup: {}, |
| | | activeTab: "userinfo" |
| | | activeTab: "userinfo", |
| | | maxTagCount: 3, // æ§å¶é»è®¤æ¾ç¤ºçæ ç¾æ°é |
| | | showAllWardsPopover: false, // æ§å¶ç
åºPopoverçæ¾ç¤º |
| | | showAllDeptsPopover: false, // æ§å¶ç§å®¤Popoverçæ¾ç¤º |
| | | }; |
| | | }, |
| | | computed: { |
| | | // 计ç®è¦æ¾ç¤ºçç
åºæ ç¾ï¼åmaxTagCountä¸ªï¼ |
| | | displayWards() { |
| | | if (!this.user.belongWards) return []; |
| | | return this.user.belongWards.slice(0, this.maxTagCount); |
| | | }, |
| | | // 计ç®è¦æ¾ç¤ºçç§å®¤æ ç¾ï¼åmaxTagCountä¸ªï¼ |
| | | displayDepts() { |
| | | if (!this.user.belongDepts) return []; |
| | | return this.user.belongDepts.slice(0, this.maxTagCount); |
| | | }, |
| | | }, |
| | | created() { |
| | | this.getUser(); |
| | | }, |
| | | methods: { |
| | | getUser() { |
| | | getUserProfile().then(response => { |
| | | getUserProfile().then((response) => { |
| | | this.user = response.data; |
| | | this.roleGroup = response.roleGroup; |
| | | this.postGroup = response.postGroup; |
| | | }); |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | /* 为æ ç¾æ·»å ä¸äºå³è¾¹è·ï¼ä½¿å
¶ä¸ç´§è´´å¨ä¸èµ· */ |
| | | .ward-tag, |
| | | .dept-tag, |
| | | .more-tag { |
| | | margin-right: 6px; |
| | | margin-bottom: 4px; |
| | | } |
| | | /* 设置"æ´å¤"æ ç¾çæ ·å¼ï¼ä½¿å
¶çèµ·æ¥å¯ç¹å» */ |
| | | .more-tag { |
| | | cursor: pointer; |
| | | background-color: #f0f0f0; |
| | | border-color: #ddd; |
| | | color: #999; |
| | | } |
| | | .list-group-item { |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .pull-right { |
| | | flex: 1; |
| | | text-align: right; |
| | | } |
| | | </style> |
| | | |
| | | <style> |
| | | /* Popoverå
容åºåæ ·å¼ */ |
| | | .popover-content { |
| | | max-height: 200px; |
| | | overflow-y: auto; |
| | | padding: 10px; |
| | | } |
| | | .popover-item { |
| | | margin: 8px 0; |
| | | line-height: 1.4; |
| | | } |
| | | /* ç
åºPopoveræ ·å¼ */ |
| | | .ward-popover.el-popover, |
| | | .dept-popover.el-popover { |
| | | max-width: 300px; |
| | | } |
| | | /* è°æ´Popoverç®å¤´ä½ç½® */ |
| | | .ward-popover[x-placement^="right"], |
| | | .dept-popover[x-placement^="right"] { |
| | | margin-left: 10px; |
| | | } |
| | | </style> |
| | |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target: `https://www.health-y.cn/lssf`, |
| | | // target: `http://10.202.20.185:8095`, |
| | | // target: `http://192.168.100.195:8095`, |
| | | target:`http://localhost:8095`, |
| | | target: `http://192.168.100.10:8096`, |
| | | // target:`http://localhost:8095`, |
| | | // target:`http://35z1t16164.qicp.vip`, |
| | | // target: `http://192.168.100.193:8095`, |
| | | // target: `http://192.168.101.166:8093`, |