|
@@ -34,7 +34,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
components: { TemplatePage },
|
|
|
- mixins: [import_mixin,operation_mixin],
|
|
|
+ mixins: [import_mixin, operation_mixin],
|
|
|
data() {
|
|
|
return {
|
|
|
// 表格属性
|
|
@@ -63,24 +63,25 @@ export default {
|
|
|
isEditIndex: -1,
|
|
|
orderBrands: [],
|
|
|
classifyList: [],
|
|
|
- classifyListLv2: []
|
|
|
+ classifyListLv2: [],
|
|
|
+ clickLook: true,
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- // 事件组合
|
|
|
- optionsEvensGroup() {
|
|
|
- return [
|
|
|
- [
|
|
|
- [
|
|
|
- this.optionsEvensAuth("add", {
|
|
|
- click: () => {
|
|
|
- this.openForm()
|
|
|
- }
|
|
|
- })
|
|
|
- ],
|
|
|
- ]
|
|
|
- ]
|
|
|
- },
|
|
|
+ // 事件组合
|
|
|
+ optionsEvensGroup() {
|
|
|
+ return [
|
|
|
+ [
|
|
|
+ [
|
|
|
+ this.optionsEvensAuth("add", {
|
|
|
+ click: () => {
|
|
|
+ this.openForm()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ],
|
|
|
+ ]
|
|
|
+ ]
|
|
|
+ },
|
|
|
// 更多参数
|
|
|
moreParameters() {
|
|
|
return []
|
|
@@ -478,17 +479,17 @@ export default {
|
|
|
selectionChange(data) {
|
|
|
this.recordSelected = data
|
|
|
},
|
|
|
- // 表格操作列
|
|
|
- operation() {
|
|
|
- return this.operationBtn({
|
|
|
- detail: {
|
|
|
- btnType: 'text',
|
|
|
- click: ({ row, index, column }) => {
|
|
|
- this.getDetail(row.id)
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+ // 表格操作列
|
|
|
+ operation() {
|
|
|
+ return this.operationBtn({
|
|
|
+ detail: {
|
|
|
+ btnType: 'text',
|
|
|
+ click: ({ row, index, column }) => {
|
|
|
+ this.getDetail(row.id)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
panduancp() {
|
|
|
try {
|
|
|
this.formData.pgIncreItems.map((row, index) => {
|
|
@@ -574,15 +575,19 @@ export default {
|
|
|
this.formDialog = false
|
|
|
},
|
|
|
formConfirm() {
|
|
|
- if (this.panduancp()) {
|
|
|
+ if (this.clickLook && this.panduancp()) {
|
|
|
this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
|
|
|
if (valid) {
|
|
|
+ this.clickLook = false;
|
|
|
([increConfigAdd, increConfigUpdate][this.formData.id ? 1 : 0])({
|
|
|
...this.formData
|
|
|
}).then(res => {
|
|
|
this.$message({ type: 'success', message: `成功!` })
|
|
|
this.formCancel()
|
|
|
this.$refs.pageRef.refreshList()
|
|
|
+ this.clickLook = true
|
|
|
+ }).catch(() => {
|
|
|
+ this.clickLook = true
|
|
|
})
|
|
|
}
|
|
|
})
|