Browse Source

项目页面修改

master
mch 2 years ago
parent
commit
459ed29bca
  1. 12
      src/views/basic-dictionary/Unit.vue
  2. 4
      src/views/common-settings/SampleGroup.vue
  3. 39
      src/views/fee-settings/Item.vue

12
src/views/basic-dictionary/Unit.vue

@ -210,7 +210,7 @@ export default {
form: { form: {
displayName: "", displayName: "",
}, },
curRow:{},
curRow: {},
title: 1, title: 1,
}; };
}, },
@ -246,7 +246,7 @@ export default {
rowick(row) { rowick(row) {
unitid(row.id).then((res) => { unitid(row.id).then((res) => {
console.log(res); console.log(res);
this.curRow={...res.data}
this.curRow = { ...res.data };
// this.form = res.data; // this.form = res.data;
}); });
// console.log(row); // console.log(row);
@ -303,7 +303,7 @@ export default {
}, },
// //
topping() { topping() {
this.form={...this.curRow}
this.form = { ...this.curRow };
if (this.form.id == undefined) { if (this.form.id == undefined) {
this.$message.warning("请选择操作的数据"); this.$message.warning("请选择操作的数据");
} else { } else {
@ -314,7 +314,7 @@ export default {
} }
}, },
toppings() { toppings() {
this.form={...this.curRow}
this.form = { ...this.curRow };
if (this.form.id == undefined) { if (this.form.id == undefined) {
this.$message.warning("请选择操作的数据"); this.$message.warning("请选择操作的数据");
} else { } else {
@ -326,7 +326,7 @@ export default {
}, },
// //
delsrts() { delsrts() {
this.form={...this.curRow}
this.form = { ...this.curRow };
if (this.form.id == undefined) { if (this.form.id == undefined) {
this.$message.warning("请选择删除的数据"); this.$message.warning("请选择删除的数据");
} else { } else {
@ -351,7 +351,7 @@ export default {
}, },
// //
editpopup(row) { editpopup(row) {
this.form={...this.curRow}
this.form = { ...this.curRow };
if (this.form.id == undefined) { if (this.form.id == undefined) {
this.$message.warning("请选择数据"); this.$message.warning("请选择数据");
} else { } else {

4
src/views/common-settings/SampleGroup.vue

@ -504,8 +504,8 @@ export default {
ischangs(v) { ischangs(v) {
itemtypeid(v).then((res) => { itemtypeid(v).then((res) => {
this.ites = res.data; this.ites = res.data;
// let dq = res.data;
if (ites.length > 0) {
let dq = res.data;
if (dq.length > 0) {
dq.forEach((element) => { dq.forEach((element) => {
let bb = { displayName: element.displayName, id: element.id }; let bb = { displayName: element.displayName, id: element.id };
this.ites.push(bb); this.ites.push(bb);

39
src/views/fee-settings/Item.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="box"> <div class="box">
<div style="width: 90%"> <div style="width: 90%">
<el-card style="height:600px;width:100%">
<el-card style="height: 600px; width: 105%">
<el-row style="margin-top: 20px; margin-left: 15px"> <el-row style="margin-top: 20px; margin-left: 15px">
<el-col :span="4"> <el-col :span="4">
<el-autocomplete <el-autocomplete
@ -52,7 +52,7 @@
<div style="width: 85%"> <div style="width: 85%">
<el-table <el-table
:data="tableData" :data="tableData"
style="width: 100%; "
style="width: 100%"
row-key="id" row-key="id"
height="500" height="500"
class="el-table__body-wrapper tbody" class="el-table__body-wrapper tbody"
@ -389,7 +389,7 @@
</span> </span>
</el-dialog> </el-dialog>
<!-- 按钮区域 --> <!-- 按钮区域 -->
<div style="margin-left: 10px; margin-top: 7%">
<div style="margin-left: 6%; margin-top: 7%">
<el-button type="primary" @click="add">新增</el-button> <el-button type="primary" @click="add">新增</el-button>
<div> <div>
<el-button <el-button
@ -438,7 +438,12 @@
</div> </div>
</div> </div>
<!-- 结果模板弹框 --> <!-- 结果模板弹框 -->
<el-dialog title="结果模板" :visible.sync="rurestdialogVisible" width="80%" :close-on-click-modal="false">
<el-dialog
title="结果模板"
:visible.sync="rurestdialogVisible"
width="80%"
:close-on-click-modal="false"
>
<div style="display: flex"> <div style="display: flex">
<div style="width: 95%"> <div style="width: 95%">
<el-table <el-table
@ -749,7 +754,12 @@
</span> </span>
</el-dialog> </el-dialog>
<!-- 增加诊断弹框 --> <!-- 增加诊断弹框 -->
<el-dialog title="诊断编辑" :visible.sync="diagnosticediting" width="80%" :close-on-click-modal="false">
<el-dialog
title="诊断编辑"
:visible.sync="diagnosticediting"
width="80%"
:close-on-click-modal="false"
>
<el-form :model="editdigoisceditingform"> <el-form :model="editdigoisceditingform">
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
@ -846,7 +856,12 @@
</span> </span>
</el-dialog> </el-dialog>
<!--诊断设置弹框 --> <!--诊断设置弹框 -->
<el-dialog title="诊断建议设置" :visible.sync="diagnostisbox" width="80%" :close-on-click-modal="false">
<el-dialog
title="诊断建议设置"
:visible.sync="diagnostisbox"
width="80%"
:close-on-click-modal="false"
>
<div style="display: flex"> <div style="display: flex">
<div style="width: 95%"> <div style="width: 95%">
<el-card> <el-card>
@ -1230,7 +1245,7 @@ export default {
reference: [], // reference: [], //
resulttemp: [], // resulttemp: [], //
disableddiagnosisFunction: false, disableddiagnosisFunction: false,
curRow:{}
curRow: {},
}; };
}, },
created() { created() {
@ -1625,7 +1640,7 @@ export default {
}, },
// //
toppings() { toppings() {
this.form={...this.curRow}
this.form = { ...this.curRow };
if (this.form.id == undefined) { if (this.form.id == undefined) {
this.$message.success("请点击选择操作的数据"); this.$message.success("请点击选择操作的数据");
} else { } else {
@ -1637,7 +1652,7 @@ export default {
}, },
// //
topping() { topping() {
this.form={...this.curRow}
this.form = { ...this.curRow };
if (this.form.id == undefined) { if (this.form.id == undefined) {
this.$message.warning("请点击选择操作的数据"); this.$message.warning("请点击选择操作的数据");
} else { } else {
@ -1649,7 +1664,7 @@ export default {
}, },
// //
delsrts() { delsrts() {
this.form={...this.curRow}
this.form = { ...this.curRow };
if (this.form.id == undefined) { if (this.form.id == undefined) {
this.$message.warning("请选择删除的数据"); this.$message.warning("请选择删除的数据");
} else { } else {
@ -1671,7 +1686,7 @@ export default {
//id //id
rowick(row) { rowick(row) {
posjrctid(row.id).then((res) => { posjrctid(row.id).then((res) => {
this.curRow={...res.data}
this.curRow = { ...res.data };
// console.log(res); // console.log(res);
// this.form = res.data; // this.form = res.data;
}); });
@ -1679,7 +1694,7 @@ export default {
}, },
// //
editpopup() { editpopup() {
this.form={...this.curRow}
this.form = { ...this.curRow };
if (this.form.id == undefined) { if (this.form.id == undefined) {
this.$message.warning("请选择操作的数据"); this.$message.warning("请选择操作的数据");
} else { } else {

Loading…
Cancel
Save