jt
2023-05-09 5c40d374e5638249026e08114348361c611d22a9
pages/modal/ms_classAttr.vue
@@ -324,7 +324,7 @@
                     </picker>
                  </view>
               </view>
               <view class="form-group" v-if="attr.Type=='字典' || attr.Type=='字典-字符串'" :style="{'display':attr.hidden == true?'none':''}">
               <view class="form-group" v-if="attr.Type=='字典' || attr.Type=='字典-字符串' || attr.Type=='字典-整数'" :style="{'display':attr.hidden == true?'none':''}">
                  <view v-if="classattr.control_style=='上下布局'">
                     <text class="tx_title" :style="{'font-family':classattr.Font.Name?classattr.Font.Name:'initial','font-size':classattr.Font.Size?classattr.Font.Size:'initial','font-weight':classattr.Font.Bold?'bold':'initial','font-style':classattr.Font.Tilt?'italic':'initial','text-decoration':classattr.Font.Underline?'underline':'initial','background-color':classattr.Font.Bk_Color,'color':classattr.Font.Text_Color,'width':classattr.title_p_wdith+'%'}"><i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</text>
                     <picker class="section_iput" @change="onchange" :range="attr.dictitem" range-key="CN_S_NAME" v-if="attr.select==false" :data-index="index" :data-iindex="iindex" :style="{'width':attr.Width}" :disabled="attr.edit?false:true">
@@ -337,7 +337,7 @@
                     <picker class="section_iput attr_field" @change="onchange" :range="attr.dictitem" range-key="CN_S_NAME" v-if="attr.select==false" :data-index="index" :data-iindex="iindex" :style="{'width': attr.Width.split('%')[0] - classattr.title_p_wdith - (attr.notempty==true?10:5) +'%'}">
                        <label class="">{{ attr.Value }}</label>
                     </picker>
                     <select-cy :value="attr.Value" :name="attr.Name" :options="attr.dictitem" showClearIcon="true" @change="onchange2" v-else-if="attr.select==true" :data-index="index" :data-iindex="iindex" :style="{'width':attr.Width}"></select-cy>
                     <select-cy :value="attr.Value" :name="attr.Name" :options="attr.dictitem" showClearIcon="true" @change="onchange2" v-else-if="attr.select==true" :data-index="index" :data-iindex="iindex" :style="{'display':'inline-block','margin-left':'8px','width':attr.Width.split('%')[0] - classattr.title_p_wdith - (attr.notempty==true?10:5) +'%'}"></select-cy>
                  </view>
               </view>
               <view class="form-group" v-if="attr.Type=='引用对象(单个)' || attr.Type=='引用对象(多个)'" :style="{'display':attr.hidden == true?'none':''}">
@@ -501,7 +501,7 @@
                           </picker>
                        </view>
                     </view>
                     <view class="form-group" v-if="attr.Type=='字典' || attr.Type=='字典-字符串'" :style="{'display':attr.hidden == true?'none':''}">
                     <view class="form-group" v-if="attr.Type=='字典' || attr.Type=='字典-字符串' || attr.Type=='字典-整数'" :style="{'display':attr.hidden == true?'none':''}">
                        <view v-if="subclassattr.control_style=='上下布局'">
                           <text class="tx_title" :style="{'font-family':subclassattr.Font.Name?subclassattr.Font.Name:'initial','font-size':subclassattr.Font.Size?subclassattr.Font.Size:'initial','font-weight':subclassattr.Font.Bold?'bold':'initial','font-style':subclassattr.Font.Tilt?'italic':'initial','text-decoration':subclassattr.Font.Underline?'underline':'initial','background-color':subclassattr.Font.Bk_Color,'color':subclassattr.Font.Text_Color,'width':subclassattr.title_p_wdith+'%'}"><i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</text>
                           <picker class="section_iput" @change="onchange" :range="attr.dictitem" range-key="CN_S_NAME" v-if="attr.select==false" :data-iiindex="iiindex" :data-index="index" :data-iindex="iindex" :style="{'width':attr.Width.split('%')[0] - 2.5 +'%'}" :disabled="attr.edit?false:true">
@@ -514,7 +514,7 @@
                           <picker class="section_iput attr_field" @change="onchange" :range="attr.dictitem" range-key="CN_S_NAME" v-if="attr.select==false" :data-iiindex="iiindex" :data-index="index" :data-iindex="iindex" :style="{'width': attr.Width.split('%')[0] - subclassattr.title_p_wdith - 7 +'%'}">
                              <label class="">{{ attr.Value }}</label>
                           </picker>
                           <select-cy :value="attr.Value" :name="attr.Name" :options="attr.dictitem" showClearIcon="true" @change="sub_onchange2" v-else-if="attr.select==true" :data-iiindex="iiindex" :data-index="index" :data-iindex="iindex" :style="{'width':attr.Width}"></select-cy>
                           <select-cy :value="attr.Value" :name="attr.Name" :options="attr.dictitem" showClearIcon="true" @change="sub_onchange2" v-else-if="attr.select==true" :data-iiindex="iiindex" :data-index="index" :data-iindex="iindex" :style="{'display':'inline-block','margin-left':'8px','width':attr.Width.split('%')[0] - classattr.title_p_wdith - (attr.notempty==true?10:5) +'%'}"></select-cy>
                           
                        </view>
                     </view>
@@ -1145,7 +1145,7 @@
                                req.push({ attr: ar.Name, val: ar.ValID ?ar.ValID :'' });
                             else if(ar.Type=='布尔值')
                              req.push({ attr: ar.Name, val: ar.Value?'1':'0'});
                             else if(ar.Type=='字典' || ar.Type=='字典-字符串')
                             else if(ar.Type=='字典' || ar.Type=='字典-字符串' || ar.Type=='字典-整数')
                              req.push({ attr: ar.Name, val: itemvalue.Name});
                             else
                                req.push({ attr: ar.Name, val: ar.Value ?ar.Value :''});
@@ -1263,7 +1263,7 @@
                                req.push({ attr: ar.Name, val: ar.ValID ?ar.ValID :'' });
                             else if(ar.Type=='布尔值')
                              req.push({ attr: ar.Name, val: ar.Value?'1':'0'});
                             else if(ar.Type=='字典' || ar.Type=='字典-字符串')
                             else if(ar.Type=='字典' || ar.Type=='字典-字符串' || ar.Type=='字典-整数')
                              req.push({ attr: ar.Name, val: itemvalue.Name});
                             else
                                req.push({ attr: ar.Name, val: ar.Value ?ar.Value :''});
@@ -1527,7 +1527,7 @@
                       req.push({ name: ar.Name, value: ar.ValID ?ar.ValID :'' });
                    else if(ar.Type=='布尔值')
                     req.push({ name: ar.Name, value: ar.Value?'1':'0'});
                    else if(ar.Type=='字典' || ar.Type=='字典-字符串'){
                    else if(ar.Type=='字典' || ar.Type=='字典-字符串' || ar.Type=='字典-整数'){
                     if(ar.select==true){ //判断下拉是否多选
                        var valStr ="";
                        for(var v in ar.Value){
@@ -1918,7 +1918,7 @@
                                    for (var l = 0; l < this.$data.classAttrList[a].Attr.length; l++) {
                                       var ca = this.$data.classAttrList[a].Attr[l];
                                       if (val[i].attr  == ca.Name) {
                                          if(ca.Type=='字典' || ca.Type=='字典-字符串'){
                                          if(ca.Type=='字典' || ca.Type=='字典-字符串' || ca.Type=='字典-整数'){
                                             var dictItemList=[];
                                             for(var d in val[i].choice_list){
                                                var val =val[i].choice_list[d];
@@ -2016,7 +2016,7 @@
                                    var attr = $this.$data.classAttrList[c].Attr;
                                    for (var j = 0; j < attr.length; j++) {
                                       if(attr[j].Name==result[i].attr){
                                          if(attr[j].Type=='字典' || attr[j].Type=='字典-字符串'){
                                          if(attr[j].Type=='字典' || attr[j].Type=='字典-字符串' || attr[j].Type=='字典-整数'){
                                             var dictItemList=[];
                                             for(var d in result[i].choice_list){
                                                var val =result[i].choice_list[d];
@@ -2427,7 +2427,7 @@
                                     for (var l = 0; l < this.$data.subClassAttrList[a].Attr.length; l++) {
                                        var ca = this.$data.subClassAttrList[a].Attr[l];
                                        if (val[i].attr  == ca.Name) {
                                           if(ca.Type=='字典' || ca.Type=='字典-字符串'){
                                           if(ca.Type=='字典' || ca.Type=='字典-字符串' || ca.Type=='字典-整数'){
                                              var dictItemList=[];
                                              for(var d in val[i].choice_list){
                                                 var val =val[i].choice_list[d];
@@ -2528,7 +2528,7 @@
                                        var attr = $this.$data.subPanelList[s].subClassAttrList[c].Attr;
                                       for (var j = 0; j < attr.length; j++) {
                                          if(attr[j].Name==result[i].attr){
                                             if(attr[j].Type=='字典' || attr[j].Type=='字典-字符串'){
                                             if(attr[j].Type=='字典' || attr[j].Type=='字典-字符串' || attr[j].Type=='字典-整数'){
                                                var dictItemList=[];
                                                for(var d in result[i].choice_list){
                                                   var val =result[i].choice_list[d];
@@ -2688,7 +2688,7 @@
                     req.push({ attr: ar.Name, value: ar.ValID ?ar.ValID :'' });
                  else if(ar.Type=='布尔值')
                     req.push({ attr: ar.Name, value: ar.Value?'1':'0'});
                  else if(ar.Type=='字典' || ar.Type=='字典-字符串'){
                  else if(ar.Type=='字典' || ar.Type=='字典-字符串' || ar.Type=='字典-整数'){
                     if(ar.select==true){ //判断下拉是否多选
                        var valStr ="";
                        for(var v in ar.Value){
@@ -2727,7 +2727,7 @@
                        sub_req.push({ attr: ar.Name, value: ar.ValID ?ar.ValID :'' });
                     else if(ar.Type=='布尔值')
                        sub_req.push({ attr: ar.Name, value: ar.Value?'1':'0'});
                     else if(ar.Type=='字典' || ar.Type=='字典-字符串'){
                     else if(ar.Type=='字典' || ar.Type=='字典-字符串' || ar.Type=='字典-整数'){
                        if(ar.select==true){ //判断下拉是否多选
                           var valStr ="";
                           for(var v in ar.Value){