|
|
@@ -466,19 +466,22 @@ export default {
|
|
|
this.isShow = false;
|
|
|
},
|
|
|
getIteamF() {
|
|
|
- if (this.id == null) {
|
|
|
- this.defaultSelect = [];
|
|
|
- return;
|
|
|
- }else{
|
|
|
- api.getPointIds(this.id).then((res) => {
|
|
|
- this.defaultSelect = res.data;
|
|
|
- });
|
|
|
+ // if (this.id == null) {
|
|
|
+ // this.defaultSelect = [];
|
|
|
+ // return;
|
|
|
+ // }else{
|
|
|
+ // api.getPointIds(this.id).then((res) => {
|
|
|
+ // this.defaultSelect = res.data;
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ if (!this.tableData) {
|
|
|
+ return [];
|
|
|
+ } else {
|
|
|
+ return this.tableData.map((d) => d.id);
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
openSelect() {
|
|
|
- this.getIteamF();
|
|
|
- this.$refs.DialogSelect.show();
|
|
|
+ this.$refs.DialogSelect.show(this.getIteamF());
|
|
|
},
|
|
|
onSubmit() {
|
|
|
this.$refs.form.validate(async (isValidate) => {
|