diff --git a/src/views/archivesConfig/commonFields/index.vue b/src/views/archivesConfig/commonFields/index.vue index 5feff98..f41a1c5 100644 --- a/src/views/archivesConfig/commonFields/index.vue +++ b/src/views/archivesConfig/commonFields/index.vue @@ -9,7 +9,7 @@ - + @@ -19,10 +19,23 @@ - + + + + @@ -62,6 +75,33 @@ export default { } }, methods: { + // 获取数据前设置好接口地址 + [CRUD.HOOK.beforeToCU]() { + const h = this.$createElement + return this.$prompt(h('p', null, [ + h('span', null, '这里为九州档案技术人员维护系统时使用,用户级无需设置。'), + h('br', null, ''), + h('span', { style: 'color: red' }, '警告:强行修改会导致系统数据异常或丢失!如因用户强行修改,本系统不负责因此导致的相关后果!') + ]), '关键提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + beforeClose: (action, instance, done) => { + if (action === 'confirm') { + if (instance.inputValue === '123') { + done() + } else { + this.$message.error('验证码错误!') + } + } else { + done() + } + } + }).then(({ value }) => { + // call crud.status.add = CRUD.STATUS.PREPARED + }).catch(() => { + return false + }) + }, clickRowHandler(row) { this.$refs.table.clearSelection() this.$refs.table.toggleRowSelection(row)