Browse Source

字段列限制

CzRger 7 months ago
parent
commit
23e46582cf

+ 1 - 1
src/main.ts

@@ -14,7 +14,7 @@ import ElementPlus from 'element-plus'
 import 'element-plus/dist/index.css'
 
 
-repeatFileValid()
+// repeatFileValid()
 await initMainRouter()  //  路由挂载前初始化路由表
 const app = createApp(App)
 app.use(createPinia())

+ 1 - 0
src/views/manage/index/index.vue

@@ -147,6 +147,7 @@ const onRelation = (row) => {
 const onText = (row) => {
   state.text.transfer = {
     id: row.id,
+    maxCol: row.columnModelNum < row.cardColumnNum ? row.columnModelNum : row.cardColumnNum,
   }
   state.text.show = true
 }

+ 1 - 1
src/views/manage/index/text-detail.vue

@@ -29,7 +29,7 @@
           v-model:param="state.form.labelLength"
           link="input-number"
           :min="1"
-          :max="8"
+          :max="transfer.maxCol"
         />
         <CusFormColumn
           :span="12"

+ 4 - 2
src/views/manage/index/text.vue

@@ -96,14 +96,16 @@ const initText = () => {
 const onAdd = () => {
   state.detail.transfer = {
     mode: 'add',
-    indexId: props.transfer.id
+    indexId: props.transfer.id,
+    maxCol: props.transfer.maxCol,
   }
   state.detail.show = true
 }
 const onEdit = (row) => {
   state.detail.transfer = {
     mode: 'edit',
-    row: row
+    row: row,
+    maxCol: props.transfer.maxCol,
   }
   state.detail.show = true
 }

+ 3 - 1
src/views/web/home/index.vue

@@ -167,9 +167,11 @@ onMounted(() => {
   background-repeat: no-repeat;
   display: flex;
   flex-direction: column;
-  justify-content: center;
   align-items: center;
   gap: 40px;
+  .title {
+    margin-top: 300px;
+  }
   .area {
     width: 1000px;
     .selected {