Browse Source

平板策略应用策略优化

gzb
guozhongbo 8 months ago
parent
commit
bcf559ecfa

+ 10
- 1
src/views/schoolSection/strategy/personalStrategy.vue View File

127
               <div class="app_list" v-for="item in padApps" :key="item.appid">
127
               <div class="app_list" v-for="item in padApps" :key="item.appid">
128
                 <Checkbox
128
                 <Checkbox
129
                   class="checked"
129
                   class="checked"
130
+                  :title="item.appName"
130
                   :disabled="strategyInfo.model === 'see'"
131
                   :disabled="strategyInfo.model === 'see'"
131
                   v-model="item.checked"
132
                   v-model="item.checked"
132
                 >
133
                 >
133
                   <img :src="$api.showImageUrl + item.appIcon" />
134
                   <img :src="$api.showImageUrl + item.appIcon" />
134
-                  <div style="line-height: 14px">
135
+                  <div class="appName" style="line-height: 14px">
135
                     {{ item.appName }}
136
                     {{ item.appName }}
136
                   </div></Checkbox
137
                   </div></Checkbox
137
                 >
138
                 >
1094
             height: 40px;
1095
             height: 40px;
1095
             object-fit: cover;
1096
             object-fit: cover;
1096
           }
1097
           }
1098
+          .appName {
1099
+            width: 100px;
1100
+            padding: 0 8px;
1101
+            cursor: pointer;
1102
+            overflow: hidden;
1103
+            text-overflow: ellipsis;
1104
+            white-space: nowrap;
1105
+          }
1097
           .checked {
1106
           .checked {
1098
             text-align: center;
1107
             text-align: center;
1099
             /deep/ .ivu-checkbox {
1108
             /deep/ .ivu-checkbox {

+ 11
- 1
src/views/schoolSection/strategy/publicStrategy.vue View File

81
         >
81
         >
82
           <div class="app_list" v-for="item in padApps" :key="item.appid">
82
           <div class="app_list" v-for="item in padApps" :key="item.appid">
83
             <Checkbox
83
             <Checkbox
84
+              :title="item.appName"
84
               class="checked"
85
               class="checked"
85
               :disabled="curState === 1"
86
               :disabled="curState === 1"
86
               v-model="item.checked"
87
               v-model="item.checked"
87
             >
88
             >
88
               <img :src="$api.showImageUrl + item.appIcon" />
89
               <img :src="$api.showImageUrl + item.appIcon" />
89
-              <div>{{ item.appName }}</div>
90
+              <div class="appName">{{ item.appName }}</div>
90
             </Checkbox>
91
             </Checkbox>
91
           </div>
92
           </div>
92
         </div>
93
         </div>
876
             height: 40px;
877
             height: 40px;
877
             object-fit: cover;
878
             object-fit: cover;
878
           }
879
           }
880
+          .appName {
881
+            width: 100px;
882
+            padding: 0 8px;
883
+            cursor: pointer;
884
+            overflow: hidden;
885
+            text-overflow: ellipsis;
886
+            white-space: nowrap;
887
+          }
879
           .checked {
888
           .checked {
880
             text-align: center;
889
             text-align: center;
890
+            margin: 0;
881
             /deep/ .ivu-checkbox {
891
             /deep/ .ivu-checkbox {
882
               position: absolute;
892
               position: absolute;
883
               top: 6px;
893
               top: 6px;

+ 10
- 1
src/views/schoolSection/strategy/strategyTemplate.vue View File

163
               <div class="app_list" v-for="item in padApps" :key="item.appid">
163
               <div class="app_list" v-for="item in padApps" :key="item.appid">
164
                 <Checkbox
164
                 <Checkbox
165
                   class="checked"
165
                   class="checked"
166
+                  :title="item.appName"
166
                   :disabled="strategyInfo.model === '查看'"
167
                   :disabled="strategyInfo.model === '查看'"
167
                   v-model="item.checked"
168
                   v-model="item.checked"
168
                 >
169
                 >
169
                   <img :src="$api.showImageUrl + item.appIcon" />
170
                   <img :src="$api.showImageUrl + item.appIcon" />
170
-                  <div style="line-height: 14px">{{ item.appName }}</div>
171
+                  <div class="appName" style="line-height: 14px">{{ item.appName }}</div>
171
                 </Checkbox>
172
                 </Checkbox>
172
               </div>
173
               </div>
173
             </div>
174
             </div>
1027
             height: 40px;
1028
             height: 40px;
1028
             object-fit: cover;
1029
             object-fit: cover;
1029
           }
1030
           }
1031
+          .appName {
1032
+            width: 100px;
1033
+            padding: 0 8px;
1034
+            cursor: pointer;
1035
+            overflow: hidden;
1036
+            text-overflow: ellipsis;
1037
+            white-space: nowrap;
1038
+          }
1030
           .checked {
1039
           .checked {
1031
             text-align: center;
1040
             text-align: center;
1032
             /deep/ .ivu-checkbox {
1041
             /deep/ .ivu-checkbox {

Loading…
Cancel
Save