|
@@ -28,35 +28,99 @@
|
|
|
</div>
|
|
</div>
|
|
|
<!-- -->
|
|
<!-- -->
|
|
|
<div class="operate-btn-wrap">
|
|
<div class="operate-btn-wrap">
|
|
|
- <el-popover
|
|
|
|
|
- placement="top-start"
|
|
|
|
|
- title="标题"
|
|
|
|
|
- width="200"
|
|
|
|
|
- trigger="hover"
|
|
|
|
|
- content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
|
|
|
|
|
- >
|
|
|
|
|
- <el-button
|
|
|
|
|
- type="text"
|
|
|
|
|
- icon="el-icon-s-operation"
|
|
|
|
|
- slot="reference"
|
|
|
|
|
- class="operate-btn"
|
|
|
|
|
- ></el-button>
|
|
|
|
|
- <!-- <el-button slot="reference">hover 激活</el-button> -->
|
|
|
|
|
- </el-popover>
|
|
|
|
|
|
|
+ <operate-module :btnData="btnData" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <!-- nodule -->
|
|
|
|
|
+ <el-dialog title="图片上传成功!" :visible.sync="addImageModal" width="600px">
|
|
|
|
|
+ <div class="add-image-modal-content">
|
|
|
|
|
+ <el-form :model="addForm" :rules="rules" ref="addForm" label-width="120px">
|
|
|
|
|
+ <el-form-item label="选择分类(可多选)">
|
|
|
|
|
+ <el-checkbox
|
|
|
|
|
+ v-model="addForm.status"
|
|
|
|
|
+ label="花束/花盒"
|
|
|
|
|
+ border
|
|
|
|
|
+ v-for="(item, index) in 4"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ ></el-checkbox>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="售价">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="addForm.styleName"
|
|
|
|
|
+ placeholder="填价格,图片可当商品卖(选填)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <i slot="suffix" class="iconfont iconqian"></i
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="名称">
|
|
|
|
|
+ <el-input v-model="addForm.price" placeholder="选填"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button size="small" @click="addImageModal = false">取 消</el-button>
|
|
|
|
|
+ <el-button type="primary" size="small" @click="addImageModal = false"
|
|
|
|
|
+ >确 定</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import operateModule from '@/components/module/operate';
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ name: 'img-store',
|
|
|
|
|
+ components: {
|
|
|
|
|
+ operateModule
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
form: {
|
|
form: {
|
|
|
user: '',
|
|
user: '',
|
|
|
region: ''
|
|
region: ''
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ btnData: [
|
|
|
|
|
+ {
|
|
|
|
|
+ text: '编辑',
|
|
|
|
|
+ icon: 'iconbianji',
|
|
|
|
|
+ click: () => {
|
|
|
|
|
+ this.$util.pageTo({
|
|
|
|
|
+ url: '/pages/ad/add',
|
|
|
|
|
+ query: {
|
|
|
|
|
+ type: this.tabIndex,
|
|
|
|
|
+ id: this.operateData.id
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ text: '下架',
|
|
|
|
|
+ icon: 'iconxiajia',
|
|
|
|
|
+ click: () => {
|
|
|
|
|
+ off({ id: this.operateData.id }).then(res => {
|
|
|
|
|
+ this.operateCloseFn();
|
|
|
|
|
+ this.list.data[this.operateData.index].status = 0;
|
|
|
|
|
+ this.$msg('下架成功!');
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ text: '删除',
|
|
|
|
|
+ icon: 'iconshanchu1',
|
|
|
|
|
+ click: () => {
|
|
|
|
|
+ this.delModal = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ // 图片上传成功
|
|
|
|
|
+ addImageModal: true,
|
|
|
|
|
+ addForm: {
|
|
|
|
|
+ status: false
|
|
|
|
|
+ },
|
|
|
|
|
+ rules: {}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -89,13 +153,16 @@ export default {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
top: 0;
|
|
top: 0;
|
|
|
right: 10px;
|
|
right: 10px;
|
|
|
- .operate-btn {
|
|
|
|
|
- color: #fff;
|
|
|
|
|
- font-size: 24px;
|
|
|
|
|
- &:hover {
|
|
|
|
|
- color: $mainColor;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+// mode
|
|
|
|
|
+.add-image-modal-content {
|
|
|
|
|
+ .el-checkbox.is-bordered.el-checkbox--small {
|
|
|
|
|
+ margin-left: 0;
|
|
|
|
|
+ margin-right: 10px;
|
|
|
|
|
+ &:nth-child(4n + 4) {
|
|
|
|
|
+ margin-right: 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|