[update 标准主计划] 跳转标准详情
This commit is contained in:
@@ -50,6 +50,14 @@
|
|||||||
@change="handleTableChange"
|
@change="handleTableChange"
|
||||||
@operationClick="operationClick"
|
@operationClick="operationClick"
|
||||||
>
|
>
|
||||||
|
<!--跳转详情-->
|
||||||
|
<template v-slot:toDetail="{text, record}">
|
||||||
|
<a-tooltip overlay-class-name="tooltip-style">
|
||||||
|
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||||
|
<div class="table-text can-click-table-text" v-if="text || text === 0" @click="toStandardDetail(record)">{{ text }}</div>
|
||||||
|
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||||
|
</a-tooltip>
|
||||||
|
</template>
|
||||||
</j-table>
|
</j-table>
|
||||||
<!-- 新增编辑弹框 -->
|
<!-- 新增编辑弹框 -->
|
||||||
<standard-master-plan-modal ref="modalForm" @ok="modalFormOk"/>
|
<standard-master-plan-modal ref="modalForm" @ok="modalFormOk"/>
|
||||||
@@ -84,14 +92,14 @@ export default {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'standardNumber',
|
dataIndex: 'standardNumber',
|
||||||
width: 200,
|
width: 200,
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'toDetail' }
|
||||||
},
|
},
|
||||||
{ // 标准名称
|
{ // 标准名称
|
||||||
title: this.$t('standardRegulationLibrary.standardMasterPlan.standardName'),
|
title: this.$t('standardRegulationLibrary.standardMasterPlan.standardName'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'standardName',
|
dataIndex: 'standardName',
|
||||||
width: 200,
|
width: 200,
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'toDetail' }
|
||||||
},
|
},
|
||||||
{ // 标准状态
|
{ // 标准状态
|
||||||
title: this.$t('standardRegulationLibrary.standardMasterPlan.standardStatus'),
|
title: this.$t('standardRegulationLibrary.standardMasterPlan.standardStatus'),
|
||||||
@@ -135,6 +143,16 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 跳转详情
|
||||||
|
toStandardDetail (record) {
|
||||||
|
const { standardId } = record
|
||||||
|
this.$openPageNewSheet({
|
||||||
|
path: '/standardRegulationLibrary/foreignStandardDetailPage',
|
||||||
|
query: {
|
||||||
|
id: standardId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
handleShow (record) {
|
handleShow (record) {
|
||||||
this.$refs.modalForm.view(record)
|
this.$refs.modalForm.view(record)
|
||||||
this.$refs.modalForm.title = this.$t('view')
|
this.$refs.modalForm.title = this.$t('view')
|
||||||
|
|||||||
+9
-7
@@ -215,7 +215,7 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item :label="$t('standardRegulationLibrary.standardMasterPlan.deliverables')">
|
<a-form-item :label="$t('standardRegulationLibrary.standardMasterPlan.deliverables')">
|
||||||
<template v-if="data[2] && Array.isArray(data[2].processAllList)">
|
<template v-if="data[2] && Array.isArray(data[2].processAllList)">
|
||||||
<a v-for="item in data[2].processAllList" :key="item.id" @click="toProcessDetail(item)">{{item.prcNum}}</a>
|
<a style="display: block" v-for="item in data[2].processAllList" :key="item.id" @click="toProcessDetail(item)">{{item.prcNum}}</a>
|
||||||
</template>
|
</template>
|
||||||
<a-input v-else :placeholder="$t('pleaseEnter')+$t('standardRegulationLibrary.standardMasterPlan.deliverables')"
|
<a-input v-else :placeholder="$t('pleaseEnter')+$t('standardRegulationLibrary.standardMasterPlan.deliverables')"
|
||||||
:maxLength="50" disabled
|
:maxLength="50" disabled
|
||||||
@@ -278,8 +278,10 @@
|
|||||||
<!-- 交付物 -->
|
<!-- 交付物 -->
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item :label="$t('standardRegulationLibrary.standardMasterPlan.deliverables')">
|
<a-form-item :label="$t('standardRegulationLibrary.standardMasterPlan.deliverables')">
|
||||||
<a v-if="data[3].deliverableFileId" @click="previewStandardResolutionSheet(data[3].deliverableFileId)">解读表</a>
|
<a v-if="data[3].deliverableFileId" @click="previewStandardResolutionSheet(data[3].deliverableFileId)">
|
||||||
<a-input v-else :placeholder="$t('pleaseEnter')+$t('standardRegulationLibrary.standardMasterPlan.deliverables')"
|
{{ $t('standardRegulationLibrary.standardMasterPlan.deliverables') }}
|
||||||
|
</a>
|
||||||
|
<a-input v-else :placeholder="$t('pleaseEnter')+$t('standardRegulationLibrary.standardMasterPlan.interpretationTable')"
|
||||||
:maxLength="50" disabled
|
:maxLength="50" disabled
|
||||||
v-decorator="['data[3].deliverableFileId']" />
|
v-decorator="['data[3].deliverableFileId']" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -400,7 +402,7 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- 交付物 -->
|
<!-- 交付物 -->
|
||||||
<a-col :span="12" v-show="isAdd">
|
<a-col :span="12" v-show="!isShow">
|
||||||
<a-form-item :label="$t('standardRegulationLibrary.standardMasterPlan.deliverables')">
|
<a-form-item :label="$t('standardRegulationLibrary.standardMasterPlan.deliverables')">
|
||||||
<a-input :placeholder="$t('pleaseEnter')+$t('standardRegulationLibrary.standardMasterPlan.deliverables')"
|
<a-input :placeholder="$t('pleaseEnter')+$t('standardRegulationLibrary.standardMasterPlan.deliverables')"
|
||||||
:maxLength="50" disabled
|
:maxLength="50" disabled
|
||||||
@@ -409,7 +411,7 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- 查看市场清单 -->
|
<!-- 查看市场清单 -->
|
||||||
<a-col :span="12" :offset="12" v-show="!isAdd">
|
<a-col :span="12" :offset="12" v-show="isShow">
|
||||||
<a-form-item :wrapper-col="{span:22}">
|
<a-form-item :wrapper-col="{span:22}">
|
||||||
<div style="text-align: right">
|
<div style="text-align: right">
|
||||||
<a-button type="primary" @click="handleViewMarketList"
|
<a-button type="primary" @click="handleViewMarketList"
|
||||||
@@ -474,7 +476,7 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- 交付物 -->
|
<!-- 交付物 -->
|
||||||
<a-col :span="12" v-show="isAdd">
|
<a-col :span="12" v-show="!isShow">
|
||||||
<a-form-item :label="$t('standardRegulationLibrary.standardMasterPlan.deliverables')">
|
<a-form-item :label="$t('standardRegulationLibrary.standardMasterPlan.deliverables')">
|
||||||
<a-input :placeholder="$t('pleaseEnter')+$t('standardRegulationLibrary.standardMasterPlan.deliverables')"
|
<a-input :placeholder="$t('pleaseEnter')+$t('standardRegulationLibrary.standardMasterPlan.deliverables')"
|
||||||
:maxLength="50" disabled
|
:maxLength="50" disabled
|
||||||
@@ -483,7 +485,7 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- 查看排查结果 -->
|
<!-- 查看排查结果 -->
|
||||||
<a-col :span="12" :offset="12" v-show="!isAdd">
|
<a-col :span="12" :offset="12" v-show="isShow">
|
||||||
<a-form-item :wrapper-col="{span:22}">
|
<a-form-item :wrapper-col="{span:22}">
|
||||||
<div style="text-align: right">
|
<div style="text-align: right">
|
||||||
<a-button type="primary" @click="handleViewTroubleshootingResults"
|
<a-button type="primary" @click="handleViewTroubleshootingResults"
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
<template v-slot:action="{text, record}">
|
<template v-slot:action="{text, record}">
|
||||||
<a @click="handleEdit(record)" v-has="'sys:groupManage:edit'">{{ $t('edit') }}</a>
|
<a @click="handleEdit(record)" v-has="'sys:groupManage:edit'">{{ $t('edit') }}</a>
|
||||||
<a-divider type="vertical" v-if="ju" />
|
<a-divider type="vertical" v-if="isHasPermission('sys:groupManage:edit') && isHasPermission('sys:groupManage:delete')" />
|
||||||
<a @click="handleDelete(record.id)" class="table-ope-btn" v-has="'sys:groupManage:delete'">{{ $t('delete') }}</a>
|
<a @click="handleDelete(record.id)" class="table-ope-btn" v-has="'sys:groupManage:delete'">{{ $t('delete') }}</a>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -72,6 +72,7 @@
|
|||||||
import JTable from '@/components/jero/JTable'
|
import JTable from '@/components/jero/JTable'
|
||||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||||
import GroupManageModal from '@views/system/groupManage/modules/GroupManageModal'
|
import GroupManageModal from '@views/system/groupManage/modules/GroupManageModal'
|
||||||
|
import { isHasPermission } from '@/utils/hasPermission'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'GroupManageList',
|
name: 'GroupManageList',
|
||||||
@@ -128,7 +129,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
isHasPermission
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user