待办中心 项目参数任务对接后端
This commit is contained in:
@@ -1324,4 +1324,7 @@ module.exports = {
|
|||||||
filledBy:'Filled by',
|
filledBy:'Filled by',
|
||||||
parameterToBeInitiated:'Parameter to be initiated',
|
parameterToBeInitiated:'Parameter to be initiated',
|
||||||
listTaskConfirmation:'List task confirmation',
|
listTaskConfirmation:'List task confirmation',
|
||||||
|
completednum: 'Quantity to be filled',
|
||||||
|
filledBynum:'Filled by',
|
||||||
|
parameterToBeInitiatednum:'Parameter to be initiated',
|
||||||
}
|
}
|
||||||
@@ -1425,4 +1425,7 @@ module.exports = {
|
|||||||
filledBy:'待分配填写人',
|
filledBy:'待分配填写人',
|
||||||
parameterToBeInitiated:'参数待发起',
|
parameterToBeInitiated:'参数待发起',
|
||||||
listTaskConfirmation:'清单任务确认',
|
listTaskConfirmation:'清单任务确认',
|
||||||
|
completednum: '待填写数量',
|
||||||
|
filledBynum:'待分配填写人数量',
|
||||||
|
parameterToBeInitiatednum:'参数待发起数量',
|
||||||
}
|
}
|
||||||
@@ -8,8 +8,8 @@
|
|||||||
<div class="title-text" :title="$t('RelatedItems')">
|
<div class="title-text" :title="$t('RelatedItems')">
|
||||||
<span>{{$t('RelatedItems')}}</span>
|
<span>{{$t('RelatedItems')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('RelatedItems')"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('RelatedItems')"
|
||||||
v-model="queryParam.title"></j-input>
|
v-model.trim="queryParam.projectName"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
@@ -17,8 +17,8 @@
|
|||||||
<div class="title-text" :title="$t('ListTitle')">
|
<div class="title-text" :title="$t('ListTitle')">
|
||||||
<span>{{$t('ListTitle')}}</span>
|
<span>{{$t('ListTitle')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('ListTitle')"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('ListTitle')"
|
||||||
v-model="queryParam.ListTitle"></j-input>
|
v-model.trim="queryParam.title"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||||
@@ -42,14 +42,26 @@
|
|||||||
:columns="columns"
|
:columns="columns"
|
||||||
>
|
>
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<span slot="operation" slot-scope="text,record">
|
|
||||||
|
<span slot="projectVersion" slot-scope="text,record">
|
||||||
|
<span class="text-operation">{{text ? text:'--'}}</span>
|
||||||
|
</span>
|
||||||
|
<span slot="waitFillNumoperation" slot-scope="text,record">
|
||||||
<a class="text-operation"
|
<a class="text-operation"
|
||||||
@click="ProcessingClick(record)">{{$t('Processing')}}</a>
|
@click="waitFillClick(record)">{{text ? text:'--'}}</a>
|
||||||
|
</span>
|
||||||
|
<span slot="waitSdtNumoperation" slot-scope="text,record">
|
||||||
|
<a class="text-operation"
|
||||||
|
@click="waitSdtClick(record)">{{text ? text:'--'}}</a>
|
||||||
|
</span>
|
||||||
|
<span slot="waitCollectNumoperation" slot-scope="text,record">
|
||||||
|
<a class="text-operation"
|
||||||
|
@click="waitCollectClick(record)">{{text ? text:'--'}}</a>
|
||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
<div class="page" v-if="dataSource && dataSource.length > 0">
|
<div class="page" v-if="dataSource.length > 0">
|
||||||
<a-pagination
|
<a-pagination
|
||||||
:show-total="total => $t('total')+` ${total} `+$t('strip')"
|
:show-total="total => $t('total')+` ${total} ` +$t('strip')"
|
||||||
show-quick-jumper
|
show-quick-jumper
|
||||||
show-size-changer
|
show-size-changer
|
||||||
:page-size.sync="pageSize"
|
:page-size.sync="pageSize"
|
||||||
@@ -87,51 +99,55 @@
|
|||||||
{
|
{
|
||||||
title: this.$t('RelatedItems'),
|
title: this.$t('RelatedItems'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'RelatedItems',
|
dataIndex: 'projectName',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170
|
width: 170
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('ListTitle'),
|
title: this.$t('ListTitle'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'ListTitle',
|
dataIndex: 'title',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170
|
width: 170
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('relatedVersion'),
|
title: this.$t('relatedVersion'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'relatedVersion',
|
dataIndex: 'projectVersion',
|
||||||
ellipsis: true,
|
|
||||||
width: 170
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('completed'),
|
|
||||||
align: 'center',
|
|
||||||
dataIndex: 'completed',
|
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170,
|
width: 170,
|
||||||
scopedSlots: { customRender: 'operation' }
|
scopedSlots: { customRender: 'projectVersion' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('filledBy'),
|
title: this.$t('completednum'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'filledBy',
|
dataIndex: 'waitFillNum',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170,
|
width: 170,
|
||||||
scopedSlots: { customRender: 'operation' }
|
scopedSlots: { customRender: 'waitFillNumoperation' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('parameterToBeInitiated'),
|
title: this.$t('filledBynum'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'parameterToBeInitiated',
|
dataIndex: 'waitSdtNum',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170,
|
width: 170,
|
||||||
scopedSlots: { customRender: 'operation' }
|
scopedSlots: { customRender: 'waitSdtNumoperation' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('parameterToBeInitiatednum'),
|
||||||
|
align: 'center',
|
||||||
|
dataIndex: 'waitCollectNum',
|
||||||
|
ellipsis: true,
|
||||||
|
width: 170,
|
||||||
|
scopedSlots: { customRender: 'waitCollectNumoperation' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
searchQuery() {
|
searchQuery() {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
@@ -146,8 +162,35 @@
|
|||||||
this.pageNo = page
|
this.pageNo = page
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
ProcessingClick() {
|
//待填写数量
|
||||||
|
waitFillClick(item) {
|
||||||
|
let _this = this
|
||||||
|
let newUrl = _this.$router.resolve({
|
||||||
|
path: '/ParameterItemCollection',
|
||||||
|
query: item
|
||||||
|
// projectName:this.$route.query.projectName
|
||||||
|
})
|
||||||
|
window.open(newUrl.href, '_blank')
|
||||||
|
},
|
||||||
|
//待分配填写人数量
|
||||||
|
waitSdtClick(item) {
|
||||||
|
let _this = this
|
||||||
|
let newUrl = _this.$router.resolve({
|
||||||
|
path: '/ParameterItemCollection',
|
||||||
|
query: item
|
||||||
|
// projectName:this.$route.query.projectName
|
||||||
|
})
|
||||||
|
window.open(newUrl.href, '_blank')
|
||||||
|
},
|
||||||
|
//参数待发起数量
|
||||||
|
waitCollectClick(item) {
|
||||||
|
let _this = this
|
||||||
|
let newUrl = _this.$router.resolve({
|
||||||
|
path: '/ParameterItemCollection',
|
||||||
|
query: item
|
||||||
|
// projectName:this.$route.query.projectName
|
||||||
|
})
|
||||||
|
window.open(newUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
SizeChange(page, pageSize) {
|
SizeChange(page, pageSize) {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
@@ -167,7 +210,7 @@
|
|||||||
...queryParam
|
...queryParam
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.list, query).then((res) => {
|
getAction('todoCenter/params/manifest/page', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if (res.result.current > 1 && res.result.records.length == 0) {
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
@@ -246,4 +289,8 @@
|
|||||||
::v-deep .ant-table-body {
|
::v-deep .ant-table-body {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
}
|
}
|
||||||
|
.page {
|
||||||
|
text-align: right;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user