master
lion 3 years ago
parent 68149e2940
commit 60b26134b4

@ -24,10 +24,10 @@ export function save(data){
})
}
export function destroy(data){
export function destroy(params){
return request({
method:'post',
method:'get',
url:'/api/admin/config/destroy',
data
params
})
}

@ -62,7 +62,7 @@ export default {
},
computed: {},
mounted() {
// this.getList()
this.getList()
},
methods: {
async getList(){

@ -211,7 +211,7 @@
var that = this;
listuser({
page:1,
page_size:99
page_size:999
}).then(response => {
var data = response.data;
var _rolelist = [];

@ -151,15 +151,34 @@
</div>
</div>
</template>
<template v-slot:cars>
<div class="xy-table-item">
<div class="xy-table-item-label">
到访车辆
</div>
<div class="xy-table-item-content">
<el-input v-model="form.cars" placeholder="请输入到访车辆"></el-input>
</div>
</div>
<template v-slot:cars v-if="visitType==1||visitType==2">
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>到访车辆
</div>
<div class="xy-table-item-content">
<Button type="primary" icon="md-add" style="margin-bottom: 10px"
@click="form.cars.push('')">新增车辆</Button>
<div class='carsitem' v-for="(item,index) in form.cars">
<el-input v-model="form.cars[index]" placeholder="请输入到访车辆"></el-input>
<Button size="small" type="primary" ghost @click="form.cars.splice(index,1)"></Button>
</div>
</div>
</div>
</template>
<template v-slot:cars v-if="visitType==3">
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>到访车辆
</div>
<div class="xy-table-item-content">
<div v-for="(item,index) in form.cars">
<el-input v-model="form.cars[index]" placeholder="请输入到访车辆"></el-input>
</div>
</div>
</div>
</template>
<template v-slot:follw_people v-if="visitType==1||visitType==2">
@ -299,7 +318,7 @@
credent: 1,
idcard: "",
company_name: "",
cars: "",
cars: [''],
follw_people: [],
long_time: 0,
longrange: "",
@ -591,5 +610,11 @@
position: absolute;
top: 4px;
right: 4px;
}
.carsitem{
width:450px;margin-bottom:10px;margin-bottom: 10px;display: flex;align-items: center;justify-content: space-between;
}
.carsitem Button{
margin-left:10px
}
</style>

@ -159,7 +159,7 @@
到访车辆
</div>
<div class="xy-table-item-content">
{{form.cars}}
{{form.cars?form.cars.join(','):''}}
</div>
</div>
</template>

Loading…
Cancel
Save