|
@@ -234,7 +234,8 @@
|
|
|
<a-form-item :label="$t('verity.dvp.is.pass')">
|
|
|
<a-select
|
|
|
v-model="editParam.isPass"
|
|
|
- :placeholder="$t('global-btn.please-select') + $t('verity.dvp.is.pass')">
|
|
|
+ :placeholder="$t('global-btn.please-select') + $t('verity.dvp.is.pass')"
|
|
|
+ allowClear>
|
|
|
<a-select-option value="1">{{ $t('global-btn.yes') }}</a-select-option>
|
|
|
<a-select-option value="0">{{ $t('global-btn.no') }}</a-select-option>
|
|
|
</a-select>
|
|
@@ -360,6 +361,7 @@ export default {
|
|
|
testEndTime: undefined, // 试验结束时间
|
|
|
testResult: undefined, // 试验结果
|
|
|
testReportCode: undefined, // 试验报告编号
|
|
|
+ isPass: undefined // 是否通过
|
|
|
},
|
|
|
/** 分页实体 */
|
|
|
pagination: {
|
|
@@ -462,7 +464,10 @@ export default {
|
|
|
dataIndex: 'isPass',
|
|
|
ellipsis: true,
|
|
|
customRender: val => {
|
|
|
- return val === '0' ? "N" : "Y";
|
|
|
+ if( val == 0 ) {
|
|
|
+ return "N"
|
|
|
+ } else if ( val == 1)
|
|
|
+ return "Y"
|
|
|
}
|
|
|
},
|
|
|
{
|