projectApplication.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. <template>
  2. <!-- 项目立项申请 -->
  3. <div class="projectApplication" v-loading="loading">
  4. <div class="pAHeader">
  5. <div class="pAHeader1">项目立项管理</div>
  6. </div>
  7. <hr />
  8. <!-- 搜索框开始 -->
  9. <div class="selectInp">
  10. <div class="manageSelects">
  11. <div class="selectsBlock">
  12. <div class="selectLabel">项目筛选</div>
  13. <el-select
  14. v-model="selectInp.filter"
  15. @change="getData"
  16. placeholder="我的项目"
  17. >
  18. <el-option label="所有项目" value=""></el-option>
  19. <el-option
  20. v-for="item in options.projectFilter"
  21. :key="item.courseId"
  22. :label="item.title"
  23. :value="item.courseId"
  24. >
  25. </el-option>
  26. </el-select>
  27. </div>
  28. <div class="selectsBlock">
  29. <div class="selectLabel">部门</div>
  30. <el-select
  31. v-model="selectInp.department"
  32. @change="getData"
  33. placeholder="请选择"
  34. >
  35. <el-option label="所有部门" value=""></el-option>
  36. <el-option
  37. v-for="item in options.department"
  38. :key="item.classid"
  39. :label="item.name"
  40. :value="item.classid"
  41. >
  42. </el-option>
  43. </el-select>
  44. </div>
  45. <div class="selectsBlock">
  46. <div class="selectLabel">分类</div>
  47. <el-select
  48. v-model="selectInp.sort"
  49. @change="getData"
  50. placeholder="请选择"
  51. >
  52. <el-option label="所有分类" value=""></el-option>
  53. <el-option
  54. v-for="item in options.sort"
  55. :key="item.typeid"
  56. :label="item.name"
  57. :value="item.typeid"
  58. >
  59. </el-option>
  60. </el-select>
  61. </div>
  62. <div class="selectsBlock">
  63. <div class="selectLabel">负责人</div>
  64. <el-select
  65. v-model="selectInp.person"
  66. @change="getData"
  67. placeholder="请选择"
  68. >
  69. <el-option label="所有负责人" value=""></el-option>
  70. <el-option
  71. v-for="(item, index) in options.person"
  72. :key="index"
  73. :label="item.pro_leader"
  74. :value="item.pro_leader"
  75. >
  76. </el-option>
  77. </el-select>
  78. </div>
  79. <div class="selectsBlock">
  80. <div class="selectLabel">状态</div>
  81. <el-select
  82. v-model="selectInp.state"
  83. @change="getData"
  84. placeholder="请选择"
  85. >
  86. <el-option
  87. v-for="item in options.state"
  88. :key="item.value"
  89. :label="item.label"
  90. :value="item.value"
  91. >
  92. </el-option>
  93. </el-select>
  94. </div>
  95. </div>
  96. <div class="ProjectManagementQuery">
  97. <el-input v-model="input" placeholder="请输入项目名称/编号"></el-input>
  98. <el-button type="primary" class="btn" size="mini" @click="getData"
  99. >查询</el-button
  100. >
  101. </div>
  102. </div>
  103. <!-- 搜索框结束 -->
  104. <!-- 表格开始 -->
  105. <div>
  106. <el-table
  107. ref="multipleTable"
  108. :data="tableData"
  109. tooltip-effect="dark"
  110. stripe
  111. class="fontSize"
  112. :header-cell-style="{ background: '#f2f2f2', color: '#000' }"
  113. @selection-change="handleSelectionChange"
  114. >
  115. <!-- selection-change批量选择功能后续可能用到 -->
  116. <!--
  117. <el-table-column
  118. type="selection"
  119. width="25"
  120. >
  121. </el-table-column> -->
  122. <el-table-column
  123. prop="ProjectNo"
  124. label="项目编号"
  125. align="center"
  126. min-width="9%"
  127. >
  128. </el-table-column>
  129. <el-table-column
  130. prop="title"
  131. label="项目名称"
  132. align="center"
  133. min-width="10%"
  134. >
  135. </el-table-column>
  136. <el-table-column
  137. prop="pro_leader"
  138. align="center"
  139. label="项目负责人"
  140. min-width="9%"
  141. >
  142. </el-table-column>
  143. <el-table-column
  144. prop="name"
  145. align="center"
  146. label="所在部门"
  147. min-width="10%"
  148. >
  149. </el-table-column>
  150. <el-table-column
  151. prop="sort"
  152. align="center"
  153. label="分类"
  154. min-width="10%"
  155. >
  156. </el-table-column>
  157. <el-table-column
  158. prop="fund"
  159. label="预算(万)"
  160. align="center"
  161. min-width="8%"
  162. >
  163. <template #default="scope">
  164. <div>
  165. {{ scope.row.fund / 10000 }}
  166. </div>
  167. </template>
  168. </el-table-column>
  169. <el-table-column
  170. prop="createTime"
  171. align="center"
  172. label="创建时间"
  173. min-width="9%"
  174. >
  175. <template #default="scope">
  176. <div>
  177. {{ scope.row.createTime.split(" ")[0] }}<br />{{
  178. scope.row.createTime.split(" ")[1]
  179. }}
  180. </div>
  181. </template>
  182. </el-table-column>
  183. <el-table-column
  184. prop="phone"
  185. align="center"
  186. label="联系电话"
  187. min-width="10%"
  188. >
  189. <template #default="scope">
  190. <div>
  191. {{
  192. scope.row.phone != null || scope.row.phone == ""
  193. ? scope.row.phone
  194. : "-"
  195. }}
  196. </div>
  197. </template>
  198. </el-table-column>
  199. <el-table-column
  200. prop="state"
  201. label="状态"
  202. align="center"
  203. min-width="6%"
  204. >
  205. <template #default="scope">
  206. <div>
  207. <!-- {{scope.row.name + (scope.row.status==0?"":"(已屏蔽)")}} -->
  208. <!-- {{ (scope.row.isupload==0?"未审核": scope.row.data==1?"正在审核":"已审核") }} -->
  209. <span v-if="scope.row.isupload == 0">未审核</span>
  210. <span v-if="scope.row.isupload == 1">审核中</span>
  211. <span v-if="scope.row.isupload == 2">进行中</span>
  212. <span v-if="scope.row.isupload == 3">待结项</span>
  213. <span v-if="scope.row.isupload == 4">已结项</span>
  214. </div>
  215. </template>
  216. </el-table-column>
  217. <el-table-column
  218. prop="operation"
  219. width="360"
  220. align="center"
  221. label="操作"
  222. >
  223. <template #default="scope">
  224. <div class="operations">
  225. <!-- {{ scope.row.isupload }} -->
  226. <el-button
  227. type="primary"
  228. size="mini"
  229. @click="lookDetail(scope.row.courseId, scope.row.typeid)"
  230. >查看详情</el-button
  231. >
  232. <el-button
  233. type="primary"
  234. v-if="scope.row.isupload == 0 && $store.state.userInfo.type!=0"
  235. @click="audit(scope.row, 0)"
  236. >提交</el-button
  237. >
  238. <!--0申请人审核 -->
  239. <el-button
  240. type="primary"
  241. v-if="scope.row.isupload == 1&& $store.state.userInfo.type!=0"
  242. class="disa"
  243. >已提交</el-button
  244. >
  245. <el-button
  246. type="primary"
  247. v-if="scope.row.isupload == 2&& $store.state.userInfo.type!=0"
  248. class="disa"
  249. size="mini"
  250. >已审核</el-button
  251. >
  252. <el-button
  253. type="primary"
  254. v-if="scope.row.isupload == 3&& $store.state.userInfo.type!=0"
  255. class="disa"
  256. size="mini"
  257. >待结项</el-button
  258. >
  259. <el-button
  260. type="primary"
  261. v-if="scope.row.isupload == 4&& $store.state.userInfo.type!=0"
  262. class="disa"
  263. size="mini"
  264. >已结项</el-button
  265. >
  266. <el-button
  267. v-if="scope.row.isupload == 0 && $store.state.userInfo.type==0"
  268. type="primary"
  269. class="disa"
  270. size="mini"
  271. >审核</el-button
  272. >
  273. <!--1管理员审核 -->
  274. <el-button
  275. v-if="scope.row.isupload == 1 && $store.state.userInfo.type==0"
  276. type="primary"
  277. size="mini"
  278. @click="audit(scope.row, 1)"
  279. >审核</el-button
  280. >
  281. <el-button
  282. v-if="scope.row.isupload == 2 && $store.state.userInfo.type==0"
  283. type="primary"
  284. class="disa"
  285. size="mini"
  286. >已审核</el-button
  287. >
  288. <el-button
  289. v-if="scope.row.isupload == 3&& $store.state.userInfo.type==0"
  290. type="primary"
  291. class="disa"
  292. size="mini"
  293. >待结项</el-button
  294. >
  295. <el-button
  296. v-if="scope.row.isupload == 4&& $store.state.userInfo.type==0"
  297. type="primary"
  298. class="disa"
  299. size="mini"
  300. >已结项</el-button
  301. >
  302. <!-- <el-button type="primary" size="mini" @click="appTable(scope.row.typeid,scope.row.courseId)" >申请表</el-button> -->
  303. <el-button type="primary" v-if="$store.state.userInfo.type!=0" size="mini" @click="del(scope.row)">删除</el-button
  304. >
  305. </div>
  306. </template>
  307. </el-table-column>
  308. </el-table>
  309. </div>
  310. <!-- 表格结束 -->
  311. <!-- 分页 -->
  312. <el-pagination
  313. @current-change="handleCurrentChange"
  314. :current-page="table.currentPage"
  315. :page-size="table.packageSize"
  316. layout=" prev, pager, next"
  317. background
  318. class="paginations"
  319. :total="table.total"
  320. >
  321. </el-pagination>
  322. <!-- 分页结束 -->
  323. <!-- 立项审核对话框开始 -->
  324. <el-dialog
  325. title="立项审核"
  326. :visible.sync="dialogVisible"
  327. class="pageSubmitData"
  328. width="700px"
  329. :before-close="init"
  330. >
  331. <div class="diaTit">
  332. <div class="spans">项目名称:</div>
  333. <div class="spanCon">{{ auditDialog.projectName }}</div>
  334. <div class="spans">项目负责人:</div>
  335. <div class="spanCon">{{ auditDialog.person }}</div>
  336. </div>
  337. <div class="diaTit1">
  338. <div class="spans1">所在部门</div>
  339. <div class="inp">
  340. <el-input
  341. disabled
  342. v-model="auditDialog.department"
  343. placeholder="所在部门"
  344. ></el-input>
  345. </div>
  346. </div>
  347. <div class="diaTit1">
  348. <div class="spans1">预算总经费</div>
  349. <div class="inp">
  350. <el-input
  351. disabled
  352. v-model="auditDialog.fund"
  353. placeholder="预算总经费"
  354. ></el-input>
  355. </div>
  356. </div>
  357. <div class="diaTit1">
  358. <div class="spans1">联系电话</div>
  359. <div class="inp">
  360. <el-input
  361. disabled
  362. v-model="auditDialog.tel"
  363. placeholder="联系电话"
  364. ></el-input>
  365. </div>
  366. </div>
  367. <!-- <div class="diaTit1" v-if="isManager == 1">
  368. <div class="spans1" style="position: relative; top: -24px">
  369. 驳回意见
  370. </div>
  371. <div class="inp">
  372. <el-input
  373. type="textarea"
  374. :rows="5"
  375. resize="none"
  376. placeholder="请输入修改建议等..."
  377. v-model="rejectApplyText"
  378. >
  379. </el-input>
  380. </div>
  381. </div> -->
  382. <div slot="footer" class="dialog-footer">
  383. <el-button
  384. type="primary"
  385. v-if="isManager == 0"
  386. @click="ApplyPersonCommit"
  387. class="AllDialogBtn"
  388. >审核</el-button
  389. >
  390. <el-button
  391. type="primary"
  392. v-if="isManager == 1"
  393. @click="ManagerCommit"
  394. class="AllDialogBtn"
  395. >通过</el-button
  396. >
  397. <el-button
  398. type="primary"
  399. v-if="isManager == 1"
  400. @click="rejectApply"
  401. class="AllDialogBtn"
  402. >驳回</el-button
  403. >
  404. <el-button @click="init" class="AllDialogBtn">取消</el-button>
  405. </div>
  406. </el-dialog>
  407. <!-- 立项审核对话框结束 -->
  408. <!-- 删除通知开始 -->
  409. <el-dialog
  410. title="删除项目"
  411. :visible.sync="dialogVisible2"
  412. width="600px"
  413. class="pageSubmitData"
  414. >
  415. <div class="deleteContent">确定删除项目?</div>
  416. <span slot="footer" class="dialog-footer">
  417. <el-button type="primary" @click="dialogDel" class="AllDialogBtn"
  418. >确认删除</el-button
  419. >
  420. <el-button @click="init" class="AllDialogBtn">取消</el-button>
  421. </span>
  422. </el-dialog>
  423. <!-- 删除通知结束-->
  424. </div>
  425. </template>
  426. <script>
  427. // import {MakerSpaceWord,MakerStudentWord,getWord} from '@/components/tool/getWord.js'
  428. // import MakerSpaceWordPreview from '@/components/MakerSpaceWordPreview.vue';
  429. // import studentMakerProjectPreview from '@/components/studentMakerProjectPreview.vue'
  430. export default {
  431. // components:{MakerSpaceWordPreview,studentMakerProjectPreview},
  432. data() {
  433. return {
  434. iid: "",
  435. loading: false,
  436. textarea: "",
  437. input: "",
  438. dialogVisible: false, //立项审核
  439. dialogVisible1: false, //立项撤回提交
  440. dialogVisible2: false, //删除
  441. WordPreview: false, //文档预览
  442. downloadWord: false, //申请表下载
  443. PreviewTid: "", //预览分类ID
  444. PreviewData: "", //预览数据
  445. rejectApplyText: "", //驳回-修改建议
  446. isManager: 0, //0申请人审核科----- 1管理员审核框
  447. // 分页数据
  448. table: {
  449. total: 0,
  450. packageSize: 7,
  451. currentPage: 1,
  452. },
  453. tableData: [], //列表数据
  454. selectInp: {
  455. // 头部搜索框的内容
  456. filter: "",
  457. department: "",
  458. sort: "",
  459. person: "",
  460. state: "",
  461. },
  462. options: {
  463. //头部搜索框下拉框数据
  464. projectFilter: [], //项目筛选
  465. department: [], //部门
  466. sort: [], //分类
  467. person: [], //负责人
  468. state: [
  469. //状态
  470. {
  471. value: "",
  472. label: "全部",
  473. },
  474. {
  475. value: 0,
  476. label: "未审核",
  477. },
  478. {
  479. value: 1,
  480. label: "审核中",
  481. },
  482. {
  483. value: 2,
  484. label: "进行中",
  485. },
  486. {
  487. value: 3,
  488. label: "待结项",
  489. },
  490. {
  491. value: 4,
  492. label: "已结项",
  493. },
  494. ],
  495. },
  496. auditDialog: {
  497. //审核对话框数据
  498. projectName: "",
  499. person: "",
  500. department: "",
  501. fund: "",
  502. tel: "",
  503. // cid:''
  504. },
  505. };
  506. },
  507. methods: {
  508. init() {
  509. this.dialogVisible = false;
  510. this.dialogVisible1 = false;
  511. this.dialogVisible2 = false;
  512. },
  513. audit(val, num) {
  514. //审核按钮
  515. this.isManager = num;
  516. this.iid = val; //储存id给对话框
  517. // if (val.isupload==0) {
  518. this.dialogVisible = true;
  519. // console.log(val);
  520. this.auditDialog.projectName = val.title;
  521. this.auditDialog.person = val.pro_leader;
  522. this.auditDialog.department = val.name;
  523. this.auditDialog.fund = val.fund;
  524. this.auditDialog.tel = val.phone || "-";
  525. // this.auditDialog.cid=courseId
  526. // }
  527. },
  528. appTable(tid, pid) {
  529. //查看申请表
  530. // console.log();
  531. if (tid == "5e21b204-c206-11ed-a4cd-509a4c5b67cf") {
  532. // downloadFile('/file/附件2:2023年学生创客项目申报书模板(2).docx',"2023年学生创客项目申报书模板.docx",(_b)=>this.loading = _b);
  533. this.ajax
  534. .get(this.$store.state.api + "/SelectProjectWordMakerStudent", {
  535. uid: this.$store.state.userInfo.userid,
  536. pid: pid,
  537. })
  538. .then((res) => {
  539. // console.log(res['data']);
  540. let data = res["data"];
  541. this.downloadWord = true;
  542. // this.downWord(data)
  543. // this.PreviewData = [res['data'][0][0],res['data'][1]];
  544. // return console.log(this.PreviewData);
  545. // this.WordPreview = true;
  546. // this.PreviewTid = tid;
  547. })
  548. .catch((err) => {
  549. console.log(err);
  550. });
  551. } else if (tid == "5f7a66d5-c206-11ed-a4cd-509a4c5b67cf") {
  552. this.ajax
  553. .get(this.$store.state.api + "/SelectProjectWordMakerSpace", {
  554. uid: this.$store.state.userInfo.userid,
  555. pid: pid,
  556. })
  557. .then((res) => {
  558. this.PreviewData = [res["data"][0][0], res["data"][1]];
  559. this.WordPreview = true;
  560. this.PreviewTid = tid;
  561. // MakerSpaceWord(res['data'][0][0],res['data'][1]);
  562. })
  563. .catch((err) => {
  564. console.log(err);
  565. });
  566. } else {
  567. this.$message.error("错误");
  568. }
  569. },
  570. downWord(data) {
  571. if (this.PreviewTid == "5f7a66d5-c206-11ed-a4cd-509a4c5b67cf") {
  572. MakerSpaceWord(this.PreviewData[0], this.PreviewData[1]);
  573. } else {
  574. getWord(data[0][0]);
  575. }
  576. },
  577. ManagerCommit() {
  578. //立项审核对话框里面的管理员通过按钮
  579. // console.log(this.iid);
  580. let param = {
  581. uid: this.$store.state.userInfo.userid,
  582. pid: this.iid.courseId,
  583. num: 2,
  584. };
  585. this.ajax
  586. // .post(this.$store.state.api+"/ApproveProject",param)
  587. .post(this.$store.state.api + "/updateIsupload", param)
  588. .then(
  589. (res) => {
  590. // console.log(res);
  591. this.dialogVisible = false;
  592. this.$message.success("提交成功");
  593. this.getData();
  594. },
  595. (err) => {
  596. console.log(err);
  597. }
  598. );
  599. },
  600. ApplyPersonCommit() {
  601. //申请人审核按钮
  602. let param = {
  603. uid: this.$store.state.userInfo.userid,
  604. pid: this.iid.courseId,
  605. num: 1,
  606. };
  607. this.ajax
  608. .post(this.$store.state.api + "/updateIsupload", param) //updateIsupload
  609. .then((res) => {
  610. this.dialogVisible = false;
  611. this.$message.success("已提交");
  612. this.getData();
  613. });
  614. },
  615. rejectApply() {
  616. //立项审核对话框里面的驳回申请
  617. let param = {
  618. uid: this.$store.state.userInfo.userid,
  619. pid: this.iid.courseId,
  620. num: 0,
  621. };
  622. this.ajax
  623. .post(this.$store.state.api + "/updateIsupload", param)
  624. .then((res) => {
  625. this.dialogVisible = false;
  626. this.$message.success("已驳回项目申请");
  627. this.getData();
  628. });
  629. },
  630. commit2(val) {
  631. //立项撤回对话框里面的确定撤回按钮
  632. this.dialogVisible1 = false;
  633. this.status--;
  634. },
  635. handleSelectionChange(val) {
  636. //批量选择功能后续可能用到
  637. // console.log(val);
  638. this.multipleSelection = val;
  639. },
  640. lookDetail(val, tid) {
  641. //查看详情按钮
  642. // localStorage.setItem("pid",JSON.stringify(val))
  643. this.$router.push(`/projectApplicationDetailMain?tid=${tid}&pid=${val}`);
  644. },
  645. // apply(){ //项目立项申请按钮
  646. // this.$router.push('/projectApplicationApplyMain')
  647. // },
  648. getData() {
  649. //获取表格数据
  650. this.loading = true;
  651. let param = {
  652. uid: this.$store.state.userInfo.userid,
  653. pid: this.selectInp.filter, //筛选
  654. did: this.selectInp.department, //部门
  655. tid: this.selectInp.sort, //分类
  656. leader: this.selectInp.person, //负责人
  657. st: this.selectInp.state, //审核状态
  658. year: "",
  659. textInp: this.input,
  660. page: this.table.currentPage, //当前页
  661. lim: this.table.packageSize, //限制获取几条数据
  662. };
  663. // return console.log(param);
  664. // console.log(param)
  665. this.ajax.get(this.$store.state.api + "/SelectAllProject", param).then(
  666. (res) => {
  667. let data = res.data;
  668. console.log(data);
  669. if (data[0].length == 0 && data[5][0]["total"] != 0) {
  670. this.table.currentPage = 1;
  671. return this.getData();
  672. }
  673. let a = this.options;
  674. this.tableData = data[0];
  675. a.projectFilter = data[1];
  676. a.department = data[2];
  677. a.sort = data[3];
  678. a.person = data[4];
  679. this.table.total = data[5][0].total;
  680. // this.tableData.forEach(item=>{
  681. // if(item['time']!=null&&item['time']!=''){
  682. // item['time']=JSON.parse(item['time'])
  683. // }else{
  684. // item['time'] = []
  685. // }
  686. // })
  687. this.loading = false;
  688. // console.log(this.tableData)
  689. },
  690. (err) => {
  691. console.log(err);
  692. }
  693. );
  694. },
  695. del(val) {
  696. //表格删除按钮,点击显示删除对话框
  697. // console.log(val);
  698. this.dialogVisible2 = true;
  699. this.iid = val; //将要删除的id进行存储供删除对话框使用
  700. },
  701. dialogDel() {
  702. //确定删除这个项目
  703. // console.log(this.iid)
  704. if (this.iid.userid == this.$store.state.userInfo.userid) {
  705. let param = {
  706. uid: this.$store.state.userInfo.userid,
  707. pid: this.iid.courseId,
  708. };
  709. this.ajax.post(this.$store.state.api + "/DeleteProject", param).then(
  710. (res) => {
  711. // console.log(res);
  712. if (res.data) {
  713. this.$message.success("删除成功");
  714. this.getData();
  715. this.dialogVisible2 = false;
  716. return;
  717. } else {
  718. this.$message.error("删除失败");
  719. }
  720. },
  721. (err) => {
  722. console.log(err);
  723. }
  724. );
  725. }
  726. },
  727. handleCurrentChange(val) {
  728. //当页数发生改变的时候调用获取列表数据请求
  729. // console.log(`当前页: ${val}`);
  730. this.table.currentPage = val;
  731. this.getData();
  732. },
  733. // getUser() {
  734. // var request = new XMLHttpRequest();
  735. // request.open("get", "http://10.16.30.130/sso/api", true);
  736. // request.setRequestHeader(
  737. // "Content-Type",
  738. // "application/x-www-form-urlencoded"
  739. // );
  740. // request.send("");
  741. // console.log(request);
  742. // },
  743. },
  744. watch: {
  745. //监视选择框的变化,实施刷新表格数据
  746. // options:{
  747. // handler(){
  748. // immediate:true
  749. // deep:true
  750. // this.getData()
  751. // }
  752. // }
  753. },
  754. mounted() {
  755. //跳转到此页面立刻获取数据
  756. this.getData(); //获取表格数据
  757. // this.getUser();
  758. console.log(this.$store.state.userInfo.type);
  759. },
  760. };
  761. </script>
  762. <style lang="less" scoped>
  763. .projectApplication {
  764. // .el-table::before{
  765. // height: 0;
  766. // }
  767. }
  768. </style>