feature(标准跟踪清单): 导入修改
This commit is contained in:
@@ -45,6 +45,31 @@
|
|||||||
:ids.sync="form.templateId"
|
:ids.sync="form.templateId"
|
||||||
:names.sync="form.templateName"
|
:names.sync="form.templateName"
|
||||||
/>
|
/>
|
||||||
|
<!-- 导入失败-->
|
||||||
|
<el-dialog
|
||||||
|
:visible.sync="importFailed.visible"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
width="400px"
|
||||||
|
append-to-body
|
||||||
|
>
|
||||||
|
<p slot="title" style="color:#f60">
|
||||||
|
<span>导入失败</span>
|
||||||
|
</p>
|
||||||
|
<div style="max-height: 300px;overflow: auto;padding: 10px 0;">
|
||||||
|
<p v-html="importFailed.importFailedText" />
|
||||||
|
</div>
|
||||||
|
<div slot="footer" class="demo-drawer-footer">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
round
|
||||||
|
class="common-button-default"
|
||||||
|
icon="el-icon-check"
|
||||||
|
@click="importFailed.importFailed = false"
|
||||||
|
>
|
||||||
|
确认
|
||||||
|
</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -80,6 +105,10 @@ export default {
|
|||||||
exportTemplateFile: 'api/standardTrackingCheckList/exportTemplateFile',
|
exportTemplateFile: 'api/standardTrackingCheckList/exportTemplateFile',
|
||||||
},
|
},
|
||||||
importModalShowFlag: false,
|
importModalShowFlag: false,
|
||||||
|
importFailed: {
|
||||||
|
visible: false,
|
||||||
|
importFailedText: '',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -100,6 +129,8 @@ export default {
|
|||||||
this.visible = false
|
this.visible = false
|
||||||
this.$emit('ok')
|
this.$emit('ok')
|
||||||
} else {
|
} else {
|
||||||
|
this.importFailed.importFailedText = res.message
|
||||||
|
this.importFailed.visible = true
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user