工作组会议维护

This commit is contained in:
fengachen
2021-09-06 18:15:08 +08:00
parent b11a6eb824
commit 9cdf7e4407
7 changed files with 733 additions and 321 deletions
@@ -0,0 +1,154 @@
<template>
<j-modal
:title="title"
:width="width"
:visible="visible"
:confirmLoading="confirmLoading"
switchFullscreen
@ok="handleOk"
@cancel="handleCancel"
cancelText="关闭">
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row>
<a-col :xl="10" :lg="10" :md="10" :sm="24">
<a-form-item label="成员单位" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入成员单位" v-model="queryParam.chargeCompanyTemporaryName"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span class="table-page-search-submitButtons">
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
<a-button icon="reload" @click="searchReset">重置</a-button>
</span>
</a-col>
</a-row>
</a-form>
</div>
<a-table
ref="table"
size="middle"
bordered
rowKey="id"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<!-- 项目名称-->
<template slot="projectName" slot-scope="text, record">
<j-ellipsis :value="text" :length="18" class="primary-color" @click="openDetailModal(record)"></j-ellipsis>
</template>
<template slot="text" slot-scope="text">
<j-ellipsis :value="text" :length="18"></j-ellipsis>
</template>
<span slot="action" class="action-span-cell" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a>
<a @click="handleDelete(record.id)">删除</a>
</span>
</a-table>
<template slot="footer">
<a-button @click="handleCancel">关闭</a-button>
<a-button type="primary" @click="handleOk" v-preventclick>确定</a-button>
</template>
</j-modal>
</template>
<script>
import {JeroListMixin} from '@/mixins/JeroListMixin'
import {publishRemind} from '@api/incomePaymentsApi'
export default {
name: 'PublishRemindModal',
mixins: [JeroListMixin],
data() {
return {
title: '操作',
width: 800,
visible: false,
confirmLoading: false,
form: this.$form.createForm(this),
disableMixinCreated: true,
columns: [
{
title: '序号',
dataIndex: '',
key: 'rowIndex',
width: 60,
align: 'center',
customRender: function (t, r, index) {
return parseInt(index) + 1
}
},
{
title: '成员单位',
align: 'center',
width: 200,
dataIndex: 'chargeCompanyTemporaryName',
},
{
title: '企业联系人',
align: 'center',
width: 200,
dataIndex: 'contactsTemporaryNameOne',
},
],
model: {},
labelCol: {
xs: {span: 24},
sm: {span: 6}
},
wrapperCol: {
xs: {span: 24},
sm: {span: 18}
},
url: {
add: '/project/payCommonProject/add',
edit: '/project/payCommonProject/edit',
list: '/project/payWorkingGroupSubitem/list',
}
}
},
methods: {
open() {
this.visible = true
this.filters.workingGroupId = this.$route.query.workingGroupProjectId
this.loadData(1)
},
close() {
this.$emit('close')
this.visible = false
},
handleOk() {
if (this.selectionRows.length === 0) {
this.$message.warn('请至少选择一个成员单位')
return
} else {
const param = {
arr:this.selectionRows
}
publishRemind(param).then(res => {
if(res.success){
this.$message.success(res.message)
this.handleCancel()
}else {
this.$message.warn(res.message)
}
})
}
},
handleCancel() {
this.close()
}
}
}
</script>
<style scoped lang="less">
@import '~@assets/less/common.less';
</style>