|
@@ -36,7 +36,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="18">
|
|
|
<el-select v-model="roleInfo" placeholder="请选择签字岗位" filterable >
|
|
|
- <el-option v-for="item in options" :key="item.value" :value="item.id" :label="item.label" ></el-option>
|
|
|
+ <el-option v-for="item in options" :key="item" :value="item" :label="item.label" ></el-option>
|
|
|
</el-select>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -192,8 +192,13 @@ export default {
|
|
|
this.isDeleted=obj.isDeleted
|
|
|
if(obj.type==2){
|
|
|
this.radio=obj.parentRoleId
|
|
|
- await this.roleTypeChang()
|
|
|
- this.roleInfo=obj.sigRoleId
|
|
|
+ await this.roleTypeChang()
|
|
|
+
|
|
|
+ }else{
|
|
|
+ this.radio=''
|
|
|
+ await this.signTypeChang()
|
|
|
+ this.signInfo=obj.sigRoleId
|
|
|
+
|
|
|
}
|
|
|
}else{
|
|
|
this.radio=''
|
|
@@ -205,6 +210,18 @@ export default {
|
|
|
// todo
|
|
|
},
|
|
|
deep: true
|
|
|
+ },
|
|
|
+ 'options':{
|
|
|
+ handler(val){
|
|
|
+ if(this.sigRoleId&&val.length>0&&this.radio.length>1){
|
|
|
+ this.options.forEach((ele)=>{
|
|
|
+ if(ele.value===this.sigRoleId){
|
|
|
+ this.roleInfo=ele
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -321,13 +338,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async editRoleInfo(){
|
|
|
- console.log('编辑电签');
|
|
|
this.isEditLoaing=true
|
|
|
console.log(this.htmlData1,'this.htmlData.dqid1111111');
|
|
|
let obj={}
|
|
|
obj.colKey=this.colKey
|
|
|
obj.colName=this.colName
|
|
|
- obj.sigRoleId=this.sigRoleId
|
|
|
+
|
|
|
obj.tabId=this.pkeyId1
|
|
|
obj.excelId=this.excelId
|
|
|
obj.type=this.signType
|
|
@@ -337,16 +353,21 @@ export default {
|
|
|
obj.isDeleted=this.isDeleted
|
|
|
if(this.signType==2){
|
|
|
obj.parentRoleId=this.radio
|
|
|
+ obj.sigRoleId=this.sigRoleId
|
|
|
+
|
|
|
+ }else{
|
|
|
+ obj.sigRoleId=this.signInfo
|
|
|
}
|
|
|
|
|
|
const {data: res} = await updateDetail(obj)
|
|
|
this.isEditLoaing=false
|
|
|
- console.log(res);
|
|
|
+
|
|
|
if(res.code==200){
|
|
|
this.$message({
|
|
|
type: "success",
|
|
|
message: "操作成功"
|
|
|
});
|
|
|
+ this.getSingInfo()
|
|
|
}
|
|
|
|
|
|
|