71 lines
1.9 KiB
Vue
71 lines
1.9 KiB
Vue
<template>
|
|
<div>
|
|
<base-info-form ref="baseInfoForm" v-bind="$attrs" disabled></base-info-form>
|
|
<!-- 标准文本 -->
|
|
<div class="box-title-text form-flex-item">
|
|
<div class="title-text">
|
|
<span class="title-text-text" :title="$t('workCenter.enStandardRevision.standardText')">
|
|
{{ $t('workCenter.enStandardRevision.standardText') }}
|
|
</span>
|
|
</div>
|
|
<a-form-model-item class="item-model">
|
|
<div class="online-edit-wrapper">
|
|
<p>{{ $t('enterpriseStandard') }}</p>
|
|
<a-button type="primary" @click="onlineEditView">{{ $t('view') }}</a-button>
|
|
</div>
|
|
</a-form-model-item>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import BaseInfoForm from './BaseInfoForm'
|
|
import Vue from 'vue'
|
|
import { kkFilePreview } from '@/utils/kkFilePreview'
|
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
|
import { queryFileInfoByEditId } from '../../../../api/workCenter'
|
|
import { Base64 } from 'js-base64'
|
|
export default {
|
|
name: 'OtherDrafterProofreadBaseInfo',
|
|
components: { BaseInfoForm },
|
|
data () {
|
|
return {
|
|
onEditFile: '' // 在线编辑的文件id
|
|
}
|
|
},
|
|
methods: {
|
|
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
|
|
initData (data) {
|
|
// 在线编辑
|
|
this.onEditFile = data.onEditFile
|
|
// 给表单赋值
|
|
this.$nextTick(() => {
|
|
this.$refs.baseInfoForm.initData(data)
|
|
})
|
|
},
|
|
getData () {
|
|
const data = {}
|
|
data.businessJson = JSON.stringify(this.$refs.baseInfoForm.getData())
|
|
return data
|
|
},
|
|
// 在线编辑的查看
|
|
onlineEditView () {
|
|
this.$emit('onlineEditView', this.onEditFile)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="less">
|
|
.online-edit-wrapper {
|
|
height: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
p {
|
|
margin-bottom: 0;
|
|
height: 100%;
|
|
}
|
|
}
|
|
</style>
|