e25043c9 by 杨威

代码优化

1 parent 76a3cd95
......@@ -186,11 +186,11 @@
created() {
},
methods: {
currentChange: function (val) {
currentChange(val) {
this.queryData.pageNo = val;
this.getData(this.queryData);
},
reset: function () {
reset(){
this.queryData = {
bdcdyh: "",
bdcqzh: "",
......@@ -204,23 +204,23 @@
};
this.getData(this.queryData)
},
getData: function (data) {
getData(data){
data['dylxs'] = this.dylxs;
getSearchList(data).then(res => {
this.Data = res.result.records
this.total = res.result.total;
})
},
search: function () {
search(){
this.getData(this.queryData)
},
addData: function (val) {
addData(val){
this.$emit("getData", val)
if (this.isZdClose) {
this.close();
}
},
close: function () {
close(){
this.$emit('close')
this.reset();
}
......
......@@ -756,4 +756,7 @@
color: blue;
text-decoration: underline;
}
/deep/ .el-select {
width: 100%;
}
</style>
......