Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -206,10 +206,13 @@
|
||||
sortable="custom"
|
||||
width="120px"
|
||||
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>
|
||||
</el-tooltip>
|
||||
<!-- <template slot="header" slot-scope="scope">-->
|
||||
<!-- <el-tooltip class="item" effect="dark" content="计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。" placement="bottom">-->
|
||||
<!-- <span>文本状态<i class="el-icon-warning-outline"></i></span>-->
|
||||
<!-- </el-tooltip>-->
|
||||
<!-- </template>-->
|
||||
<template slot-scope="scope">
|
||||
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="50" fixed="right">
|
||||
@@ -353,7 +356,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item title="“计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。"
|
||||
prop="standState" label-width="150px" class="add-form-item">
|
||||
prop="textStatus" label-width="150px" class="add-form-item">
|
||||
<template slot="label">文本状态<i class="el-icon-warning-outline"></i></template>
|
||||
<el-select v-model="sarStandardsInfoEO.textStatus"
|
||||
placeholder="请选择文本状态"
|
||||
@@ -489,7 +492,7 @@
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'CYCVPPSCN'">
|
||||
<el-form-item label="关联模块--乘用车vpps中文名称" label-width="150px" prop="cycvppscn" class="add-form-item">
|
||||
<el-form-item title="关联模块--乘用车vpps中文名称" label="关联模块--乘用车vpps中文名称" label-width="150px" prop="cycvppscn" class="add-form-item">
|
||||
<el-input
|
||||
v-model="sarStandardsInfoEO.CYCVPPSCN" disabled
|
||||
clearable
|
||||
@@ -497,7 +500,7 @@
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'KCCVPPSCN'">
|
||||
<el-form-item label="关联模块--卡车vpps中文名称" label-width="150px" prop="kccvppscn" class="add-form-item">
|
||||
<el-form-item title="关联模块--卡车vpps中文名称" label="关联模块--卡车vpps中文名称" label-width="150px" prop="kccvppscn" class="add-form-item">
|
||||
<el-input
|
||||
v-model="sarStandardsInfoEO.KCCVPPSCN" disabled
|
||||
clearable
|
||||
@@ -536,7 +539,7 @@
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
:disabled="field.attrName === '在产车实施日期(国家)' || field.attrName === '新车型实施日期(国家)'|| field.attrName === '实施日期(国际)' || formdisableflag"
|
||||
></custom-date-pick>
|
||||
</template>
|
||||
<template v-else-if="field.attrType === 'FILE'">
|
||||
@@ -648,6 +651,9 @@
|
||||
label="文本状态"
|
||||
width="130"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--分页-->
|
||||
@@ -847,6 +853,9 @@
|
||||
label="文本状态"
|
||||
width="200"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
@@ -1542,6 +1551,12 @@ export default {
|
||||
standSort: [
|
||||
{required: true, message: '标准类别不能为空', trigger: 'change'}
|
||||
],
|
||||
standNature: [
|
||||
{required: true, message: '标准性质不能为空', trigger: 'change'}
|
||||
],
|
||||
textStatus: [
|
||||
{required: true, message: '文本状态不能为空', trigger: 'change'}
|
||||
],
|
||||
standNumber: [
|
||||
{required: true, type: 'string', message: '标准编号不能为空', trigger: 'change'},
|
||||
{type: 'string', max: 100, message: '标准编号不能超过100个字符', trigger: 'change'},
|
||||
@@ -1717,7 +1732,8 @@ export default {
|
||||
orgData: [],
|
||||
delLoading: false,
|
||||
standState: '',
|
||||
orderBy :''
|
||||
orderBy :'',
|
||||
textStatusMap: {} // 文本状态id与name对应
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -2121,7 +2137,8 @@ export default {
|
||||
},
|
||||
|
||||
remove(node, data) {
|
||||
this.$confirm('是否删除菜单?', '提示', {
|
||||
//通过 stahndinfoList 是否有数据进行判断
|
||||
this.$confirm(this.stahndinfoList.length > 0 ? '该节点下有记录,是否删除?' : '是否删除菜单', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
confirmButtonClass: 'common-button-primary',
|
||||
cancelButtonText: '取消',
|
||||
@@ -4010,6 +4027,13 @@ export default {
|
||||
break
|
||||
}
|
||||
}
|
||||
},
|
||||
// 将文本状态的id与name对应
|
||||
setMap(data){
|
||||
data.forEach(item => {
|
||||
this.$set(this.textStatusMap, item.value, item.label)
|
||||
})
|
||||
console.log(this.textStatusMap, '文本状态的值')
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -4060,6 +4084,8 @@ export default {
|
||||
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
||||
this.txlbOptions = res.data.TXLBCLASS // 体系类别
|
||||
this.getGzzOption()
|
||||
this.setMap(this.standStateOptions)
|
||||
console.log(this.standStateOptions, '文本状态')
|
||||
}, e => {
|
||||
})
|
||||
this.getDomesticStandardTable(this.tableFlag)
|
||||
|
||||
Reference in New Issue
Block a user