|
|
|
@ -86,7 +86,7 @@
|
|
|
|
|
<el-table-column label="总用地面积(平方米)" align="center" prop="postSort" />
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)"
|
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-view" @click="getInfo"
|
|
|
|
|
v-hasPermi="['system:post:detail']">详情</el-button>
|
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
|
|
|
v-hasPermi="['system:post:edit']">修改</el-button>
|
|
|
|
@ -128,7 +128,7 @@
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<!-- 批量导入对话框 :headers="upload.headers" -->
|
|
|
|
|
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
|
|
|
|
<el-upload ref="upload" :limit="1" accept=".xlsx, .xls"
|
|
|
|
|
<el-upload ref="upload" :limit="1" accept=".xlsx, .xls"
|
|
|
|
|
:action="upload.url + '?updateSupport=' + upload.updateSupport" :disabled="upload.isUploading"
|
|
|
|
|
:on-progress="handleFileUploadProgress" :on-success="handleFileSuccess" :auto-upload="false" drag>
|
|
|
|
|
<i class="el-icon-upload"></i>
|
|
|
|
@ -297,9 +297,9 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 详情按钮操作 */
|
|
|
|
|
handleDetail(row) {
|
|
|
|
|
const postId = row.postId;
|
|
|
|
|
this.$router.push("/manage/detail/" + postId);
|
|
|
|
|
getInfo() {
|
|
|
|
|
this.$store.commit("SET_CRUMBS", this.$route.meta.title + "详情");
|
|
|
|
|
this.$router.push("/manage-info");
|
|
|
|
|
},
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
submitForm: function () {
|
|
|
|
@ -324,7 +324,7 @@ export default {
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
const postIds = row.postId || this.ids;
|
|
|
|
|
this.$modal.confirm('是否确认删除项目编号为"' + postIds + '"的数据项?' + '删除这条信息之后有可能找不回来了,请思考一下哟!' ).then(function () {
|
|
|
|
|
this.$modal.confirm('是否确认删除项目编号为"' + postIds + '"的数据项?' + '删除这条信息之后有可能找不回来了,请思考一下哟!').then(function () {
|
|
|
|
|
return delPost(postIds);
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.getList();
|