|
@@ -7,7 +7,6 @@
|
|
<el-form-item label="" v-for="(item, index) of form.field" :key="index">
|
|
<el-form-item label="" v-for="(item, index) of form.field" :key="index">
|
|
<!-- 关系 -->
|
|
<!-- 关系 -->
|
|
<el-select
|
|
<el-select
|
|
- v-if="index != 0"
|
|
|
|
v-model="item.select_type"
|
|
v-model="item.select_type"
|
|
filterable
|
|
filterable
|
|
placeholder=""
|
|
placeholder=""
|
|
@@ -41,14 +40,12 @@
|
|
<el-input v-else v-model="item.value" :disabled="item.lock" placeholder="请输入" style="width: 237px;" />
|
|
<el-input v-else v-model="item.value" :disabled="item.lock" placeholder="请输入" style="width: 237px;" />
|
|
<span class="btn-group" :class="{'btn-group1': form.field.length !== 1 && index == form.field.length - 1, 'btn-group2': index != form.field.length - 1 && searchNum, 'btn-group3': index == form.field.length - 1 && searchNum }">
|
|
<span class="btn-group" :class="{'btn-group1': form.field.length !== 1 && index == form.field.length - 1, 'btn-group2': index != form.field.length - 1 && searchNum, 'btn-group3': index == form.field.length - 1 && searchNum }">
|
|
<el-button
|
|
<el-button
|
|
- v-if="index != 0 && !item.lock"
|
|
|
|
- :disabled="form.field.length == 1"
|
|
|
|
|
|
+ :disabled="form.field.length == 1 || item.lock"
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-minus"
|
|
icon="el-icon-minus"
|
|
@click="funDel(index)"
|
|
@click="funDel(index)"
|
|
/>
|
|
/>
|
|
<el-button
|
|
<el-button
|
|
- v-if="index == form.field.length - 1"
|
|
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
@click="funAdd"
|
|
@click="funAdd"
|
|
@@ -95,12 +92,11 @@
|
|
placeholder="结束日期"
|
|
placeholder="结束日期"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
-
|
|
|
|
- <el-form-item label="" style="text-align: center;">
|
|
|
|
- <el-button type="primary" style="width: 360px;" @click="onSearch(0)">检索</el-button>
|
|
|
|
- <el-button @click="onReset" style="position: absolute; right: -90px;">重置</el-button>
|
|
|
|
- </el-form-item>
|
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
+ <div style="text-align: center; position: relative; margin-bottom: 30px;">
|
|
|
|
+ <el-button type="primary" class="long-btn" @click="onSearch(0)">检索</el-button>
|
|
|
|
+ <el-button @click="onReset" style="position: absolute; right: 0px;">重置</el-button>
|
|
|
|
+ </div>
|
|
<!-- 列表部分 -->
|
|
<!-- 列表部分 -->
|
|
<div class="table_wrapper">
|
|
<div class="table_wrapper">
|
|
<div class="table_header">
|
|
<div class="table_header">
|
|
@@ -216,7 +212,7 @@ import { dateFormat } from '@/utils/index'
|
|
end_time: '',
|
|
end_time: '',
|
|
field: [
|
|
field: [
|
|
{
|
|
{
|
|
- select_type: '',
|
|
|
|
|
|
+ select_type: 0,
|
|
key: 'BLNR_TXT',
|
|
key: 'BLNR_TXT',
|
|
value: '',
|
|
value: '',
|
|
lock: false
|
|
lock: false
|
|
@@ -304,7 +300,7 @@ import { dateFormat } from '@/utils/index'
|
|
end_time: '',
|
|
end_time: '',
|
|
field: [
|
|
field: [
|
|
{
|
|
{
|
|
- select_type: '',
|
|
|
|
|
|
+ select_type: 0,
|
|
key: 'BLNR_TXT',
|
|
key: 'BLNR_TXT',
|
|
value: '',
|
|
value: '',
|
|
lock: false
|
|
lock: false
|
|
@@ -318,9 +314,6 @@ import { dateFormat } from '@/utils/index'
|
|
},
|
|
},
|
|
funDel(i) {
|
|
funDel(i) {
|
|
const index = i;
|
|
const index = i;
|
|
- if (index == 0) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
const list = this.form.field;
|
|
const list = this.form.field;
|
|
list.splice(index, 1);
|
|
list.splice(index, 1);
|
|
this.form.field = list;
|
|
this.form.field = list;
|
|
@@ -358,7 +351,7 @@ import { dateFormat } from '@/utils/index'
|
|
}
|
|
}
|
|
.btn-group {
|
|
.btn-group {
|
|
position: absolute;
|
|
position: absolute;
|
|
- right: -78px;
|
|
|
|
|
|
+ right: -144px;
|
|
&.btn-group1 {
|
|
&.btn-group1 {
|
|
right: -144px;
|
|
right: -144px;
|
|
}
|
|
}
|
|
@@ -382,6 +375,7 @@ import { dateFormat } from '@/utils/index'
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
padding-top: 20px;
|
|
padding-top: 20px;
|
|
padding-bottom: 20px;
|
|
padding-bottom: 20px;
|
|
|
|
+ margin-bottom: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.search_wrapper {
|
|
.search_wrapper {
|