| | |
| | | > |
| | | 查看任务 |
| | | </el-button> |
| | | <el-button |
| | | slot="right" |
| | | v-permission="permission.seeCost" |
| | | class="filter-item" |
| | | size="mini" |
| | | type="primary" |
| | | icon="el-icon-view" |
| | | :disabled="crud.selections.length !== 1" |
| | | style="margin-left: 4px !important;" |
| | | @click="toSeeCost(crud.selections[0])" |
| | | > |
| | | 查看成本 |
| | | </el-button> |
| | | </crudOperation> |
| | | <!--表单组件--> |
| | | <el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="690px"> |
| | |
| | | del: ['admin', 'project:del'], |
| | | download: ['admin', 'project:download'], |
| | | admit: ['admin', 'project:admit'], |
| | | seeTask: ['admin', 'project:seeTask'] |
| | | seeTask: ['admin', 'project:seeTask'], |
| | | seeCost: ['admin', 'project:seeCost'] |
| | | }, |
| | | rules: { |
| | | name: [ |
| | |
| | | projectId: data.id |
| | | } |
| | | }) |
| | | }, |
| | | // 查看成本 |
| | | toSeeCost(data) { |
| | | // 跳转页面 |
| | | this.$router.push({ |
| | | name: 'ProjectCost', |
| | | params: { |
| | | projectId: data.id |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | |
| | | methods: { |
| | | // 钩子:在获取表格数据之前执行,false 则代表不获取数据 |
| | | [CRUD.HOOK.beforeRefresh]() { |
| | | // 判断传参是否为空 |
| | | if (this.$route.params.projectId != null && this.$route.params.projectId !== '' && this.crud.query.projectId === undefined) { |
| | | // 检索条件赋值 |
| | | this.$set(this.crud.query, 'projectId', Number(this.$route.params.projectId)) |
| | | } |
| | | // 获取用户列表 |
| | | this.getUserList() |
| | | // 获取项目列表 |