|
@@ -65,7 +65,12 @@
|
|
|
<el-input v-model="scope.row.data" placeholder="*自动获取各试验参数掩码" v-if="scope.row.rule===3" disabled></el-input>
|
|
|
<el-input v-model="scope.row.data" placeholder="*自动获取当前年份" v-if="scope.row.rule===4" disabled></el-input>
|
|
|
<el-input v-model="scope.row.data" placeholder="*自动获取当前月份" v-if="scope.row.rule===5" disabled></el-input>
|
|
|
- <el-input-number v-model="scope.row.data" label="输入子增长的起始值和位数" :controls="false" v-if="scope.row.rule===6" style="width: 100%;"></el-input-number>
|
|
|
+ <el-input
|
|
|
+ v-model="scope.row.data"
|
|
|
+ v-if="scope.row.rule === 6"
|
|
|
+ @input="scope.row.data = scope.row.data.replace(/[^0-9]/g, '')"></el-input>
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
<span v-else>{{ scope.row.data }}</span>
|
|
|
</template>
|
|
@@ -73,7 +78,8 @@
|
|
|
|
|
|
<el-table-column label="是否自增">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-checkbox v-model="scope.row.isAutoIncrement" v-if="scope.row.rule==6" :true-label="1" :false-label="0"></el-checkbox>
|
|
|
+ <el-checkbox v-model="scope.row.isAutoIncrement" v-if="scope.row.rule==6&&scope.row.isEdit" :true-label="1" :false-label="0" ></el-checkbox >
|
|
|
+ <span v-else>{{scope.row.isAutoIncrement===1?'是':'否'}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="150">
|
|
@@ -289,8 +295,10 @@ export default {
|
|
|
|
|
|
this.tableData = res.data.data['list'];
|
|
|
this.total = res.data.data['total'];
|
|
|
+ this.dataNumber=res.data.data['trialNumber']
|
|
|
}else{
|
|
|
this.tableData = [];
|
|
|
+ this.dataNumber='';
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -407,7 +415,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
}
|
|
|
}
|