修改法规清单

This commit is contained in:
范强强
2023-03-20 16:56:46 +08:00
parent b46670349c
commit 7cf9507c2b
2 changed files with 105 additions and 2 deletions
@@ -5,12 +5,42 @@
{{title}} {{title}}
</div> </div>
</div> </div>
<div style="width: 100%">
<a-table
ref="table"
:loading="loading"
:pagination="false"
:scroll="{x: true}"
:data-source="dataSource"
:columns="columns"
>
<span slot="approvalResult" slot-scope="text,result">
{{approvalResult[text]}}
</span>
<span slot="approvalFile" slot-scope="text,result">
<span class="viewFile"
@click="viewFileClick(record.approvalFile)"
v-if="record.approvalFile">
{{$t('viewFile')}}
</span>
<span v-else>--</span>
</span>
</a-table>
</div>
<viewFileModel ref="viewFileModelRef"/>
</div> </div>
</template> </template>
<script> <script>
import moment from 'moment'
import { getAction, postAction, downloadFile } from '@/api/manage'
import viewFileModel from '@/components/viewFileModel/index'
export default { export default {
name: 'circulationHistory', name: 'circulationHistory',
components:{
viewFileModel
},
props: { props: {
// 需要参数urlFrom,获取数据去显示内容 // 需要参数urlFrom,获取数据去显示内容
url: { url: {
@@ -30,6 +60,72 @@
default: '' default: ''
} }
}, },
data() {
return {
loading: false,
dataSource: [],
columns: [
{
title: this.$t('Operator'),
dataIndex: 'assignee',
align: 'left',
width: 200
},
{
title: this.$t('Tasknode'),
dataIndex: 'name',
align: 'left',
width: 180
},
{
title: this.$t('OperationTime'),
dataIndex: 'createTime',
align: 'left',
width: 200,
customRender: function(t, r, index) {
return moment(t).format('YYYY-MM-DD HH:mm:ss')
}
},
{
title: this.$t('resultofhandling'),
dataIndex: 'approvalResult',
align: 'left',
width: 200,
scopedSlots: { customRender: 'approvalResult' }
},
{
title: this.$t('feedback'),
dataIndex: 'approvalOpinion',
align: 'left',
width: 200
},
{
title: this.$t('enclosure'),
dataIndex: 'approvalFile',
align: 'left',
width: 100,
scopedSlots: { customRender: 'approvalFile' }
}
]
}
},
mounted() {
this.getList()
},
methods: {
getList() {
let query = {
prcNum: this.$route.query.prcNum,
prcType: this.$route.query.prcType
}
getAction('/workFlow/get_list_by_instance', query).then((res) => {
this.dataSource = res
})
},
viewFileClick(item) {
this.$refs.viewFileModelRef.clickButtonToUpload(item)
}
}
} }
</script> </script>
@@ -51,4 +147,9 @@
color: #000F16; color: #000F16;
} }
} }
.viewFile {
color: #00B3BE;
cursor: pointer;
}
</style> </style>
@@ -135,13 +135,15 @@
return false return false
}, },
isCancel() { isCancel() {
if (this.queryData.TaskKey == 'zrrqr' || this.queryData.TaskKey == 'dezrrqr' || this.queryData.TaskKey == 'zrrtjjfw') { if (this.queryData.TaskKey == 'zrrqr' || this.queryData.TaskKey == 'dezrrqr' ||
this.queryData.TaskKey == 'zrrtjjfw' || this.queryData.TaskKey == 'dezrrtjjfw') {
return true return true
} }
return false return false
}, },
isConfirm() { isConfirm() {
if (this.queryData.TaskKey == 'zrrqr' || this.queryData.TaskKey == 'dezrrqr' || this.queryData.TaskKey == 'zrrtjjfw') { if (this.queryData.TaskKey == 'zrrqr' || this.queryData.TaskKey == 'dezrrqr' ||
this.queryData.TaskKey == 'zrrtjjfw' || this.queryData.TaskKey == 'dezrrtjjfw') {
return true return true
} }
return false return false