panel.vue 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739
  1. <template>
  2. <div class="w-main project-panel">
  3. <v-title>{{$L('项目面板')}}-{{$L('轻量级的团队在线协作')}}</v-title>
  4. <w-header value="project"></w-header>
  5. <div class="w-nav">
  6. <div class="nav-row">
  7. <div class="w-nav-left">
  8. <div class="page-nav-left">
  9. <span class="bold">{{projectDetail.title}}</span>
  10. <div v-if="loadIng > 0" class="page-nav-loading"><w-loading></w-loading></div>
  11. <div v-else class="page-nav-refresh"><em @click="getDetail(true)">刷新</em></div>
  12. </div>
  13. </div>
  14. <div class="w-nav-flex"></div>
  15. <div class="w-nav-right">
  16. <span class="ft hover" @click="openProjectDrawer('lists')"><i class="ft icon">&#xE89E;</i> 任务列表</span>
  17. <span class="ft hover" @click="openProjectDrawer('files')"><i class="ft icon">&#xE701;</i> 文件列表</span>
  18. <span class="ft hover" @click="openProjectDrawer('logs')"><i class="ft icon">&#xE753;</i> 项目动态</span>
  19. <span class="ft hover" @click="openProjectSettingDrawer('archived')"><i class="ft icon">&#xE7A7;</i> 设置</span>
  20. </div>
  21. </div>
  22. </div>
  23. <w-content>
  24. <draggable
  25. v-if="projectLabel.length > 0"
  26. v-model="projectLabel"
  27. class="label-box"
  28. draggable=".label-draggable"
  29. :animation="150"
  30. :disabled="projectSortDisabled"
  31. @sort="projectSortUpdate(true)">
  32. <div v-for="label in projectLabel" :key="label.id" class="label-item label-draggable">
  33. <div class="label-body">
  34. <div class="title-box">
  35. <div v-if="label.loadIng === true" class="title-loading">
  36. <w-loading></w-loading>
  37. </div>
  38. <h2>{{label.title}}</h2>
  39. <Dropdown trigger="click" @on-click="handleLabel($event, label)" transfer>
  40. <Icon type="ios-more"/>
  41. <DropdownMenu slot="list">
  42. <Dropdown-item name="refresh">{{$L('刷新列表')}}</Dropdown-item>
  43. <Dropdown-item name="rename">{{$L('重命名')}}</Dropdown-item>
  44. <Dropdown-item name="delete">{{$L('删除')}}</Dropdown-item>
  45. </DropdownMenu>
  46. </Dropdown>
  47. </div>
  48. <draggable
  49. v-model="label.taskLists"
  50. class="task-box"
  51. group="task"
  52. draggable=".task-draggable"
  53. :animation="150"
  54. :disabled="projectSortDisabled"
  55. @sort="projectSortUpdate(false)"
  56. @remove="projectSortUpdate(false)">
  57. <div v-for="task in label.taskLists" :key="task.id" class="task-item task-draggable">
  58. <div class="task-shadow" :class="[
  59. 'p'+task.level,
  60. task.complete ? 'complete' : '',
  61. task.overdue ? 'overdue' : '',
  62. task.isNewtask === true ? 'newtask' : ''
  63. ]" @click="openTaskModal(task)">
  64. <div class="task-title">{{task.title}}</div>
  65. <div class="task-more">
  66. <div v-if="task.overdue" class="task-status">已超期</div>
  67. <div v-else-if="task.complete" class="task-status">已完成</div>
  68. <div v-else class="task-status">未完成</div>
  69. <Tooltip class="task-userimg" :content="task.nickname || task.username" transfer><img :src="task.userimg"/></Tooltip>
  70. </div>
  71. </div>
  72. </div>
  73. <div slot="footer">
  74. <project-add-task :placeholder='`添加任务至"${label.title}"`' :projectid="label.projectid" :labelid="label.id" @on-add-success="addTaskSuccess($event, label)"></project-add-task>
  75. </div>
  76. </draggable>
  77. </div>
  78. </div>
  79. <div v-if="loadDetailed" slot="footer" class="label-item label-create" @click="addLabel">
  80. <div class="label-body">
  81. <div class="trigger-box ft hover"><i class="ft icon">&#xE8C8;</i>添加一个新列表</div>
  82. </div>
  83. </div>
  84. </draggable>
  85. </w-content>
  86. <Drawer v-model="projectDrawerShow" width="80%">
  87. <Tabs v-if="projectDrawerShow" v-model="projectDrawerTab">
  88. <TabPane :label="$L('任务列表')" name="lists">
  89. <project-task-lists :canload="projectDrawerShow && projectDrawerTab == 'lists'" :projectid="projectid" :labelLists="projectSimpleLabel"></project-task-lists>
  90. </TabPane>
  91. <TabPane :label="$L('文件列表')" name="files">
  92. <project-task-files :canload="projectDrawerShow && projectDrawerTab == 'files'" :projectid="projectid"></project-task-files>
  93. </TabPane>
  94. <TabPane :label="$L('项目动态')" name="logs">
  95. <project-task-logs :canload="projectDrawerShow && projectDrawerTab == 'logs'" :projectid="projectid"></project-task-logs>
  96. </TabPane>
  97. </Tabs>
  98. </Drawer>
  99. <Drawer v-model="projectSettingDrawerShow" width="75%">
  100. <Tabs v-if="projectSettingDrawerShow" v-model="projectSettingDrawerTab">
  101. <TabPane :label="$L('已归档任务')" name="archived">
  102. <project-archived :canload="projectSettingDrawerShow && projectSettingDrawerTab == 'archived'" :projectid="projectid"></project-archived>
  103. </TabPane>
  104. <TabPane :label="$L('项目统计')" name="statistics">
  105. <project-statistics :canload="projectSettingDrawerShow && projectSettingDrawerTab == 'statistics'" :projectid="projectid"></project-statistics>
  106. </TabPane>
  107. <TabPane :label="$L('成员管理')" name="member">
  108. <project-users :canload="projectSettingDrawerShow && projectSettingDrawerTab == 'member'" :projectid="projectid"></project-users>
  109. </TabPane>
  110. </Tabs>
  111. </Drawer>
  112. </div>
  113. </template>
  114. <style lang="scss">
  115. #project-panel-enter-textarea {
  116. background: transparent;
  117. background: none;
  118. outline: none;
  119. border: 0;
  120. resize: none;
  121. padding: 0;
  122. margin: 8px 0;
  123. line-height: 22px;
  124. border-radius: 0;
  125. color: rgba(0, 0, 0, 0.85);
  126. &:focus {
  127. border-color: transparent;
  128. box-shadow: none;
  129. }
  130. }
  131. </style>
  132. <style lang="scss" scoped>
  133. .project-panel {
  134. .label-box {
  135. display: flex;
  136. flex-direction: row;
  137. align-items: flex-start;
  138. justify-content: flex-start;
  139. flex-wrap: nowrap;
  140. overflow-x: auto;
  141. overflow-y: hidden;
  142. -webkit-overflow-scrolling: touch;
  143. width: 100%;
  144. height: 100%;
  145. padding: 15px;
  146. transform: translateZ(0);
  147. .label-item {
  148. flex-grow: 0;
  149. flex-shrink: 0;
  150. flex-basis: auto;
  151. height: 100%;
  152. padding-right: 15px;
  153. &.label-create {
  154. cursor: pointer;
  155. &:hover {
  156. .trigger-box {
  157. transform: translate(0, -50%) scale(1.1);
  158. }
  159. }
  160. }
  161. .label-body {
  162. width: 300px;
  163. height: 100%;
  164. border-radius: 0.15rem;
  165. background-color: #ebecf0;
  166. overflow: hidden;
  167. position: relative;
  168. display: flex;
  169. flex-direction: column;
  170. .title-box {
  171. padding: 0 12px;
  172. font-weight: bold;
  173. color: #666666;
  174. position: relative;
  175. cursor: move;
  176. display: flex;
  177. align-items: center;
  178. width: 100%;
  179. height: 42px;
  180. .title-loading {
  181. width: 16px;
  182. height: 16px;
  183. margin-right: 6px;
  184. }
  185. h2 {
  186. flex: 1;
  187. font-size: 16px;
  188. overflow: hidden;
  189. text-overflow: ellipsis;
  190. white-space: nowrap;
  191. }
  192. i {
  193. font-weight: 500;
  194. font-size: 18px;
  195. height: 100%;
  196. line-height: 42px;
  197. width: 42px;
  198. text-align: right;
  199. cursor: pointer;
  200. }
  201. }
  202. .task-box {
  203. flex: 1;
  204. width: 100%;
  205. overflow: auto;
  206. display: flex;
  207. flex-direction: column;
  208. padding: 0 12px 2px;
  209. transform: translateZ(0);
  210. .task-item {
  211. width: 100%;
  212. .task-shadow {
  213. margin: 5px 0 4px;
  214. padding: 8px;
  215. background-color: #ffffff;
  216. border-left: 2px solid #BF9F03;
  217. border-right: 2px solid #ffffff;
  218. color: #091e42;
  219. border-radius: 3px;
  220. cursor: pointer;
  221. box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  222. transition: all 0.3s;
  223. transform: scale(1);
  224. &:hover{
  225. box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.38);
  226. }
  227. &.p1 {
  228. border-left-color: #ff0000;
  229. }
  230. &.p2 {
  231. border-left-color: #BB9F35;
  232. }
  233. &.p3 {
  234. border-left-color: #449EDD;
  235. }
  236. &.p4 {
  237. border-left-color: #84A83B;
  238. }
  239. &.complete {
  240. .task-more {
  241. .task-status {
  242. color: #666666;
  243. }
  244. }
  245. }
  246. &.overdue {
  247. .task-title {
  248. font-weight: bold;
  249. }
  250. .task-more {
  251. .task-status {
  252. color: #ff0000;
  253. }
  254. }
  255. }
  256. &.newtask {
  257. transform: scale(1.5);
  258. }
  259. .task-title {
  260. font-size: 12px;
  261. color: #091e42;
  262. word-break: break-all;
  263. }
  264. .task-more {
  265. min-height: 30px;
  266. display: flex;
  267. align-items: flex-end;
  268. .task-status {
  269. color: #19be6b;
  270. font-size: 12px;
  271. flex: 1;
  272. }
  273. .task-userimg {
  274. width: 26px;
  275. height: 26px;
  276. img {
  277. object-fit: cover;
  278. width: 100%;
  279. height: 100%;
  280. border-radius: 50%;
  281. }
  282. }
  283. }
  284. }
  285. }
  286. }
  287. .trigger-box {
  288. text-align: center;
  289. font-size: 16px;
  290. color: #666;
  291. width: 100%;
  292. position: absolute;
  293. top: 50%;
  294. transform: translate(0, -50%) scale(1);
  295. transition: all 0.3s;
  296. }
  297. }
  298. }
  299. }
  300. }
  301. </style>
  302. <script>
  303. import draggable from 'vuedraggable'
  304. import WHeader from "../../components/WHeader";
  305. import WContent from "../../components/WContent";
  306. import WLoading from "../../components/WLoading";
  307. import ProjectAddTask from "../../components/project/task/add";
  308. import ProjectTaskLists from "../../components/project/task/lists";
  309. import ProjectTaskFiles from "../../components/project/task/files";
  310. import ProjectTaskLogs from "../../components/project/task/logs";
  311. import ProjectArchived from "../../components/project/archived";
  312. import ProjectUsers from "../../components/project/users";
  313. import ProjectStatistics from "../../components/project/statistics";
  314. export default {
  315. components: {
  316. ProjectStatistics,
  317. ProjectUsers,
  318. ProjectArchived,
  319. ProjectTaskLogs,
  320. ProjectTaskFiles, ProjectTaskLists, ProjectAddTask, draggable, WLoading, WContent, WHeader},
  321. data () {
  322. return {
  323. loadIng: 0,
  324. loadDetailed: false,
  325. projectid: 0,
  326. projectDetail: {},
  327. projectLabel: [],
  328. projectSimpleLabel: [],
  329. projectSortData: '',
  330. projectSortDisabled: false,
  331. projectDrawerShow: false,
  332. projectDrawerTab: 'lists',
  333. projectSettingDrawerShow: false,
  334. projectSettingDrawerTab: 'archived',
  335. }
  336. },
  337. mounted() {
  338. $A.setOnTaskInfoListener('pages/project-panel',(act, detail) => {
  339. switch (act) {
  340. case 'deleteproject': // 删除项目
  341. case 'deletelabel': // 删除分类
  342. return;
  343. case 'tasklevel': // 调整级别
  344. this.getDetail(true);
  345. return;
  346. }
  347. //
  348. this.projectLabel.forEach((label) => {
  349. label.taskLists.some((task, i) => {
  350. if (task.id == detail.id) {
  351. label.taskLists.splice(i, 1, detail);
  352. return true;
  353. }
  354. });
  355. });
  356. //
  357. switch (act) {
  358. case "delete": // 删除任务
  359. case "archived": // 归档
  360. this.projectLabel.forEach((label) => {
  361. label.taskLists.some((task, i) => {
  362. if (task.id == detail.id) {
  363. label.taskLists.splice(i, 1,);
  364. return true;
  365. }
  366. });
  367. });
  368. this.projectSortData = this.getProjectSort();
  369. break;
  370. case "unarchived": // 取消归档
  371. this.projectLabel.forEach((label) => {
  372. if (label.id == detail.labelid) {
  373. let index = label.taskLists.length;
  374. label.taskLists.some((task, i) => {
  375. if (detail.inorder > task.inorder || (detail.inorder == task.inorder && detail.id > task.id)) {
  376. index = i;
  377. return true;
  378. }
  379. });
  380. label.taskLists.splice(index, 0, detail);
  381. }
  382. });
  383. this.projectSortData = this.getProjectSort();
  384. break;
  385. }
  386. }, true);
  387. },
  388. activated() {
  389. this.projectid = this.$route.params.projectid;
  390. if (typeof this.$route.params.other === "object") {
  391. this.$set(this.projectDetail, 'title', $A.getObject(this.$route.params.other, 'title'))
  392. }
  393. },
  394. deactivated() {
  395. if ($A.getToken() === false) {
  396. this.projectid = 0;
  397. }
  398. this.projectDrawerShow = false;
  399. this.projectSettingDrawerShow = false;
  400. },
  401. watch: {
  402. projectid(val) {
  403. if ($A.runNum(val) <= 0) {
  404. this.goBack();
  405. return;
  406. }
  407. this.projectDetail = {};
  408. this.projectLabel = [];
  409. this.projectSimpleLabel = [];
  410. this.getDetail();
  411. }
  412. },
  413. methods: {
  414. getDetail(successTip) {
  415. this.loadIng++;
  416. $A.aAjax({
  417. url: 'project/detail',
  418. data: {
  419. projectid: this.projectid,
  420. },
  421. complete: () => {
  422. this.loadIng--;
  423. this.loadDetailed = true;
  424. },
  425. error: () => {
  426. this.goBack();
  427. alert(this.$L('网络繁忙,请稍后再试!'));
  428. },
  429. success: (res) => {
  430. if (res.ret === 1) {
  431. this.projectDetail = res.data.project;
  432. this.projectLabel = res.data.label;
  433. this.projectSimpleLabel = res.data.simpleLabel;
  434. this.projectSortData = this.getProjectSort();
  435. if (successTip === true) {
  436. this.$Message.success(this.$L('刷新成功!'));
  437. }
  438. } else {
  439. this.$Modal.error({title: this.$L('温馨提示'), content: res.msg});
  440. this.goBack();
  441. }
  442. }
  443. });
  444. },
  445. getProjectSort() {
  446. let sortData = "",
  447. taskData = "";
  448. this.projectLabel.forEach((label) => {
  449. taskData = "";
  450. label.taskLists.forEach((task) => {
  451. if (taskData) taskData+= "-";
  452. taskData+= task.id;
  453. });
  454. if (sortData) sortData+= ";";
  455. sortData+= label.id + ":" + taskData;
  456. });
  457. return sortData;
  458. },
  459. handleLabel(event, labelDetail) {
  460. switch (event) {
  461. case 'refresh': {
  462. this.refreshLabel(labelDetail);
  463. break;
  464. }
  465. case 'rename': {
  466. this.renameLabel(labelDetail);
  467. break;
  468. }
  469. case 'delete': {
  470. this.deleteLabel(labelDetail);
  471. break;
  472. }
  473. }
  474. },
  475. refreshLabel(item) {
  476. this.$set(item, 'loadIng', true);
  477. $A.aAjax({
  478. url: 'project/task/lists',
  479. data: {
  480. projectid: this.projectid,
  481. labelid: item.id,
  482. },
  483. complete: () => {
  484. this.$set(item, 'loadIng', false);
  485. },
  486. error: () => {
  487. window.location.reload();
  488. },
  489. success: (res) => {
  490. if (res.ret === 1) {
  491. this.$set(item, 'taskLists', res.data.lists);
  492. } else {
  493. window.location.reload();
  494. }
  495. }
  496. });
  497. },
  498. renameLabel(item) {
  499. this.renameValue = "";
  500. this.$Modal.confirm({
  501. render: (h) => {
  502. return h('div', [
  503. h('div', {
  504. style: {
  505. fontSize: '16px',
  506. fontWeight: '500',
  507. marginBottom: '20px',
  508. }
  509. }, '重命名列表'),
  510. h('Input', {
  511. props: {
  512. value: this.renameValue,
  513. autofocus: true,
  514. placeholder: '请输入新的列表名称'
  515. },
  516. on: {
  517. input: (val) => {
  518. this.renameValue = val;
  519. }
  520. }
  521. })
  522. ])
  523. },
  524. loading: true,
  525. onOk: () => {
  526. if (this.renameValue) {
  527. this.$set(item, 'loadIng', true);
  528. let title = this.renameValue;
  529. $A.aAjax({
  530. url: 'project/label/rename',
  531. data: {
  532. projectid: this.projectid,
  533. labelid: item.id,
  534. title: title,
  535. },
  536. complete: () => {
  537. this.$set(item, 'loadIng', false);
  538. },
  539. error: () => {
  540. this.$Modal.remove();
  541. alert(this.$L('网络繁忙,请稍后再试!'));
  542. },
  543. success: (res) => {
  544. this.$Modal.remove();
  545. this.$set(item, 'title', title);
  546. setTimeout(() => {
  547. if (res.ret === 1) {
  548. this.$Message.success(res.msg);
  549. } else {
  550. this.$Modal.error({title: this.$L('温馨提示'), content: res.msg});
  551. }
  552. }, 350);
  553. }
  554. });
  555. } else {
  556. this.$Modal.remove();
  557. }
  558. },
  559. });
  560. },
  561. deleteLabel(item) {
  562. let redTip = item.taskLists.length > 0 ? '<div style="color:red;font-weight:500">注:将同时删除列表下所有任务</div>' : '';
  563. this.$Modal.confirm({
  564. title: '删除列表',
  565. content: '<div>你确定要删除此列表吗?</div>' + redTip,
  566. loading: true,
  567. onOk: () => {
  568. $A.aAjax({
  569. url: 'project/label/delete',
  570. data: {
  571. projectid: this.projectid,
  572. labelid: item.id,
  573. },
  574. error: () => {
  575. this.$Modal.remove();
  576. alert(this.$L('网络繁忙,请稍后再试!'));
  577. },
  578. success: (res) => {
  579. this.$Modal.remove();
  580. this.projectLabel.some((label, index) => {
  581. if (label.id == item.id) {
  582. this.projectLabel.splice(index, 1);
  583. this.projectSortData = this.getProjectSort();
  584. return true;
  585. }
  586. });
  587. setTimeout(() => {
  588. if (res.ret === 1) {
  589. this.$Message.success(res.msg);
  590. $A.triggerTaskInfoListener('deletelabel', {labelid: item.id});
  591. } else {
  592. this.$Modal.error({title: this.$L('温馨提示'), content: res.msg });
  593. }
  594. }, 350);
  595. }
  596. });
  597. }
  598. });
  599. },
  600. addLabel() {
  601. this.labelValue = "";
  602. this.$Modal.confirm({
  603. render: (h) => {
  604. return h('div', [
  605. h('div', {
  606. style: {
  607. fontSize: '16px',
  608. fontWeight: '500',
  609. marginBottom: '20px',
  610. }
  611. }, '添加列表'),
  612. h('Input', {
  613. props: {
  614. value: this.labelValue,
  615. autofocus: true,
  616. placeholder: '请输入列表名称'
  617. },
  618. on: {
  619. input: (val) => {
  620. this.labelValue = val;
  621. }
  622. }
  623. })
  624. ])
  625. },
  626. loading: true,
  627. onOk: () => {
  628. if (this.labelValue) {
  629. $A.aAjax({
  630. url: 'project/label/add',
  631. data: {
  632. projectid: this.projectid,
  633. title: this.labelValue
  634. },
  635. error: () => {
  636. this.$Modal.remove();
  637. alert(this.$L('网络繁忙,请稍后再试!'));
  638. },
  639. success: (res) => {
  640. this.$Modal.remove();
  641. this.projectLabel.push(res.data);
  642. this.projectSortData = this.getProjectSort();
  643. setTimeout(() => {
  644. if (res.ret === 1) {
  645. this.$Message.success(res.msg);
  646. } else {
  647. this.$Modal.error({title: this.$L('温馨提示'), content: res.msg});
  648. }
  649. }, 350);
  650. }
  651. });
  652. } else {
  653. this.$Modal.remove();
  654. }
  655. },
  656. });
  657. },
  658. addTaskSuccess(taskDetail, label) {
  659. if (label.taskLists instanceof Array) {
  660. taskDetail.isNewtask = true;
  661. label.taskLists.unshift(taskDetail);
  662. this.$nextTick(() => {
  663. this.$set(taskDetail, 'isNewtask', false);
  664. });
  665. } else {
  666. this.refreshLabel(label);
  667. }
  668. },
  669. openProjectDrawer(tab) {
  670. this.projectDrawerTab = tab;
  671. this.projectDrawerShow = true;
  672. },
  673. openProjectSettingDrawer(tab) {
  674. this.projectSettingDrawerTab = tab;
  675. this.projectSettingDrawerShow = true;
  676. },
  677. projectSortUpdate(isLabel) {
  678. let oldSort = this.projectSortData;
  679. let newSort = this.getProjectSort();
  680. if (oldSort == newSort) {
  681. return;
  682. }
  683. this.projectSortData = newSort;
  684. this.projectSortDisabled = true;
  685. this.loadIng++;
  686. $A.aAjax({
  687. url: 'project/sort',
  688. data: {
  689. projectid: this.projectid,
  690. oldsort: oldSort,
  691. newsort: newSort,
  692. label: isLabel === true ? 1 : 0
  693. },
  694. complete: () => {
  695. this.projectSortDisabled = false;
  696. this.loadIng--;
  697. },
  698. error: () => {
  699. this.getDetail();
  700. alert(this.$L('网络繁忙,请稍后再试!'));
  701. },
  702. success: (res) => {
  703. if (res.ret === 1) {
  704. this.$Message.success(res.msg);
  705. } else {
  706. this.getDetail();
  707. this.$Modal.error({title: this.$L('温馨提示'), content: res.msg});
  708. }
  709. }
  710. });
  711. },
  712. openTaskModal(taskDetail) {
  713. this.taskDetail(taskDetail);
  714. },
  715. },
  716. }
  717. </script>