文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 55afe13f by 李严凡

生成数据单列表

parent 5126e19b
...@@ -258,10 +258,10 @@ ...@@ -258,10 +258,10 @@
:name="index" style="border-bottom: 1px solid;border-bottom-color:white;font-size: 14px;"> :name="index" style="border-bottom: 1px solid;border-bottom-color:white;font-size: 14px;">
<!-- 上传图片--> <!-- 上传图片-->
<el-row :gutter="20" style="font-size: 18px"> <el-row :gutter="20" style="font-size: 18px">
<el-col span="6">数据单ID:{{dynamicValidateForm.dataFormList[index].id}}</el-col> <el-col span="6">数据单ID:{{domain.id}}</el-col>
<el-col span="6">数据单创建时间:{{dynamicValidateForm.dataFormList[index].time}}</el-col> <el-col span="6">数据单创建时间:{{domain.time}}</el-col>
<el-col span="6">数据单包含信息数:{{dynamicValidateForm.dataFormList[index].obj.length}}</el-col> <el-col span="6">数据单包含信息数:{{domain.num}}</el-col>
<el-col span="2"><el-button @click="createDataToTask" type="primary" plain>将数据单转为任务</el-button></el-col> <el-col span="2"><el-button @click="createDataToTask(domain.id)" type="primary" plain>将数据单转为任务</el-button></el-col>
</el-row> </el-row>
</el-collapse-item> </el-collapse-item>
</el-form-item> </el-form-item>
...@@ -493,8 +493,9 @@ ...@@ -493,8 +493,9 @@
{ {
id:1, id:1,
time:"2020.8.10", time:"2020.8.10",
obj:[1,2,3] num:"123"
}, },
], ],
// { // {
// fileList: new Array(), // fileList: new Array(),
...@@ -566,6 +567,20 @@ ...@@ -566,6 +567,20 @@
// this.dynamicValidateForm.dataFormList = null // this.dynamicValidateForm.dataFormList = null
// } // }
// }) // })
this.axios({
method:'get',
url:'/dataset/getDataFormList',
data:{
userId: this.userInfo.userId
}
}).then(res=>{
if(res.code == 1){
this.dataFormList = res.data.dataFormList
}
else{
alert("获取数据单列表失败")
}
})
if(this.ins == 2){ if(this.ins == 2){
console.log("修改"); console.log("修改");
this.taskId = this.$route.params.taskId, this.taskId = this.$route.params.taskId,
...@@ -1111,6 +1126,30 @@ ...@@ -1111,6 +1126,30 @@
// } // }
// }) // })
// this.templateDetailList = this.pOptions; // this.templateDetailList = this.pOptions;
},
createDataToTask(id){
this.axios({
method:'post',
url:'/dataset/postDataFormList',
data:{
userId:this.userInfo.userId,
id:id
}
}).then(res=>{
if(res.code == 1){
this.$message({
type:'info',
message:'创建成功'
})
}
else{
this.$message({
type:'info',
message:'创建失败'
})
}
})
alert(id)
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment