This commit is contained in:
parent
f4c00c4fa7
commit
43fc9dbaf4
|
@ -54,6 +54,8 @@
|
|||
<template #default="scope">
|
||||
<span style="font-size: 14px;color: #409eff;margin-right: 10px;cursor: pointer;"
|
||||
@click.stop="getdetail('审核', scope.row.id)" v-if="scope.row.examineState == '0'">审核</span>
|
||||
<span style="font-size: 14px;color: #409eff;margin-right: 10px;cursor: pointer;"
|
||||
@click.stop="getdetails('详情', scope.row)">详情</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -90,6 +92,42 @@
|
|||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<el-dialog v-model="opens" :title="title" destroy-on-close :before-close="before" width="50%">
|
||||
<el-form :model="detailForm" label-width="100px">
|
||||
<el-form-item label="名称">
|
||||
<el-input v-model="detailForm.title"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="需求清单">
|
||||
<el-input type="textarea" v-model="detailForm.demand" :rows="4"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="具体内容">
|
||||
<el-input type="textarea" v-model="detailForm.content" :rows="4"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="活动时间">
|
||||
<el-input v-model="detailForm.activityTime"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="报名截止时间">
|
||||
<el-input v-model="detailForm.deadline"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="可接单人数">
|
||||
<el-input v-model="detailForm.quantity"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="附件">
|
||||
<sc-upload-multiple :accept="''" v-model="imgList"></sc-upload-multiple>
|
||||
</el-form-item>
|
||||
<el-form-item label="封面">
|
||||
<sc-upload-multiple :accept="''" v-model="covList"></sc-upload-multiple>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button @click="handleCloses">取消</el-button>
|
||||
<el-button type="primary" @click="onFinish()">
|
||||
确定
|
||||
</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -114,6 +152,10 @@ export default {
|
|||
paginationLayout: "total, prev, pager, next, jumper",
|
||||
value1: '',
|
||||
open: false,
|
||||
opens: false,
|
||||
detailForm: {},
|
||||
imgList: [],
|
||||
covList: [],
|
||||
title: '修改',
|
||||
formState: {
|
||||
resource: true,
|
||||
|
@ -191,6 +233,7 @@ export default {
|
|||
},
|
||||
before() {
|
||||
this.open = false;
|
||||
this.opens = false;
|
||||
// router.replace();
|
||||
},
|
||||
handleClose() {
|
||||
|
@ -220,7 +263,34 @@ export default {
|
|||
this.title = title
|
||||
this.open = true
|
||||
this.ids = value
|
||||
}
|
||||
},
|
||||
getdetails(title, value) {
|
||||
this.imgList = []
|
||||
this.covList = []
|
||||
this.title = title
|
||||
this.opens = true
|
||||
this.detailForm = value
|
||||
let img1 = value.enclosure.split(',')
|
||||
img1.forEach(ele => {
|
||||
this.imgList.push({
|
||||
path: ele,
|
||||
preview: ele
|
||||
})
|
||||
})
|
||||
let img2 = value.cover.split(',')
|
||||
img2.forEach(item => {
|
||||
this.covList.push({
|
||||
path: item,
|
||||
preview: item
|
||||
})
|
||||
})
|
||||
},
|
||||
handleCloses() {
|
||||
this.opens = false;
|
||||
this.detailForm = {}
|
||||
this.imgList = []
|
||||
this.covList = []
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -56,6 +56,8 @@
|
|||
<template #default="scope">
|
||||
<span style="font-size: 14px;color: #409eff;margin-right: 10px;cursor: pointer;"
|
||||
@click.stop="getdetail('审核', scope.row.id)" v-if="scope.row.examineState == '0'">审核</span>
|
||||
<span style="font-size: 14px;color: #409eff;margin-right: 10px;cursor: pointer;"
|
||||
@click.stop="getdetails('详情', scope.row)">详情</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -92,6 +94,39 @@
|
|||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<el-dialog v-model="opens" :title="title" destroy-on-close :before-close="before" width="50%">
|
||||
<el-form :model="detailForm" label-width="100px">
|
||||
<el-form-item label="作品名称">
|
||||
<el-input v-model="detailForm.name"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="作者">
|
||||
<el-input v-model="detailForm.userName"></el-input>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="简介">
|
||||
<el-input type="textarea" v-model="detailForm.introduce"></el-input>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="网盘地址">
|
||||
<el-input v-model="detailForm.wpPath"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="提取码">
|
||||
<el-input v-model="detailForm.code"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="文件">
|
||||
<sc-upload-multiple :accept="''" v-model="imgList"></sc-upload-multiple>
|
||||
<!-- <div v-for="(v,i) in imgList" :key="i">
|
||||
<a :href="v" target="_blank">{{ v }}</a>
|
||||
</div> -->
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button @click="handleCloses">取消</el-button>
|
||||
<el-button type="primary" @click="onFinish()">
|
||||
确定
|
||||
</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -116,11 +151,14 @@ export default {
|
|||
paginationLayout: "total, prev, pager, next, jumper",
|
||||
value1: '',
|
||||
open: false,
|
||||
opens: false,
|
||||
title: '修改',
|
||||
formState: {
|
||||
resource: true,
|
||||
desc: ''
|
||||
},
|
||||
detailForm: {},
|
||||
imgList: [],
|
||||
multipleSelection: [],
|
||||
ids: '',
|
||||
selectValue: '',
|
||||
|
@ -192,6 +230,7 @@ export default {
|
|||
},
|
||||
before() {
|
||||
this.open = false;
|
||||
this.opens = false;
|
||||
// router.replace();
|
||||
},
|
||||
handleClose() {
|
||||
|
@ -221,7 +260,28 @@ export default {
|
|||
this.title = title
|
||||
this.open = true
|
||||
this.ids = value
|
||||
},
|
||||
getdetails(title, value) {
|
||||
this.imgList = []
|
||||
this.title = title
|
||||
this.opens = true
|
||||
this.detailForm = value
|
||||
let img1 = value.file.split(',')
|
||||
if (img1.length > 0) {
|
||||
img1.forEach(ele => {
|
||||
this.imgList.push({
|
||||
path: ele,
|
||||
preview: ele
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
handleCloses() {
|
||||
this.opens = false;
|
||||
this.detailForm = {}
|
||||
this.imgList = []
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue