|
@@ -146,7 +146,8 @@
|
|
|
:visible="documentDialogVisible"
|
|
:visible="documentDialogVisible"
|
|
|
width="82%"
|
|
width="82%"
|
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
|
- :confirm-text="isViewMode ? '查看' : '生成文书'"
|
|
|
|
|
|
|
+ :confirm-text="isView ? '查看' : '生成文书'"
|
|
|
|
|
+ cancel-text="关闭"
|
|
|
@cancel="handleCancel"
|
|
@cancel="handleCancel"
|
|
|
@confirm="handleConfirm"
|
|
@confirm="handleConfirm"
|
|
|
>
|
|
>
|
|
@@ -185,7 +186,7 @@
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="document.documentNumber"
|
|
v-model="document.documentNumber"
|
|
|
placeholder="请选择通知书文号"
|
|
placeholder="请选择通知书文号"
|
|
|
- style="width: 84%"
|
|
|
|
|
|
|
+ style="width: 82%"
|
|
|
disabled
|
|
disabled
|
|
|
></el-input>
|
|
></el-input>
|
|
|
<!-- disabled -->
|
|
<!-- disabled -->
|
|
@@ -282,13 +283,6 @@
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<div v-if="scope.row.originalText !== '需要提供材料'">
|
|
<div v-if="scope.row.originalText !== '需要提供材料'">
|
|
|
<el-input
|
|
<el-input
|
|
|
- v-if="scope.row.originalText.includes('时间')"
|
|
|
|
|
- v-model="scope.row.dataValue.split(' ')[0]"
|
|
|
|
|
- size="small"
|
|
|
|
|
- placeholder="请输入数据值"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-else
|
|
|
|
|
v-model="scope.row.dataValue"
|
|
v-model="scope.row.dataValue"
|
|
|
size="small"
|
|
size="small"
|
|
|
placeholder="请输入数据值"
|
|
placeholder="请输入数据值"
|
|
@@ -480,6 +474,7 @@
|
|
|
},
|
|
},
|
|
|
dataUploadUrl: [],
|
|
dataUploadUrl: [],
|
|
|
isWh: '0',
|
|
isWh: '0',
|
|
|
|
|
+ resCostDocumentTemplateFiles: [],
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -524,34 +519,15 @@
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
- costDocumentTemplateFiles: {
|
|
|
|
|
- handler(newVal, oldVal) {
|
|
|
|
|
- if (newVal.length > 0) {
|
|
|
|
|
- this.costDocumentTemplateFiles.forEach((item) => {
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes('ShiJian') &&
|
|
|
|
|
- (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
- ) {
|
|
|
|
|
- // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
- item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
- } else if (item.pinyin.includes('ShiJian') && item.dataValue) {
|
|
|
|
|
- item.dataValue = item.dataValue.split(' ')[0]
|
|
|
|
|
- }
|
|
|
|
|
- if (
|
|
|
|
|
- item.originalText.includes('需要提供材料') &&
|
|
|
|
|
- item.dataValue
|
|
|
|
|
- ) {
|
|
|
|
|
- this.dataUploadUrl = item.dataValue
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('DiGaoNeiRong') && item.dataValue) {
|
|
|
|
|
- // 移除所有HTML标签
|
|
|
|
|
- item.dataValue = item.dataValue.replace(/<[^>]+>/g, '')
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- deep: true,
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // costDocumentTemplateFiles: {
|
|
|
|
|
+ // handler(newVal, oldVal) {
|
|
|
|
|
+ // if (newVal.length > 0) {
|
|
|
|
|
+ // this.costDocumentTemplateFiles.forEach((item) => {
|
|
|
|
|
+ // })
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
|
|
+ // deep: true,
|
|
|
|
|
+ // },
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.loadOpts()
|
|
this.loadOpts()
|
|
@@ -742,7 +718,10 @@
|
|
|
whereValue: this.project.projectId,
|
|
whereValue: this.project.projectId,
|
|
|
unitId: this.document.enterpriseId,
|
|
unitId: this.document.enterpriseId,
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
- this.costDocumentTemplateFiles = res.value || []
|
|
|
|
|
|
|
+ this.costDocumentTemplateFiles =
|
|
|
|
|
+ JSON.parse(JSON.stringify(res.value || [])) || []
|
|
|
|
|
+ this.resCostDocumentTemplateFiles =
|
|
|
|
|
+ JSON.parse(JSON.stringify(res.value || [])) || []
|
|
|
let unit = this.allUnits.find(
|
|
let unit = this.allUnits.find(
|
|
|
(item) => item.unitId === this.document.enterpriseId
|
|
(item) => item.unitId === this.document.enterpriseId
|
|
|
)
|
|
)
|
|
@@ -750,6 +729,47 @@
|
|
|
documentId: this.document.documentId,
|
|
documentId: this.document.documentId,
|
|
|
})
|
|
})
|
|
|
this.costDocumentTemplateFiles.forEach((item) => {
|
|
this.costDocumentTemplateFiles.forEach((item) => {
|
|
|
|
|
+ if (item.pinyin.includes('BeiJianShenDanWei')) {
|
|
|
|
|
+ item.dataValue = unit.unitName
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('ShouSongDaRen')) {
|
|
|
|
|
+ item.dataValue = unit.contactName
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('BeiJianShenDanWeiBanGongDiDian')) {
|
|
|
|
|
+ item.dataValue = unit.address
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('BeiJianShenDanWeiLianXiRenDianHua')) {
|
|
|
|
|
+ item.dataValue = unit.contactMobile
|
|
|
|
|
+ }
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.originalText.includes('需要提供材料') &&
|
|
|
|
|
+ item.dataValue
|
|
|
|
|
+ ) {
|
|
|
|
|
+ this.dataUploadUrl = item.dataValue
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('DiGaoNeiRong') && item.dataValue) {
|
|
|
|
|
+ // 移除所有HTML标签
|
|
|
|
|
+ item.dataValue = item.dataValue.replace(/<[^>]+>/g, '')
|
|
|
|
|
+ }
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes('ShiJian') &&
|
|
|
|
|
+ (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
+ } else if (item.pinyin.includes('ShiJian') && item.dataValue) {
|
|
|
|
|
+ item.dataValue = item.dataValue.split(' ')[0]
|
|
|
|
|
+ }
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.originalText.includes('需要提供材料') &&
|
|
|
|
|
+ item.dataValue
|
|
|
|
|
+ ) {
|
|
|
|
|
+ this.dataUploadUrl = item.dataValue
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('DiGaoNeiRong') && item.dataValue) {
|
|
|
|
|
+ // 移除所有HTML标签
|
|
|
|
|
+ item.dataValue = item.dataValue.replace(/<[^>]+>/g, '')
|
|
|
|
|
+ }
|
|
|
if (documenName.includes('成本监审通知书')) {
|
|
if (documenName.includes('成本监审通知书')) {
|
|
|
if (item.pinyin.includes('DanWeiMingCheng')) {
|
|
if (item.pinyin.includes('DanWeiMingCheng')) {
|
|
|
item.dataValue = unit.unitName
|
|
item.dataValue = unit.unitName
|
|
@@ -766,18 +786,56 @@
|
|
|
item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- if (item.pinyin.includes('BeiJianShenDanWei')) {
|
|
|
|
|
- item.dataValue = unit.unitName
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('ShouSongDaRen')) {
|
|
|
|
|
- item.dataValue = unit.contactName
|
|
|
|
|
|
|
+ if (documenName.includes('成本监审提取资料登记表')) {
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes('DengJiBiaoShengChengRiQi') &&
|
|
|
|
|
+ (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- if (item.pinyin.includes('BeiJianShenDanWeiBanGongDiDian')) {
|
|
|
|
|
- item.dataValue = unit.address
|
|
|
|
|
|
|
+ if (documenName.includes('成本审核初步意见表')) {
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes('YiJianBiaoShengChengRiQi') &&
|
|
|
|
|
+ (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- if (item.pinyin.includes('BeiJianShenDanWeiLianXiRenDianHua')) {
|
|
|
|
|
- item.dataValue = unit.contactMobile
|
|
|
|
|
|
|
+ if (documenName.includes('政府定价成本监审结论报告')) {
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes('BaoGaoRiQi') &&
|
|
|
|
|
+ (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('JianShenRenWuFaBuShiJian')) {
|
|
|
|
|
+ let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
+ (item2) => item2.pinyin === 'JianShenRenWuFaBuShiJian'
|
|
|
|
|
+ ).dataValue
|
|
|
|
|
+ item.dataValue = (dataValue && dataValue.split(' ')[0]) || ''
|
|
|
|
|
+ }
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes(
|
|
|
|
|
+ 'ChengBenJianShenTongZhiShuShengChengShiJian'
|
|
|
|
|
+ )
|
|
|
|
|
+ ) {
|
|
|
|
|
+ let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
+ (item2) =>
|
|
|
|
|
+ item2.pinyin ===
|
|
|
|
|
+ 'ChengBenJianShenTongZhiShuShengChengShiJian'
|
|
|
|
|
+ ).dataValue
|
|
|
|
|
+ item.dataValue = (dataValue && dataValue.split(' ')[0]) || ''
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('ChengBenZiLiaoShangBaoShiJian')) {
|
|
|
|
|
+ let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
+ (item2) => item2.pinyin === 'ChengBenZiLiaoShangBaoShiJian'
|
|
|
|
|
+ ).dataValue
|
|
|
|
|
+ item.dataValue = (dataValue && dataValue.split(' ')[0]) || ''
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
// 回显文号
|
|
// 回显文号
|
|
|
// 获取选中的文号信息
|
|
// 获取选中的文号信息
|
|
@@ -801,10 +859,140 @@
|
|
|
// whereValue: this.project.projectId,
|
|
// whereValue: this.project.projectId,
|
|
|
id: this.document.id,
|
|
id: this.document.id,
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
- this.costDocumentTemplateFiles = res.value || []
|
|
|
|
|
|
|
+ this.costDocumentTemplateFiles =
|
|
|
|
|
+ JSON.parse(JSON.stringify(res.value || [])) || []
|
|
|
|
|
+ this.resCostDocumentTemplateFiles =
|
|
|
|
|
+ JSON.parse(JSON.stringify(res.value || [])) || []
|
|
|
let unit = this.allUnits.find(
|
|
let unit = this.allUnits.find(
|
|
|
(item) => item.unitId === this.document.enterpriseId
|
|
(item) => item.unitId === this.document.enterpriseId
|
|
|
)
|
|
)
|
|
|
|
|
+ let documenName = this.getDocumentType({
|
|
|
|
|
+ documentId: this.document.documentId,
|
|
|
|
|
+ })
|
|
|
|
|
+ this.costDocumentTemplateFiles.forEach((item) => {
|
|
|
|
|
+ if (item.pinyin.includes('BeiJianShenDanWei')) {
|
|
|
|
|
+ item.dataValue = unit.unitName
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('ShouSongDaRen')) {
|
|
|
|
|
+ item.dataValue = unit.contactName
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('BeiJianShenDanWeiBanGongDiDian')) {
|
|
|
|
|
+ item.dataValue = unit.address
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('BeiJianShenDanWeiLianXiRenDianHua')) {
|
|
|
|
|
+ item.dataValue = unit.contactMobile
|
|
|
|
|
+ }
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.originalText.includes('需要提供材料') &&
|
|
|
|
|
+ item.dataValue
|
|
|
|
|
+ ) {
|
|
|
|
|
+ this.dataUploadUrl = item.dataValue
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('DiGaoNeiRong') && item.dataValue) {
|
|
|
|
|
+ // 移除所有HTML标签
|
|
|
|
|
+ item.dataValue = item.dataValue.replace(/<[^>]+>/g, '')
|
|
|
|
|
+ }
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes('ShiJian') &&
|
|
|
|
|
+ (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
+ } else if (item.pinyin.includes('ShiJian') && item.dataValue) {
|
|
|
|
|
+ item.dataValue = item.dataValue.split(' ')[0]
|
|
|
|
|
+ }
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.originalText.includes('需要提供材料') &&
|
|
|
|
|
+ item.dataValue
|
|
|
|
|
+ ) {
|
|
|
|
|
+ this.dataUploadUrl = item.dataValue
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('DiGaoNeiRong') && item.dataValue) {
|
|
|
|
|
+ // 移除所有HTML标签
|
|
|
|
|
+ item.dataValue = item.dataValue.replace(/<[^>]+>/g, '')
|
|
|
|
|
+ }
|
|
|
|
|
+ if (documenName.includes('成本监审通知书')) {
|
|
|
|
|
+ if (item.pinyin.includes('DanWeiMingCheng')) {
|
|
|
|
|
+ item.dataValue = unit.unitName
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('FaRenDaiBiao')) {
|
|
|
|
|
+ item.dataValue = unit?.corporateRepresentative || ''
|
|
|
|
|
+ }
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes(
|
|
|
|
|
+ 'ChengBenJianShenTongZhiShuChuangJianRiQi'
|
|
|
|
|
+ )
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (documenName.includes('成本监审提取资料登记表')) {
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes('DengJiBiaoShengChengRiQi') &&
|
|
|
|
|
+ (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (documenName.includes('成本审核初步意见表')) {
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes('YiJianBiaoShengChengRiQi') &&
|
|
|
|
|
+ (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (documenName.includes('政府定价成本监审结论报告')) {
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes('BaoGaoRiQi') &&
|
|
|
|
|
+ (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('JianShenRenWuFaBuShiJian')) {
|
|
|
|
|
+ let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
+ (item2) => item2.pinyin === 'JianShenRenWuFaBuShiJian'
|
|
|
|
|
+ ).dataValue
|
|
|
|
|
+ item.dataValue = (dataValue && dataValue.split(' ')[0]) || ''
|
|
|
|
|
+ }
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes(
|
|
|
|
|
+ 'ChengBenJianShenTongZhiShuShengChengShiJian'
|
|
|
|
|
+ )
|
|
|
|
|
+ ) {
|
|
|
|
|
+ let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
+ (item2) =>
|
|
|
|
|
+ item2.pinyin ===
|
|
|
|
|
+ 'ChengBenJianShenTongZhiShuShengChengShiJian'
|
|
|
|
|
+ ).dataValue
|
|
|
|
|
+ item.dataValue = (dataValue && dataValue.split(' ')[0]) || ''
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('ChengBenZiLiaoShangBaoShiJian')) {
|
|
|
|
|
+ let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
+ (item2) => item2.pinyin === 'ChengBenZiLiaoShangBaoShiJian'
|
|
|
|
|
+ ).dataValue
|
|
|
|
|
+ item.dataValue = (dataValue && dataValue.split(' ')[0]) || ''
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ // 回显文号
|
|
|
|
|
+ // 获取选中的文号信息
|
|
|
|
|
+ const selectedDocument = this.selectDocumentWhSelection[0]
|
|
|
|
|
+ if (selectedDocument) {
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes('WenHao') ||
|
|
|
|
|
+ item.pinyin.includes('WenJianHao')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ item.dataValue = selectedDocument.whNo
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('SongDaWenShuMingCheng')) {
|
|
|
|
|
+ item.dataValue = selectedDocument.whName
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -1316,10 +1504,15 @@
|
|
|
.documents-layout {
|
|
.documents-layout {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
margin-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
|
|
|
+ flex-wrap: wrap; // 允许在窄屏时换行,左侧列表在上,右侧内容在下
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.documents-type-list {
|
|
.documents-type-list {
|
|
|
- width: 200px;
|
|
|
|
|
|
|
+ // 默认左侧固定宽度,不随容器缩小,避免内容被压缩
|
|
|
|
|
+ flex: 0 0 240px; // 不增长不收缩,固定240px
|
|
|
|
|
+ width: 240px;
|
|
|
|
|
+ min-width: 200px;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
border: 1px solid #ebeef5;
|
|
border: 1px solid #ebeef5;
|
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
|
padding: 10px;
|
|
padding: 10px;
|
|
@@ -1347,7 +1540,9 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.documents-content {
|
|
.documents-content {
|
|
|
- flex: 1;
|
|
|
|
|
|
|
+ // 右侧区域占据剩余空间,并允许在狭小空间下换行占满
|
|
|
|
|
+ flex: 1 1 0;
|
|
|
|
|
+ min-width: 0; // 修复某些浏览器下表格溢出导致的布局问题
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.generate-btn {
|
|
.generate-btn {
|
|
@@ -1368,10 +1563,31 @@
|
|
|
.document-edit-container {
|
|
.document-edit-container {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
.document-params {
|
|
.document-params {
|
|
|
- width: 55%;
|
|
|
|
|
|
|
+ width: 50%;
|
|
|
}
|
|
}
|
|
|
.document-preview {
|
|
.document-preview {
|
|
|
- width: 45%;
|
|
|
|
|
|
|
+ width: 50%;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ // 响应式:小屏时左侧列表占满一行并堆叠到上方
|
|
|
|
|
+ @media (max-width: 992px) {
|
|
|
|
|
+ .documents-type-list {
|
|
|
|
|
+ flex: 0 0 220px;
|
|
|
|
|
+ width: 220px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @media (max-width: 768px) {
|
|
|
|
|
+ .documents-type-list {
|
|
|
|
|
+ flex: 1 1 100%;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ min-width: auto;
|
|
|
|
|
+ margin-right: 0;
|
|
|
|
|
+ margin-bottom: 12px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .documents-content {
|
|
|
|
|
+ flex: 1 1 100%;
|
|
|
|
|
+ width: 100%;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|