修改表单bug

This commit is contained in:
宋伟佳
2022-02-22 15:14:30 +08:00
parent a1b174662e
commit 37a3b237ed
5 changed files with 31 additions and 25 deletions
@@ -36,22 +36,22 @@
<div class="search-area">
<div class="left">
<el-form :modal="replaceLawsNumForm" :inline="true" class="label-input-form">
<el-form-item label="国内/海外" class="search-item">
<el-select
v-model="replaceLawsNumForm.standType"
placeholder="请选择"
>
<el-option v-if="enterpriseStandard" value="1" label="企标"></el-option>
<el-option value="INLAND" label="国内"></el-option>
<el-option value="FOREIGN" label="海外"></el-option>
</el-select>
</el-form-item>
<el-form-item label="标准编号" class="search-item">
<el-input v-model="replaceLawsNumForm.standNumber" placeholder="根据标准编号查找" clearable :maxlength="100"></el-input>
</el-form-item>
<el-form-item label="标准名称" class="search-item">
<el-input v-model="replaceLawsNumForm.standName" placeholder="根据标准名称查找" clearable :maxlength="100"></el-input>
</el-form-item>
<el-form-item label="国内/海外" class="search-item">
<el-select
v-model="replaceLawsNumForm.standType"
placeholder="请选择"
>
<el-option v-if="enterpriseStandard" value="1" label="企标"></el-option>
<el-option value="INLAND" label="国内"></el-option>
<el-option value="FOREIGN" label="海外"></el-option>
</el-select>
</el-form-item>
<el-form-item class="search-item btn-box">
<el-button
type="primary"
@@ -14,7 +14,7 @@
style="line-height: 30px; font-size: 13px;">{{ getPrcNameFilter(item) }}</span>
<el-tooltip class="item" effect="dark" :content="getPrcNameFilter(item)" placement="left" v-else>
<span @click="dealWith(item)"
style="line-height: 30px; font-size: 13px;">{{ getPrcNameFilter(item).substring(0, 24) + '...' }}</span>
style="line-height: 30px; font-size: 13px;">{{ getPrcNameFilter(item).substring(0, 32) + '...' }}</span>
</el-tooltip>
</div>
</li>
@@ -368,6 +368,7 @@ export default {
}, e => {
});
},
//预览
clickButtonToUpload2(file) {
const attId = file
this.$preview(attId)
@@ -559,9 +559,14 @@ export default {
}, res => {
this.cbcdOptions = res.data.DEGREESTANDARD //采标程度
this.BZList = res.data.ENERGYTYPES //适用车型
this.standSortOptions = res.data.BUSSSTANDCLASS // 标准类别
// this.standSortOptions = res.data.BUSSSTANDCLASS // 标准类别
this.standSystemOptions = res.data.TXLBBUSS // 体系结构
this.qcdwOptions = res.data.QCDW // 起草单位
res.data.BUSSSTANDCLASS.forEach(item => {
if(item.label){
this.standSortOptions.push(item) //企标类别
}
})
})
if(this.$route.query.bpnId === undefined && this.$route.query.taskIds === undefined){
this.$http.get('/lawss/activiti/saveEditFile', {
@@ -740,7 +740,7 @@ export default {
this.standInfoTableLoading = true
if(this.sarAccessEO.sortKey === '1'){
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
...this.standardFormList,
...this.sarAccessInfo,
...this.standardForm,
id: this.pageId,
types: '1',
@@ -762,13 +762,13 @@ export default {
item.zrbm = null
}
if (item.zccssrqgj === "undefined") {
item.zccssrqgj = '-'
item.zccssrqgj = ''
}
if (item.xcxssrqgj === "undefined") {
item.xcxssrqgj = '-'
item.xcxssrqgj = ''
}
if (item.ssrq === "undefined") {
item.ssrq = '-'
if (item.ssrq === "undefined" || item.ssrq === 'null' || item.ssrq) {
item.ssrq = ''
}
});
this.standinfoList = res.data.records;
@@ -791,7 +791,7 @@ export default {
});
}else{
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
...this.standardFormList,
...this.sarAccessInfo,
...this.standardForm,
id: this.pageId
}, {
@@ -833,7 +833,7 @@ export default {
},
selectInfoMore() {
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
...this.standardFormList,
...this.sarAccessInfo,
id: this.pageId
}, {
_this: this
@@ -1077,7 +1077,7 @@ export default {
this.showQueryMore = true;
this.page = 1;
this.standardForm.page = 1;
this.selectInfoMore();
// this.selectInfoMore();
},
queryInfo() {
this.page = 1;
@@ -1086,11 +1086,11 @@ export default {
this.isAdvancedSearch = false;
},
backInfo() {
this.standardFormList.standName = "";
this.standardFormList.typeApplicable = "";
this.standardFormList.nylx = "";
this.standardFormList.zrbm = "";
this.standardFormList.sycpx = "";
this.sarAccessInfo.standName = "";
this.sarAccessInfo.typeApplicable = "";
this.sarAccessInfo.nylx = "";
this.sarAccessInfo.zrbm = "";
this.sarAccessInfo.sycpx = "";
this.isAdvancedSearch = false;
},
// 获取工作组信息下拉框信息