Ver código fonte

fix: 表单管理

lanceJiang 10 meses atrás
pai
commit
80bbdca00e
1 arquivos alterados com 4 adições e 3 exclusões
  1. 4 3
      src/views/flow/form/index.vue

+ 4 - 3
src/views/flow/form/index.vue

@@ -66,8 +66,9 @@
 					<el-avatar :src="scope.row.avatar" size="small"></el-avatar>
 				</template>
 
-				<template #statusSlot="scope">
-					<el-switch v-model="scope.row.status" :active-value="1" :inactive-value="0" @change="() => handleStatusChange(scope.row)"></el-switch>
+				<template #statusSlot="{ row }">
+					<el-tag v-if="row.status === 3" type="primary">已绑定</el-tag>
+					<el-switch v-else v-model="row.status" :active-value="1" :inactive-value="0" @change="handleStatusChange(row)"></el-switch>
 				</template>
 
 				<template #actionSlot="{ row }">
@@ -322,7 +323,7 @@ const columns = [
 	{
 		prop: 'status',
 		label: '状态',
-		minWidth: 50,
+		minWidth: 100,
 		slots: {
 			default: 'statusSlot'
 		}