From 84ebff320cdf6844adf1202c3c856e225c38b730 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期二, 28 五月 2024 12:00:29 +0800
Subject: [PATCH] Merge branch 'master' of http://www.beijingsoft.cn:9090/r/smart-web

---
 src/views/configuration/custom/setField.vue |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/views/configuration/custom/setField.vue b/src/views/configuration/custom/setField.vue
index 622a21e..a0062f6 100644
--- a/src/views/configuration/custom/setField.vue
+++ b/src/views/configuration/custom/setField.vue
@@ -8,7 +8,7 @@
 -->
 <template>
 	<div class="aposcope-main">
-	    <div class="title">璁″垝瀛楁</div>
+	    <div class="title">{{$route.query.type == 1?"璁″垝":"浜у搧"}}瀛楁</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">
@@ -19,7 +19,7 @@
 				<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>
+						<el-button text type="primary" disabled size="small" @click="table_del(scope.row, scope.$index)">鍒犻櫎</el-button>
 					</template>
 				</el-table-column>
 			</el-table>
@@ -53,19 +53,22 @@
 
 			},
 			addField() {
-				this.dialog.save = true
+				this.dialog.save = true;
 				this.$nextTick(() => {
 					this.$refs.saveDialog.open()
 				})
 			},
-			table_edit() {
-
+			table_edit(row) {
+				this.dialog.save = true;
+				this.$nextTick(() => {
+					this.$refs.saveDialog.open('edit').setData(row)
+				})
 			},
 			table_del() {
 
 			},
 			getTableData() {
-				this.$HTTP.get(`/api/blade-system/custom-template-field/list?businessType=1`).then(res=> {
+				this.$HTTP.get(`/api/blade-system/custom-template-field/list?businessType=${this.$route.query.type}`).then(res=> {
 					if(res.code == 200) {
 						this.tableData = res.data;
 					}

--
Gitblit v1.9.3