|
@@ -7,7 +7,7 @@
|
|
<div class="configDialog-content-min-box">
|
|
<div class="configDialog-content-min-box">
|
|
<p class="configDialog-content-min-title">实验室检查人员配置:</p>
|
|
<p class="configDialog-content-min-title">实验室检查人员配置:</p>
|
|
<div class="configDialog-content-min-checkbox">
|
|
<div class="configDialog-content-min-checkbox">
|
|
- <el-checkbox-group v-model="checkDataList" @change="checkboxChange">
|
|
|
|
|
|
+ <el-checkbox-group v-model="checkDataList" @change="checkboxChange" :disabled="!editType">
|
|
<el-checkbox style="width:170px;margin-right:70px;"
|
|
<el-checkbox style="width:170px;margin-right:70px;"
|
|
v-for="item in checkList" :value="item.key" :label="item.key" :key="item.key">{{item.label}}</el-checkbox>
|
|
v-for="item in checkList" :value="item.key" :label="item.key" :key="item.key">{{item.label}}</el-checkbox>
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
@@ -21,7 +21,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="dialog-footer-box">
|
|
|
|
|
|
+ <div class="dialog-footer-box" v-hasPermi="['check:set:edit']">
|
|
<p class="dialog-footer-button-null"></p>
|
|
<p class="dialog-footer-button-null"></p>
|
|
<p class="dialog-footer-button-info" @click="addDialogOff">取消</p>
|
|
<p class="dialog-footer-button-info" @click="addDialogOff">取消</p>
|
|
<p class="dialog-footer-button-primary" @click="upDataButton">确定</p>
|
|
<p class="dialog-footer-button-primary" @click="upDataButton">确定</p>
|
|
@@ -74,7 +74,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-table ref="leftUserTable" border :data="userTableListLeft" @selection-change="userChangeLeft" :row-key="getRowKeys">
|
|
<el-table ref="leftUserTable" border :data="userTableListLeft" @selection-change="userChangeLeft" :row-key="getRowKeys">
|
|
- <el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
|
|
|
|
|
|
+ <el-table-column v-if="editType" type="selection" width="50" :reserve-selection="true" align="center"/>
|
|
<el-table-column label="姓名" align="center" prop="userName" show-overflow-tooltip/>
|
|
<el-table-column label="姓名" align="center" prop="userName" show-overflow-tooltip/>
|
|
<el-table-column label="学号" align="center" prop="userNumber" show-overflow-tooltip width="80"/>
|
|
<el-table-column label="学号" align="center" prop="userNumber" show-overflow-tooltip width="80"/>
|
|
<el-table-column label="手机号" align="center" prop="phonenumber" show-overflow-tooltip width="100"/>
|
|
<el-table-column label="手机号" align="center" prop="phonenumber" show-overflow-tooltip width="100"/>
|
|
@@ -92,8 +92,8 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="center-box">
|
|
<div class="center-box">
|
|
- <p class="el-icon-arrow-left" @click="userArrowButton(1)"></p>
|
|
|
|
- <p class="el-icon-arrow-right" @click="userArrowButton(2)"></p>
|
|
|
|
|
|
+ <p v-if="editType" class="el-icon-arrow-left" @click="userArrowButton(1)"></p>
|
|
|
|
+ <p v-if="editType" class="el-icon-arrow-right" @click="userArrowButton(2)"></p>
|
|
</div>
|
|
</div>
|
|
<div class="right-max-box">
|
|
<div class="right-max-box">
|
|
<div class="dept-table-title-box">
|
|
<div class="dept-table-title-box">
|
|
@@ -139,7 +139,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-table ref="rightUserTable" border :data="userTableListRight" @selection-change="userChangeRight" :row-key="getRowKeys">
|
|
<el-table ref="rightUserTable" border :data="userTableListRight" @selection-change="userChangeRight" :row-key="getRowKeys">
|
|
- <el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
|
|
|
|
|
|
+ <el-table-column v-if="editType" type="selection" width="50" :reserve-selection="true" align="center"/>
|
|
<el-table-column label="姓名" align="center" prop="userName" show-overflow-tooltip/>
|
|
<el-table-column label="姓名" align="center" prop="userName" show-overflow-tooltip/>
|
|
<el-table-column label="学号" align="center" prop="userNumber" show-overflow-tooltip width="80"/>
|
|
<el-table-column label="学号" align="center" prop="userNumber" show-overflow-tooltip width="80"/>
|
|
<el-table-column label="手机号" align="center" prop="phonenumber" show-overflow-tooltip width="100"/>
|
|
<el-table-column label="手机号" align="center" prop="phonenumber" show-overflow-tooltip width="100"/>
|
|
@@ -157,7 +157,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="dialog-footer-box">
|
|
|
|
|
|
+ <div class="dialog-footer-box" v-hasPermi="['check:set:edit']">
|
|
<p class="dialog-footer-button-null"></p>
|
|
<p class="dialog-footer-button-null"></p>
|
|
<p class="dialog-footer-button-info" @click="addDialogOff">返回</p>
|
|
<p class="dialog-footer-button-info" @click="addDialogOff">返回</p>
|
|
<p class="dialog-footer-button-primary" @click="addUserButton">确定</p>
|
|
<p class="dialog-footer-button-primary" @click="addUserButton">确定</p>
|
|
@@ -177,6 +177,7 @@
|
|
},
|
|
},
|
|
data(){
|
|
data(){
|
|
return{
|
|
return{
|
|
|
|
+ editType:this.hasPermiDom(['check:set:edit']),
|
|
configDialogType:true,
|
|
configDialogType:true,
|
|
configPageType:1,
|
|
configPageType:1,
|
|
checkDataList:[],
|
|
checkDataList:[],
|
|
@@ -455,8 +456,8 @@
|
|
}
|
|
}
|
|
this.$set(this,'dialogTableDataList',list);
|
|
this.$set(this,'dialogTableDataList',list);
|
|
this.$refs.rightUserTable.clearSelection();
|
|
this.$refs.rightUserTable.clearSelection();
|
|
- this.userGetListLeft();
|
|
|
|
- this.userGetListRight();
|
|
|
|
|
|
+ this.userHandleQueryLeft();
|
|
|
|
+ this.userHandleQueryRight();
|
|
}else{
|
|
}else{
|
|
this.msgError('请先勾选右侧列表')
|
|
this.msgError('请先勾选右侧列表')
|
|
}
|
|
}
|
|
@@ -482,30 +483,10 @@
|
|
}
|
|
}
|
|
list.push(obj);
|
|
list.push(obj);
|
|
}
|
|
}
|
|
- // for(let i=0;i<self.userIdsLeft.length;i++){
|
|
|
|
- // for(let o=0;o<self.userTableListLeft.length;o++){
|
|
|
|
- // if(self.userIdsLeft[i] == self.userTableListLeft[o].userId){
|
|
|
|
- // let obj = {
|
|
|
|
- // subId:self.userTableListLeft[o].subjectId,
|
|
|
|
- // subName:self.userTableListLeft[o].subjectName,
|
|
|
|
- // subRom:self.userTableListLeft[o].roomNum,
|
|
|
|
- // deptId:self.userTableListLeft[o].deptId,
|
|
|
|
- // deptName:self.userTableListLeft[o].deptName,
|
|
|
|
- // userId:self.userTableListLeft[o].userId,
|
|
|
|
- // nickName:self.userTableListLeft[o].userName,
|
|
|
|
- // userNumber:self.userTableListLeft[o].userNumber,
|
|
|
|
- // phonenumber:self.userTableListLeft[o].phonenumber,
|
|
|
|
- // validBeginTime:self.userTableListLeft[o].validBeginTime,
|
|
|
|
- // validEndTime:self.userTableListLeft[o].validEndTime,
|
|
|
|
- // }
|
|
|
|
- // list.push(obj);
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
this.$set(this,'dialogTableDataList',list);
|
|
this.$set(this,'dialogTableDataList',list);
|
|
this.$refs.leftUserTable.clearSelection();
|
|
this.$refs.leftUserTable.clearSelection();
|
|
- this.userGetListLeft();
|
|
|
|
- this.userGetListRight();
|
|
|
|
|
|
+ this.userHandleQueryLeft();
|
|
|
|
+ this.userHandleQueryRight();
|
|
}else{
|
|
}else{
|
|
this.msgError('请先勾选左侧列表')
|
|
this.msgError('请先勾选左侧列表')
|
|
}
|
|
}
|