|
@@ -38,7 +38,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
// 数据表格数据
|
|
|
- tableData: [],
|
|
|
+ tableData:[],
|
|
|
sampleOrgId:{},
|
|
|
queryInfo:{
|
|
|
pageSize:10,
|
|
@@ -146,16 +146,20 @@ export default {
|
|
|
"getTasks", this.queryInfo
|
|
|
);
|
|
|
this.tableData = res.data.rows
|
|
|
+ console.log( this.tableData)
|
|
|
this.total = res.data.total
|
|
|
this.task_id = res.data.rows.task_id
|
|
|
- this.queryInfo = result.data.data
|
|
|
- if (this.queryInfo.properties == 1){
|
|
|
- this.queryInfo.properties ='政府部门';
|
|
|
- }else if(this.queryInfo.properties == 2){
|
|
|
- this.queryInfo.properties ='事业单位';
|
|
|
+ for(let i=0; i<this.tableData.length; i++){
|
|
|
+ if (this.tableData[i].releaser.properties == "1"){
|
|
|
+ this.tableData[i].releaser.properties ="政府部门";
|
|
|
+ }else if(this.tableData[i].releaser.properties == "2"){
|
|
|
+ this.tableData[i].releaser.properties ="事业单位";
|
|
|
}else{
|
|
|
- this.queryInfo.properties ='企业';
|
|
|
+ this.tableData[i].releaser.properties ="企业";
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log(res.data.rows)
|
|
|
},
|
|
|
//分页器
|
|
|
handleSizeChange(val) {
|