Browse Source

量表套餐界面,套餐添加权限按钮

ltszxyy
lzp 2 days ago
parent
commit
bb158a771c
  1. 16
      web_client/src/views/Patient/chooseSetMeal/index.vue
  2. 4
      web_client/vue.config.js

16
web_client/src/views/Patient/chooseSetMeal/index.vue

@ -53,6 +53,7 @@
>
<div>
{{ item.name }}
<span @click="handleAll(item.id)">全选</span>
<!-- {{ item.scaleQuestionNum || 0 }} -->
</div>
</div>
@ -318,14 +319,11 @@ export default {
},
//
handleCheckAll1(item1, item2, isAll) {
console.log("11");
if (this.checkboxGroup21[item2.scaleCode] && !isAll) {
delete this.checkboxGroup21[item2.scaleCode];
} else {
this.checkboxGroup21[item2.scaleCode] = item1.id;
}
// console.log(" this.checkboxGroup21", this.checkboxGroup21);
},
//
handleScaleItem(_id) {
@ -333,6 +331,15 @@ export default {
this.listCombo1 = list[0];
this.comboActive = _id;
},
//
handleAll(_id) {
//
if (this.comboActive == _id) {
this.listCombo1.childrenList.forEach((item) => {
this.handleCheckAll(item);
});
}
},
//
async gethospitalConfig() {
this.isSign = this.informed.informed_consent;
@ -594,6 +601,9 @@ export default {
color: #3d3d3d;
line-height: 44px;
}
/* .scale-box1-item span {
color: #5cc0be;
} */
.scale-box1-item.active {
background: #5cc0be;
border: 1px solid #5cc0be;

4
web_client/vue.config.js

@ -36,9 +36,9 @@ module.exports = {
proxy: {
[settings.proxyUrl]: {
// target: "https://www.ylinno.com/cga/v2/api/client/",
// target: "http://113.45.159.249:59001/cga/v2/api/client/",
target: "http://113.45.159.249:59001/cga/v2/api/client/",
// target: "http://127.0.0.1:19331",
// target: "http://127.0.0.1:19331",
target: "http://127.0.0.1:19331",
changeOrigin: true,
pathRewrite: {
["^" + settings.proxyUrl]: "",

Loading…
Cancel
Save