vue2-client 1.2.93-test → 1.2.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
<a-modal
|
|
9
9
|
v-if="visible"
|
|
10
10
|
v-model="visible"
|
|
11
|
-
title="
|
|
11
|
+
:title="placeholder"
|
|
12
12
|
:z-index="1031"
|
|
13
|
-
:bodyStyle="{ maxHeight: '
|
|
13
|
+
:bodyStyle="{ maxHeight: '68vh', overflowY: 'auto' }"
|
|
14
14
|
@ok="handleOk"
|
|
15
15
|
@close="visible=false"
|
|
16
16
|
>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</template>
|
|
50
50
|
|
|
51
51
|
<script>
|
|
52
|
-
import { commonApi, post } from '
|
|
52
|
+
import { commonApi, post } from '@vue2-client/services/api'
|
|
53
53
|
|
|
54
54
|
const departments = ['运维部', '项目部', '项目一部', '项目二部', '开发部', '售后部', '办公室', '管理员', '软件工程部', 'IC卡部', '销售部']
|
|
55
55
|
|
|
@@ -269,16 +269,16 @@ export default {
|
|
|
269
269
|
},
|
|
270
270
|
// TODO 新增/修改数据表单提交
|
|
271
271
|
onAddOrModify (res) {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
272
|
+
if (this.viewMode) {
|
|
273
|
+
this.$message.info('预览模式禁止新增')
|
|
274
|
+
return false
|
|
275
|
+
}
|
|
276
276
|
// 如果是临时表
|
|
277
277
|
if (this.isTableTemp) {
|
|
278
278
|
this.$emit('tempTableModify', res)
|
|
279
279
|
return
|
|
280
280
|
}
|
|
281
|
-
|
|
281
|
+
if (res.valid) {
|
|
282
282
|
this.loading = true
|
|
283
283
|
const requestParameters = {
|
|
284
284
|
queryParamsName: this.queryParamsName,
|
|
@@ -294,7 +294,6 @@ export default {
|
|
|
294
294
|
const realKey = key.substring(key.indexOf('_') + 1)
|
|
295
295
|
requestParameters.form[realKey] = res.form[key]
|
|
296
296
|
}
|
|
297
|
-
console.log(this.customAoM, '====1')
|
|
298
297
|
if (!this.customAoM || this.customAoM?.length === 0) {
|
|
299
298
|
this.customAoM = undefined
|
|
300
299
|
}
|
|
@@ -310,9 +309,9 @@ export default {
|
|
|
310
309
|
this.modelVisible = false
|
|
311
310
|
this.$message.error(this.businessType + '失败!')
|
|
312
311
|
})
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
312
|
+
} else {
|
|
313
|
+
return false
|
|
314
|
+
}
|
|
316
315
|
},
|
|
317
316
|
// 刷新加载表格数据
|
|
318
317
|
loadData (requestParameters, callback) {
|