From e3376657b0f8c25fd04ec1d06f424160e67e20a2 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期二, 10 十二月 2024 17:21:36 +0800
Subject: [PATCH] 生命周期备选列表添加超出隐藏和提示文字&&表单定义查询模板切换不显示值问题

---
 Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue |  158 ++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 121 insertions(+), 37 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue
index b921caf..8f4a109 100644
--- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue
+++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue
@@ -69,6 +69,18 @@
         </el-tooltip>
       </template>
 
+      <template slot="uiParserLabel" slot-scope="{}">
+        <el-tooltip placement="top">
+          <div slot="content">绀轰緥锛歫ava_cs;xxx.java_bs;xxx.net_cs;xxxx.net_bs;xxx.mobile_cs;xx.mobile_bs;xxx;
+            <br/>1銆佺敤鑻辨枃鍗婅鍒嗗彿;鍒嗗壊鍚勭粍鍊硷紱锛堣繖閲岀粨灏剧殑鏄腑鏂囧瓧绗︾殑鍒嗗彿锛�
+            <br/>2銆佹瘡缁勭敤鑻辨枃鍗婅鍐掑彿:鍒嗛殧鍗曚竴鎵╁睍灞炴�у悕绉板強灞炴�у�硷紱
+            <br/>3銆佸叾涓殑xxx鏄悇绉嶈В鏋愮被鐨勫畬鏁寸被鍨嬪悕绉帮紙瀹屽叏闄愬畾鍚�)锛�
+            <br/>4銆佽緭鍏ユ椂锛屼笉瑕佹暡鍥炶溅鎹㈣;
+          </div>
+          <span>UI瑙f瀽绫诲瀷 <i class="el-icon-warning" style="color:red;"></i> </span>
+        </el-tooltip>
+      </template>
+
       <template slot="templateIdForm" slot-scope="{}">
         <el-select v-model="form.templateId" filterable placeholder="璇烽�夋嫨">
           <el-option
@@ -76,6 +88,17 @@
             :key="item.viName"
             :label="item.viName"
             :value="item.viName">
+          </el-option>
+        </el-select>
+      </template>
+
+      <template slot="queryTemplateNameForm" slot-scope="{}">
+        <el-select v-model="form.queryTemplateName" filterable placeholder="璇烽�夋嫨">
+          <el-option
+            v-for="item in queryTemplateNameList"
+            :key="item.qtName"
+            :label="item.qtName"
+            :value="item.qtName">
           </el-option>
         </el-select>
       </template>
@@ -240,7 +263,8 @@
   joinBtn,
   exitBtn,
   updatePageDefination,
-  getPortalVIDatasByPage
+  getPortalVIDatasByPage,
+  getQTInfoDatasByPage
 } from "@/api/UI/uiDefine";
 import actionDialog from '@/views/modelingMenu/ui/Aciton/components/dialog';
 import cloneDialog from "@/views/modelingMenu/ui/uiDefine/rightRegion/cloneDialog";
@@ -264,8 +288,11 @@
   name: "index",
   data() {
     return {
+      queryTemplateNameList: [],
       templateIdList: [],
       searchTargerChangeFlag: false,
+      showTypeChangeFlag: false,
+      linkTypeChangeFlag: false,
       formBtnOid: '',
       sourceBtnOid: '',
       sourceOId: '',
@@ -274,7 +301,7 @@
       eventOption: {
         ...basicOption,
         addBtn: false,
-        // editBtn: false,
+        editBtn: false,
         delBtn: false,
         refreshBtn: false,
         highlightCurrentRow: true,
@@ -387,6 +414,7 @@
       data: [],
       option: {
         ...basicOption,
+        size:'mini',
         height: this.height,
         addBtn: false,
         index: true,
@@ -397,6 +425,7 @@
           {
             label: '鍚嶇О',
             prop: 'name',
+            labelWidth: 110,
             rules: [
               {
                 required: true,
@@ -408,6 +437,7 @@
           {
             label: '缂栧彿',
             prop: 'seq',
+            labelWidth: 110,
             hide: false,
             rules: [
               {
@@ -418,19 +448,28 @@
             ],
           },
           {
-            label: 'UI瑙f瀽绫诲瀷',
+            label: '',
             prop: 'uiParser',
             hide: true,
+            labelWidth: 110,
           },
           {
             label: '',
             prop: 'extAttr',
             hide: true,
+            labelWidth: 110,
+          },
+          {
+            label: '鎻忚堪',
+            prop: 'description',
+            labelWidth: 110,
+            hide: false,
           },
           {
             label: '妯℃澘绫诲瀷',
             prop: 'templateType',
             type: 'radio',
+            labelWidth: 110,
             span: 24,
             value: '1',
             dicData: [
@@ -468,7 +507,7 @@
               // list.forEach(item => {
               //   this.form[item] = "";
               // })
-              this.form.searchTarger = '1'
+              // this.form.searchTarger = '1'
               const searchTarger = this.option.column.find(item => item.prop === 'searchTarger');  // 鑾峰彇鎼滅储绫诲瀷閰嶇疆椤�
               searchTarger.display = true; // 鍒囨崲榛樿灞曠ず鎼滅储绫诲瀷
               // 妯℃澘绫诲瀷涓鸿〃鏍�
@@ -489,6 +528,7 @@
             label: '鏄剧ず绫诲瀷',
             prop: 'navigatorType',
             type: 'radio',
+            labelWidth: 110,
             span: 24,
             value: '1',
             hide: true,
@@ -511,6 +551,7 @@
             label: '鎼滅储绫诲瀷',
             prop: 'searchTarger',
             display: true,
+            labelWidth: 110,
             type: 'radio',
             value: '1',
             span: 24,
@@ -533,6 +574,7 @@
                 const obj = this.option.group[0].column.find(item => item.prop === 'linkType');
                 obj.display = val.value !== '1';
               }
+
               if (this.searchTargerChangeFlag) {
                 // 鍒囨崲娓呯┖妯℃澘绫诲瀷
                 const list = ['showType', 'linkType', 'templateId', 'SubUILayout', 'queryTemplateName', 'searchObjType', 'bsCustQueryCLsOrUrl', 'csCustQueryCLsOrUrl'];
@@ -544,35 +586,49 @@
               }
             }
           },
-          {
-            label: '鎻忚堪',
-            prop: 'description',
-            display: false
-          },
         ],
         group: [
           {
-            label: '',
-            arrow: false,
+            icon:'el-icon-info',
+            label:'',
+            arrow: true,
             prop: 'group1',
             column: [
               {
                 label: '婧愬璞�',
                 prop: 'showType',
                 type: 'select',
-                cascader: ['linkType', 'templateId', 'SubUILayout', 'searchObjType', 'queryTemplateName'],
+                labelWidth: 115,
+                cascader: ['linkType', 'SubUILayout', 'searchObjType'],
                 placeholder: "璇疯緭鍏ュ唴瀹�",
                 dicUrl: '/api/uiManagerController/getBtmDatasByPage?page=1&limit=-1',
                 filterable: true,
                 change: (val) => {
-                  console.log('val', val);
-                  if (val) {
+                  console.log('showTypeChangeFlag',this.showTypeChangeFlag)
+                  if (val.value) {
                     let params = {
                       'conditionMap[selectBtmType]': this.form.searchTarger === '1' ? this.form.showType : this.form.linkType
                     }
                     getPortalVIDatasByPage(1, -1, params).then(res => {
                       this.templateIdList = res.data.data;
                     })
+                    getQTInfoDatasByPage(1, -1, params).then(res => {
+                      this.queryTemplateNameList = res.data.data;
+                    })
+                  }
+                  if (this.showTypeChangeFlag) {
+                    if (val.value) {
+                      if (this.form.searchTarger === '1') {
+                        this.form.templateId = "";
+                        this.form.queryTemplateName = "";
+                      } else {
+                        this.form.linkType = "";
+                        this.form.templateId = "";
+                        this.form.queryTemplateName = "";
+                      }
+                    }
+                  } else {
+                    this.showTypeChangeFlag = true;
                   }
                 },
                 props: {
@@ -593,6 +649,7 @@
                 prop: 'linkType',
                 type: 'select',
                 display: false,
+                labelWidth: 115,
                 filterable: true,
                 props: {
                   label: 'name',
@@ -600,10 +657,32 @@
                   desc: 'tag'
                 },
                 dicUrl: '/api/uiManagerController/getLinkDatasByPage?page=1&limit=-1&conditionMap[selectBtmType]={{key}}',
+                change: (val) => {
+                  if (val.value) {
+                    let params = {
+                      'conditionMap[selectBtmType]': val.value
+                    }
+                    getPortalVIDatasByPage(1, -1, params).then(res => {
+                      this.templateIdList = res.data.data;
+                    })
+                    getQTInfoDatasByPage(1, -1, params).then(res => {
+                      this.queryTemplateNameList = res.data.data;
+                    })
+                  }
+                  if (this.linkTypeChangeFlag) {
+                    if (val.value) {
+                      this.form.templateId = "";
+                      this.form.queryTemplateName = "";
+                    }
+                  } else {
+                    this.linkTypeChangeFlag = true;
+                  }
+                }
               },
               {
                 label: '閫夋嫨妯℃澘',
                 prop: 'templateId',
+                labelWidth: 115,
                 display: false,
                 formslot: true,
                 rules: [
@@ -618,6 +697,7 @@
                 label: 'UI瀹氫箟',
                 prop: 'SubUILayout',
                 type: 'select',
+                labelWidth: 115,
                 filterable: true,
                 display: false,
                 props: {
@@ -632,6 +712,7 @@
                 display: false,
                 value: '1',
                 type: 'radio',
+                labelWidth: 115,
                 span: 24,
                 dicData: [
                   {
@@ -649,7 +730,7 @@
                 prop: 'searchObjType',
                 type: 'select',
                 display: false,
-                labelWidth: 100,
+                labelWidth: 115,
                 props: {
                   label: 'qtName',
                   value: 'qtName',
@@ -660,19 +741,15 @@
               {
                 label: '鏌ヨ妯℃澘',
                 prop: 'queryTemplateName',
+                labelWidth: 115,
                 type: 'select',
-                filterable: true,
                 display: false,
-                props: {
-                  label: 'qtName',
-                  value: 'qtName',
-                  desc: 'btmName'
-                },
-                dicUrl: '/api/uiManagerController/getQTInfoDatasByPage?page=1&limit=-1&conditionMap[selectBtmType]={{key}}',
+                formslot: true,
               },
               {
                 label: '鎺у埗璺緞',
                 prop: 'controlPath',
+                labelWidth: 115,
                 display: false,
                 type: 'textarea',
                 span: 24,
@@ -681,18 +758,20 @@
               {
                 label: '鏍戠粨鏋勫睍寮�鍒�',
                 prop: 'expandCols',
-                labelWidth: 110,
+                labelWidth: 115,
                 display: false,
                 span: 12
               },
               {
                 label: '鍙傜収鏍戣缃�',
                 prop: 'showLinkAbs',
+                labelWidth: 115,
                 display: false,
               },
               {
                 label: '鍒嗛殧绗�',
                 prop: 'separator',
+                labelWidth: 115,
                 display: false,
               },
               {
@@ -700,6 +779,7 @@
                 prop: 'expandMode',
                 display: false,
                 type: 'radio',
+                labelWidth: 115,
                 value: '1',
                 dicData: [
                   {
@@ -713,20 +793,6 @@
                 ]
               },
               {
-                label: '鏍硅妭鐐规樉绀鸿〃杈惧紡',
-                prop: 'rootContent',
-                display: false,
-                labelWidth: 135,
-                span: 12
-              },
-              {
-                label: '鏍戣妭鐐规樉绀鸿〃杈惧紡',
-                prop: 'showAbs',
-                display: false,
-                labelWidth: 135,
-                span: 12
-              },
-              {
                 label: 'B/S鑷畾涔夋煡璇�',
                 prop: 'bsCustQueryCLsOrUrl',
                 display: false,
@@ -738,6 +804,20 @@
                 prop: 'csCustQueryCLsOrUrl',
                 display: false,
                 labelWidth: 115,
+                span: 12
+              },
+              {
+                label: '鏍硅妭鐐规樉绀鸿〃杈惧紡',
+                prop: 'rootContent',
+                display: false,
+                labelWidth: 135,
+                span: 12
+              },
+              {
+                label: '鏍戣妭鐐规樉绀鸿〃杈惧紡',
+                prop: 'showAbs',
+                display: false,
+                labelWidth: 135,
                 span: 12
               },
             ]
@@ -837,6 +917,8 @@
     // 澧炲姞鍏抽棴瀵硅瘽妗� 娓呯┖event鏁扮粍
     beforeClose(done) {
       this.eventData = [];
+      this.showTypeChangeFlag = false;
+      this.linkTypeChangeFlag = false;
       done();
     },
 
@@ -856,6 +938,8 @@
           };
         });
       }
+      console.log('row',row);
+      this.searchTargerChangeFlag = false;
       this.$refs.crud.rowEdit(row);
     },
 

--
Gitblit v1.9.3