Commit c5971ca8 authored by 黄奎's avatar 黄奎

页面修改

parent c90ecf23
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</el-table-column> </el-table-column>
<el-table-column label="发圈文案" width="300"> <el-table-column label="发圈文案" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-html="scope.row.MaterialInfo"></span> <span v-html="scope.row.MaterialInfo"></span>
<!-- <img @click="getMaterInfo(scope.row)" style="margin-left:3px;" <!-- <img @click="getMaterInfo(scope.row)" style="margin-left:3px;"
src="../../assets/img/userman/edit1.png" alt=""> --> src="../../assets/img/userman/edit1.png" alt=""> -->
</template> </template>
...@@ -87,6 +87,25 @@ ...@@ -87,6 +87,25 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="ShareCount" label="分享数量" width="120">
<template slot-scope="scope">
<div v-if="count_goods_id != scope.row.Id" flex="dir:left cross:center">
<span>{{scope.row.ShareCount}}</span>
<el-button class="edit-sort" type="text" @click="count_goods_id=scope.row.Id">
<img style="margin-left:3px;" src="../../assets/img/userman/edit1.png" alt="">
</el-button>
</div>
<div style="display: flex;align-items: center" v-else>
<el-input style="min-width: 50px" type="text" size="mini"
@keyup.native="checkInteger(scope.row,'ShareCount')" v-model="scope.row.ShareCount"></el-input>
<el-button class="change-quit" type="text" style="color: #F56C6C;padding: 0 5px" icon="el-icon-error"
circle @click="count_goods_id=0"></el-button>
<el-button class="change-success" type="text" style="margin-left: 0;color: #67C23A;padding: 0 5px"
icon="el-icon-success" circle @click="count_goods_id=0,updateShareCount(scope.row)">
</el-button>
</div>
</template>
</el-table-column>
<el-table-column prop="IsTop" label="是否置顶" width="80"> <el-table-column prop="IsTop" label="是否置顶" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch v-model="scope.row.IsTop" active-color="#409EFF" :active-value="1" :inactive-value="0" <el-switch v-model="scope.row.IsTop" active-color="#409EFF" :active-value="1" :inactive-value="0"
...@@ -145,9 +164,9 @@ ...@@ -145,9 +164,9 @@
<el-button type="text" @click="isShowGoods=true">选择商品</el-button> <el-button type="text" @click="isShowGoods=true">选择商品</el-button>
</el-form-item> </el-form-item>
<el-form-item label="动态文案" prop="MaterialInfo"> <el-form-item label="动态文案" prop="MaterialInfo">
<!-- <UeEditor style="width:750px;" :defaultMsg="defaultMsg" :config="config" :IsMultiple="true" <!-- <UeEditor style="width:750px;" :defaultMsg="defaultMsg" :config="config" :IsMultiple="true"
ref="UeEditor1"></UeEditor> --> ref="UeEditor1"></UeEditor> -->
<el-input type="textarea" :rows="6" v-model="addMsg.MaterialInfo"></el-input> <el-input type="textarea" :rows="6" v-model="addMsg.MaterialInfo"></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<label slot="label">动态图片 <label slot="label">动态图片
...@@ -262,6 +281,7 @@ ...@@ -262,6 +281,7 @@
}, },
//编辑行号 //编辑行号
sort_goods_id: 0, sort_goods_id: 0,
count_goods_id:0,
//开始时间-结束时间 //开始时间-结束时间
dateStr: [], dateStr: [],
loading: false, loading: false,
...@@ -430,7 +450,7 @@ ...@@ -430,7 +450,7 @@
this.addMsg.LinkUrl = ""; this.addMsg.LinkUrl = "";
this.addMsg.IsTop = 1; this.addMsg.IsTop = 1;
this.addMsg.SortNum = 1; this.addMsg.SortNum = 1;
this.defaultMsg=""; this.defaultMsg = "";
}, },
//更新是否置顶 //更新是否置顶
updateIsTop(item) { updateIsTop(item) {
...@@ -483,6 +503,23 @@ ...@@ -483,6 +503,23 @@
null null
); );
}, },
//更新分享数量
updateShareCount(item) {
this.apipost("/api/Share/SetShareFriendCount", {
Id: item.Id,
ShareCount: item.ShareCount
},
res => {
if (res.data.resultCode === 1) {
this.Success(res.data.message);
this.getList();
} else {
this.Error(res.data.message);
}
},
null
);
},
getMaterInfo(item) { getMaterInfo(item) {
this.isShowText = true; this.isShowText = true;
this.updateTextInfo.Id = item.Id; this.updateTextInfo.Id = item.Id;
......
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