mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
feat:添加投票创建投票新版 创建投票后的新样式
This commit is contained in:
@@ -45,14 +45,18 @@
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<span style="margin-right: 3px">创建投票:</span>
|
||||
<span>创建投票:</span>
|
||||
</div>
|
||||
<div class="btnbox" @click="showDrawerCreVote">
|
||||
<button class="xkbtn">创建投票</button>
|
||||
<div class="btnbox" >
|
||||
<button class="xkbtn" :style="{ display: creVote ? 'none' : 'block'}" @click="showDrawerCreVote">创建投票</button>
|
||||
<button class="xkbtn" :style="{ display: creVote ? 'block' : 'none'}" @click="showDrawerCreVote">编辑投票</button>
|
||||
<div :style="{ display: creVote ? 'block' : 'none'}" ><div class="fileTigan" ><span style="color:#388be1 ;">传过来的name</span> <div class="delBox" @click="delBox()"></div></div></div>
|
||||
|
||||
</div>
|
||||
<!-- 创建投票侧弹窗 -->
|
||||
<div>
|
||||
<cre-vote v-model:crevoteVisible="crevotevisible"/>
|
||||
<cre-vote v-model:crevoteVisible="crevotevisible"
|
||||
@getData="changeVData"/>
|
||||
</div>
|
||||
<!-- 创建投票侧弹窗 -->
|
||||
</div>
|
||||
@@ -157,6 +161,7 @@ export default {
|
||||
const state = reactive({
|
||||
inputV1: "",
|
||||
textV1: "",
|
||||
creVote:false,
|
||||
crevotevisible: false,
|
||||
time: undefined,
|
||||
basevote: "",
|
||||
@@ -172,6 +177,14 @@ export default {
|
||||
const showDrawerCreVote = () => {
|
||||
state.crevotevisible = true;
|
||||
};
|
||||
const changeVData = (data) => {
|
||||
console.log('111', data);
|
||||
state.creVote = data
|
||||
console.log('222',state.creVote);
|
||||
}
|
||||
const delBox = () => {
|
||||
state.creVote = false;
|
||||
}
|
||||
//创建投票信息
|
||||
const createVoteText = () => {
|
||||
if (!state.inputV1) {
|
||||
@@ -194,6 +207,10 @@ export default {
|
||||
);
|
||||
}
|
||||
|
||||
// if (state.crevotevisible = false) {
|
||||
// changeVData()
|
||||
// };
|
||||
|
||||
let obj = {
|
||||
baseVote: state.basevote,
|
||||
createTime: "",
|
||||
@@ -262,9 +279,11 @@ export default {
|
||||
showDrawerCreVote,
|
||||
afterVisibleChange,
|
||||
closeDrawer,
|
||||
changeVData,
|
||||
rowSelection,
|
||||
options1,
|
||||
createVoteText,
|
||||
delBox,
|
||||
};
|
||||
},
|
||||
};
|
||||
@@ -323,6 +342,23 @@ export default {
|
||||
border: 0;
|
||||
margin-right: 8px;
|
||||
color: #fff;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.fileTigan{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 3px 5px;
|
||||
background-color: rgba(42, 103, 209, 0.4);
|
||||
span{
|
||||
margin-right: 5px;
|
||||
}
|
||||
.delBox{
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
background-image: url(@/assets/images/basicinfo/ch.png);
|
||||
background-size: 100% 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user