|
@@ -57,9 +57,9 @@
|
|
偏移位X:
|
|
偏移位X:
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="18">
|
|
<el-col :span="18">
|
|
-
|
|
|
|
|
|
+
|
|
<avue-input v-model="pyzbx" placeholder="横坐标,负代表左移,正代表右移,偏移量50大概等于一厘米" type="number"></avue-input>
|
|
<avue-input v-model="pyzbx" placeholder="横坐标,负代表左移,正代表右移,偏移量50大概等于一厘米" type="number"></avue-input>
|
|
-
|
|
|
|
|
|
+
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
@@ -68,9 +68,9 @@
|
|
偏移位Y:
|
|
偏移位Y:
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="18">
|
|
<el-col :span="18">
|
|
-
|
|
|
|
|
|
+
|
|
<avue-input v-model="pyzby" placeholder="纵坐标,负代表下移,正代表上移,偏移量50大概等于一厘米" type="number"></avue-input>
|
|
<avue-input v-model="pyzby" placeholder="纵坐标,负代表下移,正代表上移,偏移量50大概等于一厘米" type="number"></avue-input>
|
|
-
|
|
|
|
|
|
+
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
@@ -120,9 +120,9 @@
|
|
<td align="center">
|
|
<td align="center">
|
|
<span style="color:#409EFF;;cursor: pointer;margin-right: 5px;" @click="editClick(item)" v-if="item.show===false">编辑</span>
|
|
<span style="color:#409EFF;;cursor: pointer;margin-right: 5px;" @click="editClick(item)" v-if="item.show===false">编辑</span>
|
|
<span style="color:green;;cursor: pointer;margin-right: 5px;" @click="saveClick(item)" v-else v-loading="isEditLoaing">保存</span>
|
|
<span style="color:green;;cursor: pointer;margin-right: 5px;" @click="saveClick(item)" v-else v-loading="isEditLoaing">保存</span>
|
|
-
|
|
|
|
|
|
+
|
|
<span style="color:red;cursor: pointer;" v-on:click="deleteTableSig(key,item.id,item)">删除</span>
|
|
<span style="color:red;cursor: pointer;" v-on:click="deleteTableSig(key,item.id,item)">删除</span>
|
|
-
|
|
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
</tbody>
|
|
</tbody>
|
|
@@ -202,7 +202,7 @@ export default {
|
|
if(obj.type==2){
|
|
if(obj.type==2){
|
|
this.radio=obj.parentRoleId
|
|
this.radio=obj.parentRoleId
|
|
await this.roleTypeChang()
|
|
await this.roleTypeChang()
|
|
-
|
|
|
|
|
|
+
|
|
}else{
|
|
}else{
|
|
this.radio=''
|
|
this.radio=''
|
|
await this.signTypeChang()
|
|
await this.signTypeChang()
|
|
@@ -212,7 +212,7 @@ export default {
|
|
this.sigRoleName=ele.dictValue
|
|
this.sigRoleName=ele.dictValue
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
this.radio=''
|
|
this.radio=''
|
|
@@ -223,8 +223,8 @@ export default {
|
|
this.pyzby=0
|
|
this.pyzby=0
|
|
}
|
|
}
|
|
}, 1000);
|
|
}, 1000);
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
// todo
|
|
// todo
|
|
},
|
|
},
|
|
deep: true
|
|
deep: true
|
|
@@ -238,7 +238,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -283,7 +283,7 @@ export default {
|
|
changeRole(e){
|
|
changeRole(e){
|
|
this.sigRoleName=e.label
|
|
this.sigRoleName=e.label
|
|
this.sigRoleId=e.value
|
|
this.sigRoleId=e.value
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
async addRoleInfo(){
|
|
async addRoleInfo(){
|
|
var isadd = true;
|
|
var isadd = true;
|
|
@@ -344,15 +344,6 @@ export default {
|
|
|
|
|
|
try {
|
|
try {
|
|
this.setsignaTable.forEach(val => {
|
|
this.setsignaTable.forEach(val => {
|
|
- if(val.colName == this.htmlData1.name){ // 位置只能添加一个
|
|
|
|
- this.$message({
|
|
|
|
- type: "error",
|
|
|
|
- message: "位置只能配置一个电签"
|
|
|
|
- });
|
|
|
|
- isadd = false;
|
|
|
|
- throw new Error('位置只能配置一个电签')
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if(val.colName === this.htmlData1.name && val.sigRoleId === this.roleInfo.value){
|
|
if(val.colName === this.htmlData1.name && val.sigRoleId === this.roleInfo.value){
|
|
this.$message({
|
|
this.$message({
|
|
type: "error",
|
|
type: "error",
|
|
@@ -372,12 +363,14 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async editClick (item){
|
|
async editClick (item){
|
|
- console.log(item,'item');
|
|
|
|
|
|
+ console.log(item,'item111');
|
|
|
|
+ debugger;
|
|
this.setsignaTable.forEach((ele)=>{
|
|
this.setsignaTable.forEach((ele)=>{
|
|
ele.show=false
|
|
ele.show=false
|
|
})
|
|
})
|
|
item.show=true
|
|
item.show=true
|
|
- console.log(this.htmlData1,'htmlData1');
|
|
|
|
|
|
+ console.log(this.htmlData1,'htmlData1]2222');
|
|
|
|
+
|
|
const {data: res} = await getSignDetail({id: item.id})
|
|
const {data: res} = await getSignDetail({id: item.id})
|
|
if(res.code===200){
|
|
if(res.code===200){
|
|
console.log(res,'res');
|
|
console.log(res,'res');
|
|
@@ -392,7 +385,7 @@ export default {
|
|
this.pyzby=obj.pyzby
|
|
this.pyzby=obj.pyzby
|
|
this.sigRoleId=obj.sigRoleId
|
|
this.sigRoleId=obj.sigRoleId
|
|
this.sigRoleName=obj.sigRoleName
|
|
this.sigRoleName=obj.sigRoleName
|
|
- // this.colKey=obj.colKey
|
|
|
|
|
|
+ this.colKey=obj.colKey
|
|
|
|
|
|
if(this.htmlData1.keyname){
|
|
if(this.htmlData1.keyname){
|
|
this.colKey=this.htmlData1.keyname
|
|
this.colKey=this.htmlData1.keyname
|
|
@@ -406,7 +399,7 @@ export default {
|
|
if(obj.type==2){
|
|
if(obj.type==2){
|
|
this.radio=obj.parentRoleId
|
|
this.radio=obj.parentRoleId
|
|
await this.roleTypeChang()
|
|
await this.roleTypeChang()
|
|
-
|
|
|
|
|
|
+
|
|
}else{
|
|
}else{
|
|
this.radio=''
|
|
this.radio=''
|
|
await this.signTypeChang()
|
|
await this.signTypeChang()
|
|
@@ -416,7 +409,7 @@ export default {
|
|
this.sigRoleName=ele.dictValue
|
|
this.sigRoleName=ele.dictValue
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
this.radio=''
|
|
this.radio=''
|
|
@@ -426,10 +419,10 @@ export default {
|
|
this.pyzbx=0
|
|
this.pyzbx=0
|
|
this.pyzby=0
|
|
this.pyzby=0
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
console.log( this.htmlData1,' this.htmlData1111');
|
|
console.log( this.htmlData1,' this.htmlData1111');
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
saveClick(item){
|
|
saveClick(item){
|
|
this.editRoleInfo()
|
|
this.editRoleInfo()
|
|
@@ -451,7 +444,7 @@ export default {
|
|
obj.parentRoleId=this.radio
|
|
obj.parentRoleId=this.radio
|
|
console.log(this.sigRoleId,'this.sigRoleId');
|
|
console.log(this.sigRoleId,'this.sigRoleId');
|
|
obj.sigRoleId=this.sigRoleId
|
|
obj.sigRoleId=this.sigRoleId
|
|
-
|
|
|
|
|
|
+
|
|
}else{
|
|
}else{
|
|
obj.sigRoleId=this.signInfo
|
|
obj.sigRoleId=this.signInfo
|
|
}
|
|
}
|
|
@@ -467,7 +460,7 @@ export default {
|
|
ele.type=obj.type
|
|
ele.type=obj.type
|
|
ele.tabId=obj.tabId
|
|
ele.tabId=obj.tabId
|
|
ele.show=false
|
|
ele.show=false
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
})
|
|
})
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
@@ -476,8 +469,8 @@ export default {
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
console.log(this.setsignaTable,'this.setsignaTable');
|
|
console.log(this.setsignaTable,'this.setsignaTable');
|
|
// this.saveSingInfo()
|
|
// this.saveSingInfo()
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
async deleteTableSig (key) {//删除数据
|
|
async deleteTableSig (key) {//删除数据
|
|
this.setsignaTable.splice(key,1);
|
|
this.setsignaTable.splice(key,1);
|
|
@@ -504,7 +497,7 @@ export default {
|
|
this.saveloaing=false
|
|
this.saveloaing=false
|
|
}, 1500);
|
|
}, 1500);
|
|
const {data: res} = await saveSig({dataInfo: this.setsignaTable,tabId:this.pkeyId1})
|
|
const {data: res} = await saveSig({dataInfo: this.setsignaTable,tabId:this.pkeyId1})
|
|
-
|
|
|
|
|
|
+
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
//console.log(this.$parent)
|
|
//console.log(this.$parent)
|
|
this.$parent.getExcelHtml(this.pkeyId1);
|
|
this.$parent.getExcelHtml(this.pkeyId1);
|
|
@@ -513,7 +506,7 @@ export default {
|
|
message: "操作成功"
|
|
message: "操作成功"
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
async getSingInfo() {
|
|
async getSingInfo() {
|
|
const {data: res} = await getSigList(
|
|
const {data: res} = await getSigList(
|