-
新增房屋
+
新增房屋
-
+
-
+
-
- 导入房屋数据
+
+ 导入房屋数据
- 导入
+ 导入
-
导出
+
导出
-
批量删除
+
批量删除
-
+
- 下载小区模板
+ 下载小区模板
- 下载楼栋模板
+ 下载楼栋模板
- 下载房屋模板
+ 下载房屋模板
- 导出一户一档
+ 导出一户一档
-
-
智能填报
+
+ 智能填报
-
更多
+
更多
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
{{ scope.row.sort }}
-
+
-
+
- 查看
+ 查看
- 编辑
+ 编辑
- 删除
+ 删除
-
+
-
-
+
+
-
+
-
+
-
-
+
+ }"
+ :orgId="agencyObj.id"
+ @close="handleDiyClose">
@@ -170,10 +327,11 @@ import { mapGetters } from "vuex";
import { Loading } from "element-ui"; // 引入Loading服务
import baobiao from "@/views/modules/cpts/baobiao";
import communityExportInfo from "./communityExportInfo.vue";
+import util from "@/js/util";
let loading; // 加载动画
export default {
- data() {
+ data () {
return {
searchHeight: 190,//搜索栏高度
source: "tree", //来源
@@ -234,7 +392,7 @@ export default {
ic_house_view_real_data: false, //显示脱敏信息
},
diyDialog: false,
- queryConditions:[]
+ queryConditions: []
};
},
components: {
@@ -243,7 +401,7 @@ export default {
roomDetail,
communityExportInfo
},
- async mounted() {
+ async mounted () {
this.updateBtnAuths();
this.getQueryConditions()
@@ -255,7 +413,7 @@ export default {
// });
},
computed: {
- tableHeight() {
+ tableHeight () {
console.log(this.searchHeight)
let height = this.searchHeight + 270
return this.$store.state.inIframe ? this.clientHeight - height + this.iframeHeight : this.clientHeight - height
@@ -266,7 +424,7 @@ export default {
},
methods: {
// 更新按钮权限
- updateBtnAuths() {
+ updateBtnAuths () {
let rot = this.$route;
if (Array.isArray(rot.meta.btns)) {
rot.meta.btns.forEach((item) => {
@@ -275,7 +433,7 @@ export default {
}
},
- reportForm() {
+ reportForm () {
let paramMap = {
pageSize: this.pageSize,
pageNo: this.pageNo,
@@ -303,25 +461,25 @@ export default {
});
},
- indexMethod(index) {
+ indexMethod (index) {
return index + 1;
},
- handleSortOrderChange(value) {
+ handleSortOrderChange (value) {
this.sortType = value.order === "ascending" ? "asc" : "desc";
this.loadTable();
},
- handleSortChange(value) {
+ handleSortChange (value) {
this.sortType = value.order === "ascending" ? "asc" : "desc";
this.loadTable();
},
- handleEditSort(row) {
+ handleEditSort (row) {
if (!row.isChange) {
row.isChange = true;
}
},
- async handleChangeSort(row, index) {
+ async handleChangeSort (row, index) {
// row.isChange = false
let params = {
@@ -344,20 +502,20 @@ export default {
}
},
- checkSelect(row, index) {
- let isChecked = false;
- if (row.showBtn) {
- // 判断里面是否存在某个参数
- isChecked = true;
- } else {
- isChecked = false;
- }
+ checkSelect (row, index) {
+ let isChecked = true;
+ // if (row.showBtn) {
+ // // 判断里面是否存在某个参数
+ // isChecked = true;
+ // } else {
+ // isChecked = false;
+ // }
return isChecked;
},
- loadTreeFromSearch() { },
+ loadTreeFromSearch () { },
- async loadTable(source, treeObj) {
+ async loadTable (source, treeObj) {
this.source = source;
this.tableLoading = true;
this.addDisabled = true
@@ -424,10 +582,10 @@ export default {
item.doorName;
if (item.agencyId === this.staffAgencyId) {
- item.showBtn = true;
+ // item.showBtn = true;
this.validTableDataNum++;
} else {
- item.showBtn = false;
+ // item.showBtn = false;
}
});
this.tableData = data.list;
@@ -438,12 +596,12 @@ export default {
this.tableLoading = false;
},
- diaClose() {
+ diaClose () {
this.$refs.ref_form.resetData();
this.formShow = false;
},
- handleDetail(row) {
+ handleDetail (row) {
this.detailShow = true;
// const _data = await this.detail(row)
@@ -452,12 +610,12 @@ export default {
});
},
- detailFormCancle() {
+ detailFormCancle () {
// this.$refs.ref_form_detail.diaDestroy()
this.detailShow = false;
},
- handleAdd() {
+ handleAdd () {
this.formTitle = "新增房屋";
this.formShow = true;
this.$nextTick(() => {
@@ -465,7 +623,7 @@ export default {
});
},
- handleEdit(row) {
+ handleEdit (row) {
this.formTitle = "修改房屋";
this.formShow = true;
this.$nextTick(() => {
@@ -473,52 +631,34 @@ export default {
});
},
- addFormCancle() {
+ addFormCancle () {
this.formShow = false;
},
- addFormOk() {
+ addFormOk () {
this.formShow = false;
this.loadTable();
this.$emit('refreshTree')
},
- deleteBatch() {
- if (this.selection.length > 0) {
- this.$confirm("确认删除选择的房屋?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.deleteCommunityBatch();
- })
- .catch((err) => {
- if (err == "cancel") {
- // this.$message({
- // type: "info",
- // message: "已取消删除"
- // });
- }
- });
- } else {
- this.$message.warning("请先选择要删除的房屋");
- }
- },
- selectAll(selection) {
+
+ selectAll (selection) {
this.selection = selection;
},
- selectionChange(selection) {
+ selectionChange (selection) {
this.selection = selection;
},
- async handleDelete(row) {
+ async handleDelete (row) {
this.$confirm("确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
- this.deleteRoom(row);
+ let ids = [row.houseId];
+ //第一次删除,非强制删除
+ this.deleteRoom(ids, false)
+
})
.catch((err) => {
if (err == "cancel") {
@@ -530,18 +670,43 @@ export default {
});
},
- async deleteCommunityBatch() {
- let ids = [];
- this.selection.forEach((element) => {
- ids.push(element.houseId);
- });
+ deleteBatch () {
+ if (this.selection.length > 0) {
+ this.$confirm("确认删除选择的房屋?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ let ids = [];
+ console.log(this.selection);
+ this.selection.forEach((element) => {
+ ids.push(element.houseId);
+ });
+
+ //第一次删除,非强制删除
+ this.deleteRoom(ids, false)
+ })
+ .catch((err) => {
+ if (err == "cancel") {
+ // this.$message({
+ // type: "info",
+ // message: "已取消删除"
+ // });
+ }
+ });
+ } else {
+ this.$message.warning("请先选择要删除的房屋");
+ }
+ },
+ async deleteRoom (ids, forceDelete) {
const url = "/actual/base/communityHouse/deleteCommunityInfoByIds";
-
let params = {
- type: "house",
- ids: ids,
- };
+ forceDelete: forceDelete,
+ type: 'house',
+ ids: ids
+ }
const { data, code, msg } = await requestPost(url, params);
@@ -552,42 +717,34 @@ export default {
});
this.$emit("refreshTree");
this.loadTable();
+
} else if (code > 8000) {
- this.$message({
- showClose: true,
- message: msg,
- duration: 0,
- });
- this.$emit("refreshTree");
- this.loadTable();
- } else {
- this.$message.error(msg);
- }
- },
- async deleteRoom(row) {
- const url = "/actual/base/communityHouse/deleteHouse";
+ this.$confirm(msg, "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
- let params = {
- houseId: row.houseId,
- };
+ this.deleteRoom(ids, true);
+ })
+ .catch((err) => {
+ if (err == "cancel") {
+
+ }
+ });
- const { data, code, msg } = await requestPost(url, params);
- if (code === 0) {
- this.$message({
- type: "success",
- message: "删除成功",
- });
- this.$emit("refreshTree");
- this.loadTable();
} else {
- // this.$message.error(msg);
+ this.$message.error(msg);
}
},
+
+
//导出表格
- async handleExport() {
+ async handleExport () {
// let title = this.agencyObj.label;
// title = title + "—房屋列表";
@@ -641,7 +798,7 @@ export default {
// );
await this.getExportList();
},
- async getExportList(type) {
+ async getExportList (type) {
const url = "/oper/customize/icformitemgroup/list";
let params = {
formCode: "community_info",
@@ -665,34 +822,34 @@ export default {
this.$message.error(msg);
}
},
- async getQueryConditions() {
- let params = {
- formCode: "community_info",
- customerId: this.$store.state.user.customerId,
- };
-
- const { data } = await this.$http.post(
- "/oper/customize/icform/queryItems",
- params
- );
-
- if (data.code === 0) {
- this.queryConditions = data.data.map((item) => {
- return {
- ...item,
- humpName: util.capitalToHump(item.columnName),
- };
- });
- console.log(this.queryConditions);
- } else {
- this.$message.error(data.msg);
- }
+ async getQueryConditions () {
+ let params = {
+ formCode: "community_info",
+ customerId: this.$store.state.user.customerId,
+ };
+
+ const { data } = await this.$http.post(
+ "/oper/customize/icform/queryItems",
+ params
+ );
+
+ if (data.code === 0) {
+ this.queryConditions = data.data.map((item) => {
+ return {
+ ...item,
+ humpName: util.capitalToHump(item.columnName),
+ };
+ });
+ console.log(this.queryConditions);
+ } else {
+ this.$message.error(data.msg);
+ }
},
- handleDiyClose() {
+ handleDiyClose () {
this.diyDialog = false;
},
// 下载文件
- download(data, fileName) {
+ download (data, fileName) {
if (!data) {
return;
}
@@ -716,7 +873,7 @@ export default {
}
},
- handleExportModule(type) {
+ handleExportModule (type) {
let title = ''
let url = ""
@@ -749,7 +906,7 @@ export default {
},
//导出一户一档
- handleExportYihuyidang() {
+ handleExportYihuyidang () {
this.yihuyidangDisabled = true;
let title = this.agencyObj.label;
title = title + "-一户一档";
@@ -809,7 +966,7 @@ export default {
);
},
// 上传文件之前的钩子
- beforeUpload(file) {
+ beforeUpload (file) {
this.files = file;
const isText = file.type === "application/vnd.ms-excel";
@@ -826,11 +983,11 @@ export default {
}
},
// 上传文件个数超过定义的数量
- handleExceed(files, fileList) {
+ handleExceed (files, fileList) {
this.$message.warning(`当前限制选择 1 个文件,请删除后继续上传`);
},
- async uploadFile() {
+ async uploadFile () {
if (this.fileName == "") {
this.$message.warning("请选择要上传的文件!");
return false;
@@ -884,7 +1041,7 @@ export default {
);
},
- showMessage(msg) {
+ showMessage (msg) {
this.$alert(msg, "操作结果", {
confirmButtonText: "关闭",
callback: (action) => {
@@ -894,18 +1051,18 @@ export default {
});
},
- handleSizeChange(val) {
+ handleSizeChange (val) {
this.pageSize = val;
this.pageNo = 1;
this.loadTable();
},
- handleCurrentChange(val) {
+ handleCurrentChange (val) {
this.pageNo = val;
this.loadTable();
},
// 开启加载动画
- startLoading() {
+ startLoading () {
loading = Loading.service({
lock: true, // 是否锁定
text: "正在加载……", // 加载中需要显示的文字
@@ -913,7 +1070,7 @@ export default {
});
},
// 结束加载动画
- endLoading() {
+ endLoading () {
// clearTimeout(timer);
if (loading) {
loading.close();
@@ -921,7 +1078,7 @@ export default {
},
},
watch: {
- selection(val) {
+ selection (val) {
if (val.length > 0) {
this.showDeletBtn = true;
} else {
@@ -929,7 +1086,7 @@ export default {
}
},
'$store.state.sidebarFold': {
- handler(newVal, oldVal) {
+ handler (newVal, oldVal) {
if (newVal) {//收起
this.searchHeight = 155
diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue
index 323d78cec..6b94683cd 100644
--- a/src/views/modules/base/resi.vue
+++ b/src/views/modules/base/resi.vue
@@ -6,7 +6,8 @@
? 'm-form-box-height-auto'
: 'm-form-box-height'
">
-
+
@@ -18,7 +19,7 @@
plain
class="f-right5 diy-button--white"
@click="resetSearchForm">重置
-
+
-
+
{{
scope.row.categoryInfo.bereavedPersonFlag ==
@@ -149,106 +150,106 @@
? "特扶人员 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.chronicDiseaseFlag ==
1
? "慢病 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.dementedFlag == 1
? "失智老人 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.disabilityFlag == 1
? "残疾 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.disabledFlag == 1
? "失能老人 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.emptyNesterFlag == 1
? "空巢老人 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.ensureHouseFlag == 1
? "保障房人员 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.fertileWomanFlag == 1
? "育龄妇女 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.floatingFlag == 1
? "流动人口 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.liveAloneFlag == 1
? "独居老人 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.oldPeopleFlag == 1
? "老年人 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.partyFlag == 1
? "党员 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo
.petitionOfficerFlag == 1
? "信访人员 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.seriousIllnessFlag ==
1
? "大病 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.specialCrowdFlag == 1
? "特殊人群 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo
.subsistenceAllowanceFlag == 1
? "低保人员 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.tenantFlag == 1
? "租户 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.unemployedFlag == 1
? "失业 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.unitedFrontFlag == 1
? "统战人员 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.veteranFlag == 1
? "退役军人 "
: ""
}}
- {{
+ {{
scope.row.categoryInfo.volunteerFlag == 1
? "志愿者 "
: ""
@@ -510,16 +511,16 @@ export default {
tableData: [],
searchList: [],
exportList: [],
-
+
editTableName: {},
formName: "",
tableHeader: [
{ columnName: "name", label: "姓名", width: 80 },
{ columnName: "birthday", label: "生日", width: 100 },
{ columnName: "gender", label: "性别", width: 50 },
- { columnName: "agencyName", label: "所属组织",width:150 },
- { columnName: "gridName", label: "所属网格",width:150 },
- { columnName: "homeName", label: "所属房屋",width:150 },
+ { columnName: "agencyName", label: "所属组织", width: 150 },
+ { columnName: "gridName", label: "所属网格", width: 150 },
+ { columnName: "homeName", label: "所属房屋", width: 150 },
{ columnName: "idNum", label: "证件号", width: 170 },
{ columnName: "categoryInfo", label: "居民分类" },
{ columnName: "mobile", label: "联系电话", width: 110 },
@@ -553,7 +554,7 @@ export default {
},
category: this.$route.query.category,
- searchForm:{},
+ searchForm: {},
};
},
@@ -623,32 +624,33 @@ export default {
},
handleSearchFrom (type) {
// 使用解构赋值获取需要的属性
- const { categoryKey, agencyId, level } = this.$refs.myResiSearch.form;
- // 深复制对象
- let _obj = JSON.parse(JSON.stringify(this.$refs.myResiSearch.form));
- // 处理 categoryKey
- if (Array.isArray(categoryKey) && categoryKey.length) {
- _obj.categoryKey = categoryKey.join(",");
- } else {
- _obj.categoryKey = "";
- }
+ const { categoryKey, agencyId, level } = this.$refs.myResiSearch.form;
+ // 深复制对象
+ let _obj = JSON.parse(JSON.stringify(this.$refs.myResiSearch.form));
+ // 处理 categoryKey
+ if (Array.isArray(categoryKey) && categoryKey.length) {
+ _obj.categoryKey = categoryKey.join(",");
+ } else {
+ _obj.categoryKey = "";
+ }
- // 处理 agencyId
- if (Array.isArray(agencyId) && agencyId.length) {
- _obj.agencyId = agencyId[agencyId.length - 1];
- } else {
- _obj.agencyId = "";
- }
+ // 处理 agencyId
+ if (Array.isArray(agencyId) && agencyId.length) {
+ _obj.agencyId = agencyId[agencyId.length - 1];
+ } else {
+ _obj.agencyId = "";
+ }
- _obj.level = level || ''; // 使用逻辑或操作符简化代码
- if(type){
- this.currentPage = 1
- }
- this.getTableData(_obj);
- this.searchForm = _obj;
- // 还原form的值
- this.$refs.myResiSearch.form.categoryKey = categoryKey;
- this.$refs.myResiSearch.form.agencyId = agencyId;
+ _obj.level = level || ''; // 使用逻辑或操作符简化代码
+ _obj.orgType = level || ''; // 使用逻辑或操作符简化代码
+ if (type) {
+ this.currentPage = 1
+ }
+ this.getTableData(_obj);
+ this.searchForm = _obj;
+ // 还原form的值
+ this.$refs.myResiSearch.form.categoryKey = categoryKey;
+ this.$refs.myResiSearch.form.agencyId = agencyId;
},
// 居民多选是否禁止选中
// checkSelectable (row, index) {
@@ -693,7 +695,7 @@ export default {
handleDiyClose () {
this.diyDialog = false;
},
-
+
async diyExport () {
await this.getExportList();
console.log(this.$refs['']);
@@ -776,7 +778,7 @@ export default {
this.handleSearchFrom()
},
handleCurrentChange (val) {
-
+
this.currentPage = val;
this.handleSearchFrom()
@@ -1051,7 +1053,7 @@ export default {
}
this.tabsList = [...list];
},
-
+
async handleEditSUbmit () {
this.handleSUbmit();
},
@@ -1213,7 +1215,7 @@ export default {
pageSize: this.pageSize,
...obj,
};
-
+
this.tableLoading = true;
const { data } = await this.$http.post(
"/actual/base/residentBaseInfo/page",
@@ -1327,16 +1329,16 @@ export default {
$route: {
handler: function (newVal, oldVal) {
if (newVal.name == "base-resi") {
- this.$nextTick(()=>{
- if( newVal.params.category){
- this.$refs.myResiSearch.form.categoryKey = []
- this.$refs.myResiSearch.form.categoryKey.push(newVal.params.category)
- this.handleSearchFrom()
- }else{
- this.$refs.myResiSearch.form.categoryKey = []
- this.getTableData()
- }
- })
+ this.$nextTick(() => {
+ if (newVal.params.category) {
+ this.$refs.myResiSearch.form.categoryKey = []
+ this.$refs.myResiSearch.form.categoryKey.push(newVal.params.category)
+ this.handleSearchFrom()
+ } else {
+ this.$refs.myResiSearch.form.categoryKey = []
+ this.getTableData()
+ }
+ })
}
},
deep: true,
@@ -1523,10 +1525,10 @@ export default {
}
}
}
-.resiCategoryInfoBox{
+.resiCategoryInfoBox {
overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- word-wrap: normal;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ word-wrap: normal;
}
diff --git a/src/views/modules/base/residentManagement/louzhang/addForm.vue b/src/views/modules/base/residentManagement/louzhang/addForm.vue
index 59c087d51..1053e3128 100644
--- a/src/views/modules/base/residentManagement/louzhang/addForm.vue
+++ b/src/views/modules/base/residentManagement/louzhang/addForm.vue
@@ -121,6 +121,7 @@
:options="optionsRange"
@change="handleChangeRange"
:props="props"
+ :disabled="formType==='detail'"
clearable />
@@ -182,7 +183,6 @@ export default {
mobile: "",
idNum: "",
dormitoryType: "",
-
rangeList: []
},
@@ -193,13 +193,8 @@ export default {
name: [{ required: true, message: "姓名不能为空", trigger: "change" }],
mobile: [{ required: true, message: "联系电话不能为空", trigger: "change" }],
idNum: [{ required: true, message: "身份证号不能为空", trigger: "change" }],
-
- dormitoryType: [
- { required: true, message: "类型不能为空", trigger: "change" },
- ],
- rangeList: [
- { required: true, message: "管理范围不能为空", trigger: "change" },
- ],
+ dormitoryType: [{ required: true, message: "类型不能为空", trigger: "change" }],
+ rangeList: [{ required: true, message: "管理范围不能为空", trigger: "change" }],
},
};
@@ -208,10 +203,7 @@ export default {
watch: {},
components: {},
- async created () {
-
-
- },
+ async created () { },
async mounted () {
this.startLoading();
await this.endLoading();
@@ -230,7 +222,8 @@ export default {
},
async getDetail (categorizedResiId) {
- const url = `/actual/base/resiCategorized/disability/detail/${categorizedResiId}`;
+ const url = `/actual/base/resiCategorized/buildingUnitChief/detail/${categorizedResiId}`;
+
const { data, code, msg } = await requestGet(url);
if (code === 0) {
console.log(data);
@@ -256,15 +249,7 @@ export default {
handleChangeRange (val) {
console.log('改变范围', val)
- // this.sarr = []
- // const map = new Map();
- // this.getLastItem(
- // this.orgOptions,
- // val,
- // "agencyId"
- // );
- // this.level = this.sarr[this.sarr.length - 1].level
- // this.getValiheList()
+
},
getGridList () {
const { user } = this.$store.state
@@ -319,8 +304,8 @@ export default {
console.log(this.formData);
const url =
this.formType === "edit"
- ? "/actual/base/resiCategorized/disability/update"
- : "/actual/base/resiCategorized/disability/create";
+ ? "/actual/base/resiCategorized/buildingUnitChief//update"
+ : "/actual/base/resiCategorized/buildingUnitChief//create";
const { data, code, msg } = await requestPost(url, this.formData);
if (code === 0) {
diff --git a/src/views/modules/base/residentManagement/louzhang/louzhangList.vue b/src/views/modules/base/residentManagement/louzhang/louzhangList.vue
index 67eed30ba..67b9e3e08 100644
--- a/src/views/modules/base/residentManagement/louzhang/louzhangList.vue
+++ b/src/views/modules/base/residentManagement/louzhang/louzhangList.vue
@@ -149,7 +149,7 @@
下载模板
+ @click="handleExportModule">下载模板
{{
scope.row.gender
- ? scope.row.gender == "0"
+ ? scope.row.gender == "1"
? "楼长"
- : scope.row.gender == "1"
+ : scope.row.gender == "0"
? "单元长"
: "--"
: "--"
@@ -325,8 +325,8 @@ export default {
},
computed: {
maxTableHeight () {
- const h = this.clientHeight - this.searchH - 330 + this.iframeHeight;
- const _h = this.clientHeight - 330 - this.searchH;
+ const h = this.clientHeight - this.searchH - 270 + this.iframeHeight;
+ const _h = this.clientHeight - 270 - this.searchH;
return this.$store.state.inIframe ? h : _h;
},
...mapGetters(["clientHeight", "iframeHeight"]),
@@ -501,7 +501,7 @@ export default {
type: "warning",
})
.then(() => {
- this.cancelFuwu([row.categorizedResiId]);
+ this.deleteBatch([row.categorizedResiId]);
})
.catch((err) => {
if (err == "cancel") {
@@ -513,8 +513,8 @@ export default {
});
},
// 删除处理
- async cancelFuwu (id) {
- const url = "/actual/base/resiCategorized/disability/deleteBatch";
+ async deleteBatch (id) {
+ const url = "/actual/base/resiCategorized/buildingUnitChief/deleteBatch";
const { data, code, msg } = await requestPost(url, id);
if (code === 0) {
this.$message.success("删除成功!");
@@ -526,7 +526,7 @@ export default {
// 获取列表
async getTableData () {
this.tableLoading = true;
- const url = "/actual/base/resiCategorized/disability/page";
+ const url = "/actual/base/resiCategorized/buildingUnitChief/page";
const { pageSize, pageNo, formData } = this;
const { data, code, msg } = await requestPost(url, {
pageSize,
@@ -543,7 +543,7 @@ export default {
},
// 导出
async handleExport () {
- const url = "/actual/base/resiCategorized/disability/export";
+ const url = "/actual/base/resiCategorized/buildingUnitChief/export";
const { pageSize, pageNo, formData } = this;
axios({
url: window.SITE_CONFIG["apiURL"] + url,
@@ -581,7 +581,7 @@ export default {
// 下载模板
async handleExportModule () {
let url =
- "/actual/base/resiCategorized/disability/downloadImportTemplate";
+ "/actual/base/resiCategorized/buildingUnitChief/downloadImportTemplate";
let params = {};
await this.$http({
method: "get",
@@ -702,7 +702,7 @@ export default {
type: "warning",
})
.then(() => {
- this.cancelFuwu(this.multiSelection.map((e) => e.categorizedResiId));
+ this.deleteBatch(this.multiSelection.map((e) => e.categorizedResiId));
})
.catch((err) => {
console.error(err);