feat: There is no way the, bug #52612
This commit is contained in:
@@ -83,18 +83,16 @@
|
|||||||
<!-- </el-select>-->
|
<!-- </el-select>-->
|
||||||
<!-- </el-form-item>-->
|
<!-- </el-form-item>-->
|
||||||
<el-form-item label="标准号" class="search-item search-item-last">
|
<el-form-item label="标准号" class="search-item search-item-last">
|
||||||
<el-input v-model="standCommonlySearch.standNumber"
|
<el-input v-model="sarStandardsSearch.standNumber"
|
||||||
placeholder="请输入标准号"
|
placeholder="请输入标准号"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter="searchBtnClick(standCommonlySearch)"
|
|
||||||
:maxlength="100"
|
:maxlength="100"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="标准名称" class="search-item search-item-last">
|
<el-form-item label="标准名称" class="search-item search-item-last">
|
||||||
<el-input v-model="standCommonlySearch.standName"
|
<el-input v-model="sarStandardsSearch.standName"
|
||||||
placeholder="请输入标准名称"
|
placeholder="请输入标准名称"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter="searchBtnClick(standCommonlySearch)"
|
|
||||||
:maxlength="100"
|
:maxlength="100"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -105,7 +103,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
v-btn-permission="'967c8b1402459951b5f75fcd1c548665'"
|
v-btn-permission="'967c8b1402459951b5f75fcd1c548665'"
|
||||||
@click="searchBtnClick(standCommonlySearch, 1)">
|
@click="searchBtnClick(sarStandardsSearch, 1)">
|
||||||
查询
|
查询
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
@@ -1615,17 +1613,25 @@
|
|||||||
<div class="prc-content-border">
|
<div class="prc-content-border">
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<!-- 标准号-->
|
<!-- <!– 标准号–>-->
|
||||||
<el-form-item :label="$t('m.standardNo')" class="add-form-item form-item-disabled">
|
<!-- <el-form-item :label="$t('m.standardNo')" class="add-form-item form-item-disabled">-->
|
||||||
<el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')"
|
<!-- <el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')"-->
|
||||||
clearable
|
<!-- clearable-->
|
||||||
:maxlength="100"></el-input>
|
<!-- :maxlength="100"></el-input>-->
|
||||||
</el-form-item>
|
<!-- </el-form-item>-->
|
||||||
<!-- 标准名称-->
|
<!-- <!– 标准名称–>-->
|
||||||
<el-form-item :label="$t('m.standName')" class="add-form-item form-item-disabled">
|
<!-- <el-form-item :label="$t('m.standName')" class="add-form-item form-item-disabled">-->
|
||||||
<el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')"
|
<!-- <el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')"-->
|
||||||
clearable
|
<!-- clearable-->
|
||||||
:maxlength="500"></el-input>
|
<!-- :maxlength="500"></el-input>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- 标准类别-->
|
||||||
|
<el-form-item :label="$t('m.standardCategory')" class="add-form-item form-item-disabled">
|
||||||
|
<search-select
|
||||||
|
v-model="sarStandardsSearch.standSort"
|
||||||
|
:placeholder="$t('m.standardCategoryTips')"
|
||||||
|
:options="standSortOptions"
|
||||||
|
clearable/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 标准年份-->
|
<!-- 标准年份-->
|
||||||
<el-form-item :label="$t('m.standardYear')" class="add-form-item form-item-disabled">
|
<el-form-item :label="$t('m.standardYear')" class="add-form-item form-item-disabled">
|
||||||
@@ -1634,6 +1640,14 @@
|
|||||||
placeholder="根据标准年份查找">
|
placeholder="根据标准年份查找">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!-- 标准性质-->
|
||||||
|
<el-form-item :label="$t('m.standNatureShow')" class="add-form-item form-item-disabled">
|
||||||
|
<el-select v-model="sarStandardsSearch.standNature" placeholder="请选择标准性质" clearable>
|
||||||
|
<el-option v-for="(opt, index) in standNatureOptions" :value="opt.value === undefined ? '' :opt.value"
|
||||||
|
:key="index" :label="opt.label">{{ opt.label }}
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<!-- 文本状态-->
|
<!-- 文本状态-->
|
||||||
<el-form-item :label="$t('m.standStateShow')" class="add-form-item form-item-disabled">
|
<el-form-item :label="$t('m.standStateShow')" class="add-form-item form-item-disabled">
|
||||||
<el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatusText')"
|
<el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatusText')"
|
||||||
@@ -1643,22 +1657,6 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 体系类别-->
|
|
||||||
<el-form-item label="标准体系" class="add-form-item form-item-disabled">
|
|
||||||
<el-input v-model="advanceSearchMapping.TXLB" style="display: none;"></el-input>
|
|
||||||
<el-input v-model="advanceSearchMapping.TXLBName" placeholder="根据标准体系查找"
|
|
||||||
clearable
|
|
||||||
:maxlength="500"
|
|
||||||
@click.native="BZTXhandle"></el-input>
|
|
||||||
|
|
||||||
<!-- <el-select v-model="advanceSearchMapping.TXLB" placeholder="根据标准体系查找" clearable-->
|
|
||||||
<!-- >-->
|
|
||||||
<!-- <el-option v-for="(opt, index) in txlbOptions" :value="opt.value === undefined ? '' :opt.value"-->
|
|
||||||
<!-- :key="index"-->
|
|
||||||
<!-- :label="opt.label">{{ opt.label }}-->
|
|
||||||
<!-- </el-option>-->
|
|
||||||
<!-- </el-select>-->
|
|
||||||
</el-form-item>
|
|
||||||
<!-- 备案日期 -->
|
<!-- 备案日期 -->
|
||||||
<el-form-item label="备案日期" class="add-form-item form-item-disabled">
|
<el-form-item label="备案日期" class="add-form-item form-item-disabled">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
@@ -1670,14 +1668,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<!-- 标准类别-->
|
|
||||||
<el-form-item :label="$t('m.standardCategory')" class="add-form-item form-item-disabled">
|
|
||||||
<search-select
|
|
||||||
v-model="sarStandardsSearch.standSort"
|
|
||||||
:placeholder="$t('m.standardCategoryTips')"
|
|
||||||
:options="standSortOptions"
|
|
||||||
clearable/>
|
|
||||||
</el-form-item>
|
|
||||||
<!-- 标准英文名称-->
|
<!-- 标准英文名称-->
|
||||||
<el-form-item :label="$t('m.standardEnglishName')" :title="$t('m.standardEnglishName')"
|
<el-form-item :label="$t('m.standardEnglishName')" :title="$t('m.standardEnglishName')"
|
||||||
class="add-form-item form-item-disabled">
|
class="add-form-item form-item-disabled">
|
||||||
@@ -1696,13 +1686,21 @@
|
|||||||
placeholder="根据标准发布日期查找">
|
placeholder="根据标准发布日期查找">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 标准性质-->
|
<!-- 体系类别-->
|
||||||
<el-form-item :label="$t('m.standNatureShow')" class="add-form-item form-item-disabled">
|
<el-form-item label="标准体系" class="add-form-item form-item-disabled">
|
||||||
<el-select v-model="sarStandardsSearch.standNature" placeholder="请选择标准性质" clearable>
|
<el-input v-model="advanceSearchMapping.TXLB" style="display: none;"></el-input>
|
||||||
<el-option v-for="(opt, index) in standNatureOptions" :value="opt.value === undefined ? '' :opt.value"
|
<el-input v-model="advanceSearchMapping.TXLBName" placeholder="根据标准体系查找"
|
||||||
:key="index" :label="opt.label">{{ opt.label }}
|
clearable
|
||||||
</el-option>
|
:maxlength="500"
|
||||||
</el-select>
|
@click.native="BZTXhandle"></el-input>
|
||||||
|
|
||||||
|
<!-- <el-select v-model="advanceSearchMapping.TXLB" placeholder="根据标准体系查找" clearable-->
|
||||||
|
<!-- >-->
|
||||||
|
<!-- <el-option v-for="(opt, index) in txlbOptions" :value="opt.value === undefined ? '' :opt.value"-->
|
||||||
|
<!-- :key="index"-->
|
||||||
|
<!-- :label="opt.label">{{ opt.label }}-->
|
||||||
|
<!-- </el-option>-->
|
||||||
|
<!-- </el-select>-->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 是否纳入标准清单-->
|
<!-- 是否纳入标准清单-->
|
||||||
<el-form-item label="是否纳入标准清单" class="add-form-item form-item-disabled">
|
<el-form-item label="是否纳入标准清单" class="add-form-item form-item-disabled">
|
||||||
@@ -3720,11 +3718,11 @@ export default {
|
|||||||
this.sarStandardsSearch.page = 1
|
this.sarStandardsSearch.page = 1
|
||||||
this.standCommonlySearch.page = 1
|
this.standCommonlySearch.page = 1
|
||||||
//搜索后点击属性菜单依然显示搜索条件的数据
|
//搜索后点击属性菜单依然显示搜索条件的数据
|
||||||
this.getDomesticStandardTable(this.standCommonlySearch)
|
this.getDomesticStandardTable(this.sarStandardsSearch)
|
||||||
},
|
},
|
||||||
// 点击搜索按钮
|
// 点击搜索按钮
|
||||||
searchBtnClick(standCommonlySearch, type) {
|
searchBtnClick(sarStandardsSearch, type) {
|
||||||
let item = this.standCommonlySearch
|
let item = this.sarStandardsSearch
|
||||||
this.getDomesticStandardTable(item, type)
|
this.getDomesticStandardTable(item, type)
|
||||||
},
|
},
|
||||||
// 搜索
|
// 搜索
|
||||||
@@ -3798,10 +3796,10 @@ export default {
|
|||||||
this.sarStandardsSearch.category = ''
|
this.sarStandardsSearch.category = ''
|
||||||
this.isAdvancedSearch = false
|
this.isAdvancedSearch = false
|
||||||
// } else if (flag === 'standCommonlySearch') {
|
// } else if (flag === 'standCommonlySearch') {
|
||||||
this.standCommonlySearch.standName = ''
|
this.sarStandardsSearch.standName = ''
|
||||||
this.standCommonlySearch.standNumber = ''
|
this.sarStandardsSearch.standNumber = ''
|
||||||
this.pageChange(1)
|
this.pageChange(1)
|
||||||
this.getDomesticStandardTable(this.standCommonlySearch)
|
this.getDomesticStandardTable(this.sarStandardsSearch)
|
||||||
} else if (flag === 2) {
|
} else if (flag === 2) {
|
||||||
// 标准条目搜索
|
// 标准条目搜索
|
||||||
this.standItemSearch.responsibleUnit = ''
|
this.standItemSearch.responsibleUnit = ''
|
||||||
@@ -4524,35 +4522,35 @@ export default {
|
|||||||
},
|
},
|
||||||
// 分页点击后方法
|
// 分页点击后方法
|
||||||
pageChange(page) {
|
pageChange(page) {
|
||||||
|
debugger
|
||||||
if (this.tableFlag !== '') {
|
if (this.tableFlag !== '') {
|
||||||
this.tableFlag.page = page
|
this.tableFlag.page = page
|
||||||
} else {
|
} else {
|
||||||
this.sarStandardsSearch.page = page
|
this.sarStandardsSearch.page = page
|
||||||
}
|
}
|
||||||
this.standCommonlySearch.page = page
|
this.sarStandardsSearch.page = page
|
||||||
this.standCommonlySearch.pageNo = 1
|
|
||||||
if (this.sarStandardsSearch.standNumber !== '' || this.sarStandardsSearch.standName !== '') {
|
|
||||||
this.getDomesticStandardTable(this.sarStandardsSearch)
|
this.getDomesticStandardTable(this.sarStandardsSearch)
|
||||||
} else {
|
|
||||||
this.getDomesticStandardTable(this.standCommonlySearch)
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
// 分页每页显示数改变后方法
|
// 分页每页显示数改变后方法
|
||||||
pageSizeChange(pageSize) {
|
pageSizeChange(pageSize) {
|
||||||
|
debugger
|
||||||
this.sarStandardsSearch.pageSize = this.$store.getters.userInfo.configContent
|
this.sarStandardsSearch.pageSize = this.$store.getters.userInfo.configContent
|
||||||
let tabFlag = JSON.parse(sessionStorage.getItem('tableFlag'))
|
let tabFlag = JSON.parse(sessionStorage.getItem('tableFlag'))
|
||||||
this.getDomesticStandardTable(tabFlag)
|
if (tabFlag !== '') {
|
||||||
|
this.sarStandardsSearch.page = tabFlag.page
|
||||||
|
}
|
||||||
|
this.getDomesticStandardTable(this.sarStandardsSearch)
|
||||||
this.selectConfiguraStand()
|
this.selectConfiguraStand()
|
||||||
// 此处需要调用接口,修改个人配置
|
// 此处需要调用接口,修改个人配置
|
||||||
},
|
},
|
||||||
// 分页查询国内标准
|
// 分页查询国内标准
|
||||||
getDomesticStandardTable(item, type) {
|
getDomesticStandardTable(item, type) {
|
||||||
|
debugger
|
||||||
if (item !== '' && item !== null && item !== undefined) {
|
if (item !== '' && item !== null && item !== undefined) {
|
||||||
item.pageSize = this.$store.getters.userInfo.configContent
|
item.pageSize = this.$store.getters.userInfo.configContent
|
||||||
}
|
}
|
||||||
this.sarStandardsSearch.pageSize = this.$store.getters.userInfo.configContent
|
this.sarStandardsSearch.pageSize = this.$store.getters.userInfo.configContent
|
||||||
const data = item || this.sarStandardsSearch || this.advanceSearchMapping
|
const data = item || this.sarStandardsSearch || this.advanceSearchMapping || this.standCommonlySearch
|
||||||
if (item) {
|
if (item) {
|
||||||
this.sarStandardsSearch.advanceSearchStr = item.advanceSearchStr
|
this.sarStandardsSearch.advanceSearchStr = item.advanceSearchStr
|
||||||
}
|
}
|
||||||
@@ -4670,9 +4668,6 @@ export default {
|
|||||||
if ((this.stahndinfoList.length === 0 || this.stahndinfoList === []) && this.sarStandardsSearch.page !== 1) {
|
if ((this.stahndinfoList.length === 0 || this.stahndinfoList === []) && this.sarStandardsSearch.page !== 1) {
|
||||||
this.pageChange(1)
|
this.pageChange(1)
|
||||||
}
|
}
|
||||||
if (type === 1) {
|
|
||||||
this.sarStandardsSearch = {}
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.message)
|
this.$message.error(res.message)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user