|
|
@ -256,6 +256,55 @@
|
|
|
|
<el-button size="small" @click="handleDialogCancel">取消</el-button>
|
|
|
|
<el-button size="small" @click="handleDialogCancel">取消</el-button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
|
|
title="发布"
|
|
|
|
|
|
|
|
class="popup-dialog"
|
|
|
|
|
|
|
|
:visible="true"
|
|
|
|
|
|
|
|
v-if="publishDialog.visible"
|
|
|
|
|
|
|
|
width="40%"
|
|
|
|
|
|
|
|
:before-close="handlePublishDialogBeforeClose"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-form>
|
|
|
|
|
|
|
|
<el-form-item label="发布方式:">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
:type="publishDialog.type === 0 ? 'primary' : 'default'"
|
|
|
|
|
|
|
|
@click="publishDialog.type = 0"
|
|
|
|
|
|
|
|
>立即发布</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
:type="publishDialog.type === 1 ? 'primary' : 'default'"
|
|
|
|
|
|
|
|
@click="publishDialog.type = 1"
|
|
|
|
|
|
|
|
>定时发布</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label=" ">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
v-if="publishDialog.type === 1"
|
|
|
|
|
|
|
|
v-model="publishDialog.time"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd hh:mm:ss"
|
|
|
|
|
|
|
|
start-placeholder="选择时间"
|
|
|
|
|
|
|
|
size="medium"
|
|
|
|
|
|
|
|
style="width: 280px;"
|
|
|
|
|
|
|
|
type="datetime"
|
|
|
|
|
|
|
|
placeholder="选择日期时间"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
v-if="modifyDialog.type === 0 || modifyDialog.type === 1"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
@click="handlePublishDialogSubmit"
|
|
|
|
|
|
|
|
>确定</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button size="small" @click="handlePublishDialogCancel"
|
|
|
|
|
|
|
|
>取消</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
<el-drawer
|
|
|
|
<el-drawer
|
|
|
|
title="高级筛选"
|
|
|
|
title="高级筛选"
|
|
|
|
v-if="queryForm.superFilterDialog.visible"
|
|
|
|
v-if="queryForm.superFilterDialog.visible"
|
|
|
@ -316,6 +365,13 @@ export default {
|
|
|
|
visible: false,
|
|
|
|
visible: false,
|
|
|
|
type: 0, // 0for新增 1for编辑 2for详情
|
|
|
|
type: 0, // 0for新增 1for编辑 2for详情
|
|
|
|
data: {} // 弹窗内数据
|
|
|
|
data: {} // 弹窗内数据
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 发布弹窗
|
|
|
|
|
|
|
|
publishDialog: {
|
|
|
|
|
|
|
|
visible: false,
|
|
|
|
|
|
|
|
type: 0, // 0for立即 1for定时
|
|
|
|
|
|
|
|
time: null,
|
|
|
|
|
|
|
|
id: null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -401,8 +457,7 @@ export default {
|
|
|
|
state: "1",
|
|
|
|
state: "1",
|
|
|
|
tags: [3, 5, 11],
|
|
|
|
tags: [3, 5, 11],
|
|
|
|
updateTime: "2023-01-01",
|
|
|
|
updateTime: "2023-01-01",
|
|
|
|
url:
|
|
|
|
url: "https://luoow.wxwenku.com/999/03._Du_und_ich_Klee.mp3",
|
|
|
|
"https://luoow.wxwenku.com/999/01._Belmondo_(Große_Liebe)_Annett_Louisan.mp3",
|
|
|
|
|
|
|
|
userId: "1627863701048659968"
|
|
|
|
userId: "1627863701048659968"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -587,15 +642,10 @@ export default {
|
|
|
|
* 发布点击事件
|
|
|
|
* 发布点击事件
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
handlePublishClick(row) {
|
|
|
|
handlePublishClick(row) {
|
|
|
|
articleApi.publish(row.id).then(res => {
|
|
|
|
this.publishDialog.id = row.id;
|
|
|
|
if (res.code === 200) {
|
|
|
|
this.publishDialog.time = null;
|
|
|
|
this.$message.success(res.message);
|
|
|
|
this.publishDialog.type = 0;
|
|
|
|
this.fetchData(this.queryForm.lastQuery);
|
|
|
|
this.publishDialog.visible = true;
|
|
|
|
return;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 详情点击事件
|
|
|
|
* 详情点击事件
|
|
|
@ -625,6 +675,12 @@ export default {
|
|
|
|
handleDialogCancel() {
|
|
|
|
handleDialogCancel() {
|
|
|
|
this.modifyDialog.visible = false;
|
|
|
|
this.modifyDialog.visible = false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 弹窗取消按扭点击事件
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
handlePublishDialogCancel() {
|
|
|
|
|
|
|
|
this.publishDialog.visible = false;
|
|
|
|
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 弹窗确定按扭点击事件
|
|
|
|
* 弹窗确定按扭点击事件
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -677,6 +733,27 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 发布弹窗确认按扭
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
handlePublishDialogSubmit() {
|
|
|
|
|
|
|
|
articleApi
|
|
|
|
|
|
|
|
.publish(
|
|
|
|
|
|
|
|
this.publishDialog.id,
|
|
|
|
|
|
|
|
this.publishDialog.type,
|
|
|
|
|
|
|
|
this.publishDialog.time
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
.then(res => {
|
|
|
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
|
|
|
this.$message.success(res.message);
|
|
|
|
|
|
|
|
this.fetchData(this.queryForm.lastQuery);
|
|
|
|
|
|
|
|
this.publishDialog.visible = false;
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 弹窗重置
|
|
|
|
* 弹窗重置
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -697,6 +774,13 @@ export default {
|
|
|
|
this.queryForm.superFilterDialog.visible = false;
|
|
|
|
this.queryForm.superFilterDialog.visible = false;
|
|
|
|
done();
|
|
|
|
done();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 弹窗关闭按扭点击事件
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
handlePublishDialogBeforeClose(done) {
|
|
|
|
|
|
|
|
this.publishDialog.visible = false;
|
|
|
|
|
|
|
|
done();
|
|
|
|
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 分页组件页数变化事件
|
|
|
|
* 分页组件页数变化事件
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|