@tongfun/tf-widget 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -49
- package/lib/tf-widget.common.js +547 -503
- package/lib/tf-widget.css +1 -1
- package/lib/tf-widget.umd.js +547 -503
- package/lib/tf-widget.umd.min.js +4 -4
- package/package/svg-icon/index.js +8 -8
- package/package/svg-icon/src/SvgIcon.vue +59 -59
- package/package/t-data-list/index.js +6 -6
- package/package/t-data-list/main.vue +193 -193
- package/package/t-data-list/src/condition-input/basic.vue +31 -31
- package/package/t-data-list/src/condition-input/date.vue +106 -106
- package/package/t-data-list/src/condition-input/index.vue +100 -100
- package/package/t-data-list/src/condition-input/input.vue +31 -31
- package/package/t-data-list/src/condition-input/number.vue +115 -115
- package/package/t-data-list/src/condition-input/select.vue +86 -86
- package/package/t-data-list/src/js/fieldTypeEnum.js +10 -10
- package/package/t-data-list/src/js/operatorEnum.js +108 -108
- package/package/t-data-list/src/js/qureyParamsEnum.js +4 -4
- package/package/t-data-list/src/js/util.js +34 -34
- package/package/t-data-list/src/mixins/button-controll-mixin.js +93 -93
- package/package/t-data-list/src/pushdown/push-down.vue +158 -158
- package/package/t-data-list/src/t-list-search.vue +36 -36
- package/package/t-data-list/src/t-plan/condition-always-item.vue +143 -143
- package/package/t-data-list/src/t-plan/condition-mult-item.vue +222 -222
- package/package/t-data-list/src/t-plan/index.vue +195 -195
- package/package/t-data-list/src/t-plan/plan-content.vue +389 -389
- package/package/t-data-list/src/t-table/index.vue +129 -129
- package/package/t-data-list/src/t-table/table-group-item-edit.vue +238 -238
- package/package/t-data-list/src/t-table/table-group-item.vue +87 -87
- package/package/t-data-list/src/t-table/table-group.vue +180 -180
- package/package/t-data-list/src/t-table/table-records-header-popover.vue +246 -246
- package/package/t-data-list/src/t-table/table-records-selected.vue +159 -159
- package/package/t-data-list/src/t-table/table-records.vue +337 -337
- package/package/t-input/children/address.vue +101 -101
- package/package/t-input/children/basic-display.vue +41 -41
- package/package/t-input/children/basic.vue +253 -253
- package/package/t-input/children/date.vue +89 -89
- package/package/t-input/children/group-components/group-dialog.vue +344 -344
- package/package/t-input/children/group.vue +126 -126
- package/package/t-input/children/input.vue +72 -72
- package/package/t-input/children/number.vue +74 -74
- package/package/t-input/children/select.vue +89 -89
- package/package/t-input/children/tfile/fiile-enclosure.vue +233 -233
- package/package/t-input/index.js +7 -7
- package/package/t-input/index.vue +337 -337
- package/package/t-input/tInputCache.js +24 -24
- package/package/tf-icon-picker/README.md +7 -7
- package/package/tf-icon-picker/index.js +8 -8
- package/package/tf-icon-picker/src/tf-icon-picker.vue +266 -266
- package/package/tf-layout/README.md +115 -115
- package/package/tf-layout/index.js +8 -8
- package/package/tf-layout/src/components/tf-labelbar.vue +394 -394
- package/package/tf-layout/src/components/tf-menu.vue +180 -180
- package/package/tf-layout/src/components/tf-right-menu.vue +89 -89
- package/package/tf-layout/src/components/tf-rotate-box.vue +50 -50
- package/package/tf-layout/src/tf-layout.vue +140 -140
- package/package/tf-widget/index.js +8 -8
- package/package/tf-widget/src/assets/common-input.less +10 -10
- package/package/tf-widget/src/children/basic-data/basic-data.vue +361 -361
- package/package/tf-widget/src/children/basic-data/dependcy/basic-data-selector.vue +1087 -1087
- package/package/tf-widget/src/children/basic-data/dependcy/common-table.vue +750 -750
- package/package/tf-widget/src/children/basic-data/dependcy/condition-filter.vue +519 -519
- package/package/tf-widget/src/children/basic-data/dependcy/pagination.vue +93 -93
- package/package/tf-widget/src/children/basic-data/dependcy/table-control.vue +240 -240
- package/package/tf-widget/src/children/basic-data/dependcy/view-picture.vue +108 -108
- package/package/tf-widget/src/children/date-time.vue +103 -103
- package/package/tf-widget/src/children/date.vue +103 -103
- package/package/tf-widget/src/children/decimal.vue +115 -115
- package/package/tf-widget/src/children/integer.vue +104 -104
- package/package/tf-widget/src/children/property.vue +59 -59
- package/package/tf-widget/src/children/single-line-text.vue +82 -82
- package/package/tf-widget/src/children/small-pictures.vue +223 -223
- package/package/tf-widget/src/children/text-area.vue +74 -74
- package/package/tf-widget/src/children/tf-select.vue +113 -113
- package/package/tf-widget/src/tf-widget.vue +175 -175
- package/package.json +44 -44
- package/src/api/edit.js +97 -97
- package/src/api/file-enclosure.js +26 -26
- package/src/api/push-down.js +19 -19
- package/src/api/table.js +294 -294
- package/src/api/tableV3.js +166 -160
- package/src/assets/images/icons/index.js +9 -9
- package/src/assets/images/icons/svg/add.svg +5 -5
- package/src/assets/images/icons/svg/push-down.svg +1 -1
- package/src/assets/images/icons/svg/remove.svg +1 -1
- package/src/assets/styles/common-table.less +202 -202
- package/src/directives/debounce.js +24 -24
- package/src/index.js +31 -31
- package/src/mixins/t-data-query-mixin.js +290 -290
- package/src/utils/auth.js +22 -22
- package/src/utils/request.js +42 -42
- package/src/utils/stato-anormale.js +59 -59
- package/src/utils/utils.js +109 -109
- package/src/utils/validate.js +84 -84
|
@@ -1,222 +1,222 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="condition-item">
|
|
3
|
-
<!-- 左侧括号 -->
|
|
4
|
-
<el-select v-model="condition.leftBracket" :popper-append-to-body="false" size="mini" class="bracket" placeholder="">
|
|
5
|
-
<el-option lable="(" value="(" />
|
|
6
|
-
<el-option lable="((" value="((" />
|
|
7
|
-
<el-option lable="(((" value="(((" />
|
|
8
|
-
</el-select>
|
|
9
|
-
|
|
10
|
-
<!-- 字段名 -->
|
|
11
|
-
<el-select v-model="condition.field" :popper-append-to-body="false" size="mini" placeholder="" class="condition-field" @change="handleFieldSelect">
|
|
12
|
-
<el-option
|
|
13
|
-
v-for="option in fieldsOptions"
|
|
14
|
-
:key="option.field"
|
|
15
|
-
:label="option.title"
|
|
16
|
-
:value="option.field"
|
|
17
|
-
/>
|
|
18
|
-
</el-select>
|
|
19
|
-
|
|
20
|
-
<!-- 运算符 -->
|
|
21
|
-
<el-select v-model="condition.operator" :popper-append-to-body="false" size="mini" placeholder="" class="condition-operator">
|
|
22
|
-
<el-option
|
|
23
|
-
v-for="option in operatorOptions"
|
|
24
|
-
:key="option.value"
|
|
25
|
-
:label="option.label"
|
|
26
|
-
:value="option.value"
|
|
27
|
-
/>
|
|
28
|
-
</el-select>
|
|
29
|
-
|
|
30
|
-
<!-- 值 -->
|
|
31
|
-
<ConditionInput
|
|
32
|
-
v-model="condition.value"
|
|
33
|
-
:disabled="inputDisabled"
|
|
34
|
-
:type="inputType"
|
|
35
|
-
:field="condition.field"
|
|
36
|
-
:multi="multiSelect"
|
|
37
|
-
:range="range"
|
|
38
|
-
/>
|
|
39
|
-
|
|
40
|
-
<!-- 右侧括号 -->
|
|
41
|
-
<el-select v-model="condition.rightBracket" :popper-append-to-body="false" class="bracket" size="mini" placeholder="">
|
|
42
|
-
<el-option label=")" value=")" />
|
|
43
|
-
<el-option label="))" value="))" />
|
|
44
|
-
<el-option label=")))" value=")))" />
|
|
45
|
-
</el-select>
|
|
46
|
-
|
|
47
|
-
<!-- 条件之间的逻辑运算符 -->
|
|
48
|
-
<el-select v-model="condition.relation" :popper-append-to-body="false" size="mini" class="condition-relation" placeholder="">
|
|
49
|
-
<el-option value="AND" label="并且" />
|
|
50
|
-
<el-option value="OR" label="或者" />
|
|
51
|
-
</el-select>
|
|
52
|
-
|
|
53
|
-
<!-- 移除条件按钮 -->
|
|
54
|
-
<i class="el-icon-remove icon" @click="removeCondition" />
|
|
55
|
-
</div>
|
|
56
|
-
</template>
|
|
57
|
-
<script>
|
|
58
|
-
import getOperatorOption from '../js/operatorEnum.js'
|
|
59
|
-
import ConditionInput from '../condition-input'
|
|
60
|
-
import FieldTypeEnum from '../js/fieldTypeEnum.js'
|
|
61
|
-
export default {
|
|
62
|
-
name: 'ConditionItem',
|
|
63
|
-
components: {
|
|
64
|
-
ConditionInput
|
|
65
|
-
},
|
|
66
|
-
props: {
|
|
67
|
-
condition: {
|
|
68
|
-
type: Object,
|
|
69
|
-
default: null
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
data () {
|
|
73
|
-
return {
|
|
74
|
-
selectData: {
|
|
75
|
-
field: {}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
computed: {
|
|
80
|
-
/**
|
|
81
|
-
* 字段相关
|
|
82
|
-
*/
|
|
83
|
-
// 字段的可选选项
|
|
84
|
-
fieldsOptions () {
|
|
85
|
-
this.getFieldsOption().forEach(e => {
|
|
86
|
-
this.selectData.field[e.field] = e
|
|
87
|
-
})
|
|
88
|
-
return this.getFieldsOption()
|
|
89
|
-
},
|
|
90
|
-
// 当前选择的字段
|
|
91
|
-
currentField () {
|
|
92
|
-
return this.fieldsOptions.find(item => item.field === this.condition.field) || null
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* 操作符相关
|
|
97
|
-
*/
|
|
98
|
-
// 当前字段对应的操作符可选选项
|
|
99
|
-
operatorOptions () {
|
|
100
|
-
if (!this.currentField) {
|
|
101
|
-
return []
|
|
102
|
-
}
|
|
103
|
-
return getOperatorOption(FieldTypeEnum[this.currentField.componentValueType])
|
|
104
|
-
},
|
|
105
|
-
// 当前选中的操作符选项
|
|
106
|
-
currentOperatorOption () {
|
|
107
|
-
return this.operatorOptions.find(item => item.value === this.condition.operator) || null
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* 值相关
|
|
112
|
-
*/
|
|
113
|
-
inputType () {
|
|
114
|
-
if (!this.currentField) {
|
|
115
|
-
return 'input'
|
|
116
|
-
}
|
|
117
|
-
return FieldTypeEnum[this.currentField.componentValueType]
|
|
118
|
-
},
|
|
119
|
-
// 如果值是枚举类型,是否要开启select的多选模式
|
|
120
|
-
multiSelect () {
|
|
121
|
-
const currentOperatorOption = this.operatorOptions.find(item => item.value === this.condition.operator)
|
|
122
|
-
return currentOperatorOption && currentOperatorOption.multi
|
|
123
|
-
},
|
|
124
|
-
range () {
|
|
125
|
-
const currentOperatorOption = this.operatorOptions.find(item => item.value === this.condition.operator)
|
|
126
|
-
return currentOperatorOption && currentOperatorOption.range
|
|
127
|
-
},
|
|
128
|
-
// 值输入控件是否关闭
|
|
129
|
-
inputDisabled () {
|
|
130
|
-
if (!this.condition.field) {
|
|
131
|
-
return true
|
|
132
|
-
}
|
|
133
|
-
const currentOperatorOption = this.operatorOptions.find(item => item.value === this.condition.operator)
|
|
134
|
-
if (!currentOperatorOption) {
|
|
135
|
-
return true
|
|
136
|
-
}
|
|
137
|
-
return currentOperatorOption.over
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
watch: {
|
|
141
|
-
// 当字段发生了变化,清空之前的字段的之后输入的内容,并将操作符切换到第一个
|
|
142
|
-
'condition.field' (newValue) {
|
|
143
|
-
this.condition.value = ''
|
|
144
|
-
this.$nextTick(() => {
|
|
145
|
-
this.condition.operator = this.operatorOptions[0].value
|
|
146
|
-
})
|
|
147
|
-
},
|
|
148
|
-
// 监听运算符选项的变化,清空输入框的值
|
|
149
|
-
'condition.operator' (newValue) {
|
|
150
|
-
this.condition.value = ''
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
created () {
|
|
154
|
-
/**
|
|
155
|
-
* 点击新增按钮添加的条件,需要进行初始化
|
|
156
|
-
*
|
|
157
|
-
*/
|
|
158
|
-
if (!this.condition.field) {
|
|
159
|
-
this.condition.field = this.fieldsOptions[0].field
|
|
160
|
-
this.condition.fieldType = this.fieldsOptions[0].componentType
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
inject: ['getFieldsOption'],
|
|
164
|
-
methods: {
|
|
165
|
-
removeCondition () {
|
|
166
|
-
this.$emit('remove')
|
|
167
|
-
},
|
|
168
|
-
// 绑定fieldType的值
|
|
169
|
-
handleFieldSelect (field) {
|
|
170
|
-
this.condition.fieldType = this.selectData.field[field].componentType
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
</script>
|
|
175
|
-
|
|
176
|
-
<style scoped lang='less'>
|
|
177
|
-
.condition-item {
|
|
178
|
-
margin:10px 0;
|
|
179
|
-
display:flex;
|
|
180
|
-
//左右括号
|
|
181
|
-
.bracket {
|
|
182
|
-
::v-deep .el-input__inner {
|
|
183
|
-
width:70px;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
//字段选择框
|
|
188
|
-
.condition-field {
|
|
189
|
-
::v-deep .el-input__inner {
|
|
190
|
-
width:140px;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
// 条件运算符,选择框
|
|
195
|
-
.condition-operator{
|
|
196
|
-
::v-deep .el-input__inner {
|
|
197
|
-
width:100px;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
//值输入框
|
|
202
|
-
|
|
203
|
-
// 条件直接的逻辑关系
|
|
204
|
-
.condition-relation {
|
|
205
|
-
::v-deep .el-input__inner {
|
|
206
|
-
width:76px;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.el-icon-remove {
|
|
211
|
-
color:gainsboro;
|
|
212
|
-
display:flex;
|
|
213
|
-
align-items: center;
|
|
214
|
-
justify-content: center;
|
|
215
|
-
font-size:15px;
|
|
216
|
-
margin-left:7px;
|
|
217
|
-
}
|
|
218
|
-
.icon:hover {
|
|
219
|
-
color:red !important;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="condition-item">
|
|
3
|
+
<!-- 左侧括号 -->
|
|
4
|
+
<el-select v-model="condition.leftBracket" :popper-append-to-body="false" size="mini" class="bracket" placeholder="">
|
|
5
|
+
<el-option lable="(" value="(" />
|
|
6
|
+
<el-option lable="((" value="((" />
|
|
7
|
+
<el-option lable="(((" value="(((" />
|
|
8
|
+
</el-select>
|
|
9
|
+
|
|
10
|
+
<!-- 字段名 -->
|
|
11
|
+
<el-select v-model="condition.field" :popper-append-to-body="false" size="mini" placeholder="" class="condition-field" @change="handleFieldSelect">
|
|
12
|
+
<el-option
|
|
13
|
+
v-for="option in fieldsOptions"
|
|
14
|
+
:key="option.field"
|
|
15
|
+
:label="option.title"
|
|
16
|
+
:value="option.field"
|
|
17
|
+
/>
|
|
18
|
+
</el-select>
|
|
19
|
+
|
|
20
|
+
<!-- 运算符 -->
|
|
21
|
+
<el-select v-model="condition.operator" :popper-append-to-body="false" size="mini" placeholder="" class="condition-operator">
|
|
22
|
+
<el-option
|
|
23
|
+
v-for="option in operatorOptions"
|
|
24
|
+
:key="option.value"
|
|
25
|
+
:label="option.label"
|
|
26
|
+
:value="option.value"
|
|
27
|
+
/>
|
|
28
|
+
</el-select>
|
|
29
|
+
|
|
30
|
+
<!-- 值 -->
|
|
31
|
+
<ConditionInput
|
|
32
|
+
v-model="condition.value"
|
|
33
|
+
:disabled="inputDisabled"
|
|
34
|
+
:type="inputType"
|
|
35
|
+
:field="condition.field"
|
|
36
|
+
:multi="multiSelect"
|
|
37
|
+
:range="range"
|
|
38
|
+
/>
|
|
39
|
+
|
|
40
|
+
<!-- 右侧括号 -->
|
|
41
|
+
<el-select v-model="condition.rightBracket" :popper-append-to-body="false" class="bracket" size="mini" placeholder="">
|
|
42
|
+
<el-option label=")" value=")" />
|
|
43
|
+
<el-option label="))" value="))" />
|
|
44
|
+
<el-option label=")))" value=")))" />
|
|
45
|
+
</el-select>
|
|
46
|
+
|
|
47
|
+
<!-- 条件之间的逻辑运算符 -->
|
|
48
|
+
<el-select v-model="condition.relation" :popper-append-to-body="false" size="mini" class="condition-relation" placeholder="">
|
|
49
|
+
<el-option value="AND" label="并且" />
|
|
50
|
+
<el-option value="OR" label="或者" />
|
|
51
|
+
</el-select>
|
|
52
|
+
|
|
53
|
+
<!-- 移除条件按钮 -->
|
|
54
|
+
<i class="el-icon-remove icon" @click="removeCondition" />
|
|
55
|
+
</div>
|
|
56
|
+
</template>
|
|
57
|
+
<script>
|
|
58
|
+
import getOperatorOption from '../js/operatorEnum.js'
|
|
59
|
+
import ConditionInput from '../condition-input'
|
|
60
|
+
import FieldTypeEnum from '../js/fieldTypeEnum.js'
|
|
61
|
+
export default {
|
|
62
|
+
name: 'ConditionItem',
|
|
63
|
+
components: {
|
|
64
|
+
ConditionInput
|
|
65
|
+
},
|
|
66
|
+
props: {
|
|
67
|
+
condition: {
|
|
68
|
+
type: Object,
|
|
69
|
+
default: null
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
data () {
|
|
73
|
+
return {
|
|
74
|
+
selectData: {
|
|
75
|
+
field: {}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
computed: {
|
|
80
|
+
/**
|
|
81
|
+
* 字段相关
|
|
82
|
+
*/
|
|
83
|
+
// 字段的可选选项
|
|
84
|
+
fieldsOptions () {
|
|
85
|
+
this.getFieldsOption().forEach(e => {
|
|
86
|
+
this.selectData.field[e.field] = e
|
|
87
|
+
})
|
|
88
|
+
return this.getFieldsOption()
|
|
89
|
+
},
|
|
90
|
+
// 当前选择的字段
|
|
91
|
+
currentField () {
|
|
92
|
+
return this.fieldsOptions.find(item => item.field === this.condition.field) || null
|
|
93
|
+
},
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* 操作符相关
|
|
97
|
+
*/
|
|
98
|
+
// 当前字段对应的操作符可选选项
|
|
99
|
+
operatorOptions () {
|
|
100
|
+
if (!this.currentField) {
|
|
101
|
+
return []
|
|
102
|
+
}
|
|
103
|
+
return getOperatorOption(FieldTypeEnum[this.currentField.componentValueType])
|
|
104
|
+
},
|
|
105
|
+
// 当前选中的操作符选项
|
|
106
|
+
currentOperatorOption () {
|
|
107
|
+
return this.operatorOptions.find(item => item.value === this.condition.operator) || null
|
|
108
|
+
},
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* 值相关
|
|
112
|
+
*/
|
|
113
|
+
inputType () {
|
|
114
|
+
if (!this.currentField) {
|
|
115
|
+
return 'input'
|
|
116
|
+
}
|
|
117
|
+
return FieldTypeEnum[this.currentField.componentValueType]
|
|
118
|
+
},
|
|
119
|
+
// 如果值是枚举类型,是否要开启select的多选模式
|
|
120
|
+
multiSelect () {
|
|
121
|
+
const currentOperatorOption = this.operatorOptions.find(item => item.value === this.condition.operator)
|
|
122
|
+
return currentOperatorOption && currentOperatorOption.multi
|
|
123
|
+
},
|
|
124
|
+
range () {
|
|
125
|
+
const currentOperatorOption = this.operatorOptions.find(item => item.value === this.condition.operator)
|
|
126
|
+
return currentOperatorOption && currentOperatorOption.range
|
|
127
|
+
},
|
|
128
|
+
// 值输入控件是否关闭
|
|
129
|
+
inputDisabled () {
|
|
130
|
+
if (!this.condition.field) {
|
|
131
|
+
return true
|
|
132
|
+
}
|
|
133
|
+
const currentOperatorOption = this.operatorOptions.find(item => item.value === this.condition.operator)
|
|
134
|
+
if (!currentOperatorOption) {
|
|
135
|
+
return true
|
|
136
|
+
}
|
|
137
|
+
return currentOperatorOption.over
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
watch: {
|
|
141
|
+
// 当字段发生了变化,清空之前的字段的之后输入的内容,并将操作符切换到第一个
|
|
142
|
+
'condition.field' (newValue) {
|
|
143
|
+
this.condition.value = ''
|
|
144
|
+
this.$nextTick(() => {
|
|
145
|
+
this.condition.operator = this.operatorOptions[0].value
|
|
146
|
+
})
|
|
147
|
+
},
|
|
148
|
+
// 监听运算符选项的变化,清空输入框的值
|
|
149
|
+
'condition.operator' (newValue) {
|
|
150
|
+
this.condition.value = ''
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
created () {
|
|
154
|
+
/**
|
|
155
|
+
* 点击新增按钮添加的条件,需要进行初始化
|
|
156
|
+
*
|
|
157
|
+
*/
|
|
158
|
+
if (!this.condition.field) {
|
|
159
|
+
this.condition.field = this.fieldsOptions[0].field
|
|
160
|
+
this.condition.fieldType = this.fieldsOptions[0].componentType
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
inject: ['getFieldsOption'],
|
|
164
|
+
methods: {
|
|
165
|
+
removeCondition () {
|
|
166
|
+
this.$emit('remove')
|
|
167
|
+
},
|
|
168
|
+
// 绑定fieldType的值
|
|
169
|
+
handleFieldSelect (field) {
|
|
170
|
+
this.condition.fieldType = this.selectData.field[field].componentType
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
</script>
|
|
175
|
+
|
|
176
|
+
<style scoped lang='less'>
|
|
177
|
+
.condition-item {
|
|
178
|
+
margin:10px 0;
|
|
179
|
+
display:flex;
|
|
180
|
+
//左右括号
|
|
181
|
+
.bracket {
|
|
182
|
+
::v-deep .el-input__inner {
|
|
183
|
+
width:70px;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
//字段选择框
|
|
188
|
+
.condition-field {
|
|
189
|
+
::v-deep .el-input__inner {
|
|
190
|
+
width:140px;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// 条件运算符,选择框
|
|
195
|
+
.condition-operator{
|
|
196
|
+
::v-deep .el-input__inner {
|
|
197
|
+
width:100px;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
//值输入框
|
|
202
|
+
|
|
203
|
+
// 条件直接的逻辑关系
|
|
204
|
+
.condition-relation {
|
|
205
|
+
::v-deep .el-input__inner {
|
|
206
|
+
width:76px;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.el-icon-remove {
|
|
211
|
+
color:gainsboro;
|
|
212
|
+
display:flex;
|
|
213
|
+
align-items: center;
|
|
214
|
+
justify-content: center;
|
|
215
|
+
font-size:15px;
|
|
216
|
+
margin-left:7px;
|
|
217
|
+
}
|
|
218
|
+
.icon:hover {
|
|
219
|
+
color:red !important;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
</style>
|