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({ return request({
method:'post', method:'get',
url:'/api/admin/config/destroy', url:'/api/admin/config/destroy',
data params
}) })
} }

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

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

@ -151,15 +151,34 @@
</div> </div>
</div> </div>
</template> </template>
<template v-slot:cars>
<div class="xy-table-item"> <template v-slot:cars v-if="visitType==1||visitType==2">
<div class="xy-table-item-label"> <div class="xy-table-item">
到访车辆 <div class="xy-table-item-label">
</div> <span style="color: red;font-weight: 600;padding-right: 4px;"></span>到访车辆
<div class="xy-table-item-content"> </div>
<el-input v-model="form.cars" placeholder="请输入到访车辆"></el-input> <div class="xy-table-item-content">
</div> <Button type="primary" icon="md-add" style="margin-bottom: 10px"
</div> @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>
<template v-slot:follw_people v-if="visitType==1||visitType==2"> <template v-slot:follw_people v-if="visitType==1||visitType==2">
@ -299,7 +318,7 @@
credent: 1, credent: 1,
idcard: "", idcard: "",
company_name: "", company_name: "",
cars: "", cars: [''],
follw_people: [], follw_people: [],
long_time: 0, long_time: 0,
longrange: "", longrange: "",
@ -591,5 +610,11 @@
position: absolute; position: absolute;
top: 4px; top: 4px;
right: 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> </style>

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

Loading…
Cancel
Save