|
|
@@ -116,6 +116,9 @@ export default {
|
|
|
|
|
|
return {
|
|
|
schema: {
|
|
|
+ props: {
|
|
|
+ size: 'small'
|
|
|
+ },
|
|
|
list: getDepartmentTasks,
|
|
|
transform: this.transform,
|
|
|
buttons: canEdit
|
|
|
@@ -126,7 +129,7 @@ export default {
|
|
|
]
|
|
|
: null,
|
|
|
cols: [
|
|
|
- { prop: 'type', type: 'refresh', width: 80 },
|
|
|
+ { prop: 'type', type: 'refresh', width: 72 },
|
|
|
{ render: (data, h) => data.allowed
|
|
|
? h(
|
|
|
'div',
|
|
|
@@ -170,7 +173,7 @@ export default {
|
|
|
input: val => this.onDateEdit(data, val)
|
|
|
}
|
|
|
})
|
|
|
- : `${data.startDate} 至 ${data.endDate}`, width: 220, align: 'center' },
|
|
|
+ : `${data.startDate} 至 ${data.endDate}`, width: 200, align: 'center' },
|
|
|
{ label: '上播时间', render: (data, h) => canEdit && data.allowed && data.from === TaskFromType.ASSET
|
|
|
? h('div', {
|
|
|
staticClass: 'o-date-picker jc',
|
|
|
@@ -179,9 +182,9 @@ export default {
|
|
|
}
|
|
|
}, data.range)
|
|
|
: data.range, width: 160, align: 'center' },
|
|
|
- { label: '上播时长(s)', render: (data, h) => canEdit && this.canEditDuration(data)
|
|
|
+ { label: '单次时长(s)', render: (data, h) => canEdit && this.canEditDuration(data)
|
|
|
? h('edit-input', {
|
|
|
- staticClass: 'border',
|
|
|
+ staticClass: 'sm border',
|
|
|
props: {
|
|
|
value: `${data.duration}`,
|
|
|
align: 'center'
|
|
|
@@ -193,7 +196,7 @@ export default {
|
|
|
: data.duration, 'min-width': 96, align: 'center' },
|
|
|
{ label: '上播次数', render: (data, h) => canEdit && data.allowed && data.from === TaskFromType.ASSET
|
|
|
? h('edit-input', {
|
|
|
- staticClass: 'border',
|
|
|
+ staticClass: 'sm border',
|
|
|
props: {
|
|
|
value: `${data.count}`,
|
|
|
align: 'center'
|
|
|
@@ -205,7 +208,7 @@ export default {
|
|
|
: data.count, align: 'center' },
|
|
|
{ label: '审核次数', render: (data, h) => canAudit && data.allowed
|
|
|
? h('edit-input', {
|
|
|
- staticClass: 'border',
|
|
|
+ staticClass: 'sm border',
|
|
|
props: {
|
|
|
value: `${data.auditCount}`,
|
|
|
align: 'center'
|
|
|
@@ -215,7 +218,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
: '-', align: 'center' },
|
|
|
- { prop: 'tag', type: 'tag', on: canAudit && this.onAudit },
|
|
|
+ { prop: 'tag', type: 'tag', size: 'sm', on: canAudit && this.onAudit, width: 80 },
|
|
|
{ type: 'invoke', render: [
|
|
|
{ label: '查看', allow: ({ allowed }) => allowed, on: this.onViewTask },
|
|
|
{ label: '删除', allow: ({ from }) => from !== TaskFromType.ORDER, on: this.onDel }
|
|
|
@@ -638,8 +641,9 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
width: auto;
|
|
|
- min-height: $height;
|
|
|
- padding: 3px 0;
|
|
|
+ height: $height--sm;
|
|
|
+ padding: 2px 0;
|
|
|
+ line-height: $height--sm - 6px;
|
|
|
border: 1px solid $primary;
|
|
|
border-radius: $radius--sm;
|
|
|
background-color: $blue--light;
|
|
|
@@ -656,6 +660,7 @@ export default {
|
|
|
flex: 1 1 auto;
|
|
|
width: auto;
|
|
|
min-width: 0;
|
|
|
+ font-size: $font-size--xs;
|
|
|
background-color: $blue--light;
|
|
|
}
|
|
|
|
|
|
@@ -665,6 +670,7 @@ export default {
|
|
|
width: auto;
|
|
|
padding: 0;
|
|
|
font-size: $font-size--xs;
|
|
|
+ line-height: inherit;
|
|
|
}
|
|
|
|
|
|
.el-input__icon {
|