+
+
+
+
+
+
+
@@ -138,6 +155,8 @@
queryParams: {
pageNum: 1,
pageSize: 10,
+ csId: null,
+ fwId: null,
fwName: null
},
// 表单参数
@@ -171,6 +190,7 @@
// 表单重置
reset() {
this.form = {
+ id: null,
csId: null,
fwId: null,
fwName: null
@@ -189,7 +209,7 @@
},
// 多选框选中数据
handleSelectionChange(selection) {
- this.ids = selection.map(item => item.csId)
+ this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
@@ -202,8 +222,8 @@
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
- const csId = row.csId || this.ids
- getCs_fw(csId).then(response => {
+ const id = row.id || this.ids
+ getCs_fw(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改场所房屋关联";
@@ -213,7 +233,7 @@
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
- if (this.form.csId != null) {
+ if (this.form.id != null) {
updateCs_fw(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
@@ -231,9 +251,9 @@
},
/** 删除按钮操作 */
handleDelete(row) {
- const csIds = row.csId || this.ids;
- this.$modal.confirm('是否确认删除场所房屋关联编号为"' + csIds + '"的数据项?').then(function() {
- return delCs_fw(csIds);
+ const ids = row.id || this.ids;
+ this.$modal.confirm('是否确认删除场所房屋关联编号为"' + ids + '"的数据项?').then(function() {
+ return delCs_fw(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");