Browse Source

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

master
123456 3 years ago
parent
commit
f75a740ba6
  1. 2
      src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue
  2. 37
      src/views/modules/plugins/point/icpointnucleicmonitoring.vue
  3. 35
      src/views/modules/plugins/point/icpointvaccinesinoculation.vue

2
src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue

@ -335,7 +335,7 @@ export default {
//
getFormInfo() {
this.$http
.post(`/gov/org/agency/community-list`)
.post(`/gov/org/agency/communityListByCustomerId`)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg);

37
src/views/modules/plugins/point/icpointnucleicmonitoring.vue

@ -87,7 +87,7 @@
style="margin-left: 10px"
size="small"
class="diy-button--delete"
>导入核酸测点数据</el-button
>导入核酸测点数据</el-button
>
</el-upload>
<el-button style="float:left;margin-left:10px"
@ -172,7 +172,7 @@
<el-button
type="text"
size="small"
@click="deleteHandle(scope.row.id)"
@click="handleDelete(scope.row.id)"
>{{ $t("delete") }}</el-button
>
</template>
@ -229,7 +229,7 @@
import mixinViewModule from "@/mixins/view-module";
import AddOrUpdate from "./icpointnucleicmonitoring-add-or-update";
import icpointNoice from "./icpointNoice";
import { requestPost } from "@/js/dai/request";
export default {
mixins: [mixinViewModule],
data() {
@ -263,6 +263,37 @@ export default {
this.getFormInfo();
},
methods: {
async handleDelete (id) {
this.$confirm("确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.deleteNat(id)
})
.catch(err => {
if (err == "cancel") {
}
});
},
async deleteNat (id) {
const url = "/epmetuser/icPointNucleicMonitoring/delete"
let params = [id]
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.$message({
type: "success",
message: "删除成功"
});
this.getDataList()
} else {
this.$message.error(msg)
}
},
//
async handleExport () {
let title = '核酸检测点'

35
src/views/modules/plugins/point/icpointvaccinesinoculation.vue

@ -192,7 +192,7 @@
<el-button
type="text"
size="small"
@click="deleteHandle(scope.row.id)"
@click="handleDelete(scope.row.id)"
>{{ $t("delete") }}</el-button
>
</template>
@ -249,7 +249,7 @@
import mixinViewModule from "@/mixins/view-module";
import AddOrUpdate from "./icpointvaccinesinoculation-add-or-update";
import icpointNoice from "./icpointNoice";
import { requestPost } from "@/js/dai/request";
export default {
mixins: [mixinViewModule],
data() {
@ -279,6 +279,37 @@ export default {
this.noticeFun();
},
methods: {
async handleDelete (id) {
this.$confirm("确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.deleteNat(id)
})
.catch(err => {
if (err == "cancel") {
}
});
},
async deleteNat (id) {
const url = "/epmetuser/icPointVaccinesInoculation/delete"
let params = [id]
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.$message({
type: "success",
message: "删除成功"
});
this.getDataList()
} else {
this.$message.error(msg)
}
},
//
async handleExport () {
let title = '疫苗接种点'

Loading…
Cancel
Save