mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
案例管理页面实现
This commit is contained in:
BIN
src/assets/images/asterisk.png
Normal file
BIN
src/assets/images/asterisk.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 360 B |
@@ -58,6 +58,7 @@
|
|||||||
v-if="scope.row.filePath && scope.row.confidentialityLevel == '内部'"><span @click="cancal(scope.row)"
|
v-if="scope.row.filePath && scope.row.confidentialityLevel == '内部'"><span @click="cancal(scope.row)"
|
||||||
v-if="scope.row.excellent">取消最佳</span><span @click="open(scope.row)" v-else>最佳案例</span></el-button>
|
v-if="scope.row.excellent">取消最佳</span><span @click="open(scope.row)" v-else>最佳案例</span></el-button>
|
||||||
<el-button style="margin:0 5px" type="text" @click="delItem(scope.row)" icon="el-icon-delete">删除</el-button>
|
<el-button style="margin:0 5px" type="text" @click="delItem(scope.row)" icon="el-icon-delete">删除</el-button>
|
||||||
|
<el-button style="margin:0 5px" type="text" @click="theBest(scope.row)" icon="el-icon-delete">最佳</el-button>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -121,6 +122,41 @@
|
|||||||
</div>
|
</div>
|
||||||
<span slot="footer" class="dialog-footer"><el-button @click="recommend.dlgShow = false">关闭</el-button></span>
|
<span slot="footer" class="dialog-footer"><el-button @click="recommend.dlgShow = false">关闭</el-button></span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<el-dialog
|
||||||
|
title="最佳案例"
|
||||||
|
:visible.sync="bestValue"
|
||||||
|
width="36%">
|
||||||
|
<div class="best_card">
|
||||||
|
<div class="card_item">
|
||||||
|
<div class="card_title">
|
||||||
|
<i class="icon"></i>
|
||||||
|
<i class="text">年度</i>
|
||||||
|
</div>
|
||||||
|
<el-input style="width:190px" disabled v-model="bestYear" placeholder="请输入年度"></el-input>
|
||||||
|
</div>
|
||||||
|
<div class="card_item">
|
||||||
|
<div class="card_title">
|
||||||
|
<i class="icon"></i>
|
||||||
|
<i class="text">组织领域</i>
|
||||||
|
</div>
|
||||||
|
<el-input disabled v-model="bestOrg" placeholder="请输入组织领域"></el-input>
|
||||||
|
</div>
|
||||||
|
<div class="card_item">
|
||||||
|
<div class="card_title">
|
||||||
|
<i class="text">最佳理由</i>
|
||||||
|
</div>
|
||||||
|
<el-input type="textarea"
|
||||||
|
placeholder="请输入内容"
|
||||||
|
v-model="bestTextarea"
|
||||||
|
maxlength="200"
|
||||||
|
show-word-limit></el-input>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="notBest">取 消</el-button>
|
||||||
|
<el-button type="primary" @click="parameBest">确 定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -131,6 +167,10 @@ export default {
|
|||||||
name: 'articleItems',
|
name: 'articleItems',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
bestYear: '',
|
||||||
|
bestOrg: '',
|
||||||
|
bestTextarea: '',
|
||||||
|
bestValue: false,
|
||||||
excellent: false,
|
excellent: false,
|
||||||
queryObj: {
|
queryObj: {
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
@@ -173,6 +213,15 @@ export default {
|
|||||||
this.getData();
|
this.getData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
notBest(){
|
||||||
|
this.bestValue = false
|
||||||
|
this.bestYear = ''
|
||||||
|
this.bestOrg = ''
|
||||||
|
this.bestTextarea = ''
|
||||||
|
},
|
||||||
|
parameBest(){
|
||||||
|
this.notBest()
|
||||||
|
},
|
||||||
// 导出
|
// 导出
|
||||||
importList() {
|
importList() {
|
||||||
apiCase.exports(this.queryObj).then(res => {
|
apiCase.exports(this.queryObj).then(res => {
|
||||||
@@ -354,6 +403,9 @@ export default {
|
|||||||
this.$message({ type: 'info', message: '已取消删除', offset: 50 });
|
this.$message({ type: 'info', message: '已取消删除', offset: 50 });
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
theBest(item){
|
||||||
|
this.bestValue = true
|
||||||
|
},
|
||||||
//添加推荐
|
//添加推荐
|
||||||
shareItem(item) {
|
shareItem(item) {
|
||||||
this.shareItemData = { ...item }
|
this.shareItemData = { ...item }
|
||||||
@@ -467,6 +519,36 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
::v-deep .el-dialog__header{
|
||||||
|
border-bottom: 1px solid #909399;
|
||||||
|
}
|
||||||
|
::v-deep .el-textarea__inner{
|
||||||
|
height: 100px !important;
|
||||||
|
}
|
||||||
|
.best_card{
|
||||||
|
.card_item{
|
||||||
|
display: flex;
|
||||||
|
justify-content: start;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
.card_title{
|
||||||
|
width: 94px;
|
||||||
|
min-width: 94px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: end;
|
||||||
|
margin-right: 14px;
|
||||||
|
.icon{
|
||||||
|
width:8px;
|
||||||
|
height: 8px;
|
||||||
|
background: url('../../assets/images/asterisk.png') no-repeat;
|
||||||
|
background-size: 100%;
|
||||||
|
}
|
||||||
|
.text{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.article-status1 {
|
.article-status1 {
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
border: 1px dotted #1ea0fa;
|
border: 1px dotted #1ea0fa;
|
||||||
|
|||||||
Reference in New Issue
Block a user