|
@@ -468,7 +468,16 @@ export default {
|
|
|
submitForm() {
|
|
|
this.$refs["dialogForm"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
- this.dialogForm.gunNo = this.dialogForm.checkedGunList.toString();
|
|
|
+ //this.dialogForm.gunNo = this.dialogForm.checkedGunList.toString();
|
|
|
+ let list = [];
|
|
|
+ for (let i = 0; i < this.dialogForm.checkedGunList.length; i++) {
|
|
|
+ for (let j = 0; j < this.allGunList.length; j++) {
|
|
|
+ if (this.dialogForm.checkedGunList[i] == this.allGunList[j].oilGunNo) {
|
|
|
+ list.push(this.allGunList[j].oilGunNo);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.dialogForm.gunNo = list.toString();
|
|
|
if (this.dialogForm.deviceId != null) {
|
|
|
updateManage(this.dialogForm).then((response) => {
|
|
|
this.msgSuccess("修改成功");
|