护理站排序修改
This commit is contained in:
parent
68b875dfb5
commit
4a83eff04f
@ -250,13 +250,7 @@
|
|||||||
class-name="small-padding fixed-width"
|
class-name="small-padding fixed-width"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
type="text"
|
|
||||||
icon="el-icon-search"
|
|
||||||
@click="looknurseStationLabelList(scope.row)"
|
|
||||||
>查看标签信息</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@ -311,7 +305,7 @@
|
|||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 查看标签信息 -->
|
<!-- 查看标签信息 -->
|
||||||
<el-dialog
|
<!-- <el-dialog
|
||||||
title="标签信息"
|
title="标签信息"
|
||||||
:visible.sync="nurseStationLabelopen"
|
:visible.sync="nurseStationLabelopen"
|
||||||
width="700px"
|
width="700px"
|
||||||
@ -335,7 +329,7 @@
|
|||||||
>关闭窗口</el-button
|
>关闭窗口</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog> -->
|
||||||
|
|
||||||
<!-- 新增护理站信息对话框 -->
|
<!-- 新增护理站信息对话框 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
@ -552,7 +546,7 @@
|
|||||||
<el-table-column label="排序" width="200" align="center">
|
<el-table-column label="排序" width="200" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="scope.row.sort"
|
v-model="scope.row.labelSort"
|
||||||
placeholder="排序不可输入小数点"
|
placeholder="排序不可输入小数点"
|
||||||
type="number"
|
type="number"
|
||||||
min="0"
|
min="0"
|
||||||
@ -634,10 +628,7 @@ import {
|
|||||||
updateStation,
|
updateStation,
|
||||||
getFirstLevelInfo,
|
getFirstLevelInfo,
|
||||||
getSecondaryLevelInfo,
|
getSecondaryLevelInfo,
|
||||||
getSubordinateRegions,
|
|
||||||
getInfoLists,
|
getInfoLists,
|
||||||
nurseStationlabel,
|
|
||||||
getLabelList,
|
|
||||||
} from "@/api/system/station";
|
} from "@/api/system/station";
|
||||||
import { getInfoList } from "@/api/system/nurseItem";
|
import { getInfoList } from "@/api/system/nurseItem";
|
||||||
import stationAcatar from "../stationAvatar/index.vue";
|
import stationAcatar from "../stationAvatar/index.vue";
|
||||||
@ -858,37 +849,7 @@ export default {
|
|||||||
}else{
|
}else{
|
||||||
this.looknurseStationLabel.splice(index,1)
|
this.looknurseStationLabel.splice(index,1)
|
||||||
}
|
}
|
||||||
// if (item.ids && !item.id) {
|
|
||||||
// if (this.looknurseStationLabel.length == 1) {
|
|
||||||
// // this.$message.error("最后一条不可删除");
|
|
||||||
// this.looknurseStationLabel = [
|
|
||||||
// {
|
|
||||||
// labelDescription: "",
|
|
||||||
// sort: "",
|
|
||||||
// ids: 1,
|
|
||||||
// },
|
|
||||||
// ];
|
|
||||||
// } else {
|
|
||||||
// this.looknurseStationLabel = this.looknurseStationLabel.filter(
|
|
||||||
// (e) => e.ids != item.ids
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
// } else if (!item.ids && item.id) {
|
|
||||||
// if (this.looknurseStationLabel.length == 1) {
|
|
||||||
// // this.$message.error("最后一条不可删除");
|
|
||||||
// this.nurseStationLabelList = [
|
|
||||||
// {
|
|
||||||
// labelDescription: "",
|
|
||||||
// sort: "",
|
|
||||||
// ids: 1,
|
|
||||||
// },
|
|
||||||
// ];
|
|
||||||
// } else {
|
|
||||||
// this.looknurseStationLabel = this.looknurseStationLabel.filter(
|
|
||||||
// (e) => e.id != item.id
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
console.log(this.form.nurseStationLabelList);
|
console.log(this.form.nurseStationLabelList);
|
||||||
},
|
},
|
||||||
addnurseStationLabelList() {
|
addnurseStationLabelList() {
|
||||||
@ -1084,7 +1045,6 @@ export default {
|
|||||||
this.looknurseStationLabel = response.data.nurseStationLabel;
|
this.looknurseStationLabel = response.data.nurseStationLabel;
|
||||||
this.nurseStationType2 = this.form.nurseStationType.split(",");
|
this.nurseStationType2 = this.form.nurseStationType.split(",");
|
||||||
console.log(this.list);
|
console.log(this.list);
|
||||||
|
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
@ -1099,6 +1059,7 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.form.areaCode = Number(this.form.areaCode);
|
this.form.areaCode = Number(this.form.areaCode);
|
||||||
this.form.nurseStationType = this.nurseStationType2.join(",");
|
this.form.nurseStationType = this.nurseStationType2.join(",");
|
||||||
|
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updateStation(this.form).then((response) => {
|
updateStation(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user