|
|
@@ -10,16 +10,15 @@
|
|
|
</t-th>
|
|
|
</t-tr>
|
|
|
<t-tr v-for="(item, index) in list.data" :key="item.id">
|
|
|
- <t-td v-for="(column, colIndex) in columns" :key="colIndex" :align="column.align" :color="column.color" >
|
|
|
- <view v-if="column.custom == 'edit'" class="edit-td">
|
|
|
- <text v-if="!isRank" class="iconfont iconxiangyou" @click.stop="editEvent(item, index)" style="font-size: 20rpx"></text>
|
|
|
- </view>
|
|
|
- <view v-else @click.stop="editEvent(item, index)" style="width:600rpx;text-align:left;">
|
|
|
- {{ item[column.dataIndex] || "" }}
|
|
|
+ <t-td>
|
|
|
+ <view @click.stop="editEvent(item, index)" class="item">
|
|
|
+ <view>{{ item.name }}</view>
|
|
|
</view>
|
|
|
+ <i @click.stop="editEvent(item, index)" class="iconfont iconxiangyou"></i>
|
|
|
</t-td>
|
|
|
</t-tr>
|
|
|
</t-table>
|
|
|
+ <view class='update_hint'>提示:修改花材请在电脑上操作。</view>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
|
|
|
@@ -113,18 +112,6 @@ export default {
|
|
|
})
|
|
|
.catch(err => {});
|
|
|
},
|
|
|
- // upSortByIndex(index) {
|
|
|
- // if (index > 0) {
|
|
|
- // const delItem = this.dataList.splice(index, 1, this.dataList[index - 1]);
|
|
|
- // this.$set(this.dataList, index - 1, delItem[0]);
|
|
|
- // }
|
|
|
- // },
|
|
|
- // downSortByIndex(index) {
|
|
|
- // if (index < this.dataList.length - 1) {
|
|
|
- // const delItem = this.dataList.splice(index, 1, this.dataList[index + 1]);
|
|
|
- // this.$set(this.dataList, index + 1, delItem[0]);
|
|
|
- // }
|
|
|
- // },
|
|
|
async upSortByIndex(item, index) {
|
|
|
if (index == 0) {
|
|
|
return;
|
|
|
@@ -278,6 +265,16 @@ export default {
|
|
|
background-color: #f9fbfc;
|
|
|
.space-view {
|
|
|
background-color: #fff;
|
|
|
+ .update_hint{
|
|
|
+ color:#999999;
|
|
|
+ margin:30rpx 30rpx;
|
|
|
+ }
|
|
|
+ .item{
|
|
|
+ width:100%;
|
|
|
+ text-align:left;
|
|
|
+ height:50rpx;
|
|
|
+ padding-top:8rpx;
|
|
|
+ }
|
|
|
}
|
|
|
.ex-info {
|
|
|
padding: 30upx;
|