|
@@ -1288,8 +1288,13 @@ export default class extends Vue {
|
|
|
formData.append('projectid', projectId);
|
|
formData.append('projectid', projectId);
|
|
|
GetProjectlist(formData).then(response => {
|
|
GetProjectlist(formData).then(response => {
|
|
|
if (response.StatusCode == 200) {
|
|
if (response.StatusCode == 200) {
|
|
|
- that.checkedProject = response.Data[0];
|
|
|
|
|
- that.radioClick(response.Data[0].servicecode,'',false);
|
|
|
|
|
|
|
+ const serviceCodeIndex = that.fwsList.findIndex(item => item.shop_code == response.Data[0].servicecode);
|
|
|
|
|
+ if (serviceCodeIndex == -1){
|
|
|
|
|
+ that.radioClick(that.fwsList[0].shop_code,'',true);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ that.checkedProject = response.Data[0];
|
|
|
|
|
+ that.radioClick(response.Data[0].servicecode,'',false);
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
// console.log(response.Info)
|
|
// console.log(response.Info)
|
|
|
}
|
|
}
|