Commit 228f609b authored by 罗超's avatar 罗超

1

parent c0f6ffe1
...@@ -352,7 +352,6 @@ export default { ...@@ -352,7 +352,6 @@ export default {
if (this.addMsg.StartDate && this.addMsg.EndDate) { if (this.addMsg.StartDate && this.addMsg.EndDate) {
this.value = [this.addMsg.StartDate, this.addMsg.EndDate]; this.value = [this.addMsg.StartDate, this.addMsg.EndDate];
} }
console.log(355, this.addMsg, this.addMsg.FinishDate);
} }
} }
); );
......
...@@ -198,32 +198,7 @@ ...@@ -198,32 +198,7 @@
@click="getItem(scope.row)" @click="getItem(scope.row)"
/> />
</el-tooltip> </el-tooltip>
<el-dropdown size="medium"> <!-- <el-tooltip
<el-button type="primary" size="mini">
更多<i class="el-icon-arrow-down el-icon--right"></i
></el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item>
<el-tooltip
class="item"
effect="dark"
content="放榜"
placement="top"
v-if="
scope.row.ListState === 2 || scope.row.ListState === 3
"
>
<img
src="../../assets/img/setup/fangbang.png"
alt=""
class="imgstyle"
@click="fangbang(scope.row)"
/>
</el-tooltip>
</el-dropdown-item>
<el-dropdown-item v-if="scope.row.ListState == 5">
<el-tooltip
class="item" class="item"
effect="dark" effect="dark"
content="编辑" content="编辑"
...@@ -235,9 +210,8 @@ ...@@ -235,9 +210,8 @@
class="imgstyle" class="imgstyle"
@click="EditgoUrl(scope.row)" @click="EditgoUrl(scope.row)"
/> </el-tooltip /> </el-tooltip
></el-dropdown-item> > -->
<el-dropdown-item v-if="scope.row.ListState === 5"> <!-- <el-tooltip
<el-tooltip
class="item" class="item"
effect="dark" effect="dark"
content="删除" content="删除"
...@@ -248,22 +222,77 @@ ...@@ -248,22 +222,77 @@
alt="" alt=""
class="imgstyle" class="imgstyle"
@click="delete_b(scope.row)" @click="delete_b(scope.row)"
/> </el-tooltip />
></el-dropdown-item> </el-tooltip> -->
<el-dropdown-item> <!-- <el-tooltip
<el-tooltip
class="item" class="item"
effect="dark" effect="dark"
content="下载榜单报名" content="放榜"
placement="top" placement="top"
v-if="
scope.row.ListState === 2 || scope.row.ListState === 3
"
> >
<img <img
src="../../assets/img/userman/status_1_active.png" src="../../assets/img/setup/fangbang.png"
alt="" alt=""
class="imgstyle" class="imgstyle"
@click="downloadSingerExcel(scope.row)" @click="fangbang(scope.row)"
/> </el-tooltip />
></el-dropdown-item> </el-tooltip> -->
<!-- <el-tooltip
class="item"
effect="dark"
content="下载榜单报名"
placement="top"
>
<img
src="../../assets/img/userman/status_1_active.png"
alt=""
class="imgstyle"
@click="downloadSingerExcel(scope.row)"
/>
</el-tooltip> -->
<el-dropdown size="medium" trigger="click">
<el-button plain size="mini">
更多<i class="el-icon-arrow-down el-icon--right"></i
></el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item
v-if="
scope.row.ListState === 2 || scope.row.ListState === 3
"
>
<div @click="fangbang(scope.row)">放榜</div>
</el-dropdown-item>
<el-dropdown-item
v-if="
scope.row.ListState === 2 || scope.row.ListState === 3
"
>
<div @click="fangbangDetail(scope.row)">放榜详情</div>
</el-dropdown-item>
<el-dropdown-item
v-if="
scope.row.ListState == 5 ||
scope.row.ListState == 1 ||
scope.row.ListState === 4
"
>
<div @click="EditgoUrl(scope.row)">编辑</div>
</el-dropdown-item>
<el-dropdown-item
v-if="
scope.row.ListState === 5 || scope.row.ListState === 4
"
>
<div @click="delete_b(scope.row)">删除</div>
</el-dropdown-item>
<el-dropdown-item
><div @click="downloadSingerExcel(scope.row)">
下载榜单报名
</div>
</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
...@@ -441,11 +470,25 @@ export default { ...@@ -441,11 +470,25 @@ export default {
}, },
}); });
}, },
fangbangDetail(row) {
//放榜详情
this.$router.push({
name: "publishAlist",
query: {
Id: row.Id,
PrizeNum: row.PrizeNum,
isRank: row.EnableRank,
readonly: 1,
},
});
},
// 导出单个excel // 导出单个excel
downloadSingerExcel(item) { downloadSingerExcel(item) {
this.GetLocalFile( this.GetLocalFile(
"/api/Trade/GetFirstShopListEnrollToExcel", "/api/Trade/GetFirstShopListEnrollToExcel",
{ ListId: item.Id }, {
ListId: item.Id,
},
"榜单报名列表.xls" "榜单报名列表.xls"
); );
}, },
...@@ -457,7 +500,9 @@ export default { ...@@ -457,7 +500,9 @@ export default {
let ids = this.multipleSelection.map((e) => e.Id).toString(); let ids = this.multipleSelection.map((e) => e.Id).toString();
this.GetLocalFile( this.GetLocalFile(
"/api/Trade/GetFirstShopMoreListEnrollToExcel", "/api/Trade/GetFirstShopMoreListEnrollToExcel",
{ ListIds: ids }, {
ListIds: ids,
},
"批量下载榜单报名列表.xls" "批量下载榜单报名列表.xls"
); );
}, },
...@@ -467,7 +512,9 @@ export default { ...@@ -467,7 +512,9 @@ export default {
let ids = this.multipleSelection.map((e) => e.Id).toString(); let ids = this.multipleSelection.map((e) => e.Id).toString();
this.apipost( this.apipost(
"/api/Trade/GetFirstShopEnrollZipExport", "/api/Trade/GetFirstShopEnrollZipExport",
{ ListIds: ids }, {
ListIds: ids,
},
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.fujianLoading = false; this.fujianLoading = false;
...@@ -484,7 +531,9 @@ export default { ...@@ -484,7 +531,9 @@ export default {
delDownloadMultiplefujian(url) { delDownloadMultiplefujian(url) {
this.apipost( this.apipost(
"/api/Trade/DelFirstShopEnrollZipExport", "/api/Trade/DelFirstShopEnrollZipExport",
{ Url: url }, {
Url: url,
},
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
} else { } else {
...@@ -535,7 +584,8 @@ export default { ...@@ -535,7 +584,8 @@ export default {
padding: 20px; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
} }
.el-icon-arrow-down { .el-icon-arrow-down {
font-size: 12px; font-size: 12px;
} }
</style> </style>
\ No newline at end of file
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
placeholder="请选择" placeholder="请选择"
@change="selectdis($event, y)" @change="selectdis($event, y)"
clearable clearable
:disabled="readonly"
> >
<el-option <el-option
v-for="item in enterpriseList" v-for="item in enterpriseList"
...@@ -52,6 +53,7 @@ ...@@ -52,6 +53,7 @@
:show-file-list="false" :show-file-list="false"
:http-request="UploadSmall" :http-request="UploadSmall"
:data="{ index: y }" :data="{ index: y }"
:disabled="readonly"
> >
<i <i
v-if="!x.MedalImage || x.MedalImage == ''" v-if="!x.MedalImage || x.MedalImage == ''"
...@@ -65,6 +67,7 @@ ...@@ -65,6 +67,7 @@
effect="dark" effect="dark"
content="奖章同步" content="奖章同步"
placement="top" placement="top"
v-if="!readonly"
> >
<img <img
src="../../assets/img/userman/reset.png" src="../../assets/img/userman/reset.png"
...@@ -81,12 +84,13 @@ ...@@ -81,12 +84,13 @@
v-model="x.Reviews" v-model="x.Reviews"
class="w400" class="w400"
style="margin-left: 15px" style="margin-left: 15px"
:disabled="readonly"
> >
</el-input> </el-input>
</div> </div>
</div> </div>
</div> </div>
<div style="margin-top: 20px"> <div style="margin-top: 20px" v-if="!readonly">
<el-button size="small" type="primary" @click="Save(1)">暂存</el-button> <el-button size="small" type="primary" @click="Save(1)">暂存</el-button>
<el-button size="small" type="primary" @click="Save(2)">放榜</el-button> <el-button size="small" type="primary" @click="Save(2)">放榜</el-button>
</div> </div>
...@@ -123,6 +127,7 @@ export default { ...@@ -123,6 +127,7 @@ export default {
ListId: 0, ListId: 0,
List: [], List: [],
}, },
readonly: 0, //页面只读
}; };
}, },
created() { created() {
...@@ -131,6 +136,9 @@ export default { ...@@ -131,6 +136,9 @@ export default {
this.getData(this.$route.query.Id); this.getData(this.$route.query.Id);
this.GetFirstShopEnrollCandidateList(this.$route.query.Id); this.GetFirstShopEnrollCandidateList(this.$route.query.Id);
} }
if (this.$route.query.readonly) {
this.readonly = this.$route.query.readonly;
}
if (this.$route.query.PrizeNum) { if (this.$route.query.PrizeNum) {
this.dataobj.Finalists = this.$route.query.PrizeNum; this.dataobj.Finalists = this.$route.query.PrizeNum;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment