|
@@ -102,22 +102,35 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- const {data: res} = await saveDdefual({
|
|
|
- trIndex: this.htmlData1.tr,
|
|
|
- tdIndex: this.htmlData1.td,
|
|
|
- tableId: this.pkeyId1,
|
|
|
- textId: this.textarea,
|
|
|
- type: '5',
|
|
|
+ let isCan=true
|
|
|
+ this.setsignaTable.forEach((ele)=>{
|
|
|
+ if(ele.colKey===this.htmlData1.keyname){
|
|
|
+ isCan=false
|
|
|
+ return
|
|
|
+ }else{
|
|
|
+ isCan=true
|
|
|
+ }
|
|
|
})
|
|
|
- if (res.code === 200) {
|
|
|
- this.getSingInfo()
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功"
|
|
|
- });
|
|
|
- this.$parent.getExcelHtml(this.pkeyId1);
|
|
|
+ if(isCan){
|
|
|
+ const {data: res} = await saveDdefual({
|
|
|
+ trIndex: this.htmlData1.tr,
|
|
|
+ tdIndex: this.htmlData1.td,
|
|
|
+ tableId: this.pkeyId1,
|
|
|
+ textId: this.textarea,
|
|
|
+ type: '5',
|
|
|
+ })
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.getSingInfo()
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "操作成功"
|
|
|
+ });
|
|
|
+ this.$parent.getExcelHtml(this.pkeyId1);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.$message.warning('一个字段只能配置一个提示信息')
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
async deleteTableSig(ids) {//删除数据
|
|
|
// this.setsignaTable.splice(key, 1);
|