This commit is contained in:
steven
2022-12-19 14:21:23 +08:00
parent a42f26342b
commit e1722460de
3 changed files with 40 additions and 16 deletions

View File

@@ -290,12 +290,24 @@ export default defineComponent({
"border-radius": "4px",
"line-height": "20px",
};
// break;
// case 9:
// style = {
// 'color' : '4DB8FA',
// 'border-color' : '4DB8FA',
// }
break;
case 9:
style = {
color: "#4DB8FA",
border: "1px solid #4DB8FA",
padding: "0 5px",
"border-radius": "4px",
"line-height": "20px",
}
case 10:
style = {
color: "#FF8800",
border: "1px solid #FF8800",
padding: "0 5px",
"border-radius": "4px",
"line-height": "20px",
};
break;
}
return style;
};

View File

@@ -231,12 +231,23 @@ export default defineComponent({
"border-radius": "4px",
"line-height": "20px",
};
// break;
// case 9:
// style = {
// 'color' : '4DB8FA',
// 'border-color' : '4DB8FA',
// }
case 9:
style = {
color: "#4DB8FA",
border: "1px solid #4DB8FA",
padding: "0 5px",
"border-radius": "4px",
"line-height": "20px",
}
case 10:
style = {
color: "#FF8800",
border: "1px solid #FF8800",
padding: "0 5px",
"border-radius": "4px",
"line-height": "20px",
};
break;
}
return style;
};

View File

@@ -11,7 +11,7 @@
<a-modal v-model:visible="preview_visible" width="80%" :footer="null" :destroyOnClose="true">
<div class="top" style="display: flex; justify-content: space-between; margin-top: 20px">
<h2>预览项目</h2>
<a-button type="primary" @click="handleModalUse">使用</a-button>
<a-button v-if="activeTableRow.type !== 200 && activeTableRow.type !== 201" type="primary" @click="handleModalUse">使用</a-button>
</div>
<TempPreview :sn="sn" :is_template="is_template" />
</a-modal>
@@ -159,7 +159,8 @@ export default defineComponent({
handleUse,
handleModalUse,
pagination,
pageChange
pageChange,
activeTableRow
}
}
})
@@ -175,6 +176,6 @@ export default defineComponent({
}
.ant-btn {
padding: 0;
padding-right: 10px;
padding: 0 10px;
}
</style>