驾校管理

This commit is contained in:
qsh
2024-05-16 11:50:50 +08:00
parent 555cb4d27a
commit 2468a0c8a5
5 changed files with 917 additions and 123 deletions

View File

@@ -30,27 +30,6 @@
</el-radio-group>
</el-form-item>
<div v-if="form.isAuto">
<!-- <el-form-item label="分配对象">
<div>
<el-checkbox
v-model="checkUserAll"
:indeterminate="userIndeterminate"
@change="userCheckAllChange"
>
全选
</el-checkbox>
<el-checkbox-group v-model="form.users" @change="userCheckedChange">
<el-checkbox
v-for="(item, index) in userOptions"
:key="index"
:label="item.value"
:value="item.value"
>
{{ item.label }}
</el-checkbox>
</el-checkbox-group>
</div>
</el-form-item> -->
<el-form-item label="线索来源">
<div>
<el-checkbox
@@ -73,32 +52,9 @@
</div>
</el-form-item>
<el-form-item label="权重配置">
<div>
<el-radio-group v-model="form.isRandom">
<el-radio :label="1">
<Tooltip message="根据剩余的线索平均分配到未分配线索的所有人" />
平均分配
</el-radio>
<el-radio :label="0"> 权重分配 </el-radio>
</el-radio-group>
<div v-if="form.isRandom == 0">
<div v-for="(item, index) in intentionOptions" :key="index" class="flex mb-10px">
<div class="mr-15px" style="width: 100px">{{ item.label }}</div>
<el-input v-model="item.value" type="number" placeholder="请输入权重">
<template #suffix> % </template>
</el-input>
</div>
</div>
</div>
</el-form-item>
<el-form-item label="分配时间">
<el-time-picker
v-model="form.sendTime"
placeholder="任意时间点"
format="HH:mm"
value-format="HH:mm"
:clearable="false"
/>
<el-input v-model="form.value" type="number" placeholder="请输入权重">
<template #suffix> % </template>
</el-input>
</el-form-item>
</div>
<el-form-item>
@@ -128,25 +84,6 @@ const form = ref({
})
const rules = ref({})
// const checkUserAll = ref(false)
// const userIndeterminate = ref(true)
// const userOptions = ref([
// { label: '张三', value: 1 },
// { label: '李四', value: 2 },
// { label: '王二', value: 3 }
// ])
// function userCheckAllChange(val) {
// form.value.users = val ? userOptions.value.map((it) => it.value) : []
// userIndeterminate.value = false
// }
// function userCheckedChange(val) {
// const checkedCount = val.length
// checkUserAll.value = checkedCount == userOptions.value.length
// userIndeterminate.value = checkedCount > 0 && checkedCount < userOptions.value.length
// }
function getUserList() {
console.log('获取列表')
}
@@ -174,13 +111,6 @@ function resourceCheckedChange(val) {
resourceIndeterminate.value = checkedCount > 0 && checkedCount < resourceOptions.value.length
}
const intentionOptions = ref([
{ label: '高意向', value: 20 },
{ label: '中意向', value: 20 },
{ label: '低意向', value: 20 },
{ label: '未知意向', value: 40 }
])
function selectUser(row) {
console.log(row)
}