Browse Source

【nev-pc】盘点相关更改

ag_report_nev
安虹睿 11 months ago
parent
commit
2faed2463d
  1. 41
      fe/PC/src/components/StepsCountPlanForm/index.vue
  2. 9
      fe/PC/src/components/conditionFilters/index.vue
  3. 5
      fe/PC/src/components/searchPage/index.vue

41
fe/PC/src/components/StepsCountPlanForm/index.vue

@ -81,6 +81,7 @@
oldSkipCountLocation oldSkipCountLocation
)" )"
@tableButtonClick="addFormData(arguments)" @tableButtonClick="addFormData(arguments)"
@filterColumnChange="filterColumnChange"
></searchPage> ></searchPage>
<!-- @filterBtnClickHandle="filterBtnClickHandle" --> <!-- @filterBtnClickHandle="filterBtnClickHandle" -->
<!-- 其他参数 --> <!-- 其他参数 -->
@ -391,7 +392,7 @@ export default {
label: '不等于' label: '不等于'
}, { }, {
value: 'In', value: 'In',
label: '包含', label: '存在',
notShow:true notShow:true
}], }],
// (codevalue) // (codevalue)
@ -404,6 +405,44 @@ export default {
this.session = JSON.parse(JSON.stringify(this.CreateFormData)); this.session = JSON.parse(JSON.stringify(this.CreateFormData));
}, },
methods: { methods: {
filterColumnChange(item){
if(item.column == "code"){
this.filterActionOptions=[{
value: '==',
label: '等于'
}, {
value: '!=',
label: '不等于'
}, {
value: 'In',
label: '含有',
notShow:true
},{
value: 'Like',
label: '包含'
}]
this.$nextTick(()=>{
this.$forceUpdate()
})
}
else if(item.column == "type"){
this.filterActionOptions=[{
value: '==',
label: '等于'
}, {
value: '!=',
label: '不等于'
},{
value: 'In',
label: '含有',
notShow:true
}]
this.$nextTick(()=>{
this.$forceUpdate()
})
}
if(item.action == "Like"){item.action = '=='}
},
// pda线 // pda线
initSearchPageTableColums(){ initSearchPageTableColums(){
// let _list = JSON.parse(JSON.stringify(this.$isTableColumns.Location)); // let _list = JSON.parse(JSON.stringify(this.$isTableColumns.Location));

9
fe/PC/src/components/conditionFilters/index.vue

@ -216,11 +216,9 @@ export default {
// } // }
}, },
watch: { watch: {
// InputOrSelect (val) { filterActionOptions(data) {
// if (val) { this.options.action = data
// this.InputOrSelectHide = val }
// }
// }
}, },
computed: { computed: {
}, },
@ -305,6 +303,7 @@ methods: {
filterColumnChange(item){ filterColumnChange(item){
// value // value
item.value = "" item.value = ""
this.$emit("filterColumnChange", item)
}, },
tableColumnsOptions(val) { tableColumnsOptions(val) {
const data = JSON.parse(JSON.stringify(val)); const data = JSON.parse(JSON.stringify(val));

5
fe/PC/src/components/searchPage/index.vue

@ -52,6 +52,7 @@
:tableColumns="searchTableColumns" :tableColumns="searchTableColumns"
@screenFormClick="screenFormClick" @screenFormClick="screenFormClick"
@screenDelete="screenDelete" @screenDelete="screenDelete"
@filterColumnChange="filterColumnChange"
@screenPush="screenPush" @screenPush="screenPush"
:filterActionOptions="filterActionOptions" :filterActionOptions="filterActionOptions"
></conditionFilters> ></conditionFilters>
@ -189,6 +190,10 @@ export default {
} }
}, },
methods: { methods: {
// -
filterColumnChange(item){
this.$emit("filterColumnChange", item)
},
//table //table
prepareFormData (val) { prepareFormData (val) {
this.$parent.isMoreSelectTable = this.isMoreSelectTable this.$parent.isMoreSelectTable = this.isMoreSelectTable

Loading…
Cancel
Save