|
@@ -82,7 +82,6 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
async saveDdefual() {
|
|
async saveDdefual() {
|
|
-
|
|
|
|
if(this.htmlData1.tr === '' || this.htmlData1.td === ''){
|
|
if(this.htmlData1.tr === '' || this.htmlData1.td === ''){
|
|
this.$message({
|
|
this.$message({
|
|
type: "warning",
|
|
type: "warning",
|
|
@@ -98,8 +97,17 @@ export default {
|
|
});
|
|
});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-console.log(this.setsignaTable,'setsignaTable');
|
|
|
|
- const {data: res} = await saveDdefual({
|
|
|
|
|
|
+let isCan=true
|
|
|
|
+this.setsignaTable.forEach((ele)=>{
|
|
|
|
+ if(ele.colKey===this.htmlData1.keyname){
|
|
|
|
+ isCan=false
|
|
|
|
+ return
|
|
|
|
+ }else{
|
|
|
|
+ isCan=true
|
|
|
|
+ }
|
|
|
|
+})
|
|
|
|
+if(isCan){
|
|
|
|
+ const {data: res} = await saveDdefual({
|
|
trIndex: this.htmlData1.tr,
|
|
trIndex: this.htmlData1.tr,
|
|
tdIndex: this.htmlData1.td,
|
|
tdIndex: this.htmlData1.td,
|
|
tableId: this.pkeyId1,
|
|
tableId: this.pkeyId1,
|
|
@@ -114,6 +122,10 @@ console.log(this.setsignaTable,'setsignaTable');
|
|
});
|
|
});
|
|
this.$parent.copss();
|
|
this.$parent.copss();
|
|
}
|
|
}
|
|
|
|
+}else{
|
|
|
|
+ this.$message.warning('一个字段只能配置一个默认信息')
|
|
|
|
+}
|
|
|
|
+
|
|
},
|
|
},
|
|
async deleteTableSig (ids) {//删除数据
|
|
async deleteTableSig (ids) {//删除数据
|
|
const {data: res} = await remove(ids);
|
|
const {data: res} = await remove(ids);
|