|
|
@@ -35,6 +35,10 @@
|
|
|
@click="handleDeleteChild">删 除
|
|
|
</el-button>
|
|
|
</template>
|
|
|
+ <template slot="isHandler" slot-scope="scope">
|
|
|
+ <el-switch v-model="scope.row.isHandler" disabled>
|
|
|
+ </el-switch>
|
|
|
+ </template>
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
|
</el-col>
|
|
|
@@ -55,7 +59,7 @@ import {
|
|
|
getList as getUserList,
|
|
|
getDetail as getUserDetail,
|
|
|
add as addUser,
|
|
|
- updata as updateUser,
|
|
|
+ update as updateUser,
|
|
|
remove as removeUser
|
|
|
} from "@/api/device/iotalarmgroupuser";
|
|
|
import {
|
|
|
@@ -215,30 +219,23 @@ export default {
|
|
|
label: "是否为处理人",
|
|
|
prop: "isHandler",
|
|
|
type: "switch",
|
|
|
- row: true,
|
|
|
+ slot: true,
|
|
|
span: 20,
|
|
|
labelWidth: 120,
|
|
|
- // dicData: DIC.yes_no,
|
|
|
- // mock: {
|
|
|
- // type: 'dic'
|
|
|
- // },
|
|
|
- dicData:[
|
|
|
- {
|
|
|
- label:'是',
|
|
|
- value:1
|
|
|
- },
|
|
|
- {
|
|
|
- label:'否',
|
|
|
- value: 0
|
|
|
- }
|
|
|
- ],
|
|
|
- displayAs: 'switch',
|
|
|
+ dicData: [{
|
|
|
+ label: '否',
|
|
|
+ value: 0
|
|
|
+ }, {
|
|
|
+ label: '是',
|
|
|
+ value: 1
|
|
|
+ }],
|
|
|
rules: [{
|
|
|
required: false,
|
|
|
message: "请输入是否为处理人",
|
|
|
trigger: "blur"
|
|
|
}]
|
|
|
},
|
|
|
+
|
|
|
]
|
|
|
},
|
|
|
dataChild: []
|
|
|
@@ -351,9 +348,9 @@ export default {
|
|
|
},
|
|
|
beforeOpen(done, type) {
|
|
|
if (["edit", "view"].includes(type)) {
|
|
|
- getDetail(this.formParent.id).then(res => {
|
|
|
+ /*getDetail(this.formParent.id).then(res => {
|
|
|
this.formParent = res.data.data;
|
|
|
- });
|
|
|
+ });*/
|
|
|
}
|
|
|
done();
|
|
|
},
|
|
|
@@ -430,6 +427,7 @@ export default {
|
|
|
},
|
|
|
rowUpdateChild(row, index, done, loading) {
|
|
|
// row.groupId = this.parentId;
|
|
|
+ debugger
|
|
|
updateUser(row).then(() => {
|
|
|
this.onLoadChild(this.pageChild);
|
|
|
this.$message({
|
|
|
@@ -522,6 +520,7 @@ export default {
|
|
|
const data = res.data.data;
|
|
|
this.pageChild.total = data.total;
|
|
|
this.dataChild = data.records;
|
|
|
+ // debugger
|
|
|
this.dataChild.forEach(item => {
|
|
|
item.isHandler = item.isHandler == 1;
|
|
|
})
|