Browse Source

Merge branch 'dev' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev

shibei_master
jiangyy 3 years ago
parent
commit
be22f1fa0d
  1. 36
      src/views/modules/communityService/dqfwzx/index.vue

36
src/views/modules/communityService/dqfwzx/index.vue

@ -16,13 +16,11 @@
:class="{ 'z-on': currentIndex == index }"
:key="'ct' + index"
v-for="(item, index) in tableData">
<div class="item-btns">
<a v-if="currentIndex == index"
@click="handleEdit">修改</a>
<a v-if="currentIndex == index"
@click="handleDel">删除</a>
<div class="item-btn"
v-if="currentIndex == index"
@click="handleEdit">
修改
</div>
<div class="item-name">{{ item.centerName }}</div>
<div class="item-prop">
<div class="prop-field">社区地址</div>
@ -138,7 +136,7 @@
</template>
<script>
import { requestPost } from "@/js/dai/request2";
import { requestPost } from "@/js/dai/request";
import nextTick from "dai-js/tools/nextTick";
import { mapGetters } from "vuex";
import editForm from "./cpts/edit";
@ -294,19 +292,21 @@ export default {
this.$refs.eleOrderList.init(this.tableData[this.currentIndex], index);
},
async handleDel () {
if (!confirm("删除后不可恢复,确定删除?")) return;
const item = this.tableData[this.currentIndex];
const url = "/gov/org/icpartyservicecenter/del";
async handleDel (rowData, rowIndex) {
console.log(rowData, rowIndex);
const url =
"/heart/iccommunityselforganization/delcommunityselforganization";
const { tableData } = this;
const { data, code, msg } = await requestPost(url, [
item.partyServiceCenterId,
]);
const { data, code, msg } = await requestPost(url, {
orgId: tableData[rowIndex].orgId,
});
if (code === 0) {
this.$message.success("删除成功!");
this.getTableData();
} else {
this.$message.success("操作失败!");
}
},
@ -339,6 +339,8 @@ export default {
if (code === 0) {
this.agencyId = data.agencyId;
} else {
this.$message.error(msg);
}
},
},
@ -392,8 +394,7 @@ export default {
background-color: #ffffff;
box-shadow: 0 0 10px #6aa;
}
.item-btns {
.item-btn {
position: absolute;
top: 5px;
right: 5px;
@ -408,7 +409,6 @@ export default {
color: #00a7a9;
}
}
.item-name {
font-size: 16px;
font-weight: bold;

Loading…
Cancel
Save