修改禅道已知bug

This commit is contained in:
qq787203167
2022-08-04 16:37:51 +08:00
parent e1c09276f5
commit 2dc8dd71a8
4 changed files with 33 additions and 25 deletions
@@ -10,7 +10,7 @@
:visible="visible" :visible="visible"
style="height: 100%;overflow: auto;padding-bottom: 53px;"> style="height: 100%;overflow: auto;padding-bottom: 53px;">
<div class="table-operator-right"> <div class="table-operator-right">
<div @click="handleExport" class="operator-text"> <div @click="handleExport" v-if="formInline.createBy == userInfoQuery.username" class="operator-text">
<a-icon type="export" :rotate="-90"/> <a-icon type="export" :rotate="-90"/>
{{$t('export')}} {{$t('export')}}
</div> </div>
@@ -172,12 +172,14 @@
align: 'center', align: 'center',
dataIndex: 'serial_number', dataIndex: 'serial_number',
width: 170, width: 170,
ellipsis: true,
scopedSlots: { customRender: 'serial_number' } scopedSlots: { customRender: 'serial_number' }
}, },
{ {
title: this.$t('title'), title: this.$t('title'),
align: 'center', align: 'center',
dataIndex: 'title', dataIndex: 'title',
ellipsis: true,
width: 170, width: 170,
scopedSlots: { customRender: 'titleName' } scopedSlots: { customRender: 'titleName' }
}, },
@@ -298,13 +300,13 @@
this.formInline[item] = this.formInline[item] ? moment(this.formInline[item]).format('YYYY-MM-DD') : '' this.formInline[item] = this.formInline[item] ? moment(this.formInline[item]).format('YYYY-MM-DD') : ''
}, },
getUUID() { getUUID() {
var str=[]; var str = []
var Chars='0123456789abcdefghijklmnopqrstuvwxyz'; var Chars = '0123456789abcdefghijklmnopqrstuvwxyz'
for (var i = 0; i < 36; i++) { for (var i = 0; i < 36; i++) {
str[i] = Chars.substr(Math.floor(Math.random() * 16), 1) str[i] = Chars.substr(Math.floor(Math.random() * 16), 1)
} }
str[0]=str[8]=str[13]=str[18]=str[23]='-'; str[0] = str[8] = str[13] = str[18] = str[23] = '-'
return str.join("") return str.join('')
}, },
submit() { submit() {
this.$refs.ruleForm.validate(valid => { this.$refs.ruleForm.validate(valid => {
@@ -92,6 +92,9 @@
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:columns="columns" :columns="columns"
> >
<span slot="serialNumber" :title="text" slot-scope="text,result">
<span>{{text}}</span>
</span>
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
<a class="text-operation" @click="viewProcessClick(record)">{{$t('viewProcess')}}</a> <a class="text-operation" @click="viewProcessClick(record)">{{$t('viewProcess')}}</a>
<a class="text-operation" v-if="record.gatherResult == 'Completed'" <a class="text-operation" v-if="record.gatherResult == 'Completed'"
@@ -157,7 +160,8 @@
align: 'center', align: 'center',
dataIndex: 'serialNumber', dataIndex: 'serialNumber',
ellipsis: true, ellipsis: true,
width: 170 width: 170,
scopedSlots: { customRender: 'serialNumber' }
}, },
{ {
title: this.$t('title'), title: this.$t('title'),
@@ -250,12 +250,14 @@
align: 'center', align: 'center',
dataIndex: 'serial_number', dataIndex: 'serial_number',
width: 170, width: 170,
ellipsis: true,
scopedSlots: { customRender: 'serial_number' } scopedSlots: { customRender: 'serial_number' }
}, },
{ {
title: this.$t('title'), title: this.$t('title'),
align: 'center', align: 'center',
dataIndex: 'title', dataIndex: 'title',
ellipsis: true,
width: 170, width: 170,
scopedSlots: { customRender: 'titleName' } scopedSlots: { customRender: 'titleName' }
}, },