|
@@ -22,10 +22,10 @@
|
|
</div>
|
|
</div>
|
|
<p class="add-for-p" @click="addData(1)"><i class="el-icon-plus"></i>添加传感器</p>
|
|
<p class="add-for-p" @click="addData(1)"><i class="el-icon-plus"></i>添加传感器</p>
|
|
</div>
|
|
</div>
|
|
- <div class="title-box">
|
|
|
|
|
|
+ <div class="title-box" v-if="subjectData.hardwareType==1">
|
|
<p class="left-title">智能门禁</p>
|
|
<p class="left-title">智能门禁</p>
|
|
</div>
|
|
</div>
|
|
- <div class="for-max-box">
|
|
|
|
|
|
+ <div class="for-max-box" v-if="subjectData.hardwareType==1">
|
|
<div class="for-big-box" v-for="(item,index) in listHK" :key="index" style="width: 350px">
|
|
<div class="for-big-box" v-for="(item,index) in listHK" :key="index" style="width: 350px">
|
|
<p class="for-title-p">{{item.type.name}}-{{item.name}}</p>
|
|
<p class="for-title-p">{{item.type.name}}-{{item.name}}</p>
|
|
<div class="for-text-box">
|
|
<div class="for-text-box">
|
|
@@ -117,10 +117,10 @@
|
|
</div>
|
|
</div>
|
|
<p class="add-for-p-two" @click="addData(4)"><i class="el-icon-plus"></i>添加摄像头</p>
|
|
<p class="add-for-p-two" @click="addData(4)"><i class="el-icon-plus"></i>添加摄像头</p>
|
|
</div>
|
|
</div>
|
|
- <div class="title-box">
|
|
|
|
|
|
+ <div class="title-box" v-if="subjectData.hardwareType==2">
|
|
<p class="left-title">电子信息牌</p>
|
|
<p class="left-title">电子信息牌</p>
|
|
</div>
|
|
</div>
|
|
- <div class="for-max-box">
|
|
|
|
|
|
+ <div class="for-max-box" v-if="subjectData.hardwareType==2">
|
|
<div class="for-big-box" v-for="(item,index) in listXxp" :key="index">
|
|
<div class="for-big-box" v-for="(item,index) in listXxp" :key="index">
|
|
<p class="for-title-p">{{subjectData.room}}-{{item.cardName}}{{index+1}}</p>
|
|
<p class="for-title-p">{{subjectData.room}}-{{item.cardName}}{{index+1}}</p>
|
|
<div class="for-text-box">
|
|
<div class="for-text-box">
|
|
@@ -820,6 +820,8 @@ export default {
|
|
cardNum:this.form.cardNum,
|
|
cardNum:this.form.cardNum,
|
|
location:this.form.location,
|
|
location:this.form.location,
|
|
isStart:this.form.isStart,
|
|
isStart:this.form.isStart,
|
|
|
|
+ deptId:this.subjectData.deptId,
|
|
|
|
+ deptName:this.subjectData.deptName,
|
|
}
|
|
}
|
|
subjectSignAdd(obj).then(response => {
|
|
subjectSignAdd(obj).then(response => {
|
|
if(response.code==200){
|
|
if(response.code==200){
|
|
@@ -838,6 +840,8 @@ export default {
|
|
isStart:this.form.isStart,
|
|
isStart:this.form.isStart,
|
|
subjectId:this.subjectData.id,
|
|
subjectId:this.subjectData.id,
|
|
subjectName:this.subjectData.name,
|
|
subjectName:this.subjectData.name,
|
|
|
|
+ deptId:this.subjectData.deptId,
|
|
|
|
+ deptName:this.subjectData.deptName,
|
|
}
|
|
}
|
|
subjectSignEdit(obj).then(response => {
|
|
subjectSignEdit(obj).then(response => {
|
|
this.msgSuccess(response.msg)
|
|
this.msgSuccess(response.msg)
|
|
@@ -900,6 +904,8 @@ export default {
|
|
subjectId:"",
|
|
subjectId:"",
|
|
location:"",
|
|
location:"",
|
|
isStart:"",
|
|
isStart:"",
|
|
|
|
+ deptId:"",
|
|
|
|
+ deptName:"",
|
|
});
|
|
});
|
|
}
|
|
}
|
|
this.addType = true;
|
|
this.addType = true;
|
|
@@ -939,8 +945,10 @@ export default {
|
|
this.addType = true;
|
|
this.addType = true;
|
|
this.upType = type;
|
|
this.upType = type;
|
|
},
|
|
},
|
|
|
|
+
|
|
//获取列表
|
|
//获取列表
|
|
listBySubjectId(){
|
|
listBySubjectId(){
|
|
|
|
+ console.log(this.subjectData)
|
|
let obj = {
|
|
let obj = {
|
|
subjectId:this.subjectData.id
|
|
subjectId:this.subjectData.id
|
|
};
|
|
};
|