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