|
@@ -34,27 +34,39 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-if="item.attrType == 'inputNumber'">
|
|
<template v-if="item.attrType == 'inputNumber'">
|
|
|
- <template v-if="item.operator == '1' || item.operator == null">
|
|
|
|
|
- <el-input-number v-model="item.min"></el-input-number>
|
|
|
|
|
- <span style="margin: 0 10px ;">-</span>
|
|
|
|
|
- <el-input-number v-model="item.max"></el-input-number>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-if="item.operator == '2'">
|
|
|
|
|
- <span><</span>
|
|
|
|
|
- <el-input-number v-model="item.min"></el-input-number>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-if="item.operator == '3'">
|
|
|
|
|
- <span>≤</span>
|
|
|
|
|
- <el-input-number v-model="item.min"></el-input-number>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-if="item.operator == '4'">
|
|
|
|
|
- <span>></span>
|
|
|
|
|
- <el-input-number v-model="item.max"></el-input-number>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-if="item.operator == '5'">
|
|
|
|
|
- <span>≥</span>
|
|
|
|
|
- <el-input-number v-model="item.max"></el-input-number>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <el-row class="flex a-c">
|
|
|
|
|
+ <template v-if="item.operator == '1' || item.operator == null">
|
|
|
|
|
+ <el-col :span="11">
|
|
|
|
|
+ <el-input-number v-model="item.min" style="width: 100%;"></el-input-number>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="2">
|
|
|
|
|
+ <div class="flex a-c j-c " style="font-size: 14px;color: #333;">至</div>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="11">
|
|
|
|
|
+ <el-input-number v-model="item.max" style="width: 100%;"></el-input-number>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="item.operator == '2'">
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-input-number v-model="item.min" style="width: 100%;"></el-input-number>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="item.operator == '3'">
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-input-number v-model="item.min" style="width: 100%;"></el-input-number>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="item.operator == '4'">
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-input-number v-model="item.max" style="width: 100%;"></el-input-number>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="item.operator == '5'">
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-input-number v-model="item.max" style="width: 100%;"></el-input-number>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-row>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-if="item.attrType == 'select'">
|
|
<template v-if="item.attrType == 'select'">
|
|
|
<el-select v-model="item.minArray" placeholder="选择值" clearable filterable multiple
|
|
<el-select v-model="item.minArray" placeholder="选择值" clearable filterable multiple
|
|
@@ -66,46 +78,53 @@
|
|
|
<template v-if="item.attrType == 'inputTag'">
|
|
<template v-if="item.attrType == 'inputTag'">
|
|
|
<el-input-tag v-model="item.minArray" @change="change($event, index)" placeholder="输入内容后按回车键隔开" />
|
|
<el-input-tag v-model="item.minArray" @change="change($event, index)" placeholder="输入内容后按回车键隔开" />
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<template v-if="item.attrType == 'datetime'">
|
|
<template v-if="item.attrType == 'datetime'">
|
|
|
- <template v-if="item.operator == '1' || item.operator == null">
|
|
|
|
|
- <el-date-picker v-model="item.min" type="datetime" format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
- value-format="YYYY-MM-DD HH:mm:ss" time-format="HH:mm:ss" placeholder="选择日期时间" style="width: 250px;">
|
|
|
|
|
- </el-date-picker>
|
|
|
|
|
- <span>~</span>
|
|
|
|
|
- <el-date-picker v-model="item.max" type="datetime" format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
- value-format="YYYY-MM-DD HH:mm:ss" time-format="HH:mm:ss" placeholder="选择日期时间" style="width: 250px;">
|
|
|
|
|
- </el-date-picker>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-if="item.operator == '2'">
|
|
|
|
|
- <span><</span>
|
|
|
|
|
- <el-date-picker v-model="item.min" type="datetime" format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
- value-format="YYYY-MM-DD HH:mm:ss" time-format="HH:mm:ss" placeholder="选择日期时间" style="width: 170px;">
|
|
|
|
|
- </el-date-picker>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-if="item.operator == '3'">
|
|
|
|
|
- <span>≤</span>
|
|
|
|
|
- <el-date-picker v-model="item.min" type="datetime" format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
- value-format="YYYY-MM-DD HH:mm:ss" time-format="HH:mm:ss" placeholder="选择日期时间" style="width: 170px;">
|
|
|
|
|
- </el-date-picker>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-if="item.operator == '4'">
|
|
|
|
|
- <span>></span>
|
|
|
|
|
- <el-date-picker v-model="item.max" type="datetime" format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
- value-format="YYYY-MM-DD HH:mm:ss" time-format="HH:mm:ss" placeholder="选择日期时间" style="width: 170px;">
|
|
|
|
|
- </el-date-picker>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-if="item.operator == '5'">
|
|
|
|
|
- <span>≥</span>
|
|
|
|
|
- <el-date-picker v-model="item.max" type="datetime" format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
- value-format="YYYY-MM-DD HH:mm:ss" time-format="HH:mm:ss" placeholder="选择日期时间" style="width: 170px;">
|
|
|
|
|
- </el-date-picker>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <el-row class="flex a-c">
|
|
|
|
|
+ <template v-if="item.operator == '1' || item.operator == null">
|
|
|
|
|
+ <el-col :span="11">
|
|
|
|
|
+ <el-date-picker v-model="item.min" type="datetime" format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss" time-format="HH:mm:ss" placeholder="选择日期时间" style="width: 100%;">
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="2">
|
|
|
|
|
+ <div class="flex a-c j-c " style="font-size: 14px;color: #333;">至</div>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="11">
|
|
|
|
|
+ <el-date-picker v-model="item.max" type="datetime" format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss" time-format="HH:mm:ss" placeholder="选择日期时间" style="width: 100%;">
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="item.operator == '2'">
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-date-picker v-model="item.min" type="datetime" format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss" time-format="HH:mm:ss" placeholder="选择日期时间" style="width: 100%;">
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="item.operator == '3'">
|
|
|
|
|
+ <el-col :span="24"> <el-date-picker v-model="item.min" type="datetime" format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss" time-format="HH:mm:ss" placeholder="选择日期时间" style="width: 100%;">
|
|
|
|
|
+ </el-date-picker></el-col>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="item.operator == '4'">
|
|
|
|
|
+ <el-col :span="24"><el-date-picker v-model="item.max" type="datetime" format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss" time-format="HH:mm:ss" placeholder="选择日期时间" style="width: 100%;">
|
|
|
|
|
+ </el-date-picker></el-col>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="item.operator == '5'">
|
|
|
|
|
+ <el-col :span="24"> <el-date-picker v-model="item.max" type="datetime" format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss" time-format="HH:mm:ss" placeholder="选择日期时间" style="width: 100%;">
|
|
|
|
|
+ </el-date-picker></el-col>
|
|
|
|
|
+
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+
|
|
|
</template>
|
|
</template>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="1">
|
|
<el-col :span="1">
|
|
|
- <el-icon color="#666" size="20" style="margin-left: 10px;" @click="attrDel(index)">
|
|
|
|
|
- <CircleCloseFilled />
|
|
|
|
|
|
|
+ <el-icon color="#666" size="18" style="margin-left: 10px;" @click="attrDel(index)">
|
|
|
|
|
+ <Delete />
|
|
|
</el-icon>
|
|
</el-icon>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -125,6 +144,7 @@ const attrDel = (index: number) => {
|
|
|
console.log(index)
|
|
console.log(index)
|
|
|
emits('Del', index)
|
|
emits('Del', index)
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
const change = (e: string[] | undefined, index: number) => {
|
|
const change = (e: string[] | undefined, index: number) => {
|
|
|
console.log(e)
|
|
console.log(e)
|
|
|
emits('selectChange', { e, index })
|
|
emits('selectChange', { e, index })
|