修改国家标准以及公共组件的文本状态改为标准状态

This commit is contained in:
zhoulingpo
2023-12-05 17:14:49 +08:00
parent c44d167c38
commit 1f3593569f
7 changed files with 30 additions and 30 deletions
@@ -130,7 +130,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="文本状态" label="标准状态"
show-overflow-tooltip show-overflow-tooltip
width="130"> width="130">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -120,7 +120,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="stateName" prop="stateName"
label="文本状态"> label="标准状态">
</el-table-column> </el-table-column>
</el-table> </el-table>
<loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading> <loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading>
@@ -125,7 +125,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="textStatus" prop="textStatus"
label="文本状态" label="标准状态"
width="130"> width="130">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ textStatusMap[scope.row.textStatus] }}</span> <span>{{ textStatusMap[scope.row.textStatus] }}</span>
@@ -191,8 +191,8 @@ export default {
}, },
data () { data () {
return { return {
textStatus:'',//文本状态 textStatus:'',//标准状态
textStatusMap: {}, // 文本状态id与name对应 textStatusMap: {}, // 标准状态id与name对应
replaceLawsNumModel: false, replaceLawsNumModel: false,
sarBussionessLawsEO: { sarBussionessLawsEO: {
replaceLawsNum: '' replaceLawsNum: ''
@@ -234,12 +234,12 @@ export default {
this.$http.get("sys/dictype/getDicTypeListCode", {}, { this.$http.get("sys/dictype/getDicTypeListCode", {}, {
_this: this _this: this
}, res => { }, res => {
this.standStateOptions = res.data.WBZTCLASS; // 文本状态 this.standStateOptions = res.data.WBZTCLASS; // 标准状态
this.setMap(this.standStateOptions); this.setMap(this.standStateOptions);
}); });
}, },
methods: { methods: {
// 将文本状态的id与name对应 // 将标准状态的id与name对应
setMap(data) { setMap(data) {
data.forEach(item => { data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label) this.$set(this.textStatusMap, item.value, item.label)
@@ -147,7 +147,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standStatusShow" prop="standStatusShow"
label="文本状态" label="标准状态"
width="130"> width="130">
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -126,7 +126,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="textStatus" prop="textStatus"
label="文本状态" label="标准状态"
width="130"> width="130">
<template slot-scope="scope"> <template slot-scope="scope">
<span> <span>
@@ -198,8 +198,8 @@ export default {
}, },
data() { data() {
return { return {
textStatus:'',//文本状态 textStatus:'',//标准状态
textStatusMap: {}, // 文本状态id与name对应 textStatusMap: {}, // 标准状态id与name对应
replaceLawsNumModel: false, replaceLawsNumModel: false,
sarBussionessLawsEO: { sarBussionessLawsEO: {
replaceLawsNum: '' replaceLawsNum: ''
@@ -235,7 +235,7 @@ export default {
} }
}, },
methods: { methods: {
// 将文本状态的id与name对应 // 将标准状态的id与name对应
setMap(data) { setMap(data) {
data.forEach(item => { data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label) this.$set(this.textStatusMap, item.value, item.label)
@@ -387,7 +387,7 @@ export default {
this.$http.get('sys/dictype/getDicTypeListCode', '', { this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this _this: this
}, res => { }, res => {
this.standStateOptions = res.data.WBZTCLASS // 文本状态 this.standStateOptions = res.data.WBZTCLASS // 标准状态
this.setMap(this.standStateOptions) this.setMap(this.standStateOptions)
}, e => { }, e => {
console.log("error"); console.log("error");
@@ -136,7 +136,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standStatusShow" prop="standStatusShow"
label="文本状态" label="标准状态"
width="130"> width="130">
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -269,10 +269,10 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="textStatus" prop="textStatus"
label="文本状态"> label="标准状态">
<!-- <template slot="header" slot-scope="scope">--> <!-- <template slot="header" slot-scope="scope">-->
<!-- <el-tooltip class="item" effect="dark" content="计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。" placement="bottom">--> <!-- <el-tooltip class="item" effect="dark" content="计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。" placement="bottom">-->
<!-- <span>文本状态<i class="el-icon-warning-outline"></i></span>--> <!-- <span>标准状态<i class="el-icon-warning-outline"></i></span>-->
<!-- </el-tooltip>--> <!-- </el-tooltip>-->
<!-- </template>--> <!-- </template>-->
<template slot-scope="scope"> <template slot-scope="scope">
@@ -527,9 +527,9 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="textStatus" label-width="150px" class="add-form-item"> <el-form-item prop="textStatus" label-width="150px" class="add-form-item">
<template slot="label">文本状态</template> <template slot="label">标准状态</template>
<el-select v-model="sarStandardsInfoEO.textStatus" <el-select v-model="sarStandardsInfoEO.textStatus"
placeholder="请选择文本状态" placeholder="请选择标准状态"
clearable> clearable>
<el-option <el-option
v-for="(opt,index) in standStateOptions" v-for="(opt,index) in standStateOptions"
@@ -979,7 +979,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="textStatus" prop="textStatus"
label="文本状态" label="标准状态"
width="130" width="130"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -1212,7 +1212,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="textStatus" prop="textStatus"
label="文本状态" label="标准状态"
width="100" width="100"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -1522,7 +1522,7 @@
:options="standSortOptions" :options="standSortOptions"
clearable/> clearable/>
</el-form-item> </el-form-item>
&lt;!&ndash; 文本状态&ndash;&gt; &lt;!&ndash; 标准状态&ndash;&gt;
<el-form-item :label="$t('m.standStateShow')" class="serch-form-item"> <el-form-item :label="$t('m.standStateShow')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatus')" clearable <el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatus')" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
@@ -1754,7 +1754,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </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')"
clearable> clearable>
@@ -2216,7 +2216,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standFileClassify" prop="standFileClassify"
label="文本状态" label="标准状态"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ setWBType(scope.row.standFileClassify) }}</div> <div>{{ setWBType(scope.row.standFileClassify) }}</div>
@@ -2544,7 +2544,7 @@ export default {
applyArctic: '',//适用车型 applyArctic: '',//适用车型
standState: '', standState: '',
standNature: '',//标准性质 standNature: '',//标准性质
textStatus: '',//文本状态 textStatus: '',//标准状态
synopsis: '', // 内容摘要 synopsis: '', // 内容摘要
CLLX: '' // 适用车型 CLLX: '' // 适用车型
}, // 分页查询过程中用到的对象 }, // 分页查询过程中用到的对象
@@ -2865,7 +2865,7 @@ export default {
{required: true, message: '标准性质不能为空', trigger: 'change'} {required: true, message: '标准性质不能为空', trigger: 'change'}
], ],
textStatus: [ textStatus: [
{required: true, message: '文本状态不能为空', trigger: 'change'} {required: true, message: '标准状态不能为空', trigger: 'change'}
], ],
standNumber: [ standNumber: [
{required: true, type: 'string', message: '标准编号不能为空', trigger: 'change'}, {required: true, type: 'string', message: '标准编号不能为空', trigger: 'change'},
@@ -3052,7 +3052,7 @@ export default {
orderBy: '', orderBy: '',
nowOrder: '', nowOrder: '',
nowOrderBy: '', nowOrderBy: '',
textStatusMap: {} // 文本状态id与name对应 textStatusMap: {} // 标准状态id与name对应
} }
}, },
watch: { watch: {
@@ -5651,7 +5651,7 @@ export default {
disabled: false disabled: false
}, },
{ {
label: '文本状态', label: '标准状态',
value: 'stand_state_show', value: 'stand_state_show',
type: 'SEL_OPTION', type: 'SEL_OPTION',
disabled: false disabled: false
@@ -5828,7 +5828,7 @@ export default {
// } // }
// isEdit 为0 标准状态不是必填 // isEdit 为0 标准状态不是必填
if (isEdit === '0') { if (isEdit === '0') {
rules.standState = [{required: false, message: '文本状态不能为空', trigger: 'change'}] rules.standState = [{required: false, message: '标准状态不能为空', trigger: 'change'}]
rules.issueTime = [{required: false, message: '发布日期不能为空', trigger: 'change'}] rules.issueTime = [{required: false, message: '发布日期不能为空', trigger: 'change'}]
} }
if (item.attrLen && item.attrType !== 'INPUT_NUM' && item.attrType !== 'DATE_PICKER' && item.attrType !== 'SEL_OPTION' && item.attrType !== 'SEL_OPTS' && item.attrType !== 'DATE_PIC_OPTS') { if (item.attrLen && item.attrType !== 'INPUT_NUM' && item.attrType !== 'DATE_PICKER' && item.attrType !== 'SEL_OPTION' && item.attrType !== 'SEL_OPTS' && item.attrType !== 'DATE_PIC_OPTS') {
@@ -6063,7 +6063,7 @@ export default {
} }
} }
}, },
// 将文本状态的id与name对应 // 将标准状态的id与name对应
setMap(data) { setMap(data) {
data.forEach(item => { data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label) this.$set(this.textStatusMap, item.value, item.label)
@@ -6199,7 +6199,7 @@ export default {
this.allSelectOptions = res.data || {} this.allSelectOptions = res.data || {}
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别 this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
this.standNatureOptions = res.data.SARPROPERTY // 标准性质 this.standNatureOptions = res.data.SARPROPERTY // 标准性质
this.standStateOptions = res.data.WBZTCLASS // 文本状态 this.standStateOptions = res.data.WBZTCLASS // 标准状态
// this.standSystemOptions = res.data.BZTXCLASS // 标准体系 // this.standSystemOptions = res.data.BZTXCLASS // 标准体系
this.standSystemOptions = res.data.TXLBBUSS // 标准体系 this.standSystemOptions = res.data.TXLBBUSS // 标准体系
this.applyArcticOptions.options = res.data.ENERGYTYPES // 适用车型 this.applyArcticOptions.options = res.data.ENERGYTYPES // 适用车型