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

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() this.getHeader()
eventBUs.$on('getTableList', search => { eventBUs.$on('getTableList', search => {
this.queryParamQuery = search this.queryParamQuery = search
console.log(this.queryParamQuery)
this.getTableList() this.getTableList()
}) })
}, },
@@ -62,7 +62,7 @@
<span>{{$t('sdt')}}</span> <span>{{$t('sdt')}}</span>
</div> </div>
<PersonnelSelection <PersonnelSelection
:query="{db_field_name:'engineeringInterfacePerson',db_field_txt:$t('sdt')}" :query="{db_field_name:'sdt',db_field_txt:$t('sdt')}"
:isInput="true" :isInput="true"
class="box-input" class="box-input"
:personneQuery="formInline" :personneQuery="formInline"
@@ -64,6 +64,15 @@
v-model="formInline.dre"></j-input> v-model="formInline.dre"></j-input>
</div> </div>
</a-col> </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">--> <!-- <a-col :md="6" :sm="8">-->
<!-- <div class="box-title-text">--> <!-- <div class="box-title-text">-->
<!-- <div class="title-text" :title="$t('status')">--> <!-- <div class="title-text" :title="$t('status')">-->
@@ -1555,40 +1564,21 @@
if (this.selectedRowKeys.length > 0) { if (this.selectedRowKeys.length > 0) {
let _this = this let _this = this
this.$confirm({ this.$confirm({
content: _this.$t('ConfirmBatchDeletion'), content: this.$t('ConfirmBatchDeletion'),
onOk() { onOk() {
_this.textLoading = true _this.textLoading = true
axios({ postAction('/params/collectManifest/deleteBatch', param).then((res) => {
url: '/jero-boot/params/collectManifest/deleteBatch', if (res.success) {
method: 'post', _this.$message.success(_this.$t('OperationSuccessful'))
data: param, _this.selectedRowKeys = []
transformRequest: [function(data) { console.log(111)
let ret = '' _this.$refs.CollectionTabel.getTableList(_this.queryParamQuery)
for (let it in data) { _this.textLoading = false
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&' } else {
} _this.textLoading = false
return ret _this.$message.warning(this.$t('operationFailed'))
}],
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'X-Access-Token': _this.token
} }
}) })
.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 { } else {