[update] 绑定零部件

This commit is contained in:
lideqin
2024-04-19 15:28:41 +08:00
parent 41a8f9bd91
commit bc85636515
4 changed files with 17 additions and 13 deletions
@@ -15,13 +15,13 @@
<a-col :sm="8">
<a-form-item :label="$t('clauseSelect.clauseNumber')" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input :placeholder="$t('pleaseEnter')+$t('clauseSelect.clauseNumber')"
v-model="queryParam.clauseNumber"></a-input>
v-model="queryParam.item_num"></a-input>
</a-form-item>
</a-col>
<a-col :sm="8">
<a-form-item :label="$t('clauseSelect.clauseName')" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input :placeholder="$t('pleaseEnter')+$t('clauseSelect.clauseName')"
v-model="queryParam.clauseName"></a-input>
v-model="queryParam.item_title"></a-input>
</a-form-item>
</a-col>
<div style="float: right;overflow: hidden;margin-right: 41px;margin-bottom: 20px"
@@ -14,7 +14,7 @@
<a-row :gutter="24">
<a-col :sm="8">
<a-form-item :label="$t('standardSelect.source')" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-dict-select-tag style="width: 100%" v-model="queryParam.source"
<j-dict-select-tag style="width: 100%" v-model="queryParam.standardType"
:disabled="disabledSourceSearch"
:placeholder="$t('pleaseSelect')+$t('standardSelect.source')"
:triggerChange="false"
@@ -64,8 +64,8 @@
<!-- 标准状态 -->
<template slot="standardState" slot-scope="text, record">
<a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ record.source === '3' ? (record.esStandardState_dictText || global.emptyLine) : (record.standardState_dictText || global.emptyLine) }}</template>
<div class="table-text">{{ record.source === '3' ? (record.esStandardState_dictText || global.emptyLine) : (record.standardState_dictText || global.emptyLine) }}</div>
<template slot="title">{{ record.standardType === '3' ? (record.esStandardState_dictText || global.emptyLine) : (record.standardState_dictText || global.emptyLine) }}</template>
<div class="table-text">{{ record.standardType === '3' ? (record.esStandardState_dictText || global.emptyLine) : (record.standardState_dictText || global.emptyLine) }}</div>
</a-tooltip>
</template>
@@ -198,7 +198,7 @@ export default {
this.queryParam = {}
this.initDict()
this.$nextTick(() => {
this.source ? this.queryParam.source = this.source : this.queryParam = {}
this.source ? this.queryParam.standardType = this.source : this.queryParam = {}
this.replacePage()
})
},
@@ -222,8 +222,8 @@ export default {
pageSize: this.ipagination.pageSize
}
// 清空在可选范围内进行查询
if (!query.source && this.canSelectedSource.length < 3) {
query.source = this.canSelectedSource.join(',')
if (!query.standardType && this.canSelectedSource.length < 3) {
query.standardType = this.canSelectedSource.join(',')
}
// this.selectedRowKeys = []
this.loading = true
@@ -245,7 +245,7 @@ export default {
searchReset () {
// 如果禁用来源,就不重置来源
if (this.disabledSourceSearch) {
this.queryParam = { source: this.source }
this.queryParam = { standardType: this.source }
} else {
this.queryParam = {}
}
@@ -330,11 +330,11 @@ export default {
handleGoDetail (record) {
let path = ''
// 需要先判断是哪种标准
if (record.source === '1') {
if (record.standardType === '1') {
path = '/standardRegulationLibrary/DomesticStandardDetail'
} else if (record.source === '2') {
} else if (record.standardType === '2') {
path = '/standardRegulationLibrary/OverseasStandardDetail'
} else if (record.source === '3') {
} else if (record.standardType === '3') {
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
}
this.$openPageNewSheet({