From 51d86d1eab51b44ff5d61ba66465fa618338608f Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期一, 20 五月 2024 12:20:26 +0800
Subject: [PATCH] 1

---
 src/views/configuration/custom/setField.vue |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 52 insertions(+), 4 deletions(-)

diff --git a/src/views/configuration/custom/setField.vue b/src/views/configuration/custom/setField.vue
index 3d88e3c..622a21e 100644
--- a/src/views/configuration/custom/setField.vue
+++ b/src/views/configuration/custom/setField.vue
@@ -8,27 +8,69 @@
 -->
 <template>
 	<div class="aposcope-main">
-	    123
+	    <div class="title">璁″垝瀛楁</div>
+		<el-button type="primary" @click="addField" style="margin: 4px 0px 10px;">娣诲姞鑷畾涔夊瓧娈�</el-button>
+		<div class="field-table">
+			<el-table ref="multipleTableRef" :data="tableData" border style="width: 100%" class="multipleTableRef">
+				<el-table-column prop="fieldName" label="瀛楁鍚�"></el-table-column>
+				<el-table-column prop="fieldDescription" label="鎻愮ず鏂囧瓧"></el-table-column>
+				<el-table-column prop="fieldTypeLabel" label="瀛楁绫诲瀷"></el-table-column>
+				<el-table-column prop="systemFieldLabel" label="鍩虹瀛楁"></el-table-column>
+				<el-table-column fixed="right" label="鎿嶄綔">
+					<template #default="scope">
+						<el-button type="text" size="small" @click="table_edit(scope.row, scope.$index)">缂栬緫</el-button>
+						<el-button text type="primary" size="small" @click="table_del(scope.row, scope.$index)">鍒犻櫎</el-button>
+					</template>
+				</el-table-column>
+			</el-table>
+		</div>
 	</div>
+	<save-dialog v-if="dialog.save" ref="saveDialog" @success="addFieldSuccess" @closed="dialog.save=false"></save-dialog>
 </template>
 <script>
+	import saveDialog from './addField'
 	export default {
 		name: "custom",
 		data(){
 			return {
-				
+				tableData: [],
+				dialog: {
+					save: false
+				}
 			}
 		},
 		created(){
 			
 		},
 		mounted(){
-			//this.getMenuList();
+			this.getTableData();
 		},
 		components: {
-
+			saveDialog
 	    },
 		methods: {
+			addFieldSuccess() {
+
+			},
+			addField() {
+				this.dialog.save = true
+				this.$nextTick(() => {
+					this.$refs.saveDialog.open()
+				})
+			},
+			table_edit() {
+
+			},
+			table_del() {
+
+			},
+			getTableData() {
+				this.$HTTP.get(`/api/blade-system/custom-template-field/list?businessType=1`).then(res=> {
+					if(res.code == 200) {
+						this.tableData = res.data;
+					}
+				})
+			}
 		}
 	}
 </script>
@@ -40,4 +82,10 @@
 	padding:20px;
 	background: #fff;
 }
+.title {
+	font-size: 16px;
+    font-weight: 700;
+    margin: 0px 0px 14px;
+    color: #000;
+}
 </style>

--
Gitblit v1.9.3