From a3bac089afbdd16beb74478cc4912a22a79d2ff2 Mon Sep 17 00:00:00 2001
From: z_yu <1534695664@qq.com>
Date: Fri, 20 May 2022 10:44:43 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B8=B8=E7=94=A8=E5=AD=97=E6=AE=B5=E7=AE=A1?=
=?UTF-8?q?=E7=90=86-=E6=B7=BB=E5=8A=A0=E5=85=B3=E9=94=AE=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../archivesConfig/commonFields/index.vue | 44 ++++++++++++++++++-
1 file changed, 42 insertions(+), 2 deletions(-)
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 @@
-
+
+
+ -
+ {{ scope.row.is_default_value }}
+
+
+
@@ -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)