参数项收集清单增加工程接口人搜索条件

This commit is contained in:
zyx.net
2022-08-04 15:27:48 +08:00
parent ffb31b7e4f
commit 94a0cf619b
3 changed files with 21 additions and 32 deletions
@@ -335,7 +335,6 @@
this.getHeader()
eventBUs.$on('getTableList', search => {
this.queryParamQuery = search
console.log(this.queryParamQuery)
this.getTableList()
})
},
@@ -62,7 +62,7 @@
<span>{{$t('sdt')}}</span>
</div>
<PersonnelSelection
:query="{db_field_name:'engineeringInterfacePerson',db_field_txt:$t('sdt')}"
:query="{db_field_name:'sdt',db_field_txt:$t('sdt')}"
:isInput="true"
class="box-input"
:personneQuery="formInline"
@@ -64,6 +64,15 @@
v-model="formInline.dre"></j-input>
</div>
</a-col>
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('sdt')">
<span>{{$t('sdt')}}</span>
</div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('sdt')"
v-model="formInline.sdt"></j-input>
</div>
</a-col>
<!-- <a-col :md="6" :sm="8">-->
<!-- <div class="box-title-text">-->
<!-- <div class="title-text" :title="$t('status')">-->
@@ -1555,40 +1564,21 @@
if (this.selectedRowKeys.length > 0) {
let _this = this
this.$confirm({
content: _this.$t('ConfirmBatchDeletion'),
content: this.$t('ConfirmBatchDeletion'),
onOk() {
_this.textLoading = true
axios({
url: '/jero-boot/params/collectManifest/deleteBatch',
method: 'post',
data: param,
transformRequest: [function(data) {
let ret = ''
for (let it in data) {
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
}
return ret
}],
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'X-Access-Token': _this.token
postAction('/params/collectManifest/deleteBatch', param).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.selectedRowKeys = []
console.log(111)
_this.$refs.CollectionTabel.getTableList(_this.queryParamQuery)
_this.textLoading = false
} else {
_this.textLoading = false
_this.$message.warning(this.$t('operationFailed'))
}
})
.then((res) => {
if (res.data.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.selectedRowKeys = []
// _this.$refs.CollectionTabel.getData()
_this.$refs.CollectionTabel.getTableList(this.queryParamQuery)
_this.textLoading = false
} else {
_this.textLoading = false
_this.$message.warning(_this.$t('operationFailed'))
}
})
.catch((error) => {
_this.textLoading = false
})
}
})
} else {