This commit is contained in:
2025-03-17 17:46:56 +08:00
parent 843b514c5b
commit 8562655e51
6 changed files with 264 additions and 254 deletions

View File

@@ -127,7 +127,7 @@
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" :contractOpt="contractOpt" :clientIdOpt="clientIdOpt" :dictsOpt="dictsOpt" @refreshDataList="getDataList"></add-or-update>
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" :cartypeOpt="cartypeOpt" :contractOpt="contractOpt" :clientIdOpt="clientIdOpt" :dictsOpt="dictsOpt" @refreshDataList="getDataList"></add-or-update>
</div>
</template>
@@ -147,11 +147,12 @@
dataListLoading: false,
dataListSelections: [],
addOrUpdateVisible: false,
cartypeOpt: [],
contractOpt: [],
clientIdOpt: []
}
},
mixins: [dictDetail(['car_type', 'error_type'])],
mixins: [dictDetail(['error_type'])],
components: {
AddOrUpdate
},
@@ -161,6 +162,16 @@
},
methods: {
getDictDetail () {
this.$http({
url: this.$http.adornUrl('/car/car/list?page=0&limit=9999'),
method: 'get'
}).then(({data}) => {
this.cartypeOpt = data.page.list
this.cartypeOpt.map(el => {
this.$set(el, 'value', el.carId)
this.$set(el, 'label', el.carName)
})
})
this.$http({
url: this.$http.adornUrl('/flow/contract/list?page=0&limit=9999'),
method: 'get'