update 在线编辑
This commit is contained in:
+17
-1
@@ -12,7 +12,7 @@
|
||||
<div class="online-edit-wrapper">
|
||||
<!-- todo: 还不确定这里展示的是什么 -->
|
||||
<p>企业标准</p>
|
||||
<a-button type="primary">{{ $t('workCenter.enStandardRevision.onLineEditing') }}</a-button>
|
||||
<a-button type="primary" @click="toOnlineEditor">{{ $t('workCenter.enStandardRevision.onLineEditing') }}</a-button>
|
||||
</div>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -56,6 +56,7 @@
|
||||
import JTable from '@/components/jero/JTable'
|
||||
import BaseInfoForm from './BaseInfoForm'
|
||||
import AddEditDrafterDrawer from './AddEditDrafterDrawer'
|
||||
import { onlineEditor } from '../../../../utils/onlyOfficeUtils'
|
||||
|
||||
export default {
|
||||
name: 'MainDrafterSentBaseInfo',
|
||||
@@ -200,6 +201,19 @@ export default {
|
||||
const dataIndex = this.dataSource.findIndex(item => item.uid === this.modalType.split(',')[1])
|
||||
this.dataSource.splice(dataIndex, 1, value)
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 跳转在线编辑
|
||||
*/
|
||||
toOnlineEditor () {
|
||||
// 获取参数(用于自动生成封面,企标编号、代替标准号、发布日期、实施日期、企标名称)
|
||||
// const params = this.$refs.baseInfoForm.getOnlineEditorParams()
|
||||
// 第一个参数type:如果之前没有文件,就是add,否则是edit
|
||||
const params = {
|
||||
standard_number: 'Q/JC 40004-2023',
|
||||
standard_name: 'ldq流程新建完整字段企标计划'
|
||||
}
|
||||
onlineEditor(params)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -207,6 +221,7 @@ export default {
|
||||
|
||||
<style scoped lang="less">
|
||||
@import '~@assets/less/common.less';
|
||||
|
||||
.collapsible-content-no-head {
|
||||
border-top: 1px solid #E5E6EB;
|
||||
border-radius: 8px 8px 8px 8px;
|
||||
@@ -217,6 +232,7 @@ export default {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
p {
|
||||
margin-bottom: 0;
|
||||
height: 100%;
|
||||
|
||||
Reference in New Issue
Block a user