|
@ -17,11 +17,13 @@ |
|
|
:key="'ct' + index" |
|
|
:key="'ct' + index" |
|
|
v-for="(item, index) in tableData" |
|
|
v-for="(item, index) in tableData" |
|
|
> |
|
|
> |
|
|
<div class="item-btns"> |
|
|
<div |
|
|
<a v-if="currentIndex == index" @click="handleEdit">修改</a> |
|
|
class="item-btn" |
|
|
<a v-if="currentIndex == index" @click="handleDel">删除</a> |
|
|
v-if="currentIndex == index" |
|
|
|
|
|
@click="handleEdit" |
|
|
|
|
|
> |
|
|
|
|
|
修改 |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="item-name">{{ item.centerName }}</div> |
|
|
<div class="item-name">{{ item.centerName }}</div> |
|
|
<div class="item-prop"> |
|
|
<div class="item-prop"> |
|
|
<div class="prop-field">社区地址:</div> |
|
|
<div class="prop-field">社区地址:</div> |
|
@ -79,6 +81,7 @@ |
|
|
@click="handleOrder(scope.$index)" |
|
|
@click="handleOrder(scope.$index)" |
|
|
type="text" |
|
|
type="text" |
|
|
size="small" |
|
|
size="small" |
|
|
|
|
|
style="color: #1c6afd" |
|
|
>预约</el-button |
|
|
>预约</el-button |
|
|
> |
|
|
> |
|
|
|
|
|
|
|
@ -86,7 +89,7 @@ |
|
|
@click="handleOrderList(scope.$index)" |
|
|
@click="handleOrderList(scope.$index)" |
|
|
type="text" |
|
|
type="text" |
|
|
size="small" |
|
|
size="small" |
|
|
style="margin-right: 10px; color: #00a7a9" |
|
|
style="margin-right: 10px; color: #1c6afd" |
|
|
>预约记录</el-button |
|
|
>预约记录</el-button |
|
|
> |
|
|
> |
|
|
</template> |
|
|
</template> |
|
@ -155,7 +158,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { requestPost } from "@/js/dai/request2"; |
|
|
import { requestPost } from "@/js/dai/request"; |
|
|
import nextTick from "dai-js/tools/nextTick"; |
|
|
import nextTick from "dai-js/tools/nextTick"; |
|
|
import { mapGetters } from "vuex"; |
|
|
import { mapGetters } from "vuex"; |
|
|
import editForm from "./cpts/edit"; |
|
|
import editForm from "./cpts/edit"; |
|
@ -311,19 +314,21 @@ export default { |
|
|
this.$refs.eleOrderList.init(this.tableData[this.currentIndex], index); |
|
|
this.$refs.eleOrderList.init(this.tableData[this.currentIndex], index); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async handleDel() { |
|
|
async handleDel(rowData, rowIndex) { |
|
|
if (!confirm("删除后不可恢复,确定删除?")) return; |
|
|
console.log(rowData, rowIndex); |
|
|
|
|
|
const url = |
|
|
|
|
|
"/heart/iccommunityselforganization/delcommunityselforganization"; |
|
|
|
|
|
const { tableData } = this; |
|
|
|
|
|
|
|
|
const item = this.tableData[this.currentIndex]; |
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
const url = "/gov/org/icpartyservicecenter/del"; |
|
|
orgId: tableData[rowIndex].orgId, |
|
|
|
|
|
}); |
|
|
const { data, code, msg } = await requestPost(url, [ |
|
|
|
|
|
item.partyServiceCenterId, |
|
|
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
this.$message.success("删除成功!"); |
|
|
this.$message.success("删除成功!"); |
|
|
this.getTableData(); |
|
|
this.getTableData(); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.success("操作失败!"); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -356,6 +361,8 @@ export default { |
|
|
|
|
|
|
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
this.agencyId = data.agencyId; |
|
|
this.agencyId = data.agencyId; |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(msg); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
@ -409,37 +416,21 @@ export default { |
|
|
background-color: #ffffff; |
|
|
background-color: #ffffff; |
|
|
box-shadow: 0 0 10px #6aa; |
|
|
box-shadow: 0 0 10px #6aa; |
|
|
} |
|
|
} |
|
|
|
|
|
.item-btn { |
|
|
.item-btns { |
|
|
|
|
|
position: absolute; |
|
|
position: absolute; |
|
|
top: 5px; |
|
|
top: 5px; |
|
|
right: 5px; |
|
|
right: 5px; |
|
|
// width: 120px; |
|
|
|
|
|
|
|
|
|
|
|
a { |
|
|
|
|
|
display: inline-block; |
|
|
|
|
|
margin-left: 1px; |
|
|
|
|
|
font-size: 14px; |
|
|
font-size: 14px; |
|
|
color: rgb(235, 192, 4); |
|
|
color: #00a7a9; |
|
|
width: 40px; |
|
|
width: 50px; |
|
|
line-height: 30px; |
|
|
line-height: 30px; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
cursor: pointer; |
|
|
cursor: pointer; |
|
|
&:nth-child(2) { |
|
|
|
|
|
color: #aaa; |
|
|
|
|
|
&:hover { |
|
|
|
|
|
// text-decoration: underline; |
|
|
|
|
|
color: #666; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
&:hover { |
|
|
// text-decoration: underline; |
|
|
// text-decoration: underline; |
|
|
color: rgb(250, 208, 23); |
|
|
color: #00a7a9; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.item-name { |
|
|
.item-name { |
|
|
font-size: 16px; |
|
|
font-size: 16px; |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
|