合同
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<el-form-item label="小车类型" prop="carType">
|
||||
<el-select v-model="dataForm.carType" placeholder="小车类型">
|
||||
<el-option
|
||||
v-for="item in dictsOpt['car_type']"
|
||||
v-for="item in cartypeOpt"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
@@ -16,7 +16,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="异常类型" prop="errorType">
|
||||
<el-select v-model="dataForm.carType" placeholder="异常类型">
|
||||
<el-select v-model="dataForm.errorType" placeholder="异常类型">
|
||||
<el-option
|
||||
v-for="item in dictsOpt['error_type']"
|
||||
:key="item.value"
|
||||
@@ -64,8 +64,6 @@
|
||||
data () {
|
||||
return {
|
||||
visible: false,
|
||||
carTypeOpt: [],
|
||||
errorTypeOpt: [],
|
||||
dataForm: {
|
||||
ticketsId: null,
|
||||
carType: '',
|
||||
@@ -89,6 +87,7 @@
|
||||
}
|
||||
},
|
||||
props: {
|
||||
cartypeOpt: Array,
|
||||
contractOpt: Array,
|
||||
clientIdOpt: Array,
|
||||
dictsOpt: Object
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user