Parcourir la source

更换数据记录图标

yukai il y a 3 ans
Parent
commit
0dbb08475a

+ 1 - 1
src/api/datahub/index.ts

@@ -15,7 +15,7 @@ export default {
     devedit: (data: object) => put('/source/device/edit', data),
     devapi: (sourceId: number) => get('/source/device/get', { sourceId }),
     getdevList: (params: object) => get('/product/device/list', params),
-    getdata: (params: object) => get('/source/source/getdata', params),
+    getdata: (params: object) => get('/source/getdata', params),
 
     },
    

+ 3 - 7
src/views/datahub/modeling/component/detail.vue

@@ -6,13 +6,9 @@
         <h4 :id="titleId" :class="titleClass">数据记录</h4>
 		 
 		 <div>
-			<el-button @click="quanping">
-			<span v-if="dialogFullScreen==false">全屏</span>
-			<span v-if="dialogFullScreen==true">缩小</span>
-			</el-button>
-			<el-button @click="close">
-			关闭
-			</el-button>
+			<i class="iconfont "  :class="!dialogFullScreen ? 'icon-fullscreen' : 'icon-tuichuquanping'"   @click="quanping"  style="font-size: 22px;cursor: pointer;"></i>
+			<i class="el-icon"  @click="close" style="font-size: 22px;cursor: pointer;    margin-left: 10px; position: relative; top: 3px;"><svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-v-029747aa=""><path fill="currentColor" d="M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"></path></svg></i>
+			
 		</div>
       </div>
     </template>

+ 9 - 7
src/views/datahub/source/component/list.vue

@@ -6,13 +6,9 @@
         <h4 :id="titleId" :class="titleClass">数据记录</h4>
 		 
 		 <div>
-			<el-button @click="quanping">
-			<span v-if="dialogFullScreen==false">全屏</span>
-			<span v-if="dialogFullScreen==true">缩小</span>
-			</el-button>
-			<el-button @click="close">
-			关闭
-			</el-button>
+            <i class="iconfont "  :class="!dialogFullScreen ? 'icon-fullscreen' : 'icon-tuichuquanping'"   @click="quanping"  style="font-size: 22px;cursor: pointer;"></i>
+			<i class="el-icon"  @click="close" style="font-size: 22px;cursor: pointer;    margin-left: 10px; position: relative; top: 3px;"><svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-v-029747aa=""><path fill="currentColor" d="M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"></path></svg></i>
+			
 		</div>
       </div>
     </template>
@@ -34,6 +30,8 @@
 
 <script lang="ts">
 import { reactive, toRefs, defineComponent, ref, unref } from 'vue';
+import { Close } from '@element-plus/icons-vue';
+
 import api from '/@/api/datahub';
 import { ElMessage } from 'element-plus';
 
@@ -89,6 +87,9 @@ export default defineComponent({
 			resetForm();
 			if (row) {
 				state.tableData.param.id = row.id;
+
+
+      
 				typeList();
 
 			}
@@ -136,6 +137,7 @@ export default defineComponent({
 		};
 
 		return {
+            Close,
 			quanping,
 			typeList,
 			openDialog,