|
|
@@ -57,7 +57,7 @@
|
|
|
min-width="40%"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <pre>{{ scope.row.pointName }}</pre>
|
|
|
+ <div style="white-space: pre-wrap">{{ scope.row.pointName }}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
@@ -121,9 +121,9 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- show(defaultSelect) {
|
|
|
- if(this.orgType==null) {
|
|
|
- this.prevOrgType=this.orgType;
|
|
|
+ show(defaultSelect) {
|
|
|
+ if (this.orgType == null) {
|
|
|
+ this.prevOrgType = this.orgType;
|
|
|
this.$modal.alert("请选择机构类型");
|
|
|
return;
|
|
|
}
|
|
|
@@ -132,26 +132,26 @@ export default {
|
|
|
this.selectList = defaultSelect.map((s) => ({ id: s }));
|
|
|
}
|
|
|
if (this.prevOrgType == this.orgType) {
|
|
|
- this.search.itemName=null;
|
|
|
+ this.search.itemName = null;
|
|
|
if (this.search.ruleId) {
|
|
|
this.$refs.st.search();
|
|
|
}
|
|
|
} else {
|
|
|
this.search = this.emptySearch();
|
|
|
ruleListForOrg({ orgType: this.orgType }).then((r) => {
|
|
|
- this.ruleList = r.data;
|
|
|
- this.prevOrgType = this.orgType;
|
|
|
- if (r.data && r.data.length > 0) {
|
|
|
- this.search.ruleId = r.data[0].id;
|
|
|
- }
|
|
|
- });
|
|
|
+ this.ruleList = r.data;
|
|
|
+ this.prevOrgType = this.orgType;
|
|
|
+ if (r.data && r.data.length > 0) {
|
|
|
+ this.search.ruleId = r.data[0].id;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
onHide() {
|
|
|
this.isShow = false;
|
|
|
},
|
|
|
closed() {
|
|
|
- this.$refs.st.dataList=[];
|
|
|
+ this.$refs.st.dataList = [];
|
|
|
},
|
|
|
onSelect(item) {
|
|
|
this.selectList = item;
|