|
@@ -28,7 +28,8 @@
|
|
|
v-model="formModel.companyId"
|
|
|
filterable
|
|
|
placeholder="请选择"
|
|
|
- style="width: 200px"
|
|
|
+ style="width: 250px"
|
|
|
+ :filter-method="filterMethod"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="result in companyInfoResult"
|
|
@@ -233,10 +234,10 @@ export default {
|
|
|
this.registerTypeResult = jsonData.data;
|
|
|
});
|
|
|
|
|
|
- companyInfoApi.list().then((response) => {
|
|
|
- var jsonData = response.data;
|
|
|
- this.companyInfoResult = jsonData.data;
|
|
|
- });
|
|
|
+ // companyInfoApi.list().then((response) => {
|
|
|
+ // var jsonData = response.data;
|
|
|
+ // this.companyInfoResult = jsonData.data;
|
|
|
+ // });
|
|
|
},
|
|
|
methods: {
|
|
|
closeDialog() {
|
|
@@ -315,6 +316,19 @@ export default {
|
|
|
}
|
|
|
return isLt2M;
|
|
|
},
|
|
|
+ filterMethod(query, item) {
|
|
|
+ var self = this;
|
|
|
+ var formData = new FormData();
|
|
|
+ formData.append("pageSize", 5);
|
|
|
+ formData.append("companyName", query);
|
|
|
+
|
|
|
+ companyInfoApi.list(formData).then(function (response) {
|
|
|
+ var jsonData = response.data;
|
|
|
+ if (jsonData.result) {
|
|
|
+ self.companyInfoResult = jsonData.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
mounted: function () {
|
|
|
var self = this;
|
|
@@ -345,6 +359,23 @@ export default {
|
|
|
idCardUrl +
|
|
|
"?x-oss-process=image/resize,m_lfit,h_200";
|
|
|
}
|
|
|
+
|
|
|
+ let companyId = self.formModel.companyId;
|
|
|
+ if (companyId != null) {
|
|
|
+ var formData = new FormData();
|
|
|
+ formData.append("pageSize", 5);
|
|
|
+ formData.append("companyId", companyId);
|
|
|
+
|
|
|
+ companyInfoApi.list(formData).then(function (response) {
|
|
|
+ var jsonData = response.data;
|
|
|
+ if (jsonData.result) {
|
|
|
+ self.companyInfoResult = jsonData.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
} else {
|
|
|
self.$message.error(jsonData.message + "");
|
|
|
}
|