فهرست منبع

修改状态排序

SanHQin 1 سال پیش
والد
کامیت
5be3496ece
1فایلهای تغییر یافته به همراه24 افزوده شده و 17 حذف شده
  1. 24 17
      src/views/projectApply/projectApplication.vue

+ 24 - 17
src/views/projectApply/projectApplication.vue

@@ -89,10 +89,10 @@
           >
 					<el-option label="所有状态" value=""/>
             <el-option
-              v-for="(value,key,index) in classType"
-              :key="index"
-              :label="value"
-              :value="key"
+              v-for="(item,index) in classType"
+              :key="item.index"
+              :label="item.title"
+              :value="item.value"
             >
             </el-option>
           </el-select>
@@ -237,7 +237,7 @@
 							<span v-if="scope.row.isReturn!=0">{{ isReturnType[scope.row.isReturn] }}</span>
               <!-- {{scope.row.name + (scope.row.status==0?"":"(已屏蔽)")}} -->
               <!-- {{ (scope.row.isupload==0?"未审核": scope.row.data==1?"正在审核":"已审核")  }} -->
-							<span v-else>{{ classType[scope.row.isupload] }}</span>
+							<span v-else>{{ classType.find(i=>i.value==scope.row.isupload)["title"] }}</span>
 
               <!-- <span v-if="scope.row.isupload == 0">未审核</span>
               <span v-if="scope.row.isupload == 1">审核中</span>
@@ -537,17 +537,24 @@ export default {
         currentPage: 1,
       },
       tableData: [], //列表数据
-
-			classType:{
-				"0":'未提交',
-				'1':"已提交",
-				'5':'所在学院/部门审核中',
-				'6':'双创学院审核中',
-				'7':'学校终审中',
-				'2':"待结项",
-				'3':"提交结项中",
-				'4':'已结项',
-			},
+			classType:[
+				{index:0,value:'0',title:"未提交"},
+				{index:1,value:'1',title:"已提交"},
+				{index:2,value:'5',title:"所在学院/部门审核中"},
+				{index:3,value:'6',title:"双创学院审核中"},
+				{index:4,value:'7',title:"学校终审中"},
+				{index:5,value:'2',title:"待结项"},
+				{index:6,value:'3',title:"提交结项中"},
+				{index:7,value:'4',title:"已结项"},
+			],
+				// "0":'未提交',
+				// '1':"已提交",
+				// '5':'所在学院/部门审核中',
+				// '6':'双创学院审核中',
+				// '7':'学校终审中',
+				// '2':"待结项",
+				// '3':"提交结项中",
+				// '4':'已结项',
 			isReturnType:{
 				'5':'所在学院/部门审核驳回',
 				'6':'双创学院审核驳回',
@@ -941,7 +948,7 @@ export default {
         			_json["预算(万)"] = item.fund / 10000;
         			_json["创建时间"] = item.createTime;
         			_json["联系电话"] = item.phone;
-        			_json["项目状态"] = item.isReturn==0?this.classType[item.isupload]:this.isReturnType[item.isReturn];
+        			_json["项目状态"] = item.isReturn==0?this.classType.find(i=>i.value==item.isupload)['title']:this.isReturnType[item.isReturn];
 							for(let i =0;i<teacher.length;i++){
 								_json["指导老师"+(i+1)] = teacher[i].name;
 							}