|
@@ -182,12 +182,27 @@
|
|
|
created() {
|
|
|
this.getTaskBaseInfo()
|
|
|
this.getUndertakeList()
|
|
|
+ this.getModelInfo()
|
|
|
console.log(this.task_id)
|
|
|
},
|
|
|
methods: {
|
|
|
handleClick(tab, event) {
|
|
|
console.log(tab, event);
|
|
|
},
|
|
|
+ //获取模型详细信息
|
|
|
+ async getModelInfo(){
|
|
|
+ var that = this
|
|
|
+ const {
|
|
|
+ data: res
|
|
|
+ } = await this.$http.post('getModelInfo',{task_id: that.task_id});
|
|
|
+ console.log(res.data);
|
|
|
+ that.product = res.data.product
|
|
|
+ that.pesticides = res.data.pesticides
|
|
|
+ that.productNameText = that.product.map(el => el.product_name).join('、 ')
|
|
|
+ console.log(that.productNameText)
|
|
|
+ that.pesticidesNameText = that.pesticides.map(el => el.test_name).join('、 ')
|
|
|
+ },
|
|
|
+
|
|
|
// 获取任务详情
|
|
|
async getTaskBaseInfo() {
|
|
|
var that = this
|
|
@@ -219,12 +234,6 @@
|
|
|
this.readForm.test_model_id = Number(res.data.test_model_id)
|
|
|
}
|
|
|
console.log(this.readForm.test_model_id)
|
|
|
-
|
|
|
- that.productNameText = that.readForm.product.map(el => el.product_name).join('、 ')
|
|
|
- console.log(that.productNameText)
|
|
|
- that.pesticidesNameText = that.readForm.pesticides.map(el => el.test_name).join('、 ')
|
|
|
-
|
|
|
- console.log(this.divideOptions.id)
|
|
|
},
|
|
|
|
|
|
// 获取机构地域表格
|
|
@@ -244,6 +253,10 @@
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
-
|
|
|
-</style>
|
|
|
+<style lang="less">
|
|
|
+ #pdf1{
|
|
|
+ .el-descriptions-item__label.is-bordered-label{
|
|
|
+ width: 18.75rem;
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|