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

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>
</el-table-column>
<el-table-column
label="文本状态"
label="标准状态"
show-overflow-tooltip
width="130">
<template slot-scope="scope">
@@ -120,7 +120,7 @@
</el-table-column>
<el-table-column
prop="stateName"
label="文本状态">
label="标准状态">
</el-table-column>
</el-table>
<loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading>
@@ -125,7 +125,7 @@
</el-table-column>
<el-table-column
prop="textStatus"
label="文本状态"
label="标准状态"
width="130">
<template slot-scope="scope">
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
@@ -191,8 +191,8 @@ export default {
},
data () {
return {
textStatus:'',//文本状态
textStatusMap: {}, // 文本状态id与name对应
textStatus:'',//标准状态
textStatusMap: {}, // 标准状态id与name对应
replaceLawsNumModel: false,
sarBussionessLawsEO: {
replaceLawsNum: ''
@@ -234,12 +234,12 @@ export default {
this.$http.get("sys/dictype/getDicTypeListCode", {}, {
_this: this
}, res => {
this.standStateOptions = res.data.WBZTCLASS; // 文本状态
this.standStateOptions = res.data.WBZTCLASS; // 标准状态
this.setMap(this.standStateOptions);
});
},
methods: {
// 将文本状态的id与name对应
// 将标准状态的id与name对应
setMap(data) {
data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label)
@@ -147,7 +147,7 @@
</el-table-column>
<el-table-column
prop="standStatusShow"
label="文本状态"
label="标准状态"
width="130">
</el-table-column>
</el-table>
@@ -126,7 +126,7 @@
</el-table-column>
<el-table-column
prop="textStatus"
label="文本状态"
label="标准状态"
width="130">
<template slot-scope="scope">
<span>
@@ -198,8 +198,8 @@ export default {
},
data() {
return {
textStatus:'',//文本状态
textStatusMap: {}, // 文本状态id与name对应
textStatus:'',//标准状态
textStatusMap: {}, // 标准状态id与name对应
replaceLawsNumModel: false,
sarBussionessLawsEO: {
replaceLawsNum: ''
@@ -235,7 +235,7 @@ export default {
}
},
methods: {
// 将文本状态的id与name对应
// 将标准状态的id与name对应
setMap(data) {
data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label)
@@ -387,7 +387,7 @@ export default {
this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this
}, res => {
this.standStateOptions = res.data.WBZTCLASS // 文本状态
this.standStateOptions = res.data.WBZTCLASS // 标准状态
this.setMap(this.standStateOptions)
}, e => {
console.log("error");
@@ -136,7 +136,7 @@
</el-table-column>
<el-table-column
prop="standStatusShow"
label="文本状态"
label="标准状态"
width="130">
</el-table-column>
</el-table>
@@ -269,10 +269,10 @@
</el-table-column>
<el-table-column
prop="textStatus"
label="文本状态">
label="标准状态">
<!-- <template slot="header" slot-scope="scope">-->
<!-- <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>-->
<!-- </template>-->
<template slot-scope="scope">
@@ -527,9 +527,9 @@
</el-select>
</el-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"
placeholder="请选择文本状态"
placeholder="请选择标准状态"
clearable>
<el-option
v-for="(opt,index) in standStateOptions"
@@ -979,7 +979,7 @@
</el-table-column>
<el-table-column
prop="textStatus"
label="文本状态"
label="标准状态"
width="130"
align="center">
<template slot-scope="scope">
@@ -1212,7 +1212,7 @@
</el-table-column>
<el-table-column
prop="textStatus"
label="文本状态"
label="标准状态"
width="100"
align="center">
<template slot-scope="scope">
@@ -1522,7 +1522,7 @@
:options="standSortOptions"
clearable/>
</el-form-item>
&lt;!&ndash; 文本状态&ndash;&gt;
&lt;!&ndash; 标准状态&ndash;&gt;
<el-form-item :label="$t('m.standStateShow')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatus')" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
@@ -1754,7 +1754,7 @@
</el-option>
</el-select>
</el-form-item>
<!-- 文本状态-->
<!-- 标准状态-->
<el-form-item :label="$t('m.standStateShow')" class="add-form-item form-item-disabled">
<el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatusText')"
clearable>
@@ -2216,7 +2216,7 @@
</el-table-column>
<el-table-column
prop="standFileClassify"
label="文本状态"
label="标准状态"
align="center">
<template slot-scope="scope">
<div>{{ setWBType(scope.row.standFileClassify) }}</div>
@@ -2544,7 +2544,7 @@ export default {
applyArctic: '',//
standState: '',
standNature: '',//
textStatus: '',//
textStatus: '',//
synopsis: '', //
CLLX: '' //
}, //
@@ -2865,7 +2865,7 @@ export default {
{required: true, message: '标准性质不能为空', trigger: 'change'}
],
textStatus: [
{required: true, message: '文本状态不能为空', trigger: 'change'}
{required: true, message: '标准状态不能为空', trigger: 'change'}
],
standNumber: [
{required: true, type: 'string', message: '标准编号不能为空', trigger: 'change'},
@@ -3052,7 +3052,7 @@ export default {
orderBy: '',
nowOrder: '',
nowOrderBy: '',
textStatusMap: {} // idname
textStatusMap: {} // idname
}
},
watch: {
@@ -5651,7 +5651,7 @@ export default {
disabled: false
},
{
label: '文本状态',
label: '标准状态',
value: 'stand_state_show',
type: 'SEL_OPTION',
disabled: false
@@ -5828,7 +5828,7 @@ export default {
// }
// 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'}]
}
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 {
}
}
},
// idname
// idname
setMap(data) {
data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label)
@@ -6199,7 +6199,7 @@ export default {
this.allSelectOptions = res.data || {}
this.standSortOptions = res.data.STANDCLASSIFY //
this.standNatureOptions = res.data.SARPROPERTY //
this.standStateOptions = res.data.WBZTCLASS //
this.standStateOptions = res.data.WBZTCLASS //
// this.standSystemOptions = res.data.BZTXCLASS //
this.standSystemOptions = res.data.TXLBBUSS //
this.applyArcticOptions.options = res.data.ENERGYTYPES //