|
@@ -25,13 +25,13 @@
|
|
|
<el-form-item label="监测类型:" prop="task_class" width="70px" class="labelItem" required>
|
|
|
<div>{{readForm.task_class}}</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="检测模型:" prop="task_class" width="70px" class="labelItem" required>
|
|
|
+ <el-form-item label="检测模型:" prop="bindForm.test_model_id" width="70px" class="labelItem" required>
|
|
|
<el-select v-model="bindForm.test_model_id" size="mini">
|
|
|
<el-option v-for="item in options" :key="item.id" :label="item.name" :value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="抽检分离:" prop="is_divide" width="70px" class="labelItem">
|
|
|
+ <el-form-item label="抽检分离:" prop="bindForm.is_divide" width="70px" class="labelItem">
|
|
|
<el-select v-model="bindForm.is_divide" size="mini">
|
|
|
<el-option v-for="item in divideOptions" :key="item.id" :label="item.name" :value="item.id">
|
|
|
</el-option>
|
|
@@ -321,10 +321,14 @@
|
|
|
multipleSelection: null,
|
|
|
delarr: [],
|
|
|
// 模型列表
|
|
|
- options: [],
|
|
|
+ options: [{
|
|
|
+ id: '',
|
|
|
+ name: ''
|
|
|
+ }],
|
|
|
bindForm: {
|
|
|
test_model_id: '',
|
|
|
- endtime_cydsb: ''
|
|
|
+ endtime_cydsb: '',
|
|
|
+ is_divide: ''
|
|
|
},
|
|
|
// 弹出检测机构弹窗
|
|
|
getTestListShow: false,
|
|
@@ -367,11 +371,11 @@
|
|
|
underTasktotal: 0,
|
|
|
// 抽检分离选项
|
|
|
divideOptions: [{
|
|
|
- id: '0',
|
|
|
+ id: 0,
|
|
|
name: '否'
|
|
|
},
|
|
|
{
|
|
|
- id: '1',
|
|
|
+ id: 1,
|
|
|
name: '是'
|
|
|
}
|
|
|
]
|
|
@@ -540,11 +544,13 @@
|
|
|
}
|
|
|
);
|
|
|
this.options = res.data.rows
|
|
|
+ console.log(this.options)
|
|
|
},
|
|
|
// 绑定模型
|
|
|
async bindModel() {
|
|
|
var that = this
|
|
|
that.bindForm['id'] = that.task_id
|
|
|
+ console.log(that.bindForm)
|
|
|
const {
|
|
|
data: res
|
|
|
} = await this.$http.post(
|
|
@@ -607,7 +613,10 @@
|
|
|
this.readForm = res.data
|
|
|
console.log(this.readForm)
|
|
|
|
|
|
+ this.bindForm.is_divide = res.data.is_divide
|
|
|
+ this.bindForm.test_model_id = Number(res.data.test_model_id)
|
|
|
this.bindForm.endtime_cydsb = res.data.endtime_cydsb
|
|
|
+ console.log(this.divideOptions.id)
|
|
|
},
|
|
|
|
|
|
/** 修复当用户在大于1的分页进行数据搜索没有返回值的问题 */
|