UI界面变更-项目参数任务

This commit is contained in:
刘彦泽
2022-12-29 16:16:04 +08:00
parent 70ff9c8789
commit 5fd0c14c11
3 changed files with 18 additions and 8 deletions
@@ -653,7 +653,7 @@
if (res.type) { if (res.type) {
this.columns.push({ this.columns.push({
dataIndex: res.db_field_name, dataIndex: res.db_field_name,
align: 'center', align: 'left',
ellipsis: true, ellipsis: true,
sorter: res.sort, sorter: res.sort,
width: 500 width: 500
@@ -669,7 +669,7 @@
this.columns.push({ this.columns.push({
title: res.db_field_txt, title: res.db_field_txt,
dataIndex: res.db_field_name, dataIndex: res.db_field_name,
align: 'center', align: 'left',
// ellipsis: true, // ellipsis: true,
fixed: res.click5 ? 'left' : '', fixed: res.click5 ? 'left' : '',
sorter: res.sort, sorter: res.sort,
@@ -44,6 +44,7 @@
<!-- :triggerChange="false" :dictCode="'cert_category'"/>--> <!-- :triggerChange="false" :dictCode="'cert_category'"/>-->
<!-- </div>--> <!-- </div>-->
<!-- </a-col>--> <!-- </a-col>-->
<template v-if="toggleSearchStatus">
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text" :title="$t('NareaOfResponsibility')"> <div class="title-text" :title="$t('NareaOfResponsibility')">
@@ -73,6 +74,7 @@
v-model="formInline.sdt"></j-input> v-model="formInline.sdt"></j-input>
</div> </div>
</a-col> </a-col>
</template>
<!-- <a-col :md="6" :sm="8">--> <!-- <a-col :md="6" :sm="8">-->
<!-- <div class="box-title-text">--> <!-- <div class="box-title-text">-->
<!-- <div class="title-text" :title="$t('status')">--> <!-- <div class="title-text" :title="$t('status')">-->
@@ -103,6 +105,10 @@
:fieldList="fieldList"/> :fieldList="fieldList"/>
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button> <a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button> <a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
<a @click="handleToggleSearch" style="margin-left: 8px">
{{ !toggleSearchStatus ? $t('open') : $t('away') }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
</a>
</a-col> </a-col>
</span> </span>
</a-row> </a-row>
@@ -545,6 +551,7 @@
// R&H Manager manager // R&H Manager manager
// 系统管理员 admin // 系统管理员 admin
// 游客 guest // 游客 guest
toggleSearchStatus: false,
columns: [ columns: [
{ {
title: this.$t('title'), title: this.$t('title'),
@@ -719,6 +726,9 @@
}, },
methods: { methods: {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
handleToggleSearch() {
this.toggleSearchStatus = !this.toggleSearchStatus
},
handleCancelRoleSwitching() { handleCancelRoleSwitching() {
this.visibleRoleSwitching = false this.visibleRoleSwitching = false
}, },
@@ -101,21 +101,21 @@
columns: [ columns: [
{ {
title: this.$t('RelatedItems'), title: this.$t('RelatedItems'),
align: 'center', align: 'left',
dataIndex: 'projectName', dataIndex: 'projectName',
ellipsis: true, ellipsis: true,
width: 170 width: 170
}, },
{ {
title: this.$t('ListTitle'), title: this.$t('ListTitle'),
align: 'center', align: 'left',
dataIndex: 'title', dataIndex: 'title',
ellipsis: true, ellipsis: true,
width: 170 width: 170
}, },
{ {
title: this.$t('relatedVersion'), title: this.$t('relatedVersion'),
align: 'center', align: 'left',
dataIndex: 'version', dataIndex: 'version',
ellipsis: true, ellipsis: true,
width: 170, width: 170,
@@ -123,7 +123,7 @@
}, },
{ {
title: this.$t('completednum'), title: this.$t('completednum'),
align: 'center', align: 'left',
dataIndex: 'waitFillNum', dataIndex: 'waitFillNum',
ellipsis: true, ellipsis: true,
width: 170, width: 170,
@@ -131,7 +131,7 @@
}, },
{ {
title: this.$t('filledBynum'), title: this.$t('filledBynum'),
align: 'center', align: 'left',
dataIndex: 'waitSdtNum', dataIndex: 'waitSdtNum',
ellipsis: true, ellipsis: true,
width: 170, width: 170,
@@ -139,7 +139,7 @@
}, },
{ {
title: this.$t('parameterToBeInitiatednum'), title: this.$t('parameterToBeInitiatednum'),
align: 'center', align: 'left',
dataIndex: 'waitCollectNum', dataIndex: 'waitCollectNum',
ellipsis: true, ellipsis: true,
width: 170, width: 170,