新增货车自动刷新页面

This commit is contained in:
ljx 2024-06-03 16:37:38 +08:00
parent cff92df6ee
commit 3743974f43
2 changed files with 25 additions and 3 deletions

View File

@ -22,9 +22,17 @@
</div> --> </div> -->
<vxe-form :data="formOptions.data" ref="xForm" :title-width="formOptions.titleWidth" <vxe-form :data="formOptions.data" ref="xForm" :title-width="formOptions.titleWidth"
:title-align="formOptions.titleAlign" :rules="formOptions.rules" :items="formOptions.items" titleColon> :title-align="formOptions.titleAlign" :rules="formOptions.rules" titleColon>
<!-- =========================== 自定义区域 Start ======================= --> <!-- =========================== 自定义区域 Start ======================= -->
<vxe-form-item v-for="(item,index) in formOptions.items" :title="item.title" :field="item.field" :span="item.span" :key="index" :item-render="item.itemRender">
<div v-if="item.isTitle" class="Htitle">
<div class="left-line"></div>
<p class="Htitle-p">
{{ item.Htitle }}
</p>
<div class="right-line"></div>
</div>
</vxe-form-item>
<!-- =========================== 自定义区域 End ======================= --> <!-- =========================== 自定义区域 End ======================= -->
</vxe-form> </vxe-form>
@ -225,7 +233,7 @@ export default {
const json = `{"id":${dataId}}`; const json = `{"id":${dataId}}`;
this.$mk.post({ this.$mk.post({
url: this.actions.get, url: this.actions.get,
loading: "加载中...", loading: "保存中...",
data: json, data: json,
config: { config: {
headers: { headers: {
@ -388,4 +396,14 @@ export default {
height: 80px; height: 80px;
} }
} }
.Htitle{
font-weight: bold;
display: flex;
align-items: center;
width: 100%;
padding-left: 10px;
.Htitle-p{margin-bottom: 0;margin: 0 10px; color: #122ed1; font-size: 16px;}
.left-line{width: 40px;height: 1px;background-color:#122ed1;}
.right-line{flex-grow: 1;height: 1px;background-color:#122ed1;}
}
</style> </style>

View File

@ -139,6 +139,10 @@ export default {
// //
this.initListData() this.initListData()
}, },
activated() {
this.initListData();
//
},
methods: { methods: {
// //