| | |
| | | <a-cascader |
| | | v-model="editForm.parentCode" |
| | | placeholder="请选择" |
| | | change-on-select |
| | | :options="newParentListOptions" |
| | | @change="positionLevel" |
| | | :disabled="pageState === 'view'" |
| | |
| | | unitName:'', |
| | | parentCode: [], |
| | | areaCode:'', |
| | | state:Number, |
| | | state:'0', |
| | | } |
| | | |
| | | private pagination:any={ |
| | | total:0, |
| | | current:1, |
| | | pageSize:5, |
| | | showSizeChanger: false, |
| | | showQuickJumper: false, |
| | | pageSize:10, |
| | | showSizeChanger: true, |
| | | showQuickJumper: true, |
| | | showTotal: (total:number) => `共有 ${this.pagination.total} 条数据`, //分页中显示总的数据 |
| | | }; |
| | | |
| | | @Watch('serch.name') |
| | |
| | | areaCode:this.serch.areaCode, |
| | | current: this.pagination.current, |
| | | page:1, |
| | | size: 20 |
| | | size: this.pagination.pageSize |
| | | }).then(res=>{ |
| | | this.dataSource =res.data.data.item |
| | | this.dataSource = res.data.data.item |
| | | this.pagination.total = res.data.data.total |
| | | }) |
| | | .catch(err=>{ |
| | | console.log(err); |
| | | }) |
| | | } |
| | | |
| | | private handlerTableChange(pagination: any, filter: any, sorter: any): void { |
| | | private handlerTableChange(pagination: any, filter: any, sorter: any): void { |
| | | console.log(pagination) |
| | | this.pagination.current = pagination.current |
| | | this.pagination.pageSize = pagination.pageSize |
| | | this.pagination.total = pagination.total |
| | | this.handleSearch() |
| | | } |
| | |
| | | parentCode: code, |
| | | parentCodeList:this.editForm.parentCode, |
| | | areaCode: this.editForm.areaCode, |
| | | state:this.editForm.state |
| | | state:parseInt(this.editForm.state) |
| | | }).then((res: any) => { |
| | | this.handleSearch() |
| | | this.visibleCreateModal = false |
| | |
| | | unitName:'', |
| | | parentCode: [], |
| | | areaCode:'', |
| | | state: Number, |
| | | state: '0', |
| | | parentCodeList:[] |
| | | } |
| | | }).catch((err)=>{ |
| | |
| | | unitName:'', |
| | | parentCode: [], |
| | | areaCode:'', |
| | | state: Number, |
| | | state: '0', |
| | | parentCodeList:[] |
| | | } |
| | | } |
| | |
| | | unitName:'', |
| | | parentCode: [], |
| | | areaCode:'', |
| | | state: Number, |
| | | state: '0', |
| | | parentCodeList:[] |
| | | } |
| | | this.visibleInvalidityModal = false; |
| | |
| | | console.log('1111',text) |
| | | console.log('2222',record) |
| | | console.log('333', index) |
| | | if (record.state==='1') { |
| | | if (record.isInvalid ===0) { |
| | | if (record.state ==='0') { |
| | | return <div> |
| | | <a onClick = { |
| | | () => this.handleUpdateModalVisible(true, record) |
| | | } > 编辑 </a> |
| | | <a-divider type='vertical' /> |
| | | <a onClick = { |
| | | () => this.handleDetailModalVisible(true, record) |
| | | } > 详情 </a> |
| | | <a-divider type = 'vertical' / > |
| | | <a v-show="record.state !=='1'" onClick={ () => this.handleAssert(record) |
| | | } >生效</a> |
| | | <a-divider type = 'vertical' /> |
| | | <a v-show="record.isInvalid !=='0'" onClick = { |
| | | () => this.handleInvalidity(record) |
| | | } >作废</a> |
| | | </div> |
| | | } else { |
| | | return <div> |
| | | <a onClick = { |
| | | () => this.handleUpdateModalVisible(true, record) |
| | | } > 编辑 </a> |
| | | <a-divider type='vertical' /> |
| | | <a onClick = { |
| | | () => this.handleDetailModalVisible(true, record) |
| | | } > 详情 </a> |
| | | <a-divider type = 'vertical' / > |
| | | <a v-show="record.state !=='1'" onClick={ () => this.handleAssert(record) |
| | | } >生效</a> |
| | | |
| | | </div> |
| | | } |
| | | } else { |
| | | if (record.isInvalid ===0) { |
| | | return <div> |
| | | <a onClick = { |
| | | () => this.handleUpdateModalVisible(true, record) |
| | | } > 编辑 </a> |
| | | <a-divider type='vertical' /> |
| | | <a onClick = { |
| | | () => this.handleDetailModalVisible(true, record) |
| | | } > 详情 </a> |
| | |
| | | </div> |
| | | } else { |
| | | return <div> |
| | | <a onClick = { |
| | | () => this.handleUpdateModalVisible(true, record) |
| | | } > 编辑 </a> |
| | | <a-divider type='vertical' /> |
| | | <a onClick = { |
| | | () => this.handleDetailModalVisible(true, record) |
| | | } > 详情 </a> |
| | | <a-divider type='vertical' /> |
| | | <a onClick = { |
| | | () => this.handleUpdateModalVisible(true, record) |
| | | } > 编辑 </a> |
| | | </div> |
| | | } |
| | | } |
| | | this.handleSearch(); |
| | | } |
| | | |