|
@@ -1,85 +1,83 @@
|
|
<template>
|
|
<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"> -->
|
|
- <div v-if="dialogDaliy" class="dialogbox">
|
|
|
|
- 1231212312
|
|
|
|
- <div class="content">
|
|
|
|
- <div v-if="reportHome" class="blueStripe" />
|
|
|
|
- <i v-if="!reportHome" class="el-icon-arrow-left report-return didi-hover" @click="reportReturn" />
|
|
|
|
-
|
|
|
|
- <el-steps v-if="reportHome" :active="active" align-center finish-status="success" class="report-steps">
|
|
|
|
- <el-step title="选择模版" />
|
|
|
|
- <el-step title="填写报告" />
|
|
|
|
- <el-step title="发送报告" />
|
|
|
|
- </el-steps>
|
|
|
|
-
|
|
|
|
- <div class="report-leftRight">
|
|
|
|
- <div v-if="showOne" style="min-height: 34vh;">
|
|
|
|
- <el-row type="flex" justify="center">
|
|
|
|
- <el-col :span="19" class="creator">模版名称</el-col>
|
|
|
|
- <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;">
|
|
|
|
- <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>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="5" class="creatorList">
|
|
|
|
- <div class="Layout_space_between">
|
|
|
|
- <span>{{ item.creatorObject.name }}</span>
|
|
|
|
- <span v-if="item.creator !== 'SYSTEM' && item.creator !== '系统'" class="operation">
|
|
|
|
- <i class="el-icon-edit-outline didi-hover" @click="open_new_template(item)" />
|
|
|
|
- <el-popover :ref="item.id" placement="bottom" width="300" :visible-arrow="false" trigger="click">
|
|
|
|
- <div><div class="blur-column" /> 删除模版</div>
|
|
|
|
- <div class="blueStripe" />
|
|
|
|
- <div class="deletreport">是否要删除模版{{ item.moduleName }}?</div>
|
|
|
|
- <div style="text-align: right; margin: 0">
|
|
|
|
- <el-button size="mini" type="danger" @click="settingDeleteReportModule(item)">确定</el-button>
|
|
|
|
- <el-button size="mini" @click="closeDefaultPopover()">取消</el-button>
|
|
|
|
- </div>
|
|
|
|
- <i slot="reference" class="el-icon-delete reportModel didi-hover" />
|
|
|
|
- </el-popover>
|
|
|
|
- </span>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- </div>
|
|
|
|
- <el-row type="flex" justify="center">
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <span class="didi-hover" @click="open_new_template()"><i class="el-icon-circle-plus-outline creatorList didi-hover" /> <span style="margin-left: 8px; color: #333;">新建模版</span></span>
|
|
|
|
|
|
+ <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" />
|
|
|
|
+
|
|
|
|
+ <el-steps v-if="reportHome" :active="active" align-center finish-status="success" class="report-steps">
|
|
|
|
+ <el-step title="选择模版" />
|
|
|
|
+ <el-step title="填写报告" />
|
|
|
|
+ <el-step title="发送报告" />
|
|
|
|
+ </el-steps>
|
|
|
|
+
|
|
|
|
+ <div class="report-leftRight">
|
|
|
|
+ <div v-if="showOne" style="min-height: 34vh;">
|
|
|
|
+ <el-row type="flex" justify="center">
|
|
|
|
+ <el-col :span="19" class="creator">模版名称</el-col>
|
|
|
|
+ <el-col :span="5" class="creator" style="margin-right: 17px;"> 创建人 </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+
|
|
|
|
+ <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>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="5" class="creatorList">
|
|
|
|
+ <div class="Layout_space_between">
|
|
|
|
+ <span>{{ item.creatorObject.name }}</span>
|
|
|
|
+ <span v-if="item.creator !== 'SYSTEM' && item.creator !== '系统'" class="operation">
|
|
|
|
+ <i class="el-icon-edit-outline didi-hover" @click="open_new_template(item)" />
|
|
|
|
+ <el-popover :ref="item.id" placement="bottom" width="300" :visible-arrow="false" trigger="click">
|
|
|
|
+ <div><div class="blur-column" /> 删除模版</div>
|
|
|
|
+ <div class="blueStripe" />
|
|
|
|
+ <div class="deletreport">是否要删除模版{{ item.moduleName }}?</div>
|
|
|
|
+ <div style="text-align: right; margin: 0">
|
|
|
|
+ <el-button size="mini" type="danger" @click="settingDeleteReportModule(item)">确定</el-button>
|
|
|
|
+ <el-button size="mini" @click="closeDefaultPopover()">取消</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ <i slot="reference" class="el-icon-delete reportModel didi-hover" />
|
|
|
|
+ </el-popover>
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
|
|
+ <el-row type="flex" justify="center">
|
|
|
|
+ <el-col :span="24">
|
|
|
|
+ <span class="didi-hover" @click="open_new_template()"><i class="el-icon-circle-plus-outline creatorList didi-hover" /> <span style="margin-left: 8px; color: #333;">新建模版</span></span>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </div>
|
|
|
|
|
|
- <!-- new模版 -->
|
|
|
|
- <newReportTemplate v-if="reportTamplate" ref="newReportTemplate" class="daily" :template-id="templateId" @getreportTemplate="getreportTemplate" @reportReturn="reportReturn" />
|
|
|
|
- <!-- new模版 -->
|
|
|
|
|
|
+ <!-- new模版 -->
|
|
|
|
+ <newReportTemplate v-if="reportTamplate" ref="newReportTemplate" class="daily" :template-id="templateId" @getreportTemplate="getreportTemplate" @reportReturn="reportReturn" />
|
|
|
|
+ <!-- new模版 -->
|
|
|
|
|
|
- <!-- 新建日报模版 -->
|
|
|
|
- <dailyTemplate v-if="newDailyTemplate" ref="dailyTemplate" class="daily" :model-id="fromData.radio" :task-ids="daily_taskIds" @SaveNextStep="SaveNextStep" />
|
|
|
|
- <!-- 新建日报模版 -->
|
|
|
|
|
|
+ <!-- 新建日报模版 -->
|
|
|
|
+ <dailyTemplate v-if="newDailyTemplate" ref="dailyTemplate" class="daily" :model-id="fromData.radio" :task-ids="daily_taskIds" @SaveNextStep="SaveNextStep" />
|
|
|
|
+ <!-- 新建日报模版 -->
|
|
|
|
|
|
- <!-- 日报预览 -->
|
|
|
|
- <dailyPreview v-if="dailyPreview" ref="dailyPreview" class="daily" :daily-id="dailyId" @handleClose="handleClose" />
|
|
|
|
- <!-- 日报预览 -->
|
|
|
|
|
|
+ <!-- 日报预览 -->
|
|
|
|
+ <dailyPreview v-if="dailyPreview" ref="dailyPreview" class="daily" :daily-id="dailyId" @handleClose="handleClose" />
|
|
|
|
+ <!-- 日报预览 -->
|
|
|
|
|
|
- </div>
|
|
|
|
- <div slot="footer" class="dialog-footer" align="center">
|
|
|
|
- <!-- 新建模版 -->
|
|
|
|
- <el-button v-if="reportTamplate" size="small" type="primary" @click="created_out()">保存</el-button>
|
|
|
|
- <!-- 第一步 -->
|
|
|
|
- <el-button v-if="showOne" size="small" type="primary" @click="NextStep()">下一步</el-button>
|
|
|
|
- <!-- 第二步 -->
|
|
|
|
- <el-button v-if="newDailyTemplate" size="small" type="primary" @click="reportReturn">上一步</el-button>
|
|
|
|
- <el-button v-if="newDailyTemplate" size="small" type="primary" @click="getCreateData">保存, 下一步</el-button>
|
|
|
|
- <!-- 第三步 -->
|
|
|
|
- <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>
|
|
|
|
</div>
|
|
</div>
|
|
- <div class="bg"></div>
|
|
|
|
- </div>
|
|
|
|
- <!-- </el-dialog> -->
|
|
|
|
|
|
+ <div slot="footer" class="dialog-footer" align="center">
|
|
|
|
+ <!-- 新建模版 -->
|
|
|
|
+ <el-button v-if="reportTamplate" size="small" type="primary" @click="created_out()">保存</el-button>
|
|
|
|
+ <!-- 第一步 -->
|
|
|
|
+ <el-button v-if="showOne" size="small" type="primary" @click="NextStep()">下一步</el-button>
|
|
|
|
+ <!-- 第二步 -->
|
|
|
|
+ <el-button v-if="newDailyTemplate" size="small" type="primary" @click="reportReturn">上一步</el-button>
|
|
|
|
+ <el-button v-if="newDailyTemplate" size="small" type="primary" @click="getCreateData">保存, 下一步</el-button>
|
|
|
|
+ <!-- 第三步 -->
|
|
|
|
+ <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>
|
|
|
|
+ <!-- </div> -->
|
|
|
|
+ <!-- <div class="bg" /> -->
|
|
|
|
+ </modal>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -89,12 +87,13 @@ import { settingQueryReportModuleList, settingDeleteReportModule, dailyReportGet
|
|
import dailyTemplate from '@/views/reportManagement/daily/dailyTemplate.vue'
|
|
import dailyTemplate from '@/views/reportManagement/daily/dailyTemplate.vue'
|
|
import newReportTemplate from '@/views/reportManagement/daily/newReportTemplate.vue'
|
|
import newReportTemplate from '@/views/reportManagement/daily/newReportTemplate.vue'
|
|
import dailyPreview from '@/views/reportManagement/daily/dailyPreview.vue'
|
|
import dailyPreview from '@/views/reportManagement/daily/dailyPreview.vue'
|
|
-
|
|
|
|
|
|
+import modal from '@/components/modal'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
dailyTemplate,
|
|
dailyTemplate,
|
|
newReportTemplate,
|
|
newReportTemplate,
|
|
- dailyPreview
|
|
|
|
|
|
+ dailyPreview,
|
|
|
|
+ modal
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -306,25 +305,6 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
-.dialogbox {
|
|
|
|
- .content {
|
|
|
|
- position: fixed;
|
|
|
|
- top:10vh;
|
|
|
|
- width: 800px;
|
|
|
|
- height: 90vh;
|
|
|
|
- background: #fff;
|
|
|
|
- z-index: 1000;
|
|
|
|
- }
|
|
|
|
- .bg {
|
|
|
|
- background: rgba(000, 000, 000, 0.6);
|
|
|
|
- position: fixed;
|
|
|
|
- top: 0;
|
|
|
|
- left: 0;
|
|
|
|
- bottom: 0;
|
|
|
|
- right: 0;
|
|
|
|
- z-index: 100;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
|
|
.report-leftRight {
|
|
.report-leftRight {
|
|
margin: 20px 9% 0%;
|
|
margin: 20px 9% 0%;
|
|
@@ -410,11 +390,11 @@ export default {
|
|
color:rgba(51,51,51,1);
|
|
color:rgba(51,51,51,1);
|
|
opacity:1;
|
|
opacity:1;
|
|
}
|
|
}
|
|
-.daily {
|
|
|
|
- max-height: 460px;
|
|
|
|
- overflow:scroll;
|
|
|
|
- overflow-x: hidden
|
|
|
|
-}
|
|
|
|
|
|
+// .daily {
|
|
|
|
+ // max-height: 460px;
|
|
|
|
+ // overflow:scroll;
|
|
|
|
+ // overflow-x: hidden
|
|
|
|
+// }
|
|
|
|
|
|
.blur-column {
|
|
.blur-column {
|
|
width:4px;
|
|
width:4px;
|