|
@@ -244,11 +244,11 @@
|
|
|
<el-table-column label="密封点类型" align="center" prop="pointType" width="100" :formatter="pointFormat"
|
|
|
:show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="平台(层)" align="center" prop="layer" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="群组位置" align="center" prop="groupPosition" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <el-table-column label="群组位置" align="center" prop="groupPosition" :show-overflow-tooltip="true" width="150"/>
|
|
|
<el-table-column label="密封点位置" align="center" prop="pointPosition" width="180"
|
|
|
:show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="群组编码" align="center" prop="groupCode" :show-overflow-tooltip="true" width="180"/>
|
|
|
- <el-table-column label="扩展编码" align="center" prop="extendCode" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <el-table-column label="群组编码" align="center" prop="groupCode" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="扩展编码" align="center" prop="extendCode" :show-overflow-tooltip="true" width="150"/>
|
|
|
<el-table-column label="密封点子类型" align="center" prop="subPointType" width="110"
|
|
|
:show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="公称直径(mm)" align="center" prop="dia" width="110" :show-overflow-tooltip="true"/>
|
|
@@ -265,7 +265,7 @@
|
|
|
<span>{{ parseTime(scope.row.runTime, '{y}-{m}-{d}') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="PID图号" align="center" prop="pidNo" :show-overflow-tooltip="true" width="180">
|
|
|
+ <el-table-column label="PID图号" align="center" prop="pidNo" :show-overflow-tooltip="true" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -629,7 +629,7 @@
|
|
|
<div slot="tip" class="el-upload__tip">文件大小建议不超过5Mb</div>
|
|
|
</el-upload>
|
|
|
</el-dialog>
|
|
|
- <el-dialog v-dialogDrag :title="pic.title" :visible.sync="pic.open" width="90%" align="center" append-to-body >
|
|
|
+ <el-dialog v-dialogDrag :title="pic.title" :visible.sync="pic.open" width="90%" align="center" append-to-body>
|
|
|
<div v-if="!pic.picUrl.endsWith('.pdf')">
|
|
|
<el-image
|
|
|
style="width: 30%; margin:10px;border-radius: 5%;"
|
|
@@ -639,10 +639,18 @@
|
|
|
fit="cover"/>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
- <iframe :src="pic.picUrl" style='width:100%; height:700px; display:block;'></iframe>
|
|
|
+ <iframe :src="pic.picUrl" style='width:100%; height:700px; display:block;'></iframe>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<point-detail v-if="detailVisible" ref="pointDetail"></point-detail>
|
|
|
+ <el-dialog width="40%" :visible.sync="importResult" append-to-body>
|
|
|
+ <el-table :data="failList" max-height="500" border>
|
|
|
+ <el-table-column label="导入结果" align="left" prop="result"/>
|
|
|
+ </el-table>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="importCancel" style="margin-top: 20px" type="primary">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -670,6 +678,8 @@ export default {
|
|
|
components: {PointDetail},
|
|
|
data() {
|
|
|
return {
|
|
|
+ failList: [],
|
|
|
+ importResult: false,
|
|
|
pic: {
|
|
|
title: '图片预览',
|
|
|
picUrl: '',
|
|
@@ -680,7 +690,7 @@ export default {
|
|
|
loadedRatio: 0,
|
|
|
picList: [],
|
|
|
},
|
|
|
- dwidth:'500px',
|
|
|
+ dwidth: '500px',
|
|
|
detailVisible: false,
|
|
|
fullscreenLoading: false,
|
|
|
// 用户导入参数
|
|
@@ -851,6 +861,9 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+ importCancel() {
|
|
|
+ this.importResult = false;
|
|
|
+ },
|
|
|
handleSee(row, flag) {
|
|
|
this.pic.picList = []
|
|
|
this.pic.open = true
|
|
@@ -919,10 +932,18 @@ export default {
|
|
|
this.$refs.upload.clearFiles();
|
|
|
this.fullscreenLoading = false;
|
|
|
console.log(response)
|
|
|
- if (response.data === 0) {
|
|
|
- this.$alert(this.$t('导入失败!') + response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
|
|
|
- } else if (response.data[0] != null) {
|
|
|
- this.$alert(this.$t('成功导入') + response.msg + this.$t('条数据') + "," + this.$t('第') + response.data + this.$t('行数据出现错误导入失败') + "。", this.$t('导入结果'), {dangerouslyUseHTMLString: true});
|
|
|
+ if (response.data[0] != null) {
|
|
|
+ this.importResult = true;
|
|
|
+ this.failList = [];
|
|
|
+ const arr = [];
|
|
|
+ arr.push(this.$t('成功导入') + response.msg + this.$t('条数据'));
|
|
|
+ response.data.forEach(item => {
|
|
|
+ arr.push(item);
|
|
|
+ })
|
|
|
+ this.failList = arr.map(item => {
|
|
|
+ return {result: item}
|
|
|
+ })
|
|
|
+ this.failList.sort()
|
|
|
} else {
|
|
|
this.$alert(this.$t('成功导入') + response.msg + this.$t('条数据'), this.$t('导入结果'), {dangerouslyUseHTMLString: true});
|
|
|
}
|
|
@@ -1129,7 +1150,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- handleDisabled(id){
|
|
|
+ handleDisabled(id) {
|
|
|
this.$modal.confirm('是否确认作废数据项?注意!该操作不可逆!').then(function () {
|
|
|
return handleDisabled(id);
|
|
|
}).then(() => {
|