This commit is contained in:
lnn19986213 2024-01-22 17:27:41 +08:00
parent f4c00c4fa7
commit 43fc9dbaf4
2 changed files with 132 additions and 2 deletions

View File

@ -54,6 +54,8 @@
<template #default="scope"> <template #default="scope">
<span style="font-size: 14px;color: #409eff;margin-right: 10px;cursor: pointer;" <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> @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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -90,6 +92,42 @@
</span> </span>
</template> </template>
</el-dialog> </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> </template>
<script> <script>
@ -114,6 +152,10 @@ export default {
paginationLayout: "total, prev, pager, next, jumper", paginationLayout: "total, prev, pager, next, jumper",
value1: '', value1: '',
open: false, open: false,
opens: false,
detailForm: {},
imgList: [],
covList: [],
title: '修改', title: '修改',
formState: { formState: {
resource: true, resource: true,
@ -191,6 +233,7 @@ export default {
}, },
before() { before() {
this.open = false; this.open = false;
this.opens = false;
// router.replace(); // router.replace();
}, },
handleClose() { handleClose() {
@ -220,7 +263,34 @@ export default {
this.title = title this.title = title
this.open = true this.open = true
this.ids = value 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> </script>

View File

@ -56,6 +56,8 @@
<template #default="scope"> <template #default="scope">
<span style="font-size: 14px;color: #409eff;margin-right: 10px;cursor: pointer;" <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> @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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -92,6 +94,39 @@
</span> </span>
</template> </template>
</el-dialog> </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> </template>
<script> <script>
@ -116,11 +151,14 @@ export default {
paginationLayout: "total, prev, pager, next, jumper", paginationLayout: "total, prev, pager, next, jumper",
value1: '', value1: '',
open: false, open: false,
opens: false,
title: '修改', title: '修改',
formState: { formState: {
resource: true, resource: true,
desc: '' desc: ''
}, },
detailForm: {},
imgList: [],
multipleSelection: [], multipleSelection: [],
ids: '', ids: '',
selectValue: '', selectValue: '',
@ -192,6 +230,7 @@ export default {
}, },
before() { before() {
this.open = false; this.open = false;
this.opens = false;
// router.replace(); // router.replace();
}, },
handleClose() { handleClose() {
@ -221,7 +260,28 @@ export default {
this.title = title this.title = title
this.open = true this.open = true
this.ids = value 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> </script>