|
@@ -1,5 +1,7 @@
|
|
|
<template>
|
|
|
- <el-dialog :visible.sync="dialogDaliy" width="70vw" class="public_task report-dialog" :title="reportHome ? '测试日报' : `${tipName}测试日报模版`" :close-on-click-modal="false" :destroy-on-close="true" :before-close="handleClose">
|
|
|
+ <!-- <el-dialog :visible.sync="dialogDaliy" width="70vw" class="public_task report-dialog" :title="reportHome ? '测试日报' : `${tipName}测试日报模版`" :close-on-click-modal="false" :destroy-on-close="true" :before-close="handleClose"> -->
|
|
|
+ <modal :visible="dialogDaliy" :title="reportHome ? '测试日报' : `${tipName}测试日报模版`" :showline="reportHome" @close="handleClose">
|
|
|
+ <!-- <div class="box"> -->
|
|
|
<div v-if="reportHome" class="blueStripe" />
|
|
|
<i v-if="!reportHome" class="el-icon-arrow-left report-return didi-hover" @click="reportReturn" />
|
|
|
|
|
@@ -16,7 +18,7 @@
|
|
|
<el-col :span="5" class="creator" style="margin-right: 17px;"> 创建人 </el-col>
|
|
|
</el-row>
|
|
|
|
|
|
- <div ref="refName" style="max-height: 260px; overflow:scroll; overflow-x: hidden; margin: 20px 0;">
|
|
|
+ <div ref="refName" style="margin: 20px 0;">
|
|
|
<el-row v-for="(item, index) in selectTemplate" :key="index" type="flex" justify="center" style="padding-right: 15px;">
|
|
|
<el-col :span="19">
|
|
|
<el-radio v-model="fromData.radio" class="creatorList" :label="item.id">{{ item.moduleName }}</el-radio>
|
|
@@ -73,8 +75,9 @@
|
|
|
<el-button v-if="dailyPreview" size="small" type="primary" @click="sendReportReturn">上一步</el-button>
|
|
|
<el-button v-if="dailyPreview" size="small" type="primary" :loading="loading" @click="sendReport">发送</el-button>
|
|
|
</div>
|
|
|
-
|
|
|
- </el-dialog>
|
|
|
+ <!-- </div> -->
|
|
|
+ <!-- <div class="bg" /> -->
|
|
|
+ </modal>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -84,12 +87,13 @@ import { settingQueryReportModuleList, settingDeleteReportModule, dailyReportGet
|
|
|
import dailyTemplate from '@/views/reportManagement/daily/dailyTemplate.vue'
|
|
|
import newReportTemplate from '@/views/reportManagement/daily/newReportTemplate.vue'
|
|
|
import dailyPreview from '@/views/reportManagement/daily/dailyPreview.vue'
|
|
|
-
|
|
|
+import modal from '@/components/modal'
|
|
|
export default {
|
|
|
components: {
|
|
|
dailyTemplate,
|
|
|
newReportTemplate,
|
|
|
- dailyPreview
|
|
|
+ dailyPreview,
|
|
|
+ modal
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -125,6 +129,9 @@ export default {
|
|
|
immediate: true
|
|
|
}
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ console.log(this.dialogDaliy)
|
|
|
+ },
|
|
|
methods: {
|
|
|
async getreportTemplate() { // 获取模版list
|
|
|
const res = await settingQueryReportModuleList({ bizId: this.bizId, type: 3 }) // 3 日报
|
|
@@ -139,6 +146,7 @@ export default {
|
|
|
|
|
|
init(index, newData) {
|
|
|
this.dialogDaliy = true
|
|
|
+ console.log(this.dialogDaliy)
|
|
|
switch (index) {
|
|
|
case 2: // 编辑
|
|
|
dailyReportGetV2(newData.id).then(res => {
|
|
@@ -297,6 +305,7 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+
|
|
|
.report-leftRight {
|
|
|
margin: 20px 9% 0%;
|
|
|
>>> .el-row .el-col {
|
|
@@ -381,11 +390,11 @@ export default {
|
|
|
color:rgba(51,51,51,1);
|
|
|
opacity:1;
|
|
|
}
|
|
|
-.daily {
|
|
|
- max-height: 460px;
|
|
|
- overflow:scroll;
|
|
|
- overflow-x: hidden
|
|
|
-}
|
|
|
+// .daily {
|
|
|
+ // max-height: 460px;
|
|
|
+ // overflow:scroll;
|
|
|
+ // overflow-x: hidden
|
|
|
+// }
|
|
|
|
|
|
.blur-column {
|
|
|
width:4px;
|