From 8eb1ab16f04401a12c78690ae28c26fba7b54b25 Mon Sep 17 00:00:00 2001
From: sunshine7058 <2564255161@qq.com>
Date: Wed, 1 May 2024 20:24:38 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E5=88=9D=E5=A7=8B=E5=8C=96=E8=B5=84?=
=?UTF-8?q?=E4=BA=A7=E6=8E=88=E6=9D=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/data/asset_auth.js | 62 +++
.../data/asset_auth/auth/AuthDataSource.vue | 345 +++++++++++++++++
src/views/data/asset_auth/auth/AuthTable.vue | 363 ++++++++++++++++++
src/views/data/asset_auth/index.vue | 194 ++++++++++
4 files changed, 964 insertions(+)
create mode 100644 src/api/data/asset_auth.js
create mode 100644 src/views/data/asset_auth/auth/AuthDataSource.vue
create mode 100644 src/views/data/asset_auth/auth/AuthTable.vue
create mode 100644 src/views/data/asset_auth/index.vue
diff --git a/src/api/data/asset_auth.js b/src/api/data/asset_auth.js
new file mode 100644
index 0000000..9d00569
--- /dev/null
+++ b/src/api/data/asset_auth.js
@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询资产授权列表
+export function listAssetAccredit(data){
+ return request({
+ url: '/data/asset_auth/list',
+ method: 'post',
+ data: data
+ })
+}
+
+
+
+// 查询资产授权详细
+export function getAsset_auth(id) {
+ return request({
+ url: '/data/asset_auth/' + id,
+ method: 'get'
+ })
+}
+
+//添加字典类型
+export function addAccredis(data){
+ return request({
+ url:'/data/source/dictType/addDictType',
+ method:'post',
+ data:data
+ })
+}
+// 删除字典类型
+export function delAccredit(id) {
+ return request({
+ url: '/data/source/dictType/delDictType/' + id,
+ method: 'get'
+ })
+}
+
+// 新增资产授权
+export function addAsset_auth(data) {
+ return request({
+ url: '/data/asset_auth',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改资产授权
+export function updateAsset_auth(data) {
+ return request({
+ url: '/data/asset_auth/'+data.id,
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除资产授权
+export function delAsset_auth(id) {
+ return request({
+ url: '/data/asset_auth/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/views/data/asset_auth/auth/AuthDataSource.vue b/src/views/data/asset_auth/auth/AuthDataSource.vue
new file mode 100644
index 0000000..46e1504
--- /dev/null
+++ b/src/views/data/asset_auth/auth/AuthDataSource.vue
@@ -0,0 +1,345 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/data/asset_auth/auth/AuthTable.vue b/src/views/data/asset_auth/auth/AuthTable.vue
new file mode 100644
index 0000000..fc427d8
--- /dev/null
+++ b/src/views/data/asset_auth/auth/AuthTable.vue
@@ -0,0 +1,363 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/data/asset_auth/index.vue b/src/views/data/asset_auth/index.vue
new file mode 100644
index 0000000..652dd6a
--- /dev/null
+++ b/src/views/data/asset_auth/index.vue
@@ -0,0 +1,194 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ accreditChange(val,scope.row,scope.row.deptId)"
+ active-color="#13ce66"
+ inactive-color="#ff4949"
+ active-text="已授权"
+ inactive-text="未授权">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ accreditChange(val,scope.row,scope.row.userId)"
+ active-color="#13ce66"
+ inactive-color="#ff4949"
+ active-text="已授权"
+ inactive-text="未授权">
+
+
+
+
+
+
+
+
+
+
+