|
|
@@ -31,9 +31,20 @@
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<tr v-for="(item,index) in projectData" :key="index">
|
|
|
+ <!-- <t-table @change="change">
|
|
|
+ <t-tr> </t-tr>
|
|
|
+ <t-tr>{{item.ProjectName}}</t-tr>
|
|
|
+ <t-tr>{{item.Type}}</t-tr>
|
|
|
+ <t-tr>{{item.Describe}}</t-tr>
|
|
|
+ <t-tr>{{item.CreateUserName}}</t-tr>
|
|
|
+ <t-tr style="position: relative;"><button type="default" size="mini" @click="edit(index)" class="m_edit">修改</button></t-tr>
|
|
|
+ <t-tr style="position: relative;"><button type="default" size="mini" @click="delete1(index)" class="m_delete">删除</button></t-tr>
|
|
|
+ </t-table> -->
|
|
|
+
|
|
|
<th>{{item.ProjectName}}</th>
|
|
|
<th>{{item.Type}}</th>
|
|
|
- <th>{{item.Describe}}</th>
|
|
|
+ <!-- <th>{{item.Describe}}</th> -->
|
|
|
+ <th>{{item.Type}}</th>
|
|
|
<th>{{item.CreateUserName}}</th>
|
|
|
<th style="position: relative;"><button type="default" size="mini" @click="edit(index)" class="m_edit">修改</button></th>
|
|
|
<th style="position: relative;"><button type="default" size="mini" @click="delete1(index)" class="m_delete">删除</button></th>
|
|
|
@@ -77,11 +88,11 @@
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<tr v-for="(item,index) in fileData" :key="index">
|
|
|
- <th>{{item.UploadUserType}}</th>
|
|
|
+ <th>{{index+1}}</th>
|
|
|
<th>{{item.Name}}</th>
|
|
|
- <th>{{item.UploadUserName}}</th>
|
|
|
<th>{{item.Type}}</th>
|
|
|
- <th>{{item.UploadTime}}</th>
|
|
|
+ <th>{{item.UploadUserName}}</th>
|
|
|
+ <th>{{item.UPloadTime.substring(0,9)}}</th>
|
|
|
<th style="position: relative;"><button type="default" size="mini" @click="download(index)" class="m_edit">下载</button></th>
|
|
|
<th style="position: relative;"><button type="default" size="mini" @click="delete1(index)" class="m_delete">删除</button></th>
|
|
|
<th style="position: relative;"><button type="default" size="mini" @click="audit(item)" class="m_audit">审核</button></th>
|
|
|
@@ -187,7 +198,7 @@
|
|
|
// locationtemp
|
|
|
},
|
|
|
created() {
|
|
|
- this.getlist();
|
|
|
+ // this.getlist();
|
|
|
// this.getFileList();
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -271,28 +282,44 @@
|
|
|
getFileList() {
|
|
|
console.log("用户id");
|
|
|
console.log(this.$UserId);
|
|
|
- var temp = {
|
|
|
- "UserID": this.$UserId,
|
|
|
- "ProjectID": 10001
|
|
|
- }
|
|
|
+ console.log(this.projectData[0].Id);
|
|
|
uni.request({
|
|
|
- url: this.$Api + "/project/GetProjectContent",
|
|
|
- data: temp,
|
|
|
+ url: this.$Api + "/project/getprojectcontent",
|
|
|
+ data: {
|
|
|
+ "UserID": this.$UserId,
|
|
|
+ "ProjectID": this.projectData[0].Id
|
|
|
+ },
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
|
success: res => {
|
|
|
- var {
|
|
|
- data
|
|
|
- } = res;
|
|
|
- if (data.code == 100) {
|
|
|
- this.fileData = data.ProjectItem;
|
|
|
- }
|
|
|
+ this.fileData = res.data.ProjectItem;
|
|
|
+ // console.log('this.fileData=',this.fileData)
|
|
|
}
|
|
|
})
|
|
|
+ // var temp = {
|
|
|
+ // "UserID": this.$UserId,
|
|
|
+ // "ProjectID": this.projectData[0].Id
|
|
|
+ // }
|
|
|
+ // uni.request({
|
|
|
+ // url: this.$Api + "/project/getprojectcontent",
|
|
|
+ // data: temp,
|
|
|
+ // method: "POST",
|
|
|
+ // dataType: "json",
|
|
|
+ // success: res => {
|
|
|
+ // var {
|
|
|
+ // data
|
|
|
+ // } = res;
|
|
|
+ // if (data.code == 100) {
|
|
|
+ // this.fileData = data.ProjectItem;
|
|
|
+ // console.log('this.fileData=',this.fileData)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
|
|
|
},
|
|
|
viewProject(obj) {
|
|
|
this.projectData = [obj];
|
|
|
+ this.getFileList();
|
|
|
this.getMemberList();
|
|
|
},
|
|
|
getMemberList() {
|