修改虚拟清单详情细节问题
This commit is contained in:
@@ -639,4 +639,6 @@ module.exports = {
|
|||||||
onlyOnefileUploaded:'only one file can be uploaded',
|
onlyOnefileUploaded:'only one file can be uploaded',
|
||||||
typeCannotUploaded:'this type of file cannot be uploaded',
|
typeCannotUploaded:'this type of file cannot be uploaded',
|
||||||
confirmWithdraw:'confirm Withdraw',
|
confirmWithdraw:'confirm Withdraw',
|
||||||
|
OperationDetails:'Operation details',
|
||||||
|
OperationTime:'Operation time',
|
||||||
}
|
}
|
||||||
@@ -643,5 +643,6 @@ module.exports = {
|
|||||||
onlyOnefileUploaded:'只能上传一个文件',
|
onlyOnefileUploaded:'只能上传一个文件',
|
||||||
typeCannotUploaded:'不支持上传该类型的文件',
|
typeCannotUploaded:'不支持上传该类型的文件',
|
||||||
confirmWithdraw:'确认撤回?',
|
confirmWithdraw:'确认撤回?',
|
||||||
|
OperationDetails:'操作详情',
|
||||||
|
OperationTime:'操作时间',
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,120 @@
|
|||||||
|
<template>
|
||||||
|
<a-modal
|
||||||
|
:title="$t('UpdateLog')"
|
||||||
|
:width="900"
|
||||||
|
:visible="visible"
|
||||||
|
:confirm-loading="confirmLoading"
|
||||||
|
:maskClosable="false"
|
||||||
|
@ok="handleOk"
|
||||||
|
@cancel="handleCancel"
|
||||||
|
>
|
||||||
|
<a-table
|
||||||
|
class="table"
|
||||||
|
:columns="columns"
|
||||||
|
:pagination="false"
|
||||||
|
:scroll="{y: 400}"
|
||||||
|
:data-source="dataSource"
|
||||||
|
:loading="loading"
|
||||||
|
>
|
||||||
|
<span slot="content" slot-scope="text,record">
|
||||||
|
<a-tooltip placement="topLeft">
|
||||||
|
<template slot="title">
|
||||||
|
<span v-html="text"></span>
|
||||||
|
</template>
|
||||||
|
<span v-html="text"></span>
|
||||||
|
</a-tooltip>
|
||||||
|
</span>
|
||||||
|
</a-table>
|
||||||
|
<div class="page" v-if="dataSource.length > 0">
|
||||||
|
<a-pagination
|
||||||
|
:show-total="total => $t('total')+`${total}`+$t('strip')"
|
||||||
|
show-quick-jumper
|
||||||
|
show-size-changer
|
||||||
|
:page-size.sync="pageSize "
|
||||||
|
:total="total"
|
||||||
|
@change="onChange"
|
||||||
|
@showSizeChange="SizeChange"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</a-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { getAction, postAction, } from '@/api/manage'
|
||||||
|
export default {
|
||||||
|
name: 'index',
|
||||||
|
props:['url'],
|
||||||
|
data(){
|
||||||
|
return{
|
||||||
|
visible:false,
|
||||||
|
confirmLoading:false,
|
||||||
|
dataSource:[],
|
||||||
|
loading:false,
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
total: 0,
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
title: this.$t('OperationDetails'),
|
||||||
|
dataIndex: 'content',
|
||||||
|
align: 'center',
|
||||||
|
ellipsis: true,
|
||||||
|
scopedSlots: { customRender: 'content' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('OperationTime'),
|
||||||
|
dataIndex: 'createTime',
|
||||||
|
align: 'center',
|
||||||
|
ellipsis: true,
|
||||||
|
width: 180
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
getList(){
|
||||||
|
this.visible = true
|
||||||
|
this.pageNo = 1
|
||||||
|
this.bussLogList()
|
||||||
|
},
|
||||||
|
handleOk() {
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
handleCancel() {
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
onChange(page, pageSize) {
|
||||||
|
this.pageNo = page
|
||||||
|
this.bussLogList()
|
||||||
|
},
|
||||||
|
SizeChange(page, pageSize) {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.pageSize = pageSize
|
||||||
|
this.bussLogList()
|
||||||
|
},
|
||||||
|
bussLogList(){
|
||||||
|
let query = {
|
||||||
|
pageNo: this.pageNo,
|
||||||
|
pageSize: this.pageSize,
|
||||||
|
documentId: this.$route.query.id
|
||||||
|
}
|
||||||
|
this.loading = true
|
||||||
|
getAction(this.url.logList, query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.dataSource = res.result.records
|
||||||
|
this.total = res.result.total
|
||||||
|
this.loading = false
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -10,7 +10,8 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="Virtual-detail-right">
|
<div class="Virtual-detail-right">
|
||||||
<div @click="UpdateLog" class="operator-text-text" style="margin-right: 37px" :title="$t('UpdateLog')">
|
<div @click="UpdateLogClick" class="operator-text-text" style="margin-right: 37px;cursor: pointer"
|
||||||
|
:title="$t('UpdateLog')">
|
||||||
<a-icon type="reload"/>
|
<a-icon type="reload"/>
|
||||||
{{$t('UpdateLog')}}
|
{{$t('UpdateLog')}}
|
||||||
</div>
|
</div>
|
||||||
@@ -25,13 +26,13 @@
|
|||||||
{{$t('VirtualListName')}}
|
{{$t('VirtualListName')}}
|
||||||
</span>
|
</span>
|
||||||
<span class="text-right" style="margin-right: 100px">
|
<span class="text-right" style="margin-right: 100px">
|
||||||
是的开了房间都是立刻就的路上看见圣诞快乐
|
{{$route.query.name}}
|
||||||
</span>
|
</span>
|
||||||
<span class="text-left" :title="$t('instructionForUse')">
|
<span class="text-left" :title="$t('instructionForUse')">
|
||||||
{{$t('instructionForUse')}}
|
{{$t('instructionForUse')}}
|
||||||
</span>
|
</span>
|
||||||
<span class="text-right">
|
<span class="text-right">
|
||||||
是的开了房间都是立刻就的路上看见圣诞快乐 上看到了附件三零客机上的翻开历史交锋是开了房间都是付款了第三方
|
{{$route.query.useExplain}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -44,22 +45,29 @@
|
|||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<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('VirtualListName')">
|
<div class="title-text" :title="$t('standard')">
|
||||||
<span>{{$t('VirtualListName')}}</span>
|
<span>{{$t('standard')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('VirtualListName')"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
||||||
v-model="queryParam.db_field_name"></a-input>
|
v-model="queryParam.standard"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<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('listStatus')">
|
<div class="title-text" :title="$t('title')">
|
||||||
<span>{{$t('listStatus')}}</span>
|
<span>{{$t('title')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<j-dict-select-tag class="box-input" v-model="queryParam.db_field_name"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
|
||||||
:placeholder="$t('PleaseSelect')+$t('listStatus')"
|
v-model="queryParam.title"></a-input>
|
||||||
:type="'select'"
|
</div>
|
||||||
:triggerChange="false" :dictCode="''"/>
|
</a-col>
|
||||||
|
<a-col :md="6" :sm="8">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text" :title="$t('subtitle')">
|
||||||
|
<span>{{$t('subtitle')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('subtitle')"
|
||||||
|
v-model="queryParam.subtitle"></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">
|
||||||
@@ -71,10 +79,10 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div class="operator-text" v-has="'document:importZip'">
|
<div class="operator-text" v-has="'document:importZip'" v-if="isTrue">
|
||||||
<ImportFile :url="url"/>
|
<ImportFile :url="url"/>
|
||||||
</div>
|
</div>
|
||||||
<div @click="handleModule" class="operator-text">
|
<div @click="handleModule" class="operator-text" v-if="isTrue">
|
||||||
<a-icon type="download"/>
|
<a-icon type="download"/>
|
||||||
{{$t('templateDownload')}}
|
{{$t('templateDownload')}}
|
||||||
</div>
|
</div>
|
||||||
@@ -82,19 +90,19 @@
|
|||||||
<a-icon type="export" :rotate="-90"/>
|
<a-icon type="export" :rotate="-90"/>
|
||||||
{{$t('export')}}
|
{{$t('export')}}
|
||||||
</div>
|
</div>
|
||||||
<div @click="copyClick" class="operator-text">
|
<div @click="copyClick" class="operator-text" v-if="isTrue">
|
||||||
<a-icon type="copy"/>
|
<a-icon type="copy"/>
|
||||||
{{$t('copy')}}
|
{{$t('copy')}}
|
||||||
</div>
|
</div>
|
||||||
<div @click="batSettingClick" class="operator-text">
|
<div @click="batSettingClick" class="operator-text" v-if="isTrue">
|
||||||
<a-icon type="setting"/>
|
<a-icon type="setting"/>
|
||||||
{{$t('batSetting')}}
|
{{$t('batSetting')}}
|
||||||
</div>
|
</div>
|
||||||
<div @click="handleAdd" class="operator-text">
|
<div @click="handleAdd" class="operator-text" v-if="isTrue">
|
||||||
<a-icon type="plus"/>
|
<a-icon type="plus"/>
|
||||||
{{$t('add')}}
|
{{$t('add')}}
|
||||||
</div>
|
</div>
|
||||||
<div @click="handleDel" class="operator-text">
|
<div @click="handleDel" class="operator-text" v-if="isTrue">
|
||||||
<a-icon type="delete"/>
|
<a-icon type="delete"/>
|
||||||
{{$t('BatchDelete')}}
|
{{$t('BatchDelete')}}
|
||||||
</div>
|
</div>
|
||||||
@@ -121,6 +129,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<addModel ref="addModelRef"/>
|
<addModel ref="addModelRef"/>
|
||||||
<editModel ref="editModelRef"/>
|
<editModel ref="editModelRef"/>
|
||||||
|
<UpdateLog ref="UpdateLogRef"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -128,13 +137,15 @@
|
|||||||
import ImportFile from '@/components/ImportFile/index'
|
import ImportFile from '@/components/ImportFile/index'
|
||||||
import addModel from './addModel'
|
import addModel from './addModel'
|
||||||
import editModel from './editModel'
|
import editModel from './editModel'
|
||||||
|
import UpdateLog from '@/components/UpdateLog/index'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'virtualListDetails',
|
name: 'virtualListDetails',
|
||||||
components: {
|
components: {
|
||||||
ImportFile,
|
ImportFile,
|
||||||
addModel,
|
addModel,
|
||||||
editModel
|
editModel,
|
||||||
|
UpdateLog
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -143,7 +154,7 @@
|
|||||||
url: {},
|
url: {},
|
||||||
loading: false,
|
loading: false,
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
columns: [
|
columnsAll: [
|
||||||
{
|
{
|
||||||
title: 'WVTA ID',
|
title: 'WVTA ID',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@@ -295,12 +306,31 @@
|
|||||||
scopedSlots: { customRender: 'operation' }
|
scopedSlots: { customRender: 'operation' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
selectedRowKeys: []
|
selectedRowKeys: [],
|
||||||
|
isTrue: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.title = this.$route.query.title
|
||||||
|
this.isTrue = this.$route.query.title == '虚拟清单详情' ? false : true
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
columns() {
|
||||||
|
let columnResult = JSON.parse(JSON.stringify(this.columnsAll))
|
||||||
|
if (this.title === '虚拟清单详情') {
|
||||||
|
for (var i = 0; i < columnResult.length; i++) {
|
||||||
|
if (columnResult[i].title === this.$t('operation')) {
|
||||||
|
columnResult.splice(i, 1)
|
||||||
|
i--
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return columnResult
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
UpdateLog() {
|
UpdateLogClick() {
|
||||||
|
this.$refs.UpdateLogRef.getList()
|
||||||
},
|
},
|
||||||
searchQuery() {
|
searchQuery() {
|
||||||
|
|
||||||
|
|||||||
@@ -253,7 +253,7 @@
|
|||||||
name: item.name,
|
name: item.name,
|
||||||
useExplain: item.useExplain,
|
useExplain: item.useExplain,
|
||||||
id: item.id,
|
id: item.id,
|
||||||
isTrue: false
|
title: '维护虚拟清单'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
window.open(newUrl.href, '_blank')
|
window.open(newUrl.href, '_blank')
|
||||||
@@ -306,7 +306,7 @@
|
|||||||
name: item.name,
|
name: item.name,
|
||||||
useExplain: item.useExplain,
|
useExplain: item.useExplain,
|
||||||
id: item.id,
|
id: item.id,
|
||||||
isTrue: true
|
title: '虚拟清单详情'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
window.open(newUrl.href, '_blank')
|
window.open(newUrl.href, '_blank')
|
||||||
|
|||||||
Reference in New Issue
Block a user