| | |
| | | </el-scrollbar> |
| | | </template> |
| | | </BaseContentLayout> |
| | | <el-dialog |
| | | v-model="anyPhotoDialog" |
| | | width="66%" |
| | | title="任意图片" |
| | | destroy-on-close |
| | | > |
| | | <ArbitraryPhoto |
| | | :max-select="1" |
| | | :readonly="false" |
| | | :subtask="curSubtask.data" |
| | | @selectByAnyPhonoEvent="handleSelectAnyPhoto" |
| | | :defaultFile="[sceneImg]" |
| | | > |
| | | </ArbitraryPhoto> |
| | | </el-dialog> |
| | | <ArbitraryPhoto |
| | | v-if="anyPhotoDialog" |
| | | v-model:dialog-visible="anyPhotoDialog" |
| | | :max-select="1" |
| | | :readonly="false" |
| | | :subtask="curSubtask.data" |
| | | @submit="handleSelectAnyPhoto" |
| | | :defaultFile="[sceneImg]" |
| | | ></ArbitraryPhoto> |
| | | <el-dialog |
| | | title="设备图片" |
| | | width="66%" |
| | |
| | | const d2 = |
| | | i + 1 < deviceList.value.length ? deviceList.value[i + 1] : undefined; |
| | | _deviceList.push({ |
| | | _showStatusPic_1: d1._showStatusPic, |
| | | _showStatusPic_1: d1._showStatusPic ? d1._showStatusPic : right_triangle, |
| | | _deviceTypeName_1: d1._deviceTypeName, |
| | | // hasPic2: d2 ? true : false, |
| | | _showStatusPic_2: d2 ? d2._showStatusPic : right_triangle, |
| | | _deviceTypeName_2: d2 ? d2._deviceTypeName : '' |
| | | _showStatusPic_2: d2 ? (d2._showStatusPic ? d2._showStatusPic : right_triangle) : right_triangle, |
| | | _deviceTypeName_2: d2 ? d2._deviceTypeName : '', |
| | | }); |
| | | } |
| | | const param = { |
| | |
| | | } |
| | | } |
| | | const date = dayjs(curSubtask.value.data.stPlanTime).format('MM月DD日'); |
| | | console.log(param); |
| | | |
| | | docLoading.value = true; |
| | | exportDocx( |
| | | '/单体模版.docx', |
| | | '/单体模版-v1.0.docx', |
| | | param, |
| | | `${param.sceneName}单体(${date}).docx`, |
| | | { |
| | | horizontalHeight: 368, |
| | | verticalWidth: 266 |
| | | verticalWidth: 266, |
| | | scale: 1.367 |
| | | } |
| | | ).finally(() => (docLoading.value = false)); |
| | | } |