Commit c1bf1803 authored by Mac's avatar Mac

1

parent ff3d1bc1
......@@ -243,7 +243,7 @@
this.$router.push({
name: "listRegistration",
query: {
UserId: 0,
Id: row.Id,
blank: "y",
},
});
......@@ -253,11 +253,11 @@
name: "addbillboard",
});
},
fangbang() {//放榜功能
fangbang(row) {//放榜功能
this.$router.push({
name: "publishAlist",
query: {
UserId: 0,
Id: row.Id,
},
});
},
......
......@@ -34,8 +34,12 @@
</el-form-item>
<el-form-item label="下拉选项列表">
<template v-if="searchData.CompData.OptionList" v-for="(item,index) in searchData.CompData.OptionList">
<el-input v-model="item.Name" size="small" :key="index"></el-input> <a style="cursor:pointer"
@click="DeleteOption(index)"> 删除</a>
<div style="display: flex;align-items: center;">
<el-input v-model="item.Name" size="small" class="w400" :key="index"></el-input>
<!-- <a style="cursor:pointer" @click="DeleteOption(index)"> 删除</a> -->
<img src="../../../assets/img/userman/del.png" alt="" @click="DeleteOption(index)" style="width: 26px;height: 26px;margin-left: 10px;"/>
</div>
</template>
<el-button class="button-new-tag" size="small" @click="addOptionItem">添加选项</el-button>
</el-form-item>
......
......@@ -8,8 +8,10 @@
<div v-for="(x,y) in msgList" :key='y' style="margin-bottom: 15px;border-bottom: 1px solid #e2e2e2;">
<div style="display: flex;align-items: flex-start;">
<span v-if="dataobj.rankingType==1" style="line-height: 32px;margin-right: 15px;">{{y+1}}:</span>
<el-select class="w300" v-model="x.Id" size="small" placeholder="请选择" @change="selectdis()" clearable>
<el-option v-for="item in enterpriseList" :key="item.Id" :label="item.Name" :value="item.Id" :disabled="item.disabled" >
<el-select class="w300" v-model="x.Id" size="small" placeholder="请选择" @change="selectdis()"
clearable>
<el-option v-for="item in enterpriseList" :key="item.Id" :label="item.Name" :value="item.Id"
:disabled="item.disabled">
</el-option>
</el-select>
<span style="margin-left: 15px;line-height: 32px">小奖章</span>
......@@ -22,7 +24,7 @@
</el-image>
</div>
</div>
<span style="margin-left: 15px;line-height: 32px;">大奖章</span>
<!-- <span style="margin-left: 15px;line-height: 32px;">大奖章</span>
<div style="margin-left: 5px">
<el-button @click="openChangeDig(2,y)" size="small">选择文件</el-button>
<div class="app-gallery-item" style="position: relative; width: 100px; margin-top: 10px">
......@@ -31,14 +33,14 @@
<el-image v-else style="width: 80px; height: 80px" :src="x.GrandMedal">
</el-image>
</div>
</div>
</div> -->
<!-- <el-button @click="synchro()" size="small" type="primary" style="margin-left: 15px">奖章同步</el-button> -->
<el-tooltip class="item" effect="dark" content="奖章同步" placement="top">
<img src="../../assets/img/userman/reset.png" alt="" class="imgstyle"
@click="synchro(y)" />
<img src="../../assets/img/userman/reset.png" alt="" class="imgstyle" @click="synchro(y)" />
</el-tooltip>
<span style="margin-left: 15px;line-height: 32px;">评语</span>
<el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="x.comment" class='w400' style='margin-left: 15px;'>
<el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="x.comment" class='w400'
style='margin-left: 15px;'>
</el-input>
</div>
......@@ -82,7 +84,7 @@
},
msgList: [],
enterpriseList: [],//入围企业
msgListindex:0
msgListindex: 0
};
},
......@@ -98,8 +100,8 @@
}
let obj2 = {
Name: '企业' + i,
Id: i+1,
disabled:false
Id: i + 1,
disabled: false
}
this.msgList.push(obj)
this.enterpriseList.push(obj2)
......@@ -107,8 +109,9 @@
}
},
mounted() {
if (this.$route.query.ID) {
this.getData(this.$route.query.ID);
if (this.$route.query.Id) {
this.getData(this.$route.query.Id);
this.GetFirstShopEnrollCandidateList(this.$route.query.Id)
}
},
methods: {
......@@ -118,41 +121,41 @@
let url = this.getIconLink(msg.url);
if (this.imgType == 1) {
this.msgList[this.msgListindex].SmallMedal = url
}else{
} else {
this.msgList[this.msgListindex].GrandMedal = url
}
this.changeState = false;
},
openChangeDig(num,index) {
openChangeDig(num, index) {
this.changeState = true;
this.imgType = num;
this.msgListindex = index
},
synchro(index){//奖章同步
let Small='';
let Grand='';
this.msgList.forEach((x,y)=>{
if(y== index){
synchro(index) {//奖章同步
let Small = '';
let Grand = '';
this.msgList.forEach((x, y) => {
if (y == index) {
Small = x.SmallMedal
Grand = x.GrandMedal
}
if(y>index){//之后同步数据
if (y > index) {//之后同步数据
x.SmallMedal = Small
x.GrandMedal = Grand
}
})
},
selectdis(){//企业下拉禁止选择处理
this.enterpriseList.forEach((x,y)=>{
let ishow= false
this.msgList.map((j,ji)=>{
if(ishow == false){
if(x.Id== j.Id){
selectdis() {//企业下拉禁止选择处理
this.enterpriseList.forEach((x, y) => {
let ishow = false
this.msgList.map((j, ji) => {
if (ishow == false) {
if (x.Id == j.Id) {
x.disabled = true;
ishow= true
ishow = true
return
}else{
} else {
x.disabled = false;
}
}
......@@ -170,20 +173,31 @@
},
//获取详情
getData(ID) {
this.loading = true;
this.apipost(
"/api/Trade/GetBrandDetails",
"/api/Trade/GetFirstShopConfirmListList",
{
ID: ID,
ListId: ID,
},
(res) => {
this.loading = false;
if (res.data.resultCode == 1) {
}
}
);
},
GetFirstShopEnrollCandidateList(ID) {
this.apipost(
"/api/Trade/GetFirstShopEnrollCandidateList",
{
ListId: ID,
},
(res) => {
if (res.data.resultCode == 1) {
}
}
);
}
},
};
</script>
......
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