From abe9f2de85ff402a4c989dbc1427807b4e3a59f4 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 06 七月 2023 13:56:17 +0800
Subject: [PATCH] 代码提交

---
 Source/UBCS-WEB/src/components/Tree/attrCrud.vue | 1440 +++++++++++++++++++++++++++++++++--------------------------
 1 files changed, 814 insertions(+), 626 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Tree/attrCrud.vue b/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
index 0bf7a8a..257dd8b 100644
--- a/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
+++ b/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
@@ -1,51 +1,173 @@
 <template>
-  <avue-crud :data="ProData" :option="option" @sort-change="sortChange" @row-update="addUpdate"
-             @cell-click="handleRowClick" @select="selectHandle" @row-del="CrudRowDel">
-    <template slot="menuLeft">
-      <el-button v-if="attrEditVisible == false && attrFlagChiledren==false" size="small" type="primary" @click="busineHandle">锛� 娣诲姞 {{msg}}</el-button>
-      <el-dialog :visible.sync="addVisible" append-to-body title="浠庝笟鍔$被鍨嬩腑閫夋嫨灞炴��" >
-        <avue-crud :data="businessData" :option="businessOption" @select="businessSelect">
-          <template slot="menuLeft">
-            <div style="display: flex;">
-              <el-select>
-                <el-option>灞炴�ц嫳鏂囧悕绉�</el-option>
-                <el-option>灞炴�т腑鏂囧悕绉�</el-option>
-              </el-select>
-              <el-input style="width: 300px;margin-left: 20px"></el-input>
-              <el-button size="small" style="margin-left: 10px">鏌ヨ</el-button>
-            </div>
-
+  <div>
+    <div style="display: flex;flex-wrap: wrap;" v-if="this.crudArrayFlag">
+      <!--鏂板-->
+      <el-button v-if="attrEditVisible == false && attrFlagChiledren==false" size="small" type="primary" icon="el-icon-plus" @click="busineHandle">娣诲姞 {{ msg }}</el-button>
+      <!--        鍏ㄥ睆缂栬緫-->
+      <el-button v-if=" attrEditVisible == false && attrFlagChiledren==false" size="small" @click="fullscreenHandle" icon="el-icon-full-screen">鍏ㄥ睆缂栬緫</el-button>
+      <!--        楠岃瘉瑙勫垯-->
+      <el-button icon="el-icon-info" size="small" @click="rulesVisible=true">楠岃瘉瑙勫垯</el-button>
+      <!--        灞炴�у垎缁�-->
+      <el-button icon="el-icon-menu" size="small" @click="attrVisibleHandle">灞炴�у垎缁�</el-button>
+        <!--        鍒嗙被娉ㄥ叆-->
+        <el-button icon="el-icon-magic-stick" size="small" @click="injectBtn">鍒嗙被娉ㄥ叆</el-button>
+          <!--    缁勫悎瑙勫垯-->
+          <el-button size="small" @click="isShowHandler">缁勫悎瑙勫垯</el-button>
+        <!--        鏋氫妇娉ㄥ叆-->
+        <el-button size="small" @click="enmuVisHandle">鏋氫妇娉ㄥ叆</el-button>
+        <!--    绾ц仈灞炴��-->
+        <el-button size="small" @click="CascadeHandle">绾ц仈灞炴��</el-button>
+        <!--    棰勮鎺掑簭-->
+        <el-button size="small" icon="el-icon-arrow-down">棰勮鎺掑簭</el-button>
+      <!--        鍒嗙被娉ㄥ叆-->
+      <el-button icon="el-icon-magic-stick" size="small" @click="injectBtn">鍒嗙被娉ㄥ叆</el-button>
+        <!--    缁勫悎瑙勫垯-->
+        <el-button size="small" @click="isShowHandler">缁勫悎瑙勫垯</el-button>
+      <!--        鏋氫妇娉ㄥ叆-->
+      <el-button size="small" @click="enmuVisHandle">鏋氫妇娉ㄥ叆</el-button>
+      <!--    绾ц仈灞炴��-->
+      <el-button size="small" @click="CascadeHandle">绾ц仈灞炴��</el-button>
+      <!--    棰勮鎺掑簭-->
+      <el-button size="small" @click="orderHandle" icon="el-icon-arrow-down">棰勮鎺掑簭</el-button>
+      <!--    淇濆瓨-->
+      <el-button size="small" @click="addsHandler" icon="el-icon-check">淇濆瓨</el-button>
+      <!--    鍒犻櫎-->
+      <el-button size="small" @click="CrudRemove" icon="el-icon-delete">鍒犻櫎</el-button>
+      <!--    閲嶇疆-->
+      <el-button size="small" @click="reset" icon="el-icon-refresh-right">閲嶇疆</el-button>
+      <!--    鍚屾鍒板叾浠栨ā鏉�-->
+      <el-button size="small" @click="syncHandle">鍚屾鍒板叾浠栨ā鏉�</el-button>
+      <!--    缂栫爜鐢宠棰勮-->
+      <el-button size="small" @click="applicationHandle" style="">缂栫爜鐢宠棰勮</el-button>
+      <!--        楠岃瘉瑙勫垯-->
+    </div>
+<!--    寮圭獥-->
+    <div>
+      <!--    缂栫爜鐢宠棰勮-->
+      <FormTemplateDialog
+        :codeClassifyOid="this.codeClassifyOid"
+        :templateOid="this.crudOid"
+        :type="add"
+        :visible.sync="addvisible"
+      >
+      </FormTemplateDialog>
+      <!--    绾ц仈灞炴��-->
+      <el-dialog :visible.sync="CascadeVisible" append-to-body title="璇烽�夋嫨绾ц仈灞炴��">
+        <avue-crud ref="crud" :data="CascadeData" :option="CascadeOption" @row-click="CascaderowClick">
+          <template slot="radio"
+                    slot-scope="{row}">
+            <el-radio v-model="selectRow"
+                      :label="row.$index">
+            </el-radio>
           </template>
         </avue-crud>
-       <div style="display: flex;justify-content: flex-end;margin-top: 15px">
-         <el-button size="small" type="primary" @click="busineAddHandle">淇濆瓨</el-button>
-         <el-button size="small" type="primary">鍙栨秷</el-button>
-       </div>
+        <div style="display: flex ;padding-top: 18px;justify-content: right">
+          <el-button size="small" type="primary" @click="CascadeAddHandle">纭畾</el-button>
+          <el-button size="small" style="margin-left: 10px" @click="casRemove">娓呴櫎鍐呭</el-button>
+          <el-button size="small" style="margin-left: 10px" @click="CascadeVisible=false">鍙栨秷</el-button>
+        </div>
       </el-dialog>
-    </template>
-    <!--        鍏ㄥ睆缂栬緫-->
-    <template slot="menuLeft">
-      <el-button v-if=" attrEditVisible == false && attrFlagChiledren==false" size="small" @click="fullscreenHandle">鍏ㄥ睆缂栬緫</el-button>
-<!--      <el-button v-if="attrFlagChiledren !=false" size="small" plain type="success" @click="escEdit">閫�鍑哄叏灞忕紪杈�</el-button>-->
-      <el-dialog :visible.sync="attrEditVisible" append-to-body fullscreen="true">
-       <attrCrud :ProData="this.ProData" :attrFlagChiledren="this.attrFlag"></attrCrud>
+      <!--        鏋氫妇娉ㄥ叆-->
+      <el-dialog :visible.sync="enumVisible" append-to-body title="鏋氫妇娉ㄥ叆">
+        <!-- 娓叉煋琛ㄦ牸鍙婃寜閽� -->
+        <!-- 娓叉煋琛ㄦ牸鍙婃寜閽� -->
+        <div>
+          <el-button icon="el-icon-plus" type="primary" @click="addRow">鏂板</el-button>
+          <el-table :data="tableData" style="width: 100%" @cell-click="handleCellClick"
+                    @selection-change="handleSelectionChange">
+            <!-- 娓叉煋琛ㄦ牸鍒楀強浼犲弬 -->
+            <el-table-column label="搴忓彿" type="index"></el-table-column>
+            <el-table-column
+              type="selection"
+              width="55">
+            </el-table-column>
+            <el-table-column label="閫夐」鍊�" prop="key">
+              <template slot-scope="{ row }">
+                <!-- 缂栬緫鍜屽睍绀洪�昏緫 -->
+                <el-input v-if="editingRow === row && editShow == 'key'" v-model="row.key" @blur="saveRow"></el-input>
+                <span v-else>{{ row.key }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="閫夐」涓枃鏍囩" prop="value">
+              <template slot-scope="{ row }">
+                <!-- 缂栬緫鍜屽睍绀洪�昏緫 -->
+                <el-input v-if="editingRow === row && editShow == 'value'" v-model="row.value"
+                          @blur="saveRow"></el-input>
+                <span v-else>{{ row.value }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column fixed="right" label="鎿嶄綔" width="120">
+              <template slot-scope="scope">
+                <el-button size="small" type="text" plain @click="enumDeleteRow">
+                  绉婚櫎
+                </el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+          <template>
+            <div style="display: flex;justify-content: right;margin-top: 15px">
+              <el-button size="small" type="primary" @click="enumAddHandle">淇濆瓨</el-button>
+              <el-button size="small" @click="enumVisible=false">鍙栨秷</el-button>
+            </div>
+          </template>
+        </div>
       </el-dialog>
-    </template>
-<!--    缁勫悎瑙勫垯-->
-    <template slot="menuLeft">
-      <el-button size="small" @click="isShowHandler">缁勫悎瑙勫垯</el-button>
-        <formula-editor :visible.sync="isShowformulaEdit"
-                        :systemVariableTableData="systemVariableTableData"
-                        :thisSceneTableData="thisSceneTableData"
-                        @updateFormulaContent="updataFormlaContent"
-        ></formula-editor>
-
-    </template>
-    <!--        楠岃瘉瑙勫垯-->
-    <template slot="menuLeft">
-      <el-button icon="el-icon-info" size="small" @click="rulesVisible=true">楠岃瘉瑙勫垯</el-button>
+      <!--        鍒嗙被娉ㄥ叆-->
+      <el-dialog :visible.sync="injectVisible" append-to-body class="mydialog"
+                 style="width: 1400px; left:14vw ;top: 10vh;" title="鍒嗙被娉ㄥ叆">
+        <div class="injectBox">
+          <div style="color: #FF5722;margin: 1px 0 5px 20px">鍒嗙被灞傜骇鍏宠仈璇存槑锛�</div>
+          <div
+            style="color: #01aaed;margin: 0 10px 0 45px;line-height: 20px">1锛氫富瑕佹槸璁剧疆妯℃澘灞炴�у拰鍒嗙被鐨勫叧绯�<br/>2锛氬鍒嗙被灞傜骇璁剧疆涓�2 <br/>3锛氬綍鍏ヨ祫婧愭暟鎹椂锛岃灞炴�у搴旂殑鍊兼牴鎹眰绾у叧绯诲幓瀵瑰簲鐨勫垎绫婚噷鍙�
+            <br/>4锛氬眰绾у繀椤绘槸澶т簬0鐨勬暣鏁板��
+          </div>
+          <div style="padding-top: 15px;padding-left: 35px">
+            <el-form ref="injectForm" label-width="80px">
+              <el-form-item label="娉ㄥ叆绫诲瀷">
+                <el-radio-group v-model="injectOption.type">
+                  <el-radio label="鍒嗙被鍚嶇О"></el-radio>
+                  <el-radio label="鍒嗙被浠e彿"></el-radio>
+                </el-radio-group>
+              </el-form-item>
+              <el-form-item label="灞傜骇璁剧疆">
+                <el-radio-group v-model="injectOption.set">
+                  <el-radio label="鏈�灏忓眰"></el-radio>
+                  <el-radio label="鎸囧畾灞�"></el-radio>
+                  <el-input-number v-if="this.injectOption.set == '鎸囧畾灞�'" v-model="injectOption.injectNum" :max="10" :min="0"
+                                   controls-position="right"></el-input-number>
+                </el-radio-group>
+              </el-form-item>
+              <el-form-item label="鍙慨鏀�">
+                <el-radio-group v-model="injectOption.change">
+                  <el-radio label="鏄�"></el-radio>
+                  <el-radio label="鍚�"></el-radio>
+                </el-radio-group>
+              </el-form-item>
+            </el-form>
+          </div>
+        </div>
+        <div style="display: flex;justify-content: flex-end">
+          <el-button size="small" type="primary" @click="injectAddHandle">纭畾</el-button>
+          <el-button size="small" @click="injectHandleReset">娓呴櫎鍐呭</el-button>
+          <el-button size="small" @click="injectRemove">鍙栨秷</el-button>
+        </div>
+      </el-dialog>
+      <!--        灞炴�у垎缁�-->
+      <el-dialog :visible.sync="attrVisible" append-to-body style="width: 800px; left:30vw;top: 10vh ;"
+                 title="杈撳叆鍒嗙粍鐨勫悕绉�">
+        <el-form ref="form" label-width="70px">
+          <el-form-item label="灞炴�у垎缁�">
+            <el-input v-model="attrModel"></el-input>
+          </el-form-item>
+          <div style="display: flex;justify-content: flex-end">
+            <el-button size="small" type="primary" @click="attrHandle">鎻愪氦</el-button>
+            <el-button size="small" @click="attrRemove">娓呯┖</el-button>
+          </div>
+        </el-form>
+      </el-dialog>
+      <!--      楠岃瘉瑙勫垯-->
       <el-dialog :visible.sync="rulesVisible" append-to-body title="灞炴�ч獙璇佽鍒�">
-        <el-container style="border: 1px solid #eee;padding: 10px">
+        <el-container style="border: 1px solid #9e3333;padding: 10px">
           <el-aside style="width: 330px;">
             <div style="display: flex">
               <p style="display: inline-block;width: 160px"> 姝e垯琛ㄨ揪寮忥細</p>
@@ -81,216 +203,162 @@
           </el-main>
         </el-container>
       </el-dialog>
-    </template>
-    <template slot="keyattrflag">
-      <el-switch></el-switch>
-    </template>
-    <!--        灞炴�у垎缁�-->
-    <template slot="menuLeft">
-      <el-button icon="el-icon-menu" size="small" @click="attrVisibleHandle">灞炴�у垎缁�</el-button>
+      <!--        鍏ㄥ睆缂栬緫-->
+      <el-dialog :visible.sync="attrEditVisible" append-to-body fullscreen="true">
+        <attrCrud :ProData="this.ProData" :attrFlagChiledren="this.attrFlag" :crudArrayFlag="this.crudArrayFlag"></attrCrud>
+      </el-dialog>
+      <!--      缁勫悎瑙勫垯-->
+      <formula-editor :systemVariableTableData="systemVariableTableData"
+                      :thisSceneTableData="thisSceneTableData"
+                      :visible.sync="isShowformulaEdit"
+                      @updateFormulaContent="updataFormlaContent"
+      ></formula-editor>
+      <!--    鏂板  -->
+      <el-dialog :visible.sync="addVisible" append-to-body title="浠庝笟鍔$被鍨嬩腑閫夋嫨灞炴��">
+        <avue-crud :data="businessData" :option="businessOption" @selection-change="businessSelect">
+          <template slot="menuLeft">
+            <div style="display: flex;">
+              <el-select>
+                <el-option>灞炴�ц嫳鏂囧悕绉�</el-option>
+                <el-option>灞炴�т腑鏂囧悕绉�</el-option>
+              </el-select>
+              <el-input style="width: 300px;margin-left: 20px"></el-input>
+              <el-button size="small" style="margin-left: 10px">鏌ヨ</el-button>
+            </div>
 
-      <el-dialog :visible.sync="attrVisible" append-to-body style="width: 800px; left:30vw;top: 10vh ;"
-                 title="杈撳叆鍒嗙粍鐨勫悕绉�">
-        <el-form ref="form"  label-width="70px">
-          <el-form-item label="灞炴�у垎缁�">
-            <el-input v-model="attrModel"></el-input>
-          </el-form-item>
-            <div style="display: flex;justify-content: flex-end">
-              <el-button type="primary" @click="attrHandle" size="small">鎻愪氦</el-button>
-              <el-button size="small" @click="attrRemove">娓呯┖</el-button>
-            </div>
-        </el-form>
-      </el-dialog>
-    </template>
-    <!--        鍒嗙被娉ㄥ叆-->
-    <template slot="menuLeft">
-      <el-button icon="el-icon-magic-stick" size="small" @click="injectBtn">鍒嗙被娉ㄥ叆</el-button>
-      <el-dialog :visible.sync="injectVisible" append-to-body class="mydialog"
-                 style="width: 1400px; left:14vw ;top: 10vh;" title="鍒嗙被娉ㄥ叆">
-        <div class="injectBox">
-          <div style="color: #FF5722;margin: 1px 0 5px 20px">鍒嗙被灞傜骇鍏宠仈璇存槑锛�</div>
-          <div
-            style="color: #01AAED;margin: 0 10px 0 45px;line-height: 20px">1锛氫富瑕佹槸璁剧疆妯℃澘灞炴�у拰鍒嗙被鐨勫叧绯�<br/>2锛氬鍒嗙被灞傜骇璁剧疆涓�2 <br/>3锛氬綍鍏ヨ祫婧愭暟鎹椂锛岃灞炴�у搴旂殑鍊兼牴鎹眰绾у叧绯诲幓瀵瑰簲鐨勫垎绫婚噷鍙�
-            <br/>4锛氬眰绾у繀椤绘槸澶т簬0鐨勬暣鏁板��
-          </div>
-          <div style="padding-top: 15px;padding-left: 35px">
-            <el-form ref="injectForm"  label-width="80px">
-              <el-form-item label="娉ㄥ叆绫诲瀷">
-                <el-radio-group v-model="injectOption.type">
-                  <el-radio label="鍒嗙被鍚嶇О"></el-radio>
-                  <el-radio label="鍒嗙被浠e彿"></el-radio>
-                </el-radio-group>
-              </el-form-item>
-              <el-form-item label="灞傜骇璁剧疆">
-                <el-radio-group v-model="injectOption.set">
-                  <el-radio label="鏈�灏忓眰"></el-radio>
-                  <el-radio label="鎸囧畾灞�"></el-radio>
-                  <el-input-number v-model="injectOption.injectNum" controls-position="right"  :min="0" :max="10" v-if="this.injectOption.set == '鎸囧畾灞�'"></el-input-number>
-                </el-radio-group>
-              </el-form-item>
-              <el-form-item label="鍙慨鏀�">
-                <el-radio-group v-model="injectOption.change">
-                  <el-radio label="鏄�"></el-radio>
-                  <el-radio label="鍚�"></el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-form>
-          </div>
-        </div>
-        <div style="display: flex;justify-content: flex-end">
-          <el-button size="small" type="primary" @click="injectAddHandle">纭畾</el-button>
-          <el-button size="small" @click="injectHandleReset">娓呴櫎鍐呭</el-button>
-          <el-button size="small" @click="injectRemove">鍙栨秷</el-button>
-        </div>
-      </el-dialog>
-    </template>
-    <!--        鏋氫妇娉ㄥ叆-->
-    <template slot="menuLeft">
-      <el-button size="small" @click="enmuVisHandle">鏋氫妇娉ㄥ叆</el-button>
-      <el-dialog :visible.sync="enumVisible" append-to-body title="鏋氫妇娉ㄥ叆">
-        <!-- 娓叉煋琛ㄦ牸鍙婃寜閽� -->
-        <!-- 娓叉煋琛ㄦ牸鍙婃寜閽� -->
-        <div>
-          <el-button icon="el-icon-plus" type="primary" @click="addRow">鏂板</el-button>
-          <el-table :data="tableData" style="width: 100%" @cell-click="handleCellClick" @selection-change="handleSelectionChange">
-            <!-- 娓叉煋琛ㄦ牸鍒楀強浼犲弬 -->
-            <el-table-column label="搴忓彿" type="index"></el-table-column>
-            <el-table-column
-              type="selection"
-              width="55">
-            </el-table-column>
-            <el-table-column label="閫夐」鍊�" prop="key">
-              <template slot-scope="{ row }">
-                <!-- 缂栬緫鍜屽睍绀洪�昏緫 -->
-                <el-input v-if="editingRow === row && editShow == 'key'" v-model="row.key" @blur="saveRow"></el-input>
-                <span v-else>{{ row.key }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="閫夐」涓枃鏍囩" prop="value">
-              <template slot-scope="{ row }">
-                <!-- 缂栬緫鍜屽睍绀洪�昏緫 -->
-                <el-input v-if="editingRow === row && editShow == 'value'" v-model="row.value" @blur="saveRow"></el-input>
-                <span v-else>{{ row.value }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column fixed="right" label="鎿嶄綔" width="120">
-              <template slot-scope="scope">
-                <el-button size="small" type="text" @click.native.prevent="enumDeleteRow(scope.$index, tableData)">
-                  绉婚櫎
-                </el-button>
-              </template>
-            </el-table-column>
-          </el-table>
-          <template>
-            <div style="display: flex;justify-content: right;margin-top: 15px">
-              <el-button type="primary"  size="small" @click="enumAddHandle">淇濆瓨</el-button>
-              <el-button size="small" @click="enumVisible=false">鍙栨秷</el-button>
-            </div>
-          </template>
-        </div>
-      </el-dialog>
-    </template>
-    <!--    绾ц仈灞炴��-->
-    <template slot="menuLeft">
-      <el-button size="small" @click="CascadeHandle">绾ц仈灞炴��</el-button>
-      <el-dialog :visible.sync="CascadeVisible" append-to-body title="璇烽�夋嫨绾ц仈灞炴��">
-        <avue-crud ref="crud" :data="CascadeData" :option="CascadeOption" @row-click="CascaderowClick">
-          <template slot="radio"
-                    slot-scope="{row}">
-            <el-radio v-model="selectRow"
-                      :label="row.$index">
-            </el-radio>
           </template>
         </avue-crud>
-        <div style="display: flex ;padding-top: 18px;justify-content: right">
-          <el-button size="small" type="primary" @click="CascadeAddHandle">纭畾</el-button>
-          <el-button size="small" style="margin-left: 10px" @click="casRemove">娓呴櫎鍐呭</el-button>
-          <el-button size="small" style="margin-left: 10px" @click="CascadeVisible=false">鍙栨秷</el-button>
+        <div style="display: flex;justify-content: flex-end;margin-top: 15px">
+          <el-button size="small" type="primary" @click="busineAddHandle">淇濆瓨</el-button>
+          <el-button size="small" type="primary" @click="addVisible=false">鍙栨秷</el-button>
         </div>
       </el-dialog>
-    </template>
-    <!--    棰勮鎺掑簭-->
-    <template slot="menuLeft">
-      <el-button size="small">棰勮鎺掑簭</el-button>
-    </template>
-    <!--    淇濆瓨-->
-    <template slot="menuLeft">
-      <el-button size="small" @click="addsHandler">淇濆瓨</el-button>
-    </template>
-    <!--    鍒犻櫎-->
-    <template slot="menuLeft">
-      <el-button size="small" @click="CrudRemove">鍒犻櫎</el-button>
-    </template>
-    <!--    閲嶇疆-->
-    <template slot="menuLeft">
-      <el-button size="small" @click="reset">閲嶇疆</el-button>
-    </template>
-    <!--    鍚屾鍒板叾浠栨ā鏉�-->
-    <template slot="menuLeft">
-      <el-button size="small" style="margin-top: 10px" @click="syncHandle">鍚屾鍒板叾浠栨ā鏉�</el-button>
-    </template>
-<!--    缂栫爜鐢宠棰勮-->
-    <template slot="menuLeft">
-      <el-button size="small" style="margin-top: 10px" @click="applicationHandle">缂栫爜鐢宠棰勮</el-button>
-        <FormTemplateDialog
-          :visible.sync="addvisible"
-          :type="add"
-          :templateOid="this.crudOid"
-          :codeClassifyOid="this.codeClassifyOid"
-        >
-        </FormTemplateDialog>
-    </template>
-  </avue-crud>
+    </div>
+    <el-table :data="ProData"
+              style="width: 100%"
+              height="280"
+              @cell-click="handleCellClicks"
+              @select="selectHandle"
+              @selection-change="selectionChange"
+              v-if="this.crudArrayFlag"
+    >
+      <el-table-column
+        type="selection"
+        width="55">
+      </el-table-column>
+      <!--<el-table-column fixed label="搴忓彿" type="index" width="55"></el-table-column>-->
+      <el-table-column v-for="item in this.option.column" :key="item.id"
+                       :label="item.label"
+                       :prop="item.prop"
+                       :formatter="formAttr"
+                       :width="item.width||(item.label.length >=4 ?'160':item.label.length==3 ?'130':'100')"
+                       :show-overflow-tooltip="true"
+                       :sortable="item.sortable"
+                       align="center"
+      >
+        <template slot-scope="{ row }">
+          <el-input v-if="editingRows === row && editShows== item.prop && item.prop != 'codeDateFormat' && (item.edit == 'text' || item.edit == 'select' ||item.edit == 'refer' )" v-model="row[item.prop]"
+                    @blur="saveRows"></el-input>
+          <el-input-number controls-position="right" v-if="editingRows === row && editShows== item.prop && item.edit == 'number'" v-model="row[item.prop]"
+                           @blur="saveRows"></el-input-number>
+          <el-select v-model="row[item.prop]" slot="prepend" v-if="editingRows === row && editShows== item.prop && item.prop == 'codeDateFormat'  && row[item.prop] ==''" @focus="DataChangeHandler">
+            <el-option label="椁愬巺鍚�" value="1"></el-option>
+            <el-option label="璁㈠崟鍙�" value="2"></el-option>
+            <el-option label="鐢ㄦ埛鐢佃瘽" value="3"></el-option>
+          </el-select>
+          <el-switch
+            v-if="item.edit === 'switch'" v-model="row[item.prop]" active-value="true"
+            inactive-value="false">
+          </el-switch>
+          <span v-else >{{ row[item.prop] }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        fixed="right"
+        label="鎿嶄綔"
+        width="120">
+        <template slot-scope="scope">
+          <el-button
+            size="small"
+            type="text"
+            @click.native.prevent="CrudRowDel(scope.row)">
+            绉婚櫎
+          </el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+  </div>
 </template>
 
 <script>
-import {AttrByBtm,gridCodeClassifyTemplateAttr,batchAddSave,copyto} from '@/api/template/templateAttr'
+import {AttrByBtm, gridCodeClassifyTemplateAttr, batchAddSave, copyto,listByFlag} from '@/api/template/templateAttr'
+
 export default {
   name: "attrCrud .vue",
-  // props: ['ProData','crudOid','crudArray','Formlist','codeClassifyOid'],
-  props:{
-    ProData:{
-      type:Array,
+  props: {
+    ProData: {
+      type: Array,
     },
-    crudOid:{
-      type:String,
-      default:''
+    crudOid: {
+      type: String,
+      default: ''
     },
+    crudArray: {
+      type: Array,
+    },
+    Formlist: {
+      type: Array,
+    },
+    codeClassifyOid: {
+      type: String,
+      default: ''
+    },
+    attrFlagChiledren: {
+      type: Boolean,
+      default: false
+    },
+    crudArrayFlag:{
+      type: Boolean,
+      default: false
+    }
+  },
+  watch:{
     crudArray:{
-      type:Array,
-    },
-    Formlist:{
-      type:Array,
-    },
-    codeClassifyOid:{
-      type:String,
-      default:''
-    },
-    attrFlagChiledren:{
-      type:Boolean,
-      default:false
-    },
-
+      handler(newval,oldval){
+        if(newval != undefined){
+          if(newval.length>=1){
+            this.crudArrayFlag=true
+          }else{
+            this.crudArrayFlag=false
+          }
+        }
+      },
+      deep:true,
+      immediate:true
+    }
   },
   data() {
     return {
-      attrFlag:false,
+      crudArrayFlag:false,
+      editingRows: null,
+      editShows:"",
+      attrFlag: false,
       //缂栫爜鐢宠棰勮option
-      applicationoption:{
-        column:[]
+      applicationoption: {
+        column: []
       },
       // 缂栫爜鐢宠棰勮data
-      applicationData:[],
-      //涓氬姟绫诲瀷鍗曢�夋暟缁�
-      busineSelectList:[],
+      applicationData: [],
+      //涓氬姟绫诲瀷閫夋嫨鏁扮粍
+      busineSelectList: [],
       //涓氬姟绫诲瀷娣诲姞鏁版嵁
-      busineAddList:{},
+      busineAddList: {},
       //琛ㄦ牸鍗曢�夋暟缁�
-      CrudSelect:[],
+      attrSelectList: [],
       //琛ㄦ牸oid
-      CrudOid:"",
+      attrOid: "",
       //鍦烘櫙鍙橀噺
-      thisSceneTableData:[
+      thisSceneTableData: [
         {
           formula: "lcstatus",
           desc: "鐘舵��",
@@ -317,69 +385,71 @@
         },
       ],
       // 绯荤粺鍙橀噺
-      systemVariableTableData:[
+      systemVariableTableData: [
         {
           formula: "#CURRENTUSER.OID#",
           desc: "褰撳墠鐢ㄦ埛鐨勪富閿�",
         },
         {
-          formula:"#CURRENTUSER.ID",
-          desc:"褰撳墠鐢ㄦ埛鐨勮处鎴�"
+          formula: "#CURRENTUSER.ID",
+          desc: "褰撳墠鐢ㄦ埛鐨勮处鎴�"
         },
         {
-          formula:"#CURRENTTIME#",
-          desc:"褰撳墠鏃堕棿"
+          formula: "#CURRENTTIME#",
+          desc: "褰撳墠鏃堕棿"
         },
         {
-          formula:"#CURRENTDATE#",
-          desc:"褰撳墠鏃ユ湡"
+          formula: "#CURRENTDATE#",
+          desc: "褰撳墠鏃ユ湡"
         },
         {
-          formula:"#CURRENTDATETIME#",
-          desc:"褰撳墠鏃ユ湡鏃堕棿"
+          formula: "#CURRENTDATETIME#",
+          desc: "褰撳墠鏃ユ湡鏃堕棿"
         },
         {
-          formula:"#CURRENTUSER_NAME#",
-          desc:"褰撳墠鐢ㄦ埛鐨勫鍚�"
+          formula: "#CURRENTUSER_NAME#",
+          desc: "褰撳墠鐢ㄦ埛鐨勫鍚�"
         },
         {
-          formula:"#CURRENTUSER.SECRETGRADE#",
-          desc:"褰撳墠鐢ㄦ埛瀵嗙骇"
+          formula: "#CURRENTUSER.SECRETGRADE#",
+          desc: "褰撳墠鐢ㄦ埛瀵嗙骇"
         },
         {
-          formula:"#CURRENTUSER.IPSECRET#",
-          desc:"褰撳墠鐢ㄦ埛鐨処P瀵嗙骇"
+          formula: "#CURRENTUSER.IPSECRET#",
+          desc: "褰撳墠鐢ㄦ埛鐨処P瀵嗙骇"
         },
         {
-          formula:"#CURRENTUSER.BUSINESSUNIT#",
-          desc:"褰撳墠鐢ㄦ埛鎵�灞炰笟鍔″崟鍏�"
+          formula: "#CURRENTUSER.BUSINESSUNIT#",
+          desc: "褰撳墠鐢ㄦ埛鎵�灞炰笟鍔″崟鍏�"
         },
         {
-          formula:"#CURRENTUSER.BUSINESSUNITNAME#",
-          desc:"褰撳墠鐢ㄦ埛鎵�灞炰笟鍔″崟鍏冨悕绉�"
+          formula: "#CURRENTUSER.BUSINESSUNITNAME#",
+          desc: "褰撳墠鐢ㄦ埛鎵�灞炰笟鍔″崟鍏冨悕绉�"
         },
         {
-          formula:"#CURRENTUSER.GROUPOID#",
-          desc:"褰撳墠鐢ㄦ埛鐨勯儴闂ㄤ富閿�"
+          formula: "#CURRENTUSER.GROUPOID#",
+          desc: "褰撳墠鐢ㄦ埛鐨勯儴闂ㄤ富閿�"
         },
         {
-          formula:"#CURRENTUSER.GROUPNAME#",
-          desc:"褰撳墠鐢ㄦ埛鎵�灞為儴闂ㄥ悕绉�"
+          formula: "#CURRENTUSER.GROUPNAME#",
+          desc: "褰撳墠鐢ㄦ埛鎵�灞為儴闂ㄥ悕绉�"
         },
         {
-          formula:"#CURRENTUSER.EMAIL#",
-          desc:"褰撳墠鐢ㄦ埛閭欢鍦板潃"
+          formula: "#CURRENTUSER.EMAIL#",
+          desc: "褰撳墠鐢ㄦ埛閭欢鍦板潃"
         },
         {
-          formula:"#CURRENTUSER.ROLENAME#",
-          desc:"褰撳墠鐢ㄦ埛鎵�灞炶鑹插悕绉� "
+          formula: "#CURRENTUSER.ROLENAME#",
+          desc: "褰撳墠鐢ㄦ埛鎵�灞炶鑹插悕绉� "
         },
       ],
       CascadeVisible: false,
       attrEditVisible: false,
-      isShowformulaEdit:false,
+      isShowformulaEdit: false,
       // 绾ц仈鍗曢��
       selectRow: '',
+      //绾ц仈鍗曢�夋暟缁�
+      selectRowArr:[],
       // 绾ц仈data
       CascadeData: [],
       // 绾ц仈option
@@ -418,60 +488,60 @@
           {
             label: '鍏抽敭灞炴��',
             prop: 'keyAttrFlag',
-            type:'text',
-            dicData:[
+            type: 'text',
+            dicData: [
               {
-                label:"鏄�",
-                value:'true'
+                label: "鏄�",
+                value: 'true'
               },
               {
-                label:"鍚�",
-                value:'false'
+                label: "鍚�",
+                value: 'false'
               }
             ]
           },
           {
             label: '鏌ヨ灞炴��',
             prop: 'queryAttrFlag',
-            type:'text',
-            dicData:[
+            type: 'text',
+            dicData: [
               {
-                label:"鏄�",
-                value:'true'
+                label: "鏄�",
+                value: 'true'
               },
               {
-                label:"鍚�",
-                value:'false'
+                label: "鍚�",
+                value: 'false'
               }
             ]
           },
           {
             label: '楂樼骇鏌ヨ灞炴��',
             prop: 'seniorQueryAttrFlag',
-            type:'text',
-            dicData:[
+            type: 'text',
+            dicData: [
               {
-                label:"鏄�",
-                value:'true'
+                label: "鏄�",
+                value: 'true'
               },
               {
-                label:"鍚�",
-                value:'false'
+                label: "鍚�",
+                value: 'false'
               }
             ]
           },
           {
             label: '鐩镐技鏌ラ噸灞炴��',
             prop: 'sameRepeatAttrFlag',
-            type:'text',
-            dicData:[
+            type: 'text',
+            dicData: [
               {
-                label:"鏄�",
-                value:'true'
+                label: "鏄�",
+                value: 'true'
               },
               {
-                label:"鍚�",
-                value:'false'
+                label: "鍚�",
+                value: 'false'
               }
             ]
           },
@@ -486,45 +556,45 @@
           {
             label: '蹇呰緭',
             prop: 'requireFlag',
-            type:'text',
-            dicData:[
+            type: 'text',
+            dicData: [
               {
-                label:"鏄�",
-                value:'true'
+                label: "鏄�",
+                value: 'true'
               },
               {
-                label:"鍚�",
-                value:'false'
+                label: "鍚�",
+                value: 'false'
               }
             ]
           },
           {
             label: "琛ㄥ崟鏄剧ず",
             prop: "formDisplayFlag",
-            type:'text',
-            dicData:[
+            type: 'text',
+            dicData: [
               {
-                label:"鏄�",
-                value:'true'
+                label: "鏄�",
+                value: 'true'
               },
               {
-                label:"鍚�",
-                value:'false'
+                label: "鍚�",
+                value: 'false'
               }
             ]
           },
           {
             label: "鍒楄〃鏄剧ず",
             prop: "tableDisplayFlag",
-            type:'text',
-            dicData:[
+            type: 'text',
+            dicData: [
               {
-                label:"鏄�",
-                value:'true'
+                label: "鏄�",
+                value: 'true'
               },
               {
-                label:"鍚�",
-                value:'false'
+                label: "鍚�",
+                value: 'false'
               }
             ]
           },
@@ -535,15 +605,15 @@
           {
             label: "鍒楄〃鎺掑簭",
             prop: "sortAttrFlag",
-            type:'text',
-            dicData:[
+            type: 'text',
+            dicData: [
               {
-                label:"鏄�",
-                value:'true'
+                label: "鏄�",
+                value: 'true'
               },
               {
-                label:"鍚�",
-                value:'false'
+                label: "鍚�",
+                value: 'false'
               }
             ]
           },
@@ -551,15 +621,15 @@
           {
             label: "澶氳鏂囨湰",
             prop: "textAreaFlag",
-            type:'text',
-            dicData:[
+            type: 'text',
+            dicData: [
               {
-                label:"鏄�",
-                value:'true'
+                label: "鏄�",
+                value: 'true'
               },
               {
-                label:"鍚�",
-                value:'false'
+                label: "鍚�",
+                value: 'false'
               }
             ]
           },
@@ -657,7 +727,7 @@
       //鏋氫妇娉ㄥ叆
       enumVisible: false,
       //鏋氫妇娉ㄥ叆澶氶�変繚瀛樻暟缁�
-      enumRow:[],
+      enumRow: [],
       // 鍒嗙被娉ㄥ叆寮瑰嚭妗�
       injectVisible: false,
       // 娣诲姞寮瑰嚭妗�
@@ -667,18 +737,18 @@
       //灞炴�у垎缁勫脊鍑烘
       attrVisible: false,
       //灞炴�у垎缁勮緭鍏ユ
-      attrModel:"",
+      attrModel: "",
       //褰撳墠鍗曢�夋ā鏉垮睘鎬�
-      attrRow:{},
+      attrRow: {},
       //缂栫爜鐢宠棰勮寮瑰嚭妗�
-      addvisible:false,
+      addvisible: false,
       //鍒嗙被娉ㄥ叆option
       injectOption: {
-        type:"鍒嗙被鍚嶇О",
-        set:"鏈�灏忓眰",
-        change:"鏄�",
+        type: "鍒嗙被鍚嶇О",
+        set: "鏈�灏忓眰",
+        change: "鏄�",
         //鍒嗙被娉ㄥ叆璁℃暟鍣�
-        injectNum:0,
+        injectNum: 0,
       },
       // 灞炴�ч獙璇佽緭鍏ユ
       RulesForm: {
@@ -708,129 +778,129 @@
       //灞炴�ч獙璇佽鍒檇ata
       rulesData: [
         {bds: '[\u3000\uff01-\uff5f]+', description: '鍏ㄨ绗﹀彿'},
-    {bds: '[^\u3000\uff01-\uff5f]+', description: '鍗婅绗﹀彿'},
-    {bds: '(([-|+]{1}[\\d]+鈩冿綖[-|+]{1}[\\d]+鈩�)|鏃�)', description: '娓╁害鑼冨洿锛岀ず渚� -55鈩冿綖+125鈩�'},
-    {bds: '[\\d]{15}|[\\d]{18}|[\\d]{17}X', description: '韬唤璇佸彿鐮�(15鎴�18浣嶆暟瀛椼��17浣嶆暟瀛梄) '},
-    {bds: '鐢穦濂硘鐢锋�濂虫��', description: '涓枃鎬у埆'},
-    {bds: '[\\d]+', description: '鏁板瓧'},
-    {bds: '[a-zA-Z]+', description: '瀛楁瘝'},
-    {bds: '[A-Z]+', description: '澶у啓瀛楁瘝'},
-    {bds: '[a-z]+', description: '灏忓啓瀛楁瘝'},
-    {bds: '[0-9a-zA-Z]+', description: '瀛楁瘝銆佹暟瀛楃粍鍚�'},
-    {bds: '((0[\\d]{3}-[\\d]{7})|(0[\\d]{2}-[\\d]{8})|([\\d]{7,8}))', description: '鐢佃瘽鍙风爜'},
-    {bds: '-?[1-9]\\d*', description: '鏁存暟'},
-    {bds: '[1-9]\\d*', description: '姝f暣鏁�'},
-    {bds: '-[1-9]\\d*', description: '璐熸暣鏁�'},
-    {bds: '-[1-9]\\d*|0', description: '闈炴鏁存暟(璐熸暣鏁�+0)'},
-    {bds: '[1-9]\\d*|0', description: '闈炶礋鏁存暟(姝f暣鏁�+0)'},
-    {bds: '-?([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*|0?\\.0+|0)', description: '娴偣鏁�'},
-    {bds: '[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*', description: '姝f诞鐐规暟'},
-    {bds: '-[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*', description: '璐熸诞鐐规暟'},
-    {bds: '[(-([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*))|0?\\.0+|0', description: '闈炴娴偣鏁帮紙璐熸诞鐐规暟 + 0锛�'},
-    {bds: '[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*|0?\\.0+|0', description: '闈炶礋娴偣鏁帮紙姝f诞鐐规暟 + 0锛�'},
-    {bds: 'x', description: '瀛楃 x'},
-    {bds: '\\\\', description: '鍙嶆枩绾垮瓧绗�'},
-    {bds: '\\0n', description: '甯︽湁鍏繘鍒跺�� 0 鐨勫瓧绗� n (0 <= n <= 7)'},
-    {bds: '\\0nn', description: '甯︽湁鍏繘鍒跺�� 0 鐨勫瓧绗� nn (0 <= n <= 7)'},
-    {bds: '\\0mnn', description: '甯︽湁鍏繘鍒跺�� 0 鐨勫瓧绗� mnn锛�0 <= m <= 3銆�0 <= n <= 7锛�'},
-    {bds: '\\xhh', description: '甯︽湁鍗佸叚杩涘埗鍊� 0x 鐨勫瓧绗� hh'},
-    {bds: '\\uhhhh', description: '甯︽湁鍗佸叚杩涘埗鍊� 0x 鐨勫瓧绗� hhhh'},
-    {bds: '\\t', description: '鍒惰〃绗� (\'\u0009\')'},
-    {bds: '\\n', description: '鏂拌锛堟崲琛岋級绗� (\'\u000A\')'},
-    {bds: '\\r', description: '鍥炶溅绗� (\'\u000D\')'},
-    {bds: '\\f', description: '鎹㈤〉绗� (\'\u000C\')'},
-    {bds: '\\a', description: '鎶ヨ (bell) 绗� (\'\u0007\')'},
-    {bds: '\\e', description: '杞箟绗� (\'\u001B\')'},
-    {bds: '\\cx', description: '瀵瑰簲浜� x 鐨勬帶鍒剁'},
-    {bds: '[abc]', description: 'a銆乥 鎴� c锛堢畝鍗曠被锛�'},
-    {bds: '[^abc]', description: '浠讳綍瀛楃锛岄櫎浜� a銆乥 鎴� c锛堝惁瀹氾級'},
-    {bds: '[a-zA-Z]', description: 'a 鍒� z 鎴� A 鍒� Z锛屼袱澶寸殑瀛楁瘝鍖呮嫭鍦ㄥ唴锛堣寖鍥达級'},
-    {bds: '[a-d[m-p]]', description: 'a 鍒� d 鎴� m 鍒� p锛歔a-dm-p]锛堝苟闆嗭級'},
-    {bds: '[a-z&&[def]]', description: '\td銆乪 鎴� f锛堜氦闆嗭級'},
-    {bds: '[a-z&&[^bc]]', description: 'a 鍒� z锛岄櫎浜� b 鍜� c锛歔ad-z]锛堝噺鍘伙級'},
-    {bds: '[a-z&&[^m-p]]', description: 'a 鍒� z锛岃�岄潪 m 鍒� p锛歔a-lq-z]锛堝噺鍘伙級'},
-    {bds: '.', description: '浠讳綍瀛楃锛堜笌琛岀粨鏉熺鍙兘鍖归厤涔熷彲鑳戒笉鍖归厤锛�'},
-    {bds: '\\d', description: '鏁板瓧锛歔0-9]'},
-    {bds: '\\D', description: '闈炴暟瀛楋細 [^0-9]'},
-    {bds: '\\s', description: '绌虹櫧瀛楃锛歔 \\t\\n\x0B\\f\\r]'},
-    {bds: '\\S', description: '闈炵┖鐧藉瓧绗︼細[^\\s]'},
-    {bds: '\\w', description: '鍗曡瘝瀛楃锛歔a-zA-Z_0-9]'},
-    {bds: '\\W', description: '闈炲崟璇嶅瓧绗︼細[^\\w]'},
-    {bds: '\\p{Lower}', description: '灏忓啓瀛楁瘝瀛楃锛歔a-z]'},
-    {bds: '\\p{Upper}', description: '澶у啓瀛楁瘝瀛楃锛歔A-Z]'},
-    {bds: '\\p{ASCII}', description: '鎵�鏈� ASCII锛歔\x00-\x7F]'},
-    {bds: '\\p{Alpha}', description: '瀛楁瘝瀛楃锛歔\\p{Lower}\\p{Upper}]'},
-    {bds: '\\p{Digit}', description: '鍗佽繘鍒舵暟瀛楋細[0-9]'},
-    {bds: '\\p{Alnum}', description: '瀛楁瘝鏁板瓧瀛楃锛歔\\p{Alpha}\\p{Digit}]'},
-    {bds: '\\p{Punct}', description: '鏍囩偣绗﹀彿锛�!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'},
-    {bds: '\\p{Graph}', description: '鍙瀛楃锛歔\\p{Alnum}\\p{Punct}]'},
-    {bds: '\\p{Print}', description: '鍙墦鍗板瓧绗︼細[\\p{Graph}\x20]'},
-    {bds: '\\p{Blank}', description: '绌烘牸鎴栧埗琛ㄧ锛歔 \\t]'},
-    {bds: '\\p{Cntrl}', description: '鎺у埗瀛楃锛歔\x00-\x1F\x7F]'},
-    {bds: '\\p{XDigit}', description: '鍗佸叚杩涘埗鏁板瓧锛歔0-9a-fA-F]'},
-    {bds: '\\p{Space}', description: '绌虹櫧瀛楃锛歔 \\t\\n\x0B\\f\\r]'},
-    {bds: '\\p{javaLowerCase}', description: '绛夋晥浜� java.lang.Character.isLowerCase()'},
-    {bds: '\\p{javaUpperCase}', description: '绛夋晥浜� java.lang.Character.isUpperCase()'},
-    {bds: '\\p{javaWhitespace}', description: '绛夋晥浜� java.lang.Character.isWhitespace()'},
-    {bds: '\\p{javaMirrored}', description: '绛夋晥浜� java.lang.Character.isMirrored()'},
-    {bds: '\\p{InGreek}', description: 'Greek 鍧楋紙绠�鍗曞潡锛変腑鐨勫瓧绗�'},
-    {bds: '\\p{Lu}', description: '澶у啓瀛楁瘝锛堢畝鍗曠被鍒級'},
-    {bds: '\\p{Sc}', description: '璐у竵绗﹀彿'},
-    {bds: '\\P{InGreek}', description: '鎵�鏈夊瓧绗︼紝Greek 鍧椾腑鐨勯櫎澶栵紙鍚﹀畾锛�'},
-    {bds: '[\\p{L}&&[^\\p{Lu}]]', description: '鎵�鏈夊瓧姣嶏紝澶у啓瀛楁瘝闄ゅ锛堝噺鍘伙級'},
-    {bds: '^', description: '琛岀殑寮�澶�'},
-    {bds: '$', description: '琛岀殑缁撳熬'},
-    {bds: '\\b', description: '鍗曡瘝杈圭晫'},
-    {bds: '\\B', description: '闈炲崟璇嶈竟鐣�'},
-    {bds: '\\A', description: '杈撳叆鐨勫紑澶�'},
-    {bds: '\\G', description: '涓婁竴涓尮閰嶇殑缁撳熬'},
-    {bds: '\\Z', description: '杈撳叆鐨勭粨灏撅紝浠呯敤浜庢渶鍚庣殑缁撴潫绗︼紙濡傛灉鏈夌殑璇濓級'},
-    {bds: '\\z', description: '杈撳叆鐨勭粨灏�'},
-    {bds: 'X ?', description: 'X锛屼竴娆℃垨涓�娆′篃娌℃湁'},
-    {bds: 'X *', description: 'X锛岄浂娆℃垨澶氭'},
-    {bds: 'X +', description: 'X锛屼竴娆℃垨澶氭'},
-    {bds: 'X {n }', description: 'X锛屾伆濂� n 娆�'},
-    {bds: 'X {n ,}', description: 'X锛岃嚦灏� n 娆�'},
-    {bds: 'X {n ,m }', description: 'X锛岃嚦灏� n 娆★紝浣嗘槸涓嶈秴杩� m 娆�'},
-    {bds: 'X ??', description: 'X锛屼竴娆℃垨涓�娆′篃娌℃湁'},
-    {bds: 'X *?', description: 'X锛岄浂娆℃垨澶氭'},
-    {bds: 'X +?', description: 'X锛屼竴娆℃垨澶氭'},
-    {bds: 'X {n }?', description: 'X锛屾伆濂� n 娆�'},
-    {bds: 'X {n ,}?', description: 'X锛岃嚦灏� n 娆�'},
-    {bds: 'X {n ,m }?', description: 'X锛岃嚦灏� n 娆★紝浣嗘槸涓嶈秴杩� m 娆�'},
-    {bds: 'X ?+', description: 'X锛屼竴娆℃垨涓�娆′篃娌℃湁'},
-    {bds: 'X *+', description: 'X锛岄浂娆℃垨澶氭'},
-    {bds: 'X ++', description: 'X锛屼竴娆℃垨澶氭'},
-    {bds: 'X {n }+', description: 'X锛屾伆濂� n 娆�'},
-    {bds: 'X {n ,}+', description: 'X锛岃嚦灏� n 娆�'},
-    {bds: 'X {n ,m }+', description: 'X锛岃嚦灏� n 娆★紝浣嗘槸涓嶈秴杩� m 娆�'},
-    {bds: 'XY', description: 'X 鍚庤窡 Y'},
-    {bds: 'X |Y', description: 'X 鎴� Y'},
-    {bds: '(X )', description: 'X锛屼綔涓烘崟鑾风粍'},
-    {bds: '\\n', description: '浠讳綍鍖归厤鐨� n<sup>th</sup> 鎹曡幏缁�'},
-    {bds: '\\', description: 'Nothing锛屼絾鏄紩鐢ㄤ互涓嬪瓧绗�'},
-    {bds: '\\Q', description: 'Nothing锛屼絾鏄紩鐢ㄦ墍鏈夊瓧绗︼紝鐩村埌 \\E'},
-    {bds: '\\E', description: 'Nothing锛屼絾鏄粨鏉熶粠 \\Q 寮�濮嬬殑寮曠敤'},
-    {bds: '(?:X )', description: 'X锛屼綔涓洪潪鎹曡幏缁�'},
-    {bds: '(?idmsux-idmsux)', description: 'Nothing锛屼絾鏄皢鍖归厤鏍囧織鐢� on 杞负 off'},
-    {bds: '(?idmsux-idmsux:X )', description: 'X锛屼綔涓哄甫鏈夌粰瀹氭爣蹇� on - off 鐨勯潪鎹曡幏缁�'},
-    {bds: '(?=X )', description: 'X锛岄�氳繃闆跺搴︾殑姝� lookahead'},
-    {bds: '(?!X )', description: 'X锛岄�氳繃闆跺搴︾殑璐� lookahead'},
-    {bds: '(?<=X )', description: 'X锛岄�氳繃闆跺搴︾殑姝� lookbehind'},
-    {bds: '(?<!X )', description: 'X锛岄�氳繃闆跺搴︾殑璐� lookbehind'},
-    {bds: '(?>X )', description: 'X锛屼綔涓虹嫭绔嬬殑闈炴崟鑾风粍'}
+        {bds: '[^\u3000\uff01-\uff5f]+', description: '鍗婅绗﹀彿'},
+        {bds: '(([-|+]{1}[\\d]+鈩冿綖[-|+]{1}[\\d]+鈩�)|鏃�)', description: '娓╁害鑼冨洿锛岀ず渚� -55鈩冿綖+125鈩�'},
+        {bds: '[\\d]{15}|[\\d]{18}|[\\d]{17}X', description: '韬唤璇佸彿鐮�(15鎴�18浣嶆暟瀛椼��17浣嶆暟瀛梄) '},
+        {bds: '鐢穦濂硘鐢锋�濂虫��', description: '涓枃鎬у埆'},
+        {bds: '[\\d]+', description: '鏁板瓧'},
+        {bds: '[a-zA-Z]+', description: '瀛楁瘝'},
+        {bds: '[A-Z]+', description: '澶у啓瀛楁瘝'},
+        {bds: '[a-z]+', description: '灏忓啓瀛楁瘝'},
+        {bds: '[0-9a-zA-Z]+', description: '瀛楁瘝銆佹暟瀛楃粍鍚�'},
+        {bds: '((0[\\d]{3}-[\\d]{7})|(0[\\d]{2}-[\\d]{8})|([\\d]{7,8}))', description: '鐢佃瘽鍙风爜'},
+        {bds: '-?[1-9]\\d*', description: '鏁存暟'},
+        {bds: '[1-9]\\d*', description: '姝f暣鏁�'},
+        {bds: '-[1-9]\\d*', description: '璐熸暣鏁�'},
+        {bds: '-[1-9]\\d*|0', description: '闈炴鏁存暟(璐熸暣鏁�+0)'},
+        {bds: '[1-9]\\d*|0', description: '闈炶礋鏁存暟(姝f暣鏁�+0)'},
+        {bds: '-?([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*|0?\\.0+|0)', description: '娴偣鏁�'},
+        {bds: '[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*', description: '姝f诞鐐规暟'},
+        {bds: '-[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*', description: '璐熸诞鐐规暟'},
+        {bds: '[(-([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*))|0?\\.0+|0', description: '闈炴娴偣鏁帮紙璐熸诞鐐规暟 + 0锛�'},
+        {bds: '[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*|0?\\.0+|0', description: '闈炶礋娴偣鏁帮紙姝f诞鐐规暟 + 0锛�'},
+        {bds: 'x', description: '瀛楃 x'},
+        {bds: '\\\\', description: '鍙嶆枩绾垮瓧绗�'},
+        {bds: '\\0n', description: '甯︽湁鍏繘鍒跺�� 0 鐨勫瓧绗� n (0 <= n <= 7)'},
+        {bds: '\\0nn', description: '甯︽湁鍏繘鍒跺�� 0 鐨勫瓧绗� nn (0 <= n <= 7)'},
+        {bds: '\\0mnn', description: '甯︽湁鍏繘鍒跺�� 0 鐨勫瓧绗� mnn锛�0 <= m <= 3銆�0 <= n <= 7锛�'},
+        {bds: '\\xhh', description: '甯︽湁鍗佸叚杩涘埗鍊� 0x 鐨勫瓧绗� hh'},
+        {bds: '\\uhhhh', description: '甯︽湁鍗佸叚杩涘埗鍊� 0x 鐨勫瓧绗� hhhh'},
+        {bds: '\\t', description: '鍒惰〃绗� (\'\u0009\')'},
+        {bds: '\\n', description: '鏂拌锛堟崲琛岋級绗� (\'\u000A\')'},
+        {bds: '\\r', description: '鍥炶溅绗� (\'\u000D\')'},
+        {bds: '\\f', description: '鎹㈤〉绗� (\'\u000C\')'},
+        {bds: '\\a', description: '鎶ヨ (bell) 绗� (\'\u0007\')'},
+        {bds: '\\e', description: '杞箟绗� (\'\u001B\')'},
+        {bds: '\\cx', description: '瀵瑰簲浜� x 鐨勬帶鍒剁'},
+        {bds: '[abc]', description: 'a銆乥 鎴� c锛堢畝鍗曠被锛�'},
+        {bds: '[^abc]', description: '浠讳綍瀛楃锛岄櫎浜� a銆乥 鎴� c锛堝惁瀹氾級'},
+        {bds: '[a-zA-Z]', description: 'a 鍒� z 鎴� A 鍒� Z锛屼袱澶寸殑瀛楁瘝鍖呮嫭鍦ㄥ唴锛堣寖鍥达級'},
+        {bds: '[a-d[m-p]]', description: 'a 鍒� d 鎴� m 鍒� p锛歔a-dm-p]锛堝苟闆嗭級'},
+        {bds: '[a-z&&[def]]', description: '\td銆乪 鎴� f锛堜氦闆嗭級'},
+        {bds: '[a-z&&[^bc]]', description: 'a 鍒� z锛岄櫎浜� b 鍜� c锛歔ad-z]锛堝噺鍘伙級'},
+        {bds: '[a-z&&[^m-p]]', description: 'a 鍒� z锛岃�岄潪 m 鍒� p锛歔a-lq-z]锛堝噺鍘伙級'},
+        {bds: '.', description: '浠讳綍瀛楃锛堜笌琛岀粨鏉熺鍙兘鍖归厤涔熷彲鑳戒笉鍖归厤锛�'},
+        {bds: '\\d', description: '鏁板瓧锛歔0-9]'},
+        {bds: '\\D', description: '闈炴暟瀛楋細 [^0-9]'},
+        {bds: '\\s', description: '绌虹櫧瀛楃锛歔 \\t\\n\x0B\\f\\r]'},
+        {bds: '\\S', description: '闈炵┖鐧藉瓧绗︼細[^\\s]'},
+        {bds: '\\w', description: '鍗曡瘝瀛楃锛歔a-zA-Z_0-9]'},
+        {bds: '\\W', description: '闈炲崟璇嶅瓧绗︼細[^\\w]'},
+        {bds: '\\p{Lower}', description: '灏忓啓瀛楁瘝瀛楃锛歔a-z]'},
+        {bds: '\\p{Upper}', description: '澶у啓瀛楁瘝瀛楃锛歔A-Z]'},
+        {bds: '\\p{ASCII}', description: '鎵�鏈� ASCII锛歔\x00-\x7F]'},
+        {bds: '\\p{Alpha}', description: '瀛楁瘝瀛楃锛歔\\p{Lower}\\p{Upper}]'},
+        {bds: '\\p{Digit}', description: '鍗佽繘鍒舵暟瀛楋細[0-9]'},
+        {bds: '\\p{Alnum}', description: '瀛楁瘝鏁板瓧瀛楃锛歔\\p{Alpha}\\p{Digit}]'},
+        {bds: '\\p{Punct}', description: '鏍囩偣绗﹀彿锛�!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'},
+        {bds: '\\p{Graph}', description: '鍙瀛楃锛歔\\p{Alnum}\\p{Punct}]'},
+        {bds: '\\p{Print}', description: '鍙墦鍗板瓧绗︼細[\\p{Graph}\x20]'},
+        {bds: '\\p{Blank}', description: '绌烘牸鎴栧埗琛ㄧ锛歔 \\t]'},
+        {bds: '\\p{Cntrl}', description: '鎺у埗瀛楃锛歔\x00-\x1F\x7F]'},
+        {bds: '\\p{XDigit}', description: '鍗佸叚杩涘埗鏁板瓧锛歔0-9a-fA-F]'},
+        {bds: '\\p{Space}', description: '绌虹櫧瀛楃锛歔 \\t\\n\x0B\\f\\r]'},
+        {bds: '\\p{javaLowerCase}', description: '绛夋晥浜� java.lang.Character.isLowerCase()'},
+        {bds: '\\p{javaUpperCase}', description: '绛夋晥浜� java.lang.Character.isUpperCase()'},
+        {bds: '\\p{javaWhitespace}', description: '绛夋晥浜� java.lang.Character.isWhitespace()'},
+        {bds: '\\p{javaMirrored}', description: '绛夋晥浜� java.lang.Character.isMirrored()'},
+        {bds: '\\p{InGreek}', description: 'Greek 鍧楋紙绠�鍗曞潡锛変腑鐨勫瓧绗�'},
+        {bds: '\\p{Lu}', description: '澶у啓瀛楁瘝锛堢畝鍗曠被鍒級'},
+        {bds: '\\p{Sc}', description: '璐у竵绗﹀彿'},
+        {bds: '\\P{InGreek}', description: '鎵�鏈夊瓧绗︼紝Greek 鍧椾腑鐨勯櫎澶栵紙鍚﹀畾锛�'},
+        {bds: '[\\p{L}&&[^\\p{Lu}]]', description: '鎵�鏈夊瓧姣嶏紝澶у啓瀛楁瘝闄ゅ锛堝噺鍘伙級'},
+        {bds: '^', description: '琛岀殑寮�澶�'},
+        {bds: '$', description: '琛岀殑缁撳熬'},
+        {bds: '\\b', description: '鍗曡瘝杈圭晫'},
+        {bds: '\\B', description: '闈炲崟璇嶈竟鐣�'},
+        {bds: '\\A', description: '杈撳叆鐨勫紑澶�'},
+        {bds: '\\G', description: '涓婁竴涓尮閰嶇殑缁撳熬'},
+        {bds: '\\Z', description: '杈撳叆鐨勭粨灏撅紝浠呯敤浜庢渶鍚庣殑缁撴潫绗︼紙濡傛灉鏈夌殑璇濓級'},
+        {bds: '\\z', description: '杈撳叆鐨勭粨灏�'},
+        {bds: 'X ?', description: 'X锛屼竴娆℃垨涓�娆′篃娌℃湁'},
+        {bds: 'X *', description: 'X锛岄浂娆℃垨澶氭'},
+        {bds: 'X +', description: 'X锛屼竴娆℃垨澶氭'},
+        {bds: 'X {n }', description: 'X锛屾伆濂� n 娆�'},
+        {bds: 'X {n ,}', description: 'X锛岃嚦灏� n 娆�'},
+        {bds: 'X {n ,m }', description: 'X锛岃嚦灏� n 娆★紝浣嗘槸涓嶈秴杩� m 娆�'},
+        {bds: 'X ??', description: 'X锛屼竴娆℃垨涓�娆′篃娌℃湁'},
+        {bds: 'X *?', description: 'X锛岄浂娆℃垨澶氭'},
+        {bds: 'X +?', description: 'X锛屼竴娆℃垨澶氭'},
+        {bds: 'X {n }?', description: 'X锛屾伆濂� n 娆�'},
+        {bds: 'X {n ,}?', description: 'X锛岃嚦灏� n 娆�'},
+        {bds: 'X {n ,m }?', description: 'X锛岃嚦灏� n 娆★紝浣嗘槸涓嶈秴杩� m 娆�'},
+        {bds: 'X ?+', description: 'X锛屼竴娆℃垨涓�娆′篃娌℃湁'},
+        {bds: 'X *+', description: 'X锛岄浂娆℃垨澶氭'},
+        {bds: 'X ++', description: 'X锛屼竴娆℃垨澶氭'},
+        {bds: 'X {n }+', description: 'X锛屾伆濂� n 娆�'},
+        {bds: 'X {n ,}+', description: 'X锛岃嚦灏� n 娆�'},
+        {bds: 'X {n ,m }+', description: 'X锛岃嚦灏� n 娆★紝浣嗘槸涓嶈秴杩� m 娆�'},
+        {bds: 'XY', description: 'X 鍚庤窡 Y'},
+        {bds: 'X |Y', description: 'X 鎴� Y'},
+        {bds: '(X )', description: 'X锛屼綔涓烘崟鑾风粍'},
+        {bds: '\\n', description: '浠讳綍鍖归厤鐨� n<sup>th</sup> 鎹曡幏缁�'},
+        {bds: '\\', description: 'Nothing锛屼絾鏄紩鐢ㄤ互涓嬪瓧绗�'},
+        {bds: '\\Q', description: 'Nothing锛屼絾鏄紩鐢ㄦ墍鏈夊瓧绗︼紝鐩村埌 \\E'},
+        {bds: '\\E', description: 'Nothing锛屼絾鏄粨鏉熶粠 \\Q 寮�濮嬬殑寮曠敤'},
+        {bds: '(?:X )', description: 'X锛屼綔涓洪潪鎹曡幏缁�'},
+        {bds: '(?idmsux-idmsux)', description: 'Nothing锛屼絾鏄皢鍖归厤鏍囧織鐢� on 杞负 off'},
+        {bds: '(?idmsux-idmsux:X )', description: 'X锛屼綔涓哄甫鏈夌粰瀹氭爣蹇� on - off 鐨勯潪鎹曡幏缁�'},
+        {bds: '(?=X )', description: 'X锛岄�氳繃闆跺搴︾殑姝� lookahead'},
+        {bds: '(?!X )', description: 'X锛岄�氳繃闆跺搴︾殑璐� lookahead'},
+        {bds: '(?<=X )', description: 'X锛岄�氳繃闆跺搴︾殑姝� lookbehind'},
+        {bds: '(?<!X )', description: 'X锛岄�氳繃闆跺搴︾殑璐� lookbehind'},
+        {bds: '(?>X )', description: 'X锛屼綔涓虹嫭绔嬬殑闈炴崟鑾风粍'}
       ],
       // 鏂板涓氬姟绫诲瀷
       businessData: [],
       businessOption: {
-        indexClassName:"搴忓彿",
-        indexLabelClassName:'搴忓彿',
+        indexClassName: "搴忓彿",
+        indexLabelClassName: '搴忓彿',
         index: true,
         border: true,
         addBtn: false,
-        menu:false,
-        selection:true,
-        height:500,
+        menu: false,
+        selection: true,
+        height: 500,
         column: [
           {
             label: "灞炴�ц嫳鏂囧悕绉�",
@@ -846,11 +916,27 @@
           },
           {
             label: "鏁版嵁绫诲瀷",
-            prop: "attrDataType"
+            prop: "attrDataType",
+            formatter:function(row,column){
+              let vciFieldTypeMap = {
+                VTBoolean: "甯冨皵鍨�",
+                VTClob: "闀挎枃鏈�",
+                VTDate: "鏃ユ湡",
+                VTDateTime: "鏃ユ湡鏃堕棿",
+                VTTime: "鏃堕棿",
+                VTLong: "闀挎暣鍨�",
+                VTDouble: "閲戦/鍙岀簿搴�",
+                VTInteger: "鏁村舰",
+                VTFilePath: "鏂囦欢",
+                VTString: "瀛楃涓�"
+              }
+              return vciFieldTypeMap[row.attrDataType];
+            }
           },
           {
             label: "鍙┖",
-            prop: "nullableFlag"
+            prop: "nullableFlag",
+            formatter:function(row,column){return row.nullableFlag=='true' || row.nullableFlag=='1'?'鏄�':'鍚�'}
           },
           {
             label: "榛樿鍊�",
@@ -870,27 +956,40 @@
           },
           {
             label: "鍙傜収",
-            prop: "referFlag"
+            prop: "referFlag",
+            formatter: function (d) {
+              if (!d.referFlag) {
+                return '';
+              } else {
+                return d.referBtmTypeId
+              }
+            }
           },
           {
             label: "鏋氫妇",
-            prop: "enumFlag"
+            prop: "enumFlag",
+            formatter: function (d) {
+              if (!d.enumFlag) {
+                return '';
+              } else {
+                return d.enumId
+              }
+            }
           },
         ]
       },
       //妯℃澘灞炴��
-      data: [
-      ],
+      data: [],
       // 褰撳墠琛�
       rowList: [],
       // 褰撳墠鍗曞厓鏍�
       rowCellList: [],
       List: [],
       option: {
-        index: true,
+        index: false,
         border: true,
         editBtn: false,
-        selection:true,
+        selection: true,
         labelWidth: 110,
         cellBtn: true,
         cancelBtn: false,
@@ -900,8 +999,14 @@
           prop: 'name',
           order: 'descending'
         },
-        column: [
-          {
+        column: [{
+          prop: 'orderNum',
+          label: '鎺掑簭鍙�',
+          sortable: true,
+          edit: 'number',
+          width: 90,
+          fixed: true
+        }, {
             label: "灞炴�ц嫳鏂囩紪鍙�",
             prop: "id",
             fixed: true,
@@ -915,7 +1020,8 @@
             prop: "name",
             fixed: true,
             cell: false,
-            width: 125,
+            width: 145,
+            edit: 'text',
             sortable: true
           },
           {
@@ -923,6 +1029,7 @@
             prop: "attributeGroup",
             cell: false,
             sortable: true,
+            edit: 'text',
             width: 125,
           },
           {
@@ -937,78 +1044,90 @@
             cell: false,
             sortable: true,
             width: 105,
+            edit: 'number'
           },
           {
             label: "鍏抽敭灞炴��",
             prop: "keyAttrFlag",
             cell: false,
-            type: "switch",
+            edit: "switch"
           },
           {
             label: "鏌ヨ灞炴��",
             prop: "queryAttrFlag",
             cell: false,
+            edit: "switch"
           },
           {
             label: "楂樼骇鏌ヨ灞炴��",
             prop: "seniorQueryAttrFlag",
-            width: 95,
+            width: 110,
             cell: false,
+            edit: "switch"
           },
           {
-            label: "鐩镐技鏌ヨ灞炴��",
+            label: "鐩镐技鏌ラ噸灞炴��",
             prop: "sameRepeatAttrFlag",
-            width: 95,
+            width: 110,
             cell: false,
+            edit: "switch"
           },
           {
             label: "蹇呰緭",
             prop: "requireFlag",
             cell: false,
+            edit: "switch"
           },
           {
             label: "琛ㄥ崟鏄剧ず",
             prop: "formDisplayFlag",
             cell: false,
+            edit: "switch"
           },
           {
             label: "鍒楄〃鏄剧ず",
             prop: "tableDisplayFlag",
             cell: false,
+            edit: "switch"
           },
           {
             label: "鍙",
             prop: "readonlyFlag",
             cell: false,
+            edit: "switch"
           },
           {
             label: "鍒楄〃鎺掑簭",
             prop: "sortAttrFlag",
             cell: false,
+            edit: "switch"
           },
-
           {
             label: "澶氳鏂囨湰",
             prop: "textareaFlag",
             cell: false,
+            edit: "switch"
           },
           {
             label: "榛樿鍊�",
             prop: "defaultValue",
             sortable: true,
             cell: false,
+            edit: 'text',
             width: 95,
           },
           {
             label: "鍓嶇紑",
             prop: "prefixValue",
             sortable: true,
+            edit: 'select',
             cell: false,
           },
           {
             label: "鍚庣紑",
             prop: "suffixValue",
             sortable: true,
+            edit: 'select',
             cell: false,
           },
           {
@@ -1016,6 +1135,7 @@
             prop: "componentRule",
             sortable: true,
             cell: false,
+            edit: 'refer',
             width: 105,
           },
           {
@@ -1023,91 +1143,105 @@
             prop: "verifyRule",
             sortable: true,
             cell: false,
+            edit: 'refer',
             width: 105,
           },
           {
             label: "鏃堕棿鏍煎紡",
             prop: "codeDateFormat",
             sortable: true,
-            width: 105,
+            width: 135,
+            edit: 'select',
             cell: false,
           },
           {
             label: "鍒嗙被娉ㄥ叆",
             prop: "classifyInvokeLevel",
             cell: false,
+            edit: 'refer'
           },
           {
             label: "鏋氫妇娉ㄥ叆",
             prop: "enumString",
             cell: false,
+            edit: 'refer'
           },
           {
             label: "绾ц仈灞炴��",
             prop: "parentCode",
             cell: false,
+            edit: 'refer'
           },
           {
             label: "鍙傜収閰嶇疆",
             prop: "referConfig",
             cell: false,
+            edit: 'refer'
           },
           {
             label: "绾ц仈鏌ヨ灞炴��",
             prop: "parentQueryAttr",
             width: 105,
             cell: false,
+            edit: 'text'
           },
           {
             label: "閫夋嫨搴撴爣璇�",
             prop: "libraryIdentification",
             width: 105,
             cell: false,
+            edit: 'text'
           },
           {
             label: "濉啓鎻愮ず",
             prop: "explain",
             cell: false,
+            edit: 'text'
           },
           {
             label: "琛ㄥ崟鏄剧ず鏍峰紡",
             prop: "formDisplayStyle",
             width: 105,
             cell: false,
+            edit: 'text'
           },
           {
             label: "琛ㄦ牸鏄剧ず鏍峰紡",
             prop: "tableDisplayStyle",
             width: 105,
             cell: false,
+            edit: 'text'
           },
           {
             label: "琛ㄥ崟瓒呴摼鎺�",
             prop: "formHref",
             width: 95,
             cell: false,
+            edit: 'text'
           },
           {
             label: "琛ㄦ牸瓒呴摼鎺�",
             prop: "tableHref",
             width: 95,
             cell: false,
+            edit: 'text'
           },
           {
             label: "琛ㄦ牸鏄剧ずjs",
             prop: "tableDisplayJs",
             width: 95,
             cell: false,
+            edit: 'text'
           },
           {
             label: "闀垮害",
             prop: "controlLength",
-            cell: false,
+            cell: false
           },
           {
             label: "灏忔暟绮惧害",
             prop: "precisionLength",
-            cell: false,
+            cell: false
           },
           {
             label: "鍙栧�艰寖鍥�",
@@ -1115,10 +1249,41 @@
             sortable: true,
             cell: false,
             width: 105,
+            edit: 'text'
           },
         ],
-        List:[]
-      }
+        List: []
+      },
+      vciFieldTypeMap : {
+        VTBoolean: "甯冨皵鍨�",
+        VTClob: "闀挎枃鏈�",
+        VTDate: "鏃ユ湡",
+        VTDateTime: "鏃ユ湡鏃堕棿",
+        VTTime: "鏃堕棿",
+        VTLong: "闀挎暣鍨�",
+        VTDouble: "閲戦/鍙岀簿搴�",
+        VTInteger: "鏁村舰",
+        VTFilePath: "鏂囦欢",
+        VTString: "瀛楃涓�"
+      },
+      //鏃堕棿鏍煎紡涓嬫媺妗�
+      codeDataFlag:false,
+    }
+  },
+  computed:{
+    attrOids() {
+      let oids = [];
+      this.attrSelectList.forEach(ele => {
+        oids.push(ele.oid);
+      });
+      return oids.join(",");
+    },
+    busineOids() {
+      let oids = [];
+      this.busineSelectList.forEach(ele => {
+        oids.push(ele.oid);
+      });
+      return oids.join(",");
     }
   },
   mounted() {
@@ -1127,29 +1292,42 @@
 
   },
   methods: {
+    formAttr(row, column) {
+      console.log(row,column)
+    },
+    //鏃堕棿涓嬫媺鏍煎紡
+    DataChangeHandler(){
+      debugger
+      listByFlag({comboxKey: 'codedateformat',
+        id: 'codedateformat',
+        namespace: 'codeclstempattr',
+        flag: 'dateFormates'}).then(res=>{
+        console.log(res)
+      })
+    },
     //灞炴�у垎缁勬寜閽�
-    attrVisibleHandle(){
-      if(this.CrudSelect.length>1){
+    attrVisibleHandle() {
+      if (this.attrSelectList.length > 1) {
         this.$message.warning('鍙兘閫夋嫨涓�鏉℃ā鏉垮睘鎬�')
-      }else if(this.CrudSelect<1){
+      } else if (this.attrSelectList < 1) {
         this.$message.warning('璇烽�夋嫨涓�鏉℃ā鏉垮睘鎬�')
-      }else if(this.CrudSelect.length === 1){
-        this.attrVisible=true;
+      } else if (this.attrSelectList.length === 1) {
+        this.attrVisible = true;
       }
     },
     //灞炴�у垎缁勬彁浜�
-    attrHandle(){
-      this.$set(this.attrRow,'attributeGroup',this.attrModel)
-      this.attrModel=""
-      this.attrVisible=false
+    attrHandle() {
+      this.$set(this.attrRow, 'attributeGroup', this.attrModel)
+      this.attrModel = ""
+      this.attrVisible = false
     },
     //灞炴�у垎缁勬竻绌�
-    attrRemove(){
-      this.attrModel=""
+    attrRemove() {
+      this.attrModel = ""
     },
     //琛ㄦ牸鏁版嵁
-    CrudRend(){
-      if(this.crudOid != ''){
+    CrudRend() {
+      if (this.crudOid != '') {
         gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.crudOid}).then(res => {
           this.ProData = res.data.data;
         }).catch(res => {
@@ -1158,70 +1336,84 @@
       }
     },
     //涓氬姟绫诲瀷淇濆瓨
-    busineAddHandle(){
-      if(this.busineSelectList.length>1){
-        this.$message.warning('璇烽�夋嫨涓�鏉′笟鍔$被鍨嬫暟鎹�')
-      }else {
-        this.$set(this.busineAddList,'classifytemplateoid',this.crudOid)
-        this.$set(this.busineAddList,'oid','')
-        this.ProData.push(JSON.parse(JSON.stringify(this.busineAddList)))
-        console.log(this.busineAddList)
-        this.addVisible=false;
-        console.log('prodata',this.ProData)
+    busineAddHandle() {
+      if (this.busineSelectList.length == 0) {
+        this.$message.warning('璇烽�夋嫨灞炴�ч泦');
+        return false;
       }
-    },
-    //涓氬姟绫诲瀷鍗曢��
-    businessSelect(selection,row){
-      this.busineSelectList=selection
-      this.busineAddList=row
-    },
-    // 浠庝笟鍔$被鍨嬩腑閫夋嫨鏁版嵁
-    busineHandle(){
-      if(this.crudArray.length<1){
-        this.$message.error('璇烽�夋嫨涓�鏉℃ā鏉�')
-      }else {
-        this.addVisible=true;
-        AttrByBtm({'conditionMap[oid]': this.crudOid}).then(res=>{
-          this.businessData=res.data.data;
-          console.log(res.data)
+      let ordernum = this.ProData.length;
+      this.busineSelectList.forEach((citem) => {
+        let isCopy = false;
+        this.ProData.forEach((item) => {
+          if (citem.id == item.id) {
+            isCopy = true;
+            return false;
+          }
         })
-      }
+        if (!isCopy) {
+          citem.oid = ''
+          this.busineAddList=Object.assign(citem, {
+            orderNum: ++ordernum,
+            attributedatatype: citem.attrDataType,
+            attributeDataTypeText: this.vciFieldTypeMap[citem.attrDataType],
+            controlLength: citem.attributeLength,
+            valueArea: citem.range,
+            referbtmid: citem.referBtmTypeId,
+            referbtmname: citem.referBtmTypeName,
+            referConfig: '',
+            enumid: citem.enumId,
+            precisionLength: (citem.precisionLength ? citem.precisionLength : '') + (citem.scaleLength ? '(' + citem.scaleLength + ')' : ''),
+            classifyTemplateOid: this.crudOid,
+            classifytemplateoid: this.crudOid,
+            formDisplayFlag: true,
+            tableDisplayFlag: true,
+            sortAttrFlag: false,
+            queryAttrFlag: true,
+            seniorQueryAttrFlag: true,
+            attrTableWidth: 120
+          })
+          this.ProData.push(JSON.parse(JSON.stringify(this.busineAddList)))
+        }
+      })
+      this.addVisible = false;
+
     },
-    // 绾ц仈灞炴�ф寜閽�
-    CascadeHandle(){
-      if(this.CrudSelect.length >1){
-       this.$message.warning('鍙兘閫夋嫨涓�鏉℃ā鏉垮睘鎬�')
-      }else if(this.CrudSelect.length<1){
-        this.$message.warning('璇烽�夋嫨涓�鏉℃ā鏉垮睘鎬�')
-      }else if(this.CrudSelect.length === 1){
-        this.CascadeVisible=true;
-        gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[0].oid,
-          'conditionMap[oid_notequal]':this.CrudOid
-        }).then(res=>{
-          this.CascadeData=res.data.data;
-        })
-      }
+    //涓氬姟绫诲瀷閫夋嫨
+    businessSelect(selection, row) {
+      this.busineSelectList = selection
     },
-    //琛ㄦ牸鍗曢��
-    selectHandle(selection,row){
-      this.CrudOid=row.oid;
-      this.CrudSelect=selection;
-      this.attrRow=row;
-      console.log(selection.length)
-    },
-    //淇濆瓨
-    addsHandler(){
-      batchAddSave(this.ProData).then(res=>{
-        console.log(res)
-        this.$message.success('淇濆瓨鎴愬姛')
+    // 浠庝笟鍔$被鍨嬩腑閫夋嫨鏁版嵁寮圭獥
+    busineHandle() {
+      this.addVisible = true;
+      this.busineSelectList = []
+      this.busineAddList = [];
+      AttrByBtm({'conditionMap[oid]': this.crudOid}).then(res => {
+        this.businessData = res.data.data;
       })
     },
+    // 绾ц仈灞炴�ф寜閽�
+    CascadeHandle() {
+      if (this.attrSelectList.length > 1) {
+        this.$message.warning('鍙兘閫夋嫨涓�鏉℃ā鏉垮睘鎬�')
+      } else if (this.attrSelectList.length < 1) {
+        this.$message.warning('璇烽�夋嫨涓�鏉℃ā鏉垮睘鎬�')
+      } else if (this.attrSelectList.length === 1) {
+        this.CascadeVisible = true;
+        gridCodeClassifyTemplateAttr({
+          'conditionMap[classifyTemplateOid]': this.Formlist[0].oid,
+          'conditionMap[oid_notequal]': this.attrOid
+        }).then(res => {
+          console.log(res)
+          this.CascadeData = res.data.data;
+        })
+      }
+    },
     //绾ц仈淇濆瓨
-    CascadeAddHandle(){
-      let CascadeString="";
-      CascadeString=this.attrRow.id+(this.attrRow.name);
-      this.$set(this.attrRow,'parentCode',CascadeString)
-      this.CascadeVisible=false;
+    CascadeAddHandle() {
+      let CascadeString = "";
+      CascadeString = this.selectRowArr.id + (this.selectRowArr.name);
+      this.$set(this.attrRow, 'parentCode', CascadeString)
+      this.CascadeVisible = false;
     },
     //绾ц仈灞炴�ф竻闄�
     casRemove() {
@@ -1229,8 +1421,39 @@
     },
     // 绾ц仈灞炴�ц鍗曢��
     CascaderowClick(row) {
-      this.selectRow = row.$index
+      this.selectRow = row.$index;
+      this.selectRowArr=row
+    },
+    //琛ㄦ牸鍗曢��
+    selectHandle(selection, row) {
+      this.attrOid = row.oid;
+      this.attrRow = row;
       console.log(row)
+    },
+    //琛ㄦ牸閫夋嫨
+    selectionChange(list) {
+      this.attrSelectList = list;
+    },
+    //淇濆瓨
+    addsHandler() {
+      batchAddSave(JSON.parse(JSON.stringify(this.ProData))).then(res => {
+        this.$message.success('淇濆瓨鎴愬姛')
+      })
+    },
+
+    //琛ㄦ牸琛岀紪杈�
+    handleCellClicks(row, column) {
+        this.editingRows = row;
+        this.editShows = column.property;
+        this.rowOid = row.oid;
+      console.log(row,column)
+      if(column.property == 'codeDateFormat' ){
+
+      }
+    },
+    saveRows() {
+      this.editingRows = null;
+      console.log('1321')
     },
     // 鏋氫妇娉ㄥ叆娣诲姞涓�琛岀┖鏁版嵁
     addRow() {
@@ -1246,32 +1469,29 @@
     },
     //鏋氫妇娉ㄥ叆鍒犻櫎
     enumDeleteRow(row) {
-      console.log(row)
-      this.tableData.splice(row, 1)
+      this.tableData.splice(row.$index, 1)
     },
     //鏋氫妇娉ㄥ叆鎸夐挳
-    enmuVisHandle(){
-      if(this.CrudSelect.length>1){
+    enmuVisHandle() {
+      if (this.attrSelectList.length > 1) {
         this.$message.warning('鍙兘閫夋嫨涓�鏉℃ā鏉垮睘鎬�')
-      }else if(this.CrudSelect<1){
+      } else if (this.attrSelectList < 1) {
         this.$message.warning('璇烽�夋嫨涓�鏉℃ā鏉垮睘鎬�')
-      }else if(this.CrudSelect.length === 1){
-        this.enumVisible=true;
+      } else if (this.attrSelectList.length === 1) {
+        this.enumVisible = true;
       }
     },
     //鏋氫妇娉ㄥ叆澶氶�夋
-    handleSelectionChange(row){
-      console.log(row)
-      this.enumRow=JSON.parse(JSON.stringify(row));
+    handleSelectionChange(row) {
+      this.enumRow = JSON.parse(JSON.stringify(row));
     },
     //鏋氫妇娉ㄥ叆淇濆瓨
-    enumAddHandle(){
-      console.log(this.enumRow)
-      if(this.enumRow.length<1){
+    enumAddHandle() {
+      if (this.enumRow.length < 1) {
         this.$message.warning('璇疯嚦灏戦�夋嫨涓�鏉℃暟鎹�')
-      }else {
-        this.$set(this.attrRow,'enumString',this.enumRow);
-        this.enumVisible=false;
+      } else {
+        this.$set(this.attrRow, 'enumString', this.enumRow);
+        this.enumVisible = false;
       }
     },
     // 灏嗘鍦ㄧ紪杈戠殑琛岀殑鐘舵�佸彉涓� null 锛屽嵆閫�鍑虹紪杈戠姸鎬�
@@ -1293,133 +1513,99 @@
     },
     //楠岃瘉瑙勫垯妫�鏌�
     rulesExamine() {
-      if(this.RulesForm.expressionText.test(this.RulesForm.TestContent)){
+      if (this.RulesForm.expressionText.test(this.RulesForm.TestContent)) {
         this.$message.success('鏍¢獙鎴愬姛')
       }
     },
     //鐐瑰嚮鍒嗙被娉ㄥ叆鎸夐挳
-    injectBtn(){
-      if(this.CrudSelect.length>1){
+    injectBtn() {
+      if (this.attrSelectList.length > 1) {
         this.$message.warning('鍙兘閫夋嫨涓�鏉℃ā鏉挎暟鎹�')
-      }else if(this.CrudSelect.length<1){
+      } else if (this.attrSelectList.length < 1) {
         this.$message.warning('璇烽�夋嫨涓�鏉℃ā鏉挎暟鎹�')
-      }else if(this.CrudSelect.length === 1){
-        this.injectVisible=true
+      } else if (this.attrSelectList.length === 1) {
+        this.injectVisible = true
       }
     },
     //鍒嗙被娉ㄥ叆淇濆瓨
-    injectAddHandle(){
-      this.$set(this.attrRow,'classifyInvokeLevel',this.injectOption);
-      this.injectVisible=false
+    injectAddHandle() {
+      let data = {
+        "娉ㄥ叆绫诲瀷": this.injectOption.type,
+        "娉ㄥ叆绫诲瀷鍚嶇О": this.injectOption.set,
+        "灞傜骇璁剧疆": this.injectOption.injectNum,
+        "鏄惁鍙慨鏀�": this.injectOption.change
+      }
+      console.log(this.injectOption)
+      this.$set(this.attrRow, 'classifyInvokeLevel', data);
+      this.injectVisible = false
     },
     //鍒嗙被娉ㄥ叆娓呯┖
     injectHandleReset() {
-      this.injectOption.type="";
-      this.injectOption.set="";
-      this.injectOption.change="";
-      this.injectOption.injectNum="";
+      this.injectOption.type = "";
+      this.injectOption.set = "";
+      this.injectOption.change = "";
+      this.injectOption.injectNum = "";
     },
     // 鍒嗙被娉ㄥ叆鍙栨秷
     injectRemove() {
       this.injectVisible = false
     },
     //灞炴�фā鏉胯〃鏍煎崟鍏冩牸鐐瑰嚮浜嬩欢
-    handleRowClick(row, column, cell, event) {
-      //鍒ゆ柇鐐瑰嚮涓嶆槸鎿嶄綔鏍忔墠鍙墽琛�
-      if (column.property != "menu") {
-        // 褰撳墠琛屽彉涓哄彲缂栬緫鐘舵��
-        this.rowList = row
-        row.$cellEdit = true
-        // 姣忎竴涓崟鍏冩牸鍔犱笂cell涓簍rue鎵嶆槸缂栬緫鐘舵��
-        //鎷垮埌姣忎釜columnKey锛岀偣鍑绘椂璁剧疆涓簍rue锛屽氨瀹炵幇鍗曞厓鏍肩紪杈戠姸鎬佷簡
-        this.rowCellList = this.findObject(this.option.column, column.columnKey)
-        this.rowCellList.cell = true
-        if (this.List.indexOf(column.columnKey) == -1) {
-          this.List.push(column.columnKey)
-        }
-        // if(this.List.length >= 2){
-        //   const cellName=this.List[0]
-        //
-        // }
-        console.log("list", this.List)
-        console.log(column)
-        // console.log(row)
-        console.log(column.columnKey)
-      }
-    },
-    //缂栬緫淇濆瓨浜嬩欢
-    addUpdate(val, row, done) {
-      console.log(val, row)
-      //鍙栧弽锛屾妸涔嬪墠鐨勭姸鎬佺偣鍑讳繚瀛樺悗閲嶆柊閲嶇疆涓篺alse锛屼笉鐒跺啀鐐瑰嚮鍗曞厓鏍肩紪杈戯紝涔嬪墠缂栬緫鐨勫崟鍏冩牸涔熶細闅忕潃涓嬫鐐瑰嚮鑰屽嚭鏉�
-      this.rowCellList.cell = false
-      this.rowList.$cellEdit = false
-      console.log(this.arr)
-      //鍔犱笂done鍏抽棴淇濆瓨鍚庝笉鍙紪杈戠殑鐘舵��
-      done()
-    },
     //琛ㄦ牸鎿嶄綔鏍忓垹闄�
-    CrudRowDel(row){
-      this.ProData.splice(row.$index,1)
+    CrudRowDel(row) {
+      this.ProData.splice(row.$index, 1)
     },
     //琛ㄦ牸鍒犻櫎
-    CrudRemove(){
-      this.ProData.splice(this.attrRow.$index,1)
+    CrudRemove() {
+      this.ProData.splice(this.attrRow.$index, 1)
     },
     //琛ㄦ牸閲嶇疆
-    reset(){
+    reset() {
       this.CrudRend()
     },
     //鍚屾鍒板叾浠栨ā鏉�
-    syncHandle(){
-      if(this.CrudSelect.length>1){
+    syncHandle() {
+      if (this.attrSelectList.length > 1) {
         this.$message.warning('鍙兘閫夋嫨涓�鏉℃ā鏉垮睘鎬ф暟鎹�')
-      }else if(this.CrudSelect.length<1){
+      } else if (this.attrSelectList.length < 1) {
         this.$message.warning('璇烽�夋嫨涓�鏉℃ā鏉垮睘鎬ф暟鎹�')
-      }else if(this.CrudSelect.length === 1){
-        copyto({oid:this.attrRow.oid}).then(res=>{
+      } else if (this.attrSelectList.length === 1) {
+        copyto({oid: this.attrRow.oid}).then(res => {
           this.$message.success('鍚屾鎴愬姛')
         })
       }
     },
     //缂栫爜鐢宠棰勮
-    applicationHandle(){
-      this.addvisible=true;
-      console.log('temp',this.crudOid)
-      console.log('code',this.codeClassifyOid)
-      // getFormDefineByTemplate({templateOid:this.crudOid,codeClassifyOid:this.codeClassifyOid}).then(res=>{
-      //   console.log(res)
-      // })
+    applicationHandle() {
+      this.addvisible = true;
     },
     //缁勫悎瑙勫垯
-    isShowHandler(){
-      if(this.CrudSelect.length>1){
+    isShowHandler() {
+      if (this.attrSelectList.length > 1) {
         this.$message.warning('鍙兘閫夋嫨涓�鏉℃ā鏉垮睘鎬ф暟鎹�')
-      }else if(this.CrudSelect.length<1){
+      } else if (this.attrSelectList.length < 1) {
         this.$message.warning('璇烽�夋嫨涓�鏉℃ā鏉垮睘鎬ф暟鎹�')
-      }else if(this.CrudSelect.length === 1){
-       this.isShowformulaEdit=true;
+      } else if (this.attrSelectList.length === 1) {
+        this.isShowformulaEdit = true;
       }
     },
     //鍏ㄥ睆缂栬緫
-    fullscreenHandle(){
-      if(this.crudArray.length<1){
+    fullscreenHandle() {
+      if (this.crudArray.length < 1) {
         this.$message.warning('璇烽�夋嫨涓�涓ā鏉�')
-      }else {
-        this.attrEditVisible=true;
-        this.attrFlag=true;
-        console.log(this.attrEditVisible)
+      } else {
+        this.attrEditVisible = true;
+        this.attrFlag = true;
       }
 
     },
     //閫�鍑哄叏灞忕紪杈�
-    escEdit(){
-      this.attrFlagChiledren=false;
-      this.attrEditVisible=false;
-      console.log(this.attrEditVisible)
+    escEdit() {
+      this.attrFlagChiledren = false;
+      this.attrEditVisible = false;
     },
-    updataFormlaContent(val){
-      console.log(val)
-      this.$set(this.attrRow,'componentRule',val)
+    updataFormlaContent(val) {
+      this.$set(this.attrRow, 'componentRule', val)
     },
     // 鎺掑簭
     sortChange(val) {
@@ -1439,6 +1625,8 @@
 }
 </script>
 
-<style scoped>
-
+<style scoped lang="scss">
+/deep/ .el-button {
+  margin: 0 10px 10px 0;
+}
 </style>

--
Gitblit v1.9.3