|
@@ -396,9 +396,18 @@ const onAudit = template => {
|
|
}
|
|
}
|
|
// 禁用组件模板
|
|
// 禁用组件模板
|
|
const onPublish = temp => {
|
|
const onPublish = temp => {
|
|
- if (!temp.status) return
|
|
|
|
- state.publishForm = {id: temp.id, status: 0, disableReason: ''}
|
|
|
|
- state.showPublish = true
|
|
|
|
|
|
+ if (temp.status) {
|
|
|
|
+ state.publishForm = {id: temp.id, status: 0, disableReason: ''}
|
|
|
|
+ state.showPublish = true
|
|
|
|
+ } else {
|
|
|
|
+ state.auditForm = {
|
|
|
|
+ id: temp.id,
|
|
|
|
+ reason: '',
|
|
|
|
+ pass: true,
|
|
|
|
+ category: temp.category || 0,
|
|
|
|
+ }
|
|
|
|
+ state.showAudit = true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
// 提交禁用
|
|
// 提交禁用
|
|
const onPublishConfirm = () => {
|
|
const onPublishConfirm = () => {
|