Commit 4933942f authored by wangxl's avatar wangxl

333

parent a2487fe5
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
</a-table> </a-table>
<a-pagination v-if="pagination.total > 0" :total="pagination.total" show-size-changer show-quick-jumper v-model="pagination.pageIndex" :page-size="pagination.pageSize" :page-size-options="pagination.pageSizeOptions" @showSizeChange="showSizeChange" @change="change" :showTotal="() => `共 ${pagination.total} 条`" /> <a-pagination v-if="pagination.total > 0" :total="pagination.total" show-size-changer show-quick-jumper v-model="pagination.pageIndex" :page-size="pagination.pageSize" :page-size-options="pagination.pageSizeOptions" @showSizeChange="showSizeChange" @change="change" :showTotal="() => `共 ${pagination.total} 条`" />
</div> </div>
<a-modal v-model="visibleEdit" v-if="visibleEdit" title="项目创建/修改" width="80%" :footer="null" :dialog-style="{ top: '8%' }" destroyOnClose> <a-modal v-model="visibleEdit" v-if="visibleEdit" title="项目创建/修改" width="94%" :footer="null" :dialog-style="{ top: '8%' }" destroyOnClose :maskClosable="false">
<project-create v-model="id" @closeWindow="closeWindow"></project-create> <project-create v-model="id" @closeWindow="closeWindow"></project-create>
</a-modal> </a-modal>
<a-modal v-model="visibleView" v-if="visibleView" title="项目详情" width="80%" :dialog-style="{ top: '8%' }" :footer="null" destroyOnClose> <a-modal v-model="visibleView" v-if="visibleView" title="项目详情" width="80%" :dialog-style="{ top: '8%' }" :footer="null" destroyOnClose>
......
...@@ -87,8 +87,6 @@ ...@@ -87,8 +87,6 @@
</a-col> </a-col>
<a-col :span="4"> <a-col :span="4">
<div class="special-middle"> <div class="special-middle">
<a-button icon="arrow-up" type="primary" shape="circle" size="small" :disabled="index == 0" @click="moveUp(index)"></a-button>
<a-button icon="arrow-down" type="primary" shape="circle" size="small" style="margin-left:3px" :disabled="cooperativeUnits.length == index + 1" @click="moveDown(index)"></a-button>
<a-popconfirm title="确定要删除吗?" ok-text="确定" cancel-text="取消" @confirm="removeArray(item)"> <a-popconfirm title="确定要删除吗?" ok-text="确定" cancel-text="取消" @confirm="removeArray(item)">
<a-button type="link" size="small">[删除]</a-button> <a-button type="link" size="small">[删除]</a-button>
</a-popconfirm> </a-popconfirm>
...@@ -134,21 +132,6 @@ export default { ...@@ -134,21 +132,6 @@ export default {
}, },
methods: { methods: {
moveToTop (item) {//成员置顶
let index = this.cooperativeUnits.indexOf(item)
if (index !== -1) {
this.cooperativeUnits.splice(index, 1)
this.cooperativeUnits.unshift({ ...item })
}
},
moveUp (index) {
let arr = this.cooperativeUnits
arr.splice(index - 1, 1, ...arr.splice(index, 1, arr[index - 1]))
},
moveDown (index) {
let arr = this.cooperativeUnits
arr.splice(index, 1, ...arr.splice(index + 1, 1, arr[index]))
},
addArray () {//添加成员 addArray () {//添加成员
this.cooperativeUnits.push({ ...Model }) this.cooperativeUnits.push({ ...Model })
}, },
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<a-row> <a-row>
<a-col :span="24"> <a-col :span="24">
<div class="tb-title"> <div class="tb-title">
<span>项目组成员 <strong>(注:主要成员(不含申请者))</strong></span> <span>项目组成员 <strong>(注:项目负责人填写到第一行)</strong></span>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
...@@ -130,8 +130,8 @@ ...@@ -130,8 +130,8 @@
<a-col :span="3"> <a-col :span="3">
<div class="special-middle"> <div class="special-middle">
<div> <div>
<a-button icon="arrow-up" type="primary" shape="circle" :disabled="index == 0" @click="memberUp(index)"></a-button> <a-button icon="arrow-up" type="primary" shape="circle" size="small" :disabled="index == 0" @click="memberUp(index)"></a-button>
<a-button icon="arrow-down" type="primary" shape="circle" style="margin-left:5px;" :disabled="members.length == index + 1" @click="menberDown(index)"></a-button> <a-button icon="arrow-down" type="primary" shape="circle" size="small" style="margin-left:5px;" :disabled="members.length == index + 1" @click="menberDown(index)"></a-button>
<a-popconfirm title="确定要删除吗?" ok-text="确定" cancel-text="取消" @confirm="removeMembers(member)"> <a-popconfirm title="确定要删除吗?" ok-text="确定" cancel-text="取消" @confirm="removeMembers(member)">
<a-button type="link" size="small">删除</a-button> <a-button type="link" size="small">删除</a-button>
</a-popconfirm> </a-popconfirm>
...@@ -225,3 +225,50 @@ export default { ...@@ -225,3 +225,50 @@ export default {
} }
} }
</script> </script>
<style scoped lang="less">
input[type="text"],
input[type="password"],
input[type="number"],
textarea {
box-sizing: border-box;
margin: 0;
padding: 0;
width: 100%;
height: 24px;
padding: 2px 6px;
color: rgba(0, 0, 0, 0.65);
font-size: 12px;
border-radius: 2px;
}
::v-deep .ant-select {
font-size: 12px;
}
::v-deep .ant-select .ant-select-selection--single {
height: 24px !important;
}
::v-deep .ant-select .ant-select-selection__rendered {
line-height: 22px !important;
margin-right: 6px !important;
margin-left: 6px !important;
}
::v-deep .ant-select .ant-select-selection__rendered .ant-form-item-control {
line-height: 26px !important;
}
::v-deep .ant-col .ant-form-item .ant-col {
padding: 0px;
}
::v-deep .from-table .item_inner .ant-col {
text-align: left !important;
}
::v-deep .special-pum-select .ant-form-item-control-wrapper{
display: flex;
justify-content: center;
align-content: center;
}
::v-deep .special-pum-select .ant-form-item-children{
display: block;
}
::v-deep .special-pum-select .ant-form-item-control {
line-height: 26px;
}
</style>
<template> <template>
<div class="app-content" style="height: 70vh;overflow: auto;"> <div class="app-content" style="height: 76vh;overflow: auto;">
<a-spin :spinning="loading" style="width: 100%;height: 100%;"> <a-spin :spinning="loading" style="width: 100%;height: 100%;">
<div class="page-content"> <div class="page-content">
<project-edit v-model="value" @onSave="onSave" @load="onLoad" ref="projCreate" v-if="projType"></project-edit> <project-edit v-model="value" @onSave="onSave" @load="onLoad" ref="projCreate" v-if="projType"></project-edit>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment