|
|
@@ -379,7 +379,8 @@
|
|
|
editDialogshow : false,
|
|
|
|
|
|
editDialogData : {name : "", type :"", Introduction : ""},
|
|
|
- proType: ['科幻', '现实', '剧情', '历史', '爱情', '惊悚', '公路', '动画'],
|
|
|
+ // proType: ['科幻', '现实', '剧情', '历史', '爱情', '惊悚', '公路', '动画'],
|
|
|
+ proType: ['科幻', '现实', 'XR', '主旋律', 'VR'],
|
|
|
addproType: ['编剧', '摄影师' ,'录音师', '灯光师', '创建人','美术师'],
|
|
|
addFileType: ['剧本' ,'拍摄脚本' ,'分镜头脚本' ,'气氛图', '项目简介', '项目报告' ,'场景图'],
|
|
|
index_addproType : 0,
|
|
|
@@ -493,9 +494,9 @@
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- console.log("创建项目自己ID",mydata_userInfo.UserID);
|
|
|
+ console.log("创建项目的用户ID",mydata_userInfo.UserID);
|
|
|
uni.request({
|
|
|
- url: this.$Api + "/project/changeprojectinfo",
|
|
|
+ url: mydata_api + "/project/changeprojectinfo",
|
|
|
data: {
|
|
|
"UserID":this.projectData[0].CreateUserID,
|
|
|
"ProjectID" : this.projectData[0].Id,
|
|
|
@@ -525,55 +526,55 @@
|
|
|
determine(obj) {
|
|
|
this.show = false;
|
|
|
this.auditshow = false;
|
|
|
- console.log("点了 对话框", obj);
|
|
|
+ // console.log("点了 对话框", obj);
|
|
|
switch (this.currentSelect.section) {
|
|
|
case 0: //項目管理
|
|
|
switch (this.currentSelect.buttonType) {
|
|
|
case 'delete':
|
|
|
- console.log("点了 删除", this.currentSelect);
|
|
|
+ // console.log("点了 删除", this.currentSelect);
|
|
|
if (obj == 0) {
|
|
|
- console.log("点了 确定删除", this.currentSelect);
|
|
|
+ // console.log("点了 确定删除", this.currentSelect);
|
|
|
this.deleteItemProject()
|
|
|
}else if(obj == 1){
|
|
|
- console.log("点了 取消删除", this.currentSelect);
|
|
|
+ // console.log("点了 取消删除", this.currentSelect);
|
|
|
}
|
|
|
break;
|
|
|
case 'edit':
|
|
|
- console.log("点了 修改", this.currentSelect);
|
|
|
+ // console.log("点了 修改", this.currentSelect);
|
|
|
if (obj == 0) {
|
|
|
- console.log("点了 确定修改", this.currentSelect,this.projectData[0]);
|
|
|
+ // console.log("点了 确定修改", this.currentSelect,this.projectData[0]);
|
|
|
this.editDialogData = {name : this.projectData[0].ProjectName, type :this.projectData[0].Type, Introduction : this.projectData[0].Describe}
|
|
|
this.editDialogshow = true
|
|
|
- console.log("修改数据", this.editDialogData);
|
|
|
+ // console.log("修改数据", this.editDialogData);
|
|
|
}else if(obj == 1){
|
|
|
this.editDialogData = {name : "", type :"", Introduction : ""}
|
|
|
- console.log("点了 取消修改", this.currentSelect);
|
|
|
+ // console.log("点了 取消修改", this.currentSelect);
|
|
|
}
|
|
|
break;
|
|
|
case 'downloadIMG':
|
|
|
- console.log("点了 下载", this.currentSelect);
|
|
|
+ // console.log("点了 下载", this.currentSelect);
|
|
|
if (obj == 0) {
|
|
|
- console.log("点了 确定下载", this.currentSelect,this.projectData[0]);
|
|
|
+ // console.log("点了 确定下载", this.currentSelect,this.projectData[0]);
|
|
|
this.DownloadFile()
|
|
|
}else if(obj == 1){
|
|
|
// this.editDialogData = {name : "", type :"", Introduction : ""}
|
|
|
- console.log("点了 取消下载", this.currentSelect);
|
|
|
+ // console.log("点了 取消下载", this.currentSelect);
|
|
|
}
|
|
|
break;
|
|
|
case 'deleteFile':
|
|
|
- console.log("点了 删除", this.currentSelect);
|
|
|
+ // console.log("点了 删除", this.currentSelect);
|
|
|
if (obj == 0) {
|
|
|
- console.log("点了 确定删除", this.currentSelect,this.projectData[0]);
|
|
|
+ // console.log("点了 确定删除", this.currentSelect,this.projectData[0]);
|
|
|
this.delFile()
|
|
|
}else if(obj == 1){
|
|
|
// this.editDialogData = {name : "", type :"", Introduction : ""}
|
|
|
- console.log("点了 取消删除", this.currentSelect);
|
|
|
+ // console.log("点了 取消删除", this.currentSelect);
|
|
|
}
|
|
|
break;
|
|
|
case 'audit':
|
|
|
- console.log("点了 审核", this.currentSelect);
|
|
|
+ // console.log("点了 审核", this.currentSelect);
|
|
|
if (obj == 0) {
|
|
|
- console.log("点了 确定审核", this.currentSelect,this.projectData[0]);
|
|
|
+ // console.log("点了 确定审核", this.currentSelect,this.projectData[0]);
|
|
|
let data = {
|
|
|
ProjectItemID: this.currentSelect.item,
|
|
|
Pass: true
|
|
|
@@ -582,7 +583,7 @@
|
|
|
|
|
|
}else if(obj == 1){
|
|
|
// this.editDialogData = {name : "", type :"", Introduction : ""}
|
|
|
- console.log("点了 取消审核", this.currentSelect);
|
|
|
+ // console.log("点了 取消审核", this.currentSelect);
|
|
|
let data = {
|
|
|
ProjectItemID: this.currentSelect.item,
|
|
|
Pass: false
|
|
|
@@ -602,7 +603,7 @@
|
|
|
},
|
|
|
auditPost(obj) {
|
|
|
console.log("审核信息", obj.ProjectItemID.ProjectID);
|
|
|
- let url = this.$Api + "/project/setfilepass"
|
|
|
+ let url = mydata_api + "/project/setfilepass"
|
|
|
let data = {
|
|
|
"ProjectItemID" : obj.ProjectItemID.Id,
|
|
|
"Pass":obj.Pass,
|
|
|
@@ -623,9 +624,9 @@
|
|
|
},
|
|
|
getlist() {
|
|
|
uni.request({
|
|
|
- url: this.$Api + "/project/getprojectcontent",
|
|
|
+ url: mydata_api + "/project/getprojectcontent",
|
|
|
data: {
|
|
|
- "UserID": this.$UserId,
|
|
|
+ "UserID": mydata_userInfo.UserID,
|
|
|
"ProjectID": this.projectData[0].Id
|
|
|
},
|
|
|
method: "POST",
|
|
|
@@ -636,27 +637,27 @@
|
|
|
this.projectData[0] = res.data.Project;
|
|
|
this.$forceUpdate()
|
|
|
}
|
|
|
- console.log("获取了什么样子的信息", this.projectData[0]);
|
|
|
+ // console.log("获取了什么样子的信息", this.projectData[0]);
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
getFileList() {
|
|
|
uni.request({
|
|
|
- url: this.$Api + "/project/getprojectcontent",
|
|
|
+ url: mydata_api + "/project/getprojectcontent",
|
|
|
data: {
|
|
|
- "UserID": this.$UserId,
|
|
|
+ "UserID": mydata_userInfo.UserID,
|
|
|
"ProjectID": this.projectData[0].Id
|
|
|
},
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
|
success: res => {
|
|
|
this.fileData = res.data.ProjectItem;
|
|
|
- console.log('this.fileData=',this.fileData)
|
|
|
+ // console.log('刷新所有文件=',this.fileData)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
viewProject(obj) {
|
|
|
- console.log('进来的什么信息',obj)
|
|
|
+ // console.log('进来的什么信息',obj)
|
|
|
this.projectData = [obj];
|
|
|
this.getFileList();
|
|
|
this.getMemberList();
|
|
|
@@ -666,12 +667,12 @@
|
|
|
"ProjectID": this.projectData[0].Id
|
|
|
}
|
|
|
uni.request({
|
|
|
- url: this.$Api + "/project/getmember",
|
|
|
+ url: mydata_api + "/project/getmember",
|
|
|
data: temp,
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
|
success: res => {
|
|
|
- console.log("请求学生", res);
|
|
|
+ // console.log("请求学生", res);
|
|
|
if (res.data.Code == 100) {
|
|
|
this.projectMembers = res.data.Users;
|
|
|
// console.log();
|
|
|
@@ -686,9 +687,10 @@
|
|
|
addFileData(){
|
|
|
uni.chooseImage({
|
|
|
success: (chooseImageRes) => {
|
|
|
+ console.log('选择文件成功')
|
|
|
const tempFilePaths = chooseImageRes.tempFilePaths;
|
|
|
uni.uploadFile({
|
|
|
- url: this.$Api+'/project/uploadprojectfile', //仅为示例,非真实的接口地址
|
|
|
+ url: mydata_api+'/project/uploadprojectfile',
|
|
|
filePath: tempFilePaths[0],
|
|
|
name: 'file',
|
|
|
formData: {
|
|
|
@@ -723,7 +725,7 @@
|
|
|
"Type": "美术师" //编剧 摄影师 录音师 灯光师 创建人
|
|
|
}
|
|
|
uni.request({
|
|
|
- url: this.$Api + "/project/getmember",
|
|
|
+ url: mydata_api + "/project/getmember",
|
|
|
data: temp,
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
|
@@ -737,7 +739,7 @@
|
|
|
})
|
|
|
},
|
|
|
onClick_addFile(){
|
|
|
- console.log("项目 点了添加文件")
|
|
|
+ // console.log("项目 点了添加文件")
|
|
|
// this.isShowAddFile = true
|
|
|
|
|
|
uni.chooseFile({
|
|
|
@@ -749,16 +751,16 @@
|
|
|
},
|
|
|
//删除项目
|
|
|
deleteItemProject(){
|
|
|
- // console.log('this.$Api=',this.$Api)
|
|
|
- // console.log('UserID=',this.$UserId)
|
|
|
+ // console.log('mydata_api=',mydata_api)
|
|
|
+ // console.log('UserID=',mydata_userInfo.UserID)
|
|
|
// console.log('ProjectID=',this.projectData[0].Id)
|
|
|
var temp = {
|
|
|
"UserID":this.projectData[0].CreateUserID,
|
|
|
- "ProjectID" : this.projectData[0].Id,
|
|
|
+ "ProjectID" : (this.projectData[0].Id).toString(),
|
|
|
}
|
|
|
- console.log("要删除过去的项目为",temp)
|
|
|
+ console.log("删除项目为",temp)
|
|
|
uni.request({
|
|
|
- url: this.$Api + "/backstage/deleteproject",
|
|
|
+ url: mydata_api + "/backstage/deleteproject",
|
|
|
data: temp,
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
|
@@ -787,7 +789,7 @@
|
|
|
},
|
|
|
deleteMember(item){
|
|
|
console.log('删掉成员 ',item)
|
|
|
- let url = this.$Api + "/project/deletemember"
|
|
|
+ let url = mydata_api + "/project/deletemember"
|
|
|
let data = {
|
|
|
"userID" : this.projectData[0].CreateUserID,
|
|
|
"DeleteUserID":item.User.Id,
|
|
|
@@ -815,7 +817,7 @@
|
|
|
// this.currentSelect
|
|
|
console.log('删除文件', this.currentSelect)
|
|
|
// SetFilePass
|
|
|
- let url = this.$Api + "/project/deleteprojectcontent"
|
|
|
+ let url = mydata_api + "/project/deleteprojectcontent"
|
|
|
// "UserID":"xxxx", //上传人或者项目创建人
|
|
|
// "ProjectItemID" : "123"
|
|
|
let data = {
|
|
|
@@ -851,7 +853,7 @@
|
|
|
this.projectData[0].Describe = this.projectDescribe;
|
|
|
|
|
|
uni.request({
|
|
|
- url: this.$Api + "/project/changeprojectinfo",
|
|
|
+ url: mydata_api + "/project/changeprojectinfo",
|
|
|
data: {
|
|
|
"UserID":this.projectData[0].CreateUserID,
|
|
|
"ProjectID" : this.projectData[0].Id,
|
|
|
@@ -893,18 +895,23 @@
|
|
|
},
|
|
|
confirm_file_upload(){
|
|
|
|
|
|
+ uni.showLoading({
|
|
|
+ title: '上传中'
|
|
|
+ });
|
|
|
+ let fileType = this.addFileType[this.fileType];
|
|
|
uni.uploadFile({
|
|
|
- url: this.$Api+'/project/uploadprojectfile', //仅为示例,非真实的接口地址
|
|
|
+ url: mydata_api+'/project/uploadprojectfile', //仅为示例,非真实的接口地址
|
|
|
filePath: this.filePath[0],
|
|
|
name: 'file',
|
|
|
formData: {
|
|
|
"UserID": this.projectData[0].CreateUserID,
|
|
|
"Name": this.fileName,
|
|
|
- "Type": this.fileType,
|
|
|
+ "Type": fileType,
|
|
|
"ProjectID": this.projectData[0].Id,
|
|
|
},
|
|
|
success: (uploadFileRes) => {
|
|
|
- console.log('upload ok=', uploadFileRes.data);
|
|
|
+ // console.log('upload ok=', uploadFileRes.data);
|
|
|
+ uni.hideLoading();
|
|
|
this.bShowUpLoadFile = false;
|
|
|
this.getFileList();
|
|
|
// setTimeout(function(){
|
|
|
@@ -916,7 +923,7 @@
|
|
|
cancel_file_upload(){
|
|
|
this.bShowUpLoadFile = false;
|
|
|
this.fileName = '';
|
|
|
- this.fileType = 0;
|
|
|
+ this.fileType = '';
|
|
|
this.filePath = null;
|
|
|
},
|
|
|
// 添加学生
|
|
|
@@ -934,7 +941,7 @@
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- let url = this.$Api + "/project/addmember"
|
|
|
+ let url = mydata_api + "/project/addmember"
|
|
|
let data = {
|
|
|
"UserID" : this.projectData[0].CreateUserID,
|
|
|
"ProjectID":this.projectData[0].Id,
|
|
|
@@ -963,9 +970,9 @@
|
|
|
}
|
|
|
|
|
|
this.bShowAddStu = false;
|
|
|
- // setTimeout(function(){
|
|
|
- // alert("添加有误,请检查该学生是否存在");
|
|
|
- // },500)
|
|
|
+ setTimeout(function(){
|
|
|
+ alert("添加有误,请检查该学生是否存在");
|
|
|
+ },500)
|
|
|
}
|
|
|
})
|
|
|
},
|