123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <template>
- <a-card :bordered="false">
- <!-- 查询区域 -->
- <div class="table-page-search-wrapper">
- <a-form layout="inline">
- <a-row :gutter="24">
- <a-col :md="6" :sm="8">
- <a-form-item label="账户">
- <!--<a-input placeholder="请输入账户id" v-model="queryParam.accountId"></a-input>-->
- <j-dict-select-tag v-model="queryParam.accountId" placeholder="请选择用户名称" dictCode="ctop_user_allocation,auth_name,account_id,account_status = '0'"/>
- </a-form-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-item label="状态">
- <a-select default-value="0" v-model="queryParam.status">
- <a-select-option value="0">
- 全部
- </a-select-option>
- <a-select-option value="1">
- 审核中
- </a-select-option>
- <a-select-option value="2">
- 已通过
- </a-select-option>
- <a-select-option value="3">
- 已驳回
- </a-select-option>
- </a-select>
- </a-form-item>
- </a-col>
- <a-col :md="6" :sm="8" >
- <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
- <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
- <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
- </span>
- </a-col>
- </a-row>
- </a-form>
- </div>
- <!-- 操作按钮区域 -->
- <div class="table-operator">
- <!--<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
- </div>
- <!-- table区域-begin -->
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :columns="columns"
- :dataSource="dataSource"
- :pagination="ipagination"
- :loading="loading"
- @change="handleTableChange">
- <span slot="action" slot-scope="text, record">
- <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
- <a>删除</a>
- </a-popconfirm>
- </span>
- </a-table>
- <!-- table区域-end -->
- <!-- 表单区域 -->
- <projectTransferRecord-modal ref="modalForm" @ok="modalFormOk"></projectTransferRecord-modal>
- </a-card>
- </template>
- <script>
- import ProjectTransferRecordModal from './modules/ProjectTransferRecordModal'
- import { JeecgListMixin } from '@/mixins/JeecgListMixin'
- import {postAction} from "../../../api/manage";
- export default {
- name: "ProjectTransferRecordList",
- mixins:[JeecgListMixin],
- components: {
- ProjectTransferRecordModal
- },
- data () {
- return {
- description: '账户转项目记录管理页面',
- // 表头
- columns: [
- {
- title: '账户id',
- align:"center",
- dataIndex: 'accountId'
- },
- {
- title: '账户名称',
- align:"center",
- dataIndex: 'accountId_dictText'
- },
- {
- title: '原项目',
- align:"center",
- dataIndex: 'soucreProject_dictText'
- },
- {
- title: '目标项目',
- align:"center",
- dataIndex: 'targetProject_dictText'
- },
- {
- title: '申请人',
- align:"center",
- dataIndex: 'userId_dictText'
- },
- {
- title: '审核人',
- align:"center",
- dataIndex: 'reviewerId_dictText'
- },
- {
- title: '审核状态',
- align:"center",
- dataIndex: 'status_dictText'
- },
- {
- title: '操作',
- dataIndex: 'action',
- align:"center",
- scopedSlots: { customRender: 'action' },
- }
- ],
- url: {
- list: "/ctop/projectTransferRecord/initiatedList",
- delete: "/ctop/projectTransferRecord/delete",
- deleteBatch: "/ctop/projectTransferRecord/deleteBatch"
- },
- }
- },
- computed: {
- importExcelUrl: function(){
- return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
- }
- },
- methods: {
- handleDele(record){
- if(confirm("确认要删除此数据?")){
- postAction()
- }
- }
- }
- }
- </script>
- <style scoped>
- @import '~@assets/less/common.less'
- </style>
|