Browse Source

项目页面修改

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

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

@ -83,7 +83,7 @@
:title="title == 1 ? '新增' : '编辑'" :title="title == 1 ? '新增' : '编辑'"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="75%" width="75%"
:close-on-click-modal="false"
:close-on-click-modal="false"
> >
<el-form ref="form" :model="form" label-width="80px"> <el-form ref="form" :model="form" label-width="80px">
<el-row> <el-row>
@ -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 {

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

@ -503,9 +503,9 @@ export default {
// //
ischangs(v) { ischangs(v) {
itemtypeid(v).then((res) => { itemtypeid(v).then((res) => {
this.ites = res.data;
// let dq = res.data;
if (ites.length > 0) {
this.ites = res.data;
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);

67
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"
@ -109,7 +109,7 @@
:title="title == 1 ? '新增' : '编辑'" :title="title == 1 ? '新增' : '编辑'"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="70%" width="70%"
:close-on-click-modal="false"
:close-on-click-modal="false"
> >
<el-form ref="form" :model="form" label-width="110px" :rules="rules"> <el-form ref="form" :model="form" label-width="110px" :rules="rules">
<el-row> <el-row>
@ -389,16 +389,16 @@
</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>
<el-button
type="primary"
@click="editpopup"
style="margin-left: 0; margin-top: 10px"
>编辑</el-button
>
</div>
<div>
<el-button
type="primary"
@click="editpopup"
style="margin-left: 0; margin-top: 10px"
>编辑</el-button
>
</div>
<div style="margin-top: 10px"> <div style="margin-top: 10px">
<el-button type="danger" @click="delsrts">删除</el-button> <el-button type="danger" @click="delsrts">删除</el-button>
</div> </div>
@ -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
@ -502,7 +507,7 @@
:title="ruesttiele == 1 ? '新增' : '修改'" :title="ruesttiele == 1 ? '新增' : '修改'"
:visible.sync="ruesttieledialogVisible" :visible.sync="ruesttieledialogVisible"
width="80%" width="80%"
:close-on-click-modal="false"
:close-on-click-modal="false"
> >
<el-form :model="rusetform" ref="rusetform" label-width="100px"> <el-form :model="rusetform" ref="rusetform" label-width="100px">
<el-row> <el-row>
@ -597,7 +602,7 @@
title="参考范围" title="参考范围"
:visible.sync="referencerangedialogVisible" :visible.sync="referencerangedialogVisible"
width="80%" width="80%"
:close-on-click-modal="false"
:close-on-click-modal="false"
> >
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
@ -677,7 +682,7 @@
title="结果模板" title="结果模板"
:visible.sync="projectdialogVisible" :visible.sync="projectdialogVisible"
width="80%" width="80%"
:close-on-click-modal="false"
:close-on-click-modal="false"
> >
<div style="display: flex"> <div style="display: flex">
<div style="width: 95%"> <div style="width: 95%">
@ -710,7 +715,7 @@
title="诊断匹配" title="诊断匹配"
:visible.sync="diagnosdialogVisible" :visible.sync="diagnosdialogVisible"
width="80%" width="80%"
:close-on-click-modal="false"
:close-on-click-modal="false"
> >
<div style="display: flex"> <div style="display: flex">
<div style="width: 95%"> <div style="width: 95%">
@ -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 {
@ -1777,7 +1792,7 @@ export default {
<style scoped> <style scoped>
.box { .box {
display: flex; display: flex;
width: 100%; width: 100%;
} }
</style> </style>
Loading…
Cancel
Save