info.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  1. <template>
  2. <div :style="'padding:20px 50px;background:#f7f7f7;min-height:'+tableHeight+'px;'">
  3. <div style="margin: 0 auto;width:900px;">
  4. <el-row :gutter="20">
  5. <el-col :span="16" >
  6. <div class="box info">
  7. <label>基本信息<el-link v-if="user.id == project.creatorId || user.id == project.inchargerId" @click="showEdit" style="float:right;"><i class="el-icon-edit" ></i></el-link></label>
  8. <el-row :gutter="10" >
  9. <el-col :span="5" ><span class="gray_label">项目名称:</span></el-col><el-col :span="19" ><span >{{project.projectName}}</span></el-col>
  10. </el-row>
  11. <el-row :gutter="10">
  12. <el-col :span="5" ><span class="gray_label">状态:</span></el-col><el-col :span="7" ><span >{{statusTxt[project.status]}}</span></el-col>
  13. <el-col :span="5" ><span class="gray_label">完成度: </span></el-col><el-col :span="7" ><span>
  14. <el-progress :percentage="project.progress"></el-progress></span></el-col>
  15. </el-row>
  16. <el-row :gutter="10">
  17. <el-col :span="5" ><span class="gray_label">项目编码: </span></el-col><el-col :span="7" ><span >{{project.projectCode}}</span></el-col>
  18. <el-col :span="5" ><span class="gray_label">项目预算:</span></el-col><el-col :span="7" >
  19. <span >{{project.budget == null?'-':project.budget}} 元</span></el-col>
  20. </el-row>
  21. <el-row :gutter="10">
  22. <el-col :span="5" ><span class="gray_label">项目级别: </span></el-col><el-col :span="7" ><span >{{levelTxt[project.level]}}</span></el-col>
  23. <el-col :span="5" ><span class="gray_label">创建日期:</span></el-col><el-col :span="7" ><span>{{project.createDate}}</span></el-col>
  24. </el-row>
  25. <el-row :gutter="10">
  26. <el-col :span="5" ><span class="gray_label">计划开始日期:</span></el-col><el-col :span="7" >
  27. <span >{{project.planStartDate==null?'-':project.planStartDate}}</span></el-col>
  28. <el-col :span="5" ><span class="gray_label">计划结束日期:</span></el-col><el-col :span="7" ><span>
  29. {{project.planEndDate == null?'-':project.planEndDate}}</span></el-col>
  30. </el-row>
  31. <el-row :gutter="10">
  32. <el-col :span="5" ><span class="gray_label">实际完成日期:</span></el-col><el-col :span="7" ><span>
  33. {{project.finishDate==null?'-':project.finishDate}}</span></el-col>
  34. </el-row>
  35. </div>
  36. <div class="box" style="margin-top:10px;">
  37. <div><label>相关人员</label>
  38. <el-link v-if="user.id == project.creatorId || user.id == project.inchargerId" @click="showEditPar" style="float:right;"><i class="el-icon-edit" ></i></el-link>
  39. </div>
  40. <div style="margin-top:10px;color:#999;">负责人</div>
  41. <div><el-link style="margin:10px" @click="showUser(project.inchargerId)">{{project.inchargerName}}</el-link></div>
  42. <div style="color:#999;">参与人</div>
  43. <div>
  44. <el-link v-for="item in project.participationList" :key="item.id" style="margin:10px;" @click="showUser(item.id)">{{item.name}}</el-link>
  45. <el-button class="el-icon-plus" @click="addMembVisible=true" size="mini"></el-button>
  46. </div>
  47. </div>
  48. <div class="box" style="margin-top:10px;">
  49. <label>项目统计</label>
  50. <div>
  51. <el-row :gutter="10">
  52. <el-col :span="4" style="text-align:center;">
  53. <p style="color:#666;font-size:12px;">已完成</p>
  54. <p style="font-size:20px;font-weight:bold;color:green;">{{taskSum.finishCount}}</p>
  55. </el-col>
  56. <el-col :span="4" style="text-align:center;">
  57. <p style="color:#666;font-size:12px;">未完成</p>
  58. <p style="font-size:20px;color:blue;font-weight:bold;">{{taskSum.unfinishCount}}</p>
  59. </el-col>
  60. <el-col :span="4" style="text-align:center;">
  61. <p style="color:#666;font-size:12px;">已逾期</p>
  62. <p style="font-size:20px;color:red;font-weight:bold;">{{taskSum.timeupCount}}</p>
  63. </el-col>
  64. <el-col :span="4" style="text-align:center;">
  65. <p style="color:#666;font-size:12px;">待认领</p>
  66. <p style="font-size:20px;color:#orange;font-weight:bold;">{{taskSum.unassignCount}}</p>
  67. </el-col>
  68. <el-col :span="4" style="text-align:center;">
  69. <p style="color:#666;font-size:12px;">今日到期</p>
  70. <p style="font-size:20px;font-weight:bold;color:pink;">{{taskSum.todayTimeupCount}}</p>
  71. </el-col>
  72. <el-col :span="4" style="text-align:center;">
  73. <p style="color:#666;font-size:12px;">逾期完成</p>
  74. <p style="font-size:20px;font-weight:bold;color:gray;">{{taskSum.timeupFinishCount}}</p>
  75. </el-col>
  76. </el-row>
  77. </div>
  78. </div>
  79. </el-col>
  80. <el-col :span="8" style="background:#fff;border: 1px solid #eeeeee;border-radius:5px;min-height:547px;">
  81. <div>
  82. <p><i class="el-icon-trophy"></i><span style="margin-left:5px;">里程碑</span></p>
  83. </div>
  84. <div>
  85. <el-timeline :reverse="reverse" style="padding-left: 3px;">
  86. <el-timeline-item
  87. v-for="(task, index) in mileStoneList"
  88. :key="index"
  89. :color="task.taskStatus==0?'#ddd':'#830BE2'"
  90. size="large"
  91. :timestamp="task.endDate">
  92. {{task.name}}
  93. </el-timeline-item>
  94. </el-timeline>
  95. </div>
  96. </el-col>
  97. </el-row>
  98. </div>
  99. <!--用户详细信息弹出框-->
  100. <el-dialog title="查看详情" v-if="userDetailVisible" :visible.sync="userDetailVisible" :close-on-click-modal="false" customClass="customWidth" width="400px">
  101. <div class="line"><span>姓名</span><span>{{userDetail.name}}</span></div>
  102. <div class="line"><span>手机号码</span><span>{{userDetail.phone}}</span></div>
  103. <div class="line"><span>部门</span><span>{{userDetail.departmentName}}</span></div>
  104. <div class="line" v-if="user.role==1||user.role==2"><span>成本</span><span>{{userDetail.cost}}元/小时</span></div>
  105. <div slot="footer" class="dialog-footer">
  106. <el-button type="primary" @click="userDetailVisible = false" >确定</el-button>
  107. </div>
  108. </el-dialog>
  109. <!--编辑基本信息界面-->
  110. <el-dialog :title="title" v-if="addFormVisible" :visible.sync="addFormVisible" :close-on-click-modal="false" customClass="customWidth" width="600px">
  111. <el-form ref="basicInfoForm" :model="addForm" :rules="rules" label-width="120px">
  112. <el-form-item label="项目编号" >
  113. <el-input v-model="addForm.code" placeholder="请输入项目编号" clearable></el-input>
  114. </el-form-item>
  115. <el-form-item label="项目名称" prop="name">
  116. <el-input v-model="addForm.name" placeholder="请输入项目名称" clearable></el-input>
  117. </el-form-item>
  118. <el-form-item label="级别" >
  119. <el-select v-model="addForm.level" placeholder="请选择级别" style="width:32%;" >
  120. <el-option v-for="item in importanceList" :key="item.id" :label="item.label" :value="item.id"></el-option>
  121. </el-select>
  122. <span style="margin-left:50px;margin-right:10px;">项目预算</span>
  123. <el-input v-model="addForm.budget" style="width:32%;"
  124. placeholder="整数" clearable @keyup.native="number"></el-input><span style="margin-left:10px;">元</span>
  125. </el-form-item>
  126. <el-form-item label="开始日期" prop="planStartDate">
  127. <el-date-picker v-model="addForm.planStartDate"
  128. :editable="false"
  129. format="yyyy-MM-dd"
  130. value-format="yyyy-MM-dd"
  131. :clearable="false" type="date"
  132. placeholder="选择日期"></el-date-picker>
  133. </el-form-item>
  134. <el-form-item label="截止日期" prop="planEndDate">
  135. <el-date-picker v-model="addForm.planEndDate"
  136. :editable="false"
  137. format="yyyy-MM-dd"
  138. value-format="yyyy-MM-dd"
  139. :clearable="false" type="date"
  140. placeholder="选择日期"></el-date-picker>
  141. </el-form-item>
  142. </el-form>
  143. <div slot="footer" class="dialog-footer">
  144. <el-button @click.native="addFormVisible = false">取消</el-button>
  145. <el-button type="primary" @click="submitInsert" :loading="addLoading">提交</el-button>
  146. </div>
  147. </el-dialog>
  148. <!--编辑参与人界面-->
  149. <el-dialog :title="title" v-if="pVisible" :visible.sync="pVisible" :close-on-click-modal="false" customClass="customWidth" width="600px">
  150. <el-form ref="participForm" :model="addForm" :rules="rules" label-width="120px">
  151. <el-form-item label="全部参与者">
  152. <el-select v-model="addForm.userId" multiple filterable placeholder="请选择参与者" style="width:100%;" @change="changeParticipator">
  153. <el-option v-for="item in users" :key="item.id" :label="item.name" :value="item.id"></el-option>
  154. </el-select>
  155. </el-form-item>
  156. <el-form-item label="主要负责人" >
  157. <el-select v-model="addForm.inchargerId" filterable placeholder="请选择负责人" style="width:100%;" >
  158. <el-option v-for="item in project.participationList" :key="item.id" :label="item.name" :value="item.id"></el-option>
  159. </el-select>
  160. </el-form-item>
  161. </el-form>
  162. <div slot="footer" class="dialog-footer">
  163. <el-button @click.native="pVisible = false">取消</el-button>
  164. <el-button type="primary" @click="submitParticip" :loading="addLoading">提交</el-button>
  165. </div>
  166. </el-dialog>
  167. <!--添加参与人界面-->
  168. <el-dialog title="添加参与人" v-if="addMembVisible" :visible.sync="addMembVisible" :close-on-click-modal="false" customClass="customWidth" width="600px">
  169. <el-form ref="addMembForm" :model="addMembForm" label-width="120px">
  170. <el-form-item label="新增参与者">
  171. <el-select v-model="addMembForm.userId" multiple filterable placeholder="请选择参与者" style="width:100%;" >
  172. <el-option v-for="item in users" :key="item.id" :label="item.name" :value="item.id"></el-option>
  173. </el-select>
  174. </el-form-item>
  175. </el-form>
  176. <div slot="footer" class="dialog-footer">
  177. <el-button @click.native="addMembVisible = false">取消</el-button>
  178. <el-button type="primary" @click="submitAddMemb" :loading="addLoading">提交</el-button>
  179. </div>
  180. </el-dialog>
  181. </div>
  182. </template>
  183. <style scoped>
  184. .fileTypeIcon {
  185. color:#20a0ff;font-size:20px;
  186. }
  187. .box {
  188. background:#fff;border: 1px solid #eeeeee;border-radius:5px;padding:10px;
  189. }
  190. .info span {
  191. color:#303133;
  192. }
  193. .gray_label {
  194. color:#999 !important;
  195. }
  196. .el-row {
  197. margin-top:10px;
  198. }
  199. .line {
  200. padding:10px;
  201. }
  202. .line span{
  203. font-size:15px;
  204. }
  205. .line span:nth-child(even){
  206. float:right;
  207. }
  208. </style>
  209. <script>
  210. import util from "../../common/js/util";
  211. export default {
  212. data() {
  213. return {
  214. addMembVisible:false,
  215. addMembForm:{},
  216. pVisible:false,
  217. taskSum:{},
  218. participator:[],
  219. users:[],
  220. addForm:{},
  221. addFormVisible:false,
  222. userDetail:{},
  223. userDetailVisible: false,
  224. importanceList:[{id:1,label:'一般'},{id:2,label:'紧急'},{id:3,label:'重要'},{id:4,label:'重要且紧急'}],
  225. //1-一般,2-紧急,3-重要,4-重要且紧急
  226. levelTxt:["全部","一般","紧急","重要","重要且紧急"],
  227. //1-进行中,2-已完成,3-已撤销
  228. statusTxt: ["全部","进行中","已完成","已撤销"],
  229. mileStoneList:[],
  230. reverse:false,
  231. project:{},
  232. addFolderDialog: false,
  233. upLoading:false,
  234. keyword:null,
  235. user: JSON.parse(sessionStorage.getItem("user")),
  236. recentFiles: [],
  237. addLoading: false,
  238. curProjectId:null,
  239. title: "",
  240. rules: {
  241. name: [{ required: true, message: "请输入项目名称", trigger: "blur" }],
  242. }
  243. };
  244. },
  245. methods: {
  246. //提交添加参与人的请求
  247. submitAddMemb() {
  248. this.addLoading = true;
  249. let formData = new FormData();
  250. formData.append("id", this.curProjectId);
  251. if(this.addMembForm.userId.length != 0) {
  252. for(var j in this.addMembForm.userId) {
  253. formData.append("userId", this.addMembForm.userId[j]);
  254. }
  255. }
  256. this.http.uploadFile('/project/addMemb',formData,
  257. res => {
  258. this.addLoading = false;
  259. if (res.code == "ok") {
  260. this.$message({
  261. message: "添加成功",
  262. type: "success"
  263. });
  264. this.addMembVisible = false;
  265. this.getProjectInfo();
  266. } else {
  267. this.$message({
  268. message: res.msg,
  269. type: "error"
  270. });
  271. }
  272. },
  273. error => {
  274. this.addLoading = false;
  275. this.$message({
  276. message: error,
  277. type: "error"
  278. });
  279. });
  280. },
  281. editTask(task) {
  282. // this.addForm = JSON.parse(JSON.stringify(task));
  283. this.addFormVisible = true;
  284. this.addLoading = false;
  285. this.title = "编辑任务";
  286. this.getTaskDetail(task.id);
  287. },
  288. getProjectTaskSum() {
  289. this.http.post('/project/taskSum', {
  290. id: this.curProjectId
  291. },
  292. res => {
  293. if (res.code == "ok") {
  294. this.taskSum = res.data;
  295. } else {
  296. this.$message({
  297. message: res.msg,
  298. type: "error"
  299. });
  300. }
  301. },
  302. error => {
  303. this.$message({
  304. message: error,
  305. type: "error"
  306. });
  307. });
  308. },
  309. number(){  
  310.     this.addForm.budget = this.addForm.budget.replace(/[^\.\d]/g,'');
  311. this.addForm.budget = this.addForm.budget.replace('.','');
  312.   },
  313. //选择参与人
  314. changeParticipator() {
  315. //检查是否在参与人中,如果没有需要加入到参与人中
  316. console.log(this.addForm.userId);
  317. var find = false;
  318. this.project.participationList = [];
  319. this.addForm.userId.forEach(u=>{
  320. var findUser = this.users.filter(au=>au.id == u)[0];
  321. this.project.participationList.push(findUser);
  322. })
  323. },
  324. getUsers() {
  325. this.http.post(this.port.manage.list, {
  326. departmentId: -1,
  327. pageIndex: 1,
  328. pageSize: 99999
  329. },
  330. res => {
  331. if (res.code == "ok") {
  332. this.users = res.data.records;
  333. } else {
  334. this.$message({
  335. message: res.msg,
  336. type: "error"
  337. });
  338. }
  339. },
  340. error => {
  341. this.$message({
  342. message: error,
  343. type: "error"
  344. });
  345. });
  346. },
  347. submitParticip() {
  348. this.addLoading = true;
  349. let formData = new FormData();
  350. if(this.addForm.id != null) {
  351. formData.append("id", this.addForm.id);
  352. }
  353. formData.append("name", this.addForm.name);
  354. if(this.addForm.userId.length != 0) {
  355. for(var j in this.addForm.userId) {
  356. formData.append("userId", this.addForm.userId[j]);
  357. }
  358. }
  359. if(this.addForm.inchargerId != null) {
  360. formData.append("inchargerId", this.addForm.inchargerId);
  361. }
  362. this.http.uploadFile(this.port.project.add,formData,
  363. res => {
  364. this.addLoading = false;
  365. if (res.code == "ok") {
  366. this.$message({
  367. message: '修改成功',
  368. type: "success"
  369. });
  370. this.pVisible = false;
  371. this.getProjectInfo();
  372. } else {
  373. this.$message({
  374. message: res.msg,
  375. type: "error"
  376. });
  377. }
  378. },
  379. error => {
  380. this.addLoading = false;
  381. this.$message({
  382. message: error,
  383. type: "error"
  384. });
  385. });
  386. },
  387. submitInsert() {
  388. this.$refs.basicInfoForm.validate(valid => {
  389. if (valid) {
  390. this.addLoading = true;
  391. let formData = new FormData();
  392. formData.append("name", this.addForm.name);
  393. if(this.addForm.id != null) {
  394. formData.append("id", this.addForm.id);
  395. }
  396. if(this.addForm.userId.length != 0) {
  397. for(var j in this.addForm.userId) {
  398. formData.append("userId", this.addForm.userId[j]);
  399. }
  400. }
  401. if(this.addForm.inchargerId != null) {
  402. formData.append("inchargerId", this.addForm.inchargerId);
  403. }
  404. if(this.addForm.code != null) {
  405. formData.append("code", this.addForm.code);
  406. }
  407. if(this.addForm.planStartDate != null) {
  408. formData.append("planStartDate", this.addForm.planStartDate);
  409. }
  410. if(this.addForm.planEndDate != null) {
  411. formData.append("planEndDate", this.addForm.planEndDate);
  412. }
  413. if(this.addForm.level != null) {
  414. formData.append("level", this.addForm.level);
  415. }
  416. if(this.addForm.budget != null) {
  417. formData.append("budget", this.addForm.budget);
  418. }
  419. this.http.uploadFile(this.port.project.add,formData,
  420. res => {
  421. this.addLoading = false;
  422. if (res.code == "ok") {
  423. this.$message({
  424. message: this.addForm.id!=null?'修改':'创建'+"成功",
  425. type: "success"
  426. });
  427. this.addFormVisible = false;
  428. this.getProjectInfo();
  429. } else {
  430. this.$message({
  431. message: res.msg,
  432. type: "error"
  433. });
  434. }
  435. },
  436. error => {
  437. this.addLoading = false;
  438. this.$message({
  439. message: error,
  440. type: "error"
  441. });
  442. });
  443. }
  444. });
  445. },
  446. showEdit() {
  447. this.addForm = JSON.parse(JSON.stringify(this.project));
  448. console.log('---'+this.addForm);
  449. console.log(this.addForm.projectCode);
  450. var list = this.project.participationList , arr = [];
  451. for(var j in list) {
  452. arr.push(list[j].id)
  453. }
  454. this.addForm.userId = arr;
  455. this.addForm.code = this.addForm.projectCode;
  456. this.addForm.name = this.addForm.projectName;
  457. this.addFormVisible = true;
  458. },
  459. showEditPar() {
  460. this.addForm = JSON.parse(JSON.stringify(this.project));
  461. this.addForm.code = this.addForm.projectCode;
  462. this.addForm.name = this.addForm.projectName;
  463. //设置参与人
  464. var list = this.project.participationList , arr = [];
  465. for(var j in list) {
  466. arr.push(list[j].id)
  467. }
  468. this.addForm.userId = arr;
  469. console.log(this.addForm.userId );
  470. this.pVisible = true;
  471. },
  472. //显示用户详情
  473. showUser(userId) {
  474. this.userDetailVisible = true;
  475. this.http.post(this.port.manage.userDetail, {
  476. userId: userId
  477. },
  478. res => {
  479. if (res.code == "ok") {
  480. this.userDetail = res.data;
  481. } else {
  482. this.$message({
  483. message: res.msg,
  484. type: "error"
  485. });
  486. }
  487. },
  488. error => {
  489. this.$message({
  490. message: error,
  491. type: "error"
  492. });
  493. });
  494. },
  495. cursorOver(row, column, cell, event) {
  496. this.currentDataId = row.id;
  497. },
  498. viewOnline(row) {
  499. this.http.post('/pdf-file/getProjectFile', {fileId: row.id},
  500. res => {
  501. if (res.code == "ok") {
  502. console.log(res.data+'----'+row.documentName);
  503. let routeUrl = this.$router.resolve({
  504. path: "/viewonline",
  505. params: {serverFname:res.data, fileName:row.documentName}
  506. });
  507. sessionStorage.setItem("serverFname",res.data);
  508. sessionStorage.setItem("fileName",row.documentName);
  509. console.log(routeUrl.href);
  510. window.open(routeUrl.href, '_blank');
  511. } else {
  512. this.$message({
  513. message: res.msg,
  514. type: 'error'
  515. });
  516. }
  517. }, error => {
  518. this.$message({
  519. message: error,
  520. type: 'error'
  521. });
  522. })
  523. },
  524. openWin(url) {
  525. var el = document.createElement("a");
  526. document.body.appendChild(el);
  527. el.href = encodeURI(url);
  528. el.target = '_blank';
  529. el.click();
  530. document.body.removeChild(el);
  531. },
  532. //获取里程碑文件
  533. getMileStoneList() {
  534. this.http.post('/task/getMileStoneList', {
  535. projectId: this.curProjectId,
  536. },
  537. res => {
  538. if (res.code == "ok") {
  539. this.mileStoneList = res.data;
  540. this.mileStoneList.unshift( {id:-1, name:'开始', taskStatus:1});
  541. } else {
  542. this.$message({
  543. message: res.msg,
  544. type: "error"
  545. });
  546. }
  547. },
  548. error => {
  549. this.$message({
  550. message: error,
  551. type: "error"
  552. });
  553. });
  554. },
  555. getUsers() {
  556. this.http.post(this.port.manage.list, {
  557. departmentId: -1,
  558. pageIndex: 1,
  559. pageSize: 99999
  560. },
  561. res => {
  562. if (res.code == "ok") {
  563. this.users = res.data.records;
  564. } else {
  565. this.$message({
  566. message: res.msg,
  567. type: "error"
  568. });
  569. }
  570. },
  571. error => {
  572. this.$message({
  573. message: error,
  574. type: "error"
  575. });
  576. });
  577. },
  578. //获取列表
  579. getProjectInfo() {
  580. this.listLoading = true;
  581. this.http.post('/project/detail', {
  582. id: this.curProjectId
  583. },
  584. res => {
  585. this.listLoading = false;
  586. if (res.code == "ok") {
  587. this.project = res.data;
  588. } else {
  589. this.$message({
  590. message: res.msg,
  591. type: "error"
  592. });
  593. }
  594. },
  595. error => {
  596. this.listLoading = false;
  597. this.$message({
  598. message: error,
  599. type: "error"
  600. });
  601. });
  602. },
  603. refreshPage() {
  604. this.curProjectId = parseInt(this.$route.params.id);
  605. this.getMileStoneList();
  606. this.getProjectInfo();
  607. this.getProjectTaskSum();
  608. }
  609. },
  610. created() {
  611. console.log('created===');
  612. let height = window.innerHeight;
  613. this.tableHeight = height - 160;
  614. const that = this;
  615. window.onresize = function temp() {
  616. that.tableHeight = window.innerHeight - 160;
  617. };
  618. },
  619. mounted() {
  620. console.log('mounted===');
  621. this.curProjectId = parseInt(this.$route.params.id);
  622. this.getMileStoneList();
  623. this.getProjectInfo();
  624. this.getUsers();
  625. this.getProjectTaskSum();
  626. }
  627. };
  628. </script>