|
@@ -267,6 +267,8 @@ import Enum from "@/constants/enum/index";
|
|
|
import PlatformType from "@/constants/enum/platform-type";
|
|
|
import provinceCity from "@/constants/provinceCity.json";
|
|
|
import ReportList from "@/components/report/ReportList";
|
|
|
+import Http from '@/js/http.js'
|
|
|
+import Apis from '@/js/api.js'
|
|
|
export default {
|
|
|
name: "Project",
|
|
|
components: { ReportList },
|
|
@@ -487,7 +489,10 @@ export default {
|
|
|
this.$refs[formName].validate(valid => {
|
|
|
if (valid) {
|
|
|
this.isModifyMode = false;
|
|
|
- console.log(this.project);
|
|
|
+ Http.post(Apis.PROJECT.UPDATE_PROJECT_SUBMIT,this.project).then((res)=>{
|
|
|
+ console.log(res)
|
|
|
+ console.log(this.project)
|
|
|
+ })
|
|
|
//提交 project
|
|
|
} else {
|
|
|
console.log("error submit!!");
|
|
@@ -662,6 +667,12 @@ export default {
|
|
|
},
|
|
|
handleReject(index, id) {
|
|
|
console.log("拒绝");
|
|
|
+ },
|
|
|
+ loadData() {
|
|
|
+ Http.get(Apis.PAGE.PROJECT_DETAIL_PAGE).then((res)=>{
|
|
|
+ this.project = res.project
|
|
|
+ this.analyseDemandList = res.analyseDemandList
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
};
|