|
@@ -118,7 +118,8 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column :label="$t('设计压力')+'(MPa)'" align="center" prop="desPressure" :show-overflow-tooltip="true">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input v-if="scope.row.isEdit" v-model="scope.row.desPressure" :placeholder="$t('请输入')+$t('设计压力')+'(MPa)'"/>
|
|
|
+ <el-input v-if="scope.row.isEdit" v-model="scope.row.desPressure"
|
|
|
+ :placeholder="$t('请输入')+$t('设计压力')+'(MPa)'"/>
|
|
|
<span v-else>{{ scope.row.desPressure }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -130,7 +131,8 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column :label="$t('操作压力')+'(MPa)'" align="center" prop="optPressure" :show-overflow-tooltip="true">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input v-if="scope.row.isEdit" v-model="scope.row.optPressure" :placeholder="$t('请输入')+$t('操作压力')+'(MPa)'"/>
|
|
|
+ <el-input v-if="scope.row.isEdit" v-model="scope.row.optPressure"
|
|
|
+ :placeholder="$t('请输入')+$t('操作压力')+'(MPa)'"/>
|
|
|
<span v-else>{{ scope.row.optPressure }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -596,7 +598,8 @@
|
|
|
</el-upload>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="submitFileForm"
|
|
|
- v-loading.fullscreen.lock="fullscreenLoading">确 定</el-button>
|
|
|
+ v-loading.fullscreen.lock="fullscreenLoading">确 定
|
|
|
+ </el-button>
|
|
|
<el-button @click="upload.open = false">取 消</el-button>
|
|
|
</div>
|
|
|
<form ref="downloadFileForm" :action="upload.downloadAction" target="FORMSUBMIT">
|
|
@@ -644,12 +647,13 @@
|
|
|
</el-upload>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="thirdSubmitFileForm"
|
|
|
- v-loading.fullscreen.lock="fullscreenLoading">确 定</el-button>
|
|
|
+ v-loading.fullscreen.lock="fullscreenLoading">确 定
|
|
|
+ </el-button>
|
|
|
<el-button @click="thirdUpload.open = false">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 第三方数据列表对话框 -->
|
|
|
- <el-dialog :title="thirdList.title" :visible.sync="thirdList.open" width="540px" append-to-body>
|
|
|
+ <el-dialog :title="thirdList.title" :visible.sync="thirdList.open" width="650px" append-to-body>
|
|
|
<el-table
|
|
|
:data="reportThirdList"
|
|
|
style="width: 100%">
|
|
@@ -677,6 +681,18 @@
|
|
|
</a>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column :label="$t('操作')" align="center" fixed="right">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ v-hasPermi="['sems:reportYlgd:remove']"
|
|
|
+ @click="handleDeleteThird(scope.row)"
|
|
|
+ >{{ $t('删除') }}
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -696,7 +712,7 @@ import {getToken} from "@/utils/auth";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import YearApprove from './yearapprove'
|
|
|
-import {listTReportThird} from "@/api/sems/tReportThird";
|
|
|
+import {listTReportThird,delReportThird} from "@/api/sems/tReportThird";
|
|
|
import {mylistPlant} from "@/api/system/plant";
|
|
|
|
|
|
export default {
|
|
@@ -867,7 +883,7 @@ export default {
|
|
|
this.getTreeselect();
|
|
|
this.getDicts("spec_approve_status").then(response => {
|
|
|
for (let i = 0; i < response.data.length; i++) {
|
|
|
- if ( ["0","7","8"].includes(response.data[i].dictValue)){
|
|
|
+ if (["0", "7", "8"].includes(response.data[i].dictValue)) {
|
|
|
this.approveStatusOptions.push(response.data[i])
|
|
|
}
|
|
|
}
|
|
@@ -1141,6 +1157,20 @@ export default {
|
|
|
this.msgSuccess(this.$t('删除成功'));
|
|
|
})
|
|
|
},
|
|
|
+ /** 第三方文件删除按钮操作 */
|
|
|
+ handleDeleteThird(row) {
|
|
|
+ const ids = row.id;
|
|
|
+ this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
|
|
|
+ confirmButtonText: this.$t('确定'),
|
|
|
+ cancelButtonText: this.$t('取消'),
|
|
|
+ type: "warning"
|
|
|
+ }).then(function () {
|
|
|
+ return delReportThird(ids);
|
|
|
+ }).then(() => {
|
|
|
+ this.thirdPartyList();
|
|
|
+ this.msgSuccess(this.$t('删除成功'));
|
|
|
+ })
|
|
|
+ },
|
|
|
//提交报告
|
|
|
approveHandle(row) {
|
|
|
var rows = this.dataListSelections.map(item => {
|