|
@@ -616,11 +616,18 @@ export default {
|
|
excludeColumnIds: excludeColumn.map((i) => i.id).join(',')
|
|
excludeColumnIds: excludeColumn.map((i) => i.id).join(',')
|
|
}
|
|
}
|
|
id && (data.id = id)
|
|
id && (data.id = id)
|
|
- cubePremSave(Base64.encode(JSON.stringify(data))).then((res) => {
|
|
|
|
- loading.close()
|
|
|
|
- this.$message({ type: 'success', message: '已提交' })
|
|
|
|
- this.getData()
|
|
|
|
- })
|
|
|
|
|
|
+ cubePremSave(Base64.encode(JSON.stringify(data)))
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.$message({ type: 'success', message: '已提交' })
|
|
|
|
+ this.getData()
|
|
|
|
+ loading.close()
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ loading.close()
|
|
|
|
+ })
|
|
|
|
+ .finally(() => {
|
|
|
|
+ loading.close()
|
|
|
|
+ })
|
|
}
|
|
}
|
|
if (this.showFalgTemp === 'Btns') {
|
|
if (this.showFalgTemp === 'Btns') {
|
|
if (!this.nowFilter.dataPermId && this.nowFilter.isDefault === 0) {
|
|
if (!this.nowFilter.dataPermId && this.nowFilter.isDefault === 0) {
|
|
@@ -720,11 +727,18 @@ export default {
|
|
isDefault: this.nowFilter.isDefault, //是否是默认权限
|
|
isDefault: this.nowFilter.isDefault, //是否是默认权限
|
|
permJson: JSON.stringify(permList)
|
|
permJson: JSON.stringify(permList)
|
|
}
|
|
}
|
|
- BtnDataPermSubmit(Base64.encode(JSON.stringify(valueList))).then((res) => {
|
|
|
|
- loading.close()
|
|
|
|
- this.$message({ type: 'success', message: '已提交' })
|
|
|
|
- this.getData()
|
|
|
|
- })
|
|
|
|
|
|
+ BtnDataPermSubmit(Base64.encode(JSON.stringify(valueList)))
|
|
|
|
+ .then((res) => {
|
|
|
|
+ loading.close()
|
|
|
|
+ this.$message({ type: 'success', message: '已提交' })
|
|
|
|
+ this.getData()
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ loading.close()
|
|
|
|
+ })
|
|
|
|
+ .finally(() => {
|
|
|
|
+ loading.close()
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 过滤器添加条件
|
|
// 过滤器添加条件
|