代码补正
This commit is contained in:
parent
638339cbce
commit
16ee494983
@ -340,7 +340,7 @@ export default {
|
|||||||
dictLabel: row.label,
|
dictLabel: row.label,
|
||||||
manageId: row.manageId,
|
manageId: row.manageId,
|
||||||
driverIds: row.driverIds ? row.driverIds.split(",").map(item => parseInt(item)) : null,
|
driverIds: row.driverIds ? row.driverIds.split(",").map(item => parseInt(item)) : null,
|
||||||
dictId: row.id
|
dictId: row.id,
|
||||||
}
|
}
|
||||||
getDictStaff(row.id).then(res => {
|
getDictStaff(row.id).then(res => {
|
||||||
if (res.data[0]){
|
if (res.data[0]){
|
||||||
@ -366,6 +366,7 @@ export default {
|
|||||||
this.$refs["bindForm"].validate(valid => {
|
this.$refs["bindForm"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.bindForm.driverIds = this.bindForm.driverIds ? this.bindForm.driverIds.join(",") : null
|
this.bindForm.driverIds = this.bindForm.driverIds ? this.bindForm.driverIds.join(",") : null
|
||||||
|
this.bindForm.id = this.bindForm.id ? this.bindForm.id.id : null
|
||||||
bindDictStaff(this.bindForm).then(response => {
|
bindDictStaff(this.bindForm).then(response => {
|
||||||
this.$modal.msgSuccess("绑定成功");
|
this.$modal.msgSuccess("绑定成功");
|
||||||
this.bindOpen = false;
|
this.bindOpen = false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user