lijinlong
吕天方 1 year ago
parent 6d98491ec1
commit 855022f780

@ -124,22 +124,7 @@
<div class="btns">
<div class="select-btn" @click="filtrate"></div>
<div class="select-btn reset" @click="reset"></div>
<div class="select-btn select-btn1">导入</div>
<!-- <el-upload
class="upload-demo"
action="1"
ref="uploadOver"
:http-request="exportFile"
:on-success="handleSuccess"
:multiple="false"
:show-file-list="false"
:limit="1"
:file-list="fileList"
>
<div class="export export1">
导入
</div>
</el-upload> -->
<!-- <div class="select-btn select-btn1">导入</div> -->
</div>
<!-- </div> -->
</div>
@ -157,6 +142,7 @@
<el-table-column
type="selection"
reserve-selection
:selectable="checkSelectable"
width="55"
header-align="center"
>
@ -338,6 +324,7 @@ export default {
};
},
methods: {
//
filtrate(){
if(this.form.subdistrict) {
this.form.subdistrict = this.form.subdistrict[1]
@ -345,12 +332,18 @@ export default {
let obj = {...this.pages,...this.form}
this.getTable(obj);
},
//
reset(){
Object.keys(this.form).forEach(key=>this.form[key]='');
this.pages.pageNum = 1;
this.pages.pageSize = 10;
this.getTable(this.pages);
},
// checkBox
checkSelectable(row){
console.log(row)
},
//
async open(item) {
this.dialogVisible = true;
if(item == 'newlyIncreased') {
@ -362,6 +355,7 @@ export default {
this.getTable(this.pages);
}
},
//
Close(item) {
this.dialogVisible = false;
this.isamend = false;
@ -492,32 +486,6 @@ export default {
}
return "";
},
// handleSuccess() {},
// //
// exportFile(e) {
// let downloadLoadingInstance = Loading.service({
// text: "",
// spinner: "el-icon-loading",
// background: "rgba(0, 0, 0, 0.7)",
// });
// let a = new FormData();
// a.append("file", e.file);
// exportEnterprise(a)
// .then((res) => {
// downloadLoadingInstance.close();
// this.queryParms.year = "";
// this.searchBefore = {
// pageSize: 10,
// pageNum: 1,
// };
// this.getList();
// this.$refs.uploadOver.clearFiles();
// })
// .catch(() => {
// downloadLoadingInstance.close();
// this.$model.msgError("");
// });
// },
commentData(item){
if(item instanceof Array) {
item.map((item)=>{
@ -743,26 +711,10 @@ export default {
background: #FDAB5B;
margin-left: 20px;
}
.select-btn1 {
background: #28b384;
margin-left: 20px;
}
.export {
display: flex;
align-items: center;
justify-content: center;
width: 80px;
height: 33px;
// padding: 6px 19px;
border-radius: 2px;
background-color: #28b384;
margin:20px 0 0 20px;
cursor: pointer;
color: #ffffff;
font-size: 14px;
font-family: "Alibaba PuHuiTi";
font-weight: 400;
}
// .select-btn1 {
// background: #28b384;
// margin-left: 20px;
// }
}
.tables {
background-color: #eaf2fd;

Loading…
Cancel
Save