Commit e1624ae8 by wangql

11

1 parent 3efa4a69
import Vue from 'vue' import Vue from 'vue'
import { Message, Button, ButtonGroup, Form, FormItem, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Switch, Select, Option, TimePicker, Col, DatePicker, Tree, Card, Table, TableColumn, Pagination, Loading, Dialog } from 'element-ui' import { Message, Button, ButtonGroup, Form, FormItem, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Switch, Select, Option, TimePicker, Col, DatePicker, Tree, Card, Table, TableColumn, Pagination, Loading, Dialog, Container } from 'element-ui'
Vue.use(Button) Vue.use(Button)
Vue.use(ButtonGroup) Vue.use(ButtonGroup)
Vue.use(Form) Vue.use(Form)
......
...@@ -4,6 +4,12 @@ const staticRoutes = Object.freeze([ ...@@ -4,6 +4,12 @@ const staticRoutes = Object.freeze([
path: '/liveMember/memberList', path: '/liveMember/memberList',
component: resolve => require([`@/views/liveMember/memberList.vue`], resolve), component: resolve => require([`@/views/liveMember/memberList.vue`], resolve),
meta: {} meta: {}
},
{
name: 'WarehousingList',
path: '/cmmodityLibrary/warehousingList',
component: resolve => require([`@/views/cmmodityLibrary/warehousingList.vue`], resolve),
meta: {}
} }
]) ])
export default staticRoutes export default staticRoutes
<template> <template>
<d2-container> <div>
<el-card shadow="never" slot="header"> <el-card shadow="never" slot="header">
<el-form :inline="true" :model="formInline" class="demo-form-inline" size="small"> <el-form :inline="true" :model="formInline" class="demo-form-inline" size="small">
<el-form-item label="商品搜索:"> <el-form-item label="商品搜索:">
...@@ -20,11 +20,16 @@ ...@@ -20,11 +20,16 @@
<el-table-column type="index" :index="index => {return index+1}" label="序号" width="80" /> <el-table-column type="index" :index="index => {return index+1}" label="序号" width="80" />
<el-table-column prop="pic" label="基本信息" > <el-table-column prop="pic" label="基本信息" >
<template slot-scope="scope"> <template slot-scope="scope">
<img @src="scope.row.pic" style="width: 50px;height:50px;"/> <img :src="scope.row.pic" style="width: 50px;height:50px;"/>{{scope.row.title}}
</template>
</el-table-column>
<el-table-column prop="price" label="价格(元)" />
<el-table-column prop="merchant" label="来源门店" />
<el-table-column prop="" label="操作" width="120">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="updatePrice(scope.row)">修改价格</el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="userName" label="价格(元)" />
<el-table-column prop="userCode" label="来源门店" />
</el-table> </el-table>
<div class="pagination_list"> <div class="pagination_list">
<el-pagination <el-pagination
...@@ -40,7 +45,20 @@ ...@@ -40,7 +45,20 @@
</div> </div>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</d2-container> <!-- 重置密码弹框 开始 -->
<el-dialog title="修改价格" width="30%" v-show="showPriceDialog" @close="closePriceDialog">
<el-form ref="passForm" :rules="formRules_pass" :model="form_pass" label-width="120px">
<el-form-item label="商品价格:" prop="password">
<el-input v-model="form_pass.password" maxlength="8" style="width:400px" />
</el-form-item>
</el-form>
<div slot="footer">
<el-button type="primary" @click="resetPassword()">提交</el-button>
<el-button @click="showPriceDialog = false">取消</el-button>
</div>
</el-dialog>
<!-- 重置密码弹框 end -->
</div>
</template> </template>
...@@ -50,7 +68,6 @@ ...@@ -50,7 +68,6 @@
// UPDATEPASSWORD // UPDATEPASSWORD
// } from '@/http/interface' // } from '@/http/interface'
export default { export default {
name: 'memberList',
components: { components: {
// 'glsx-dialog': GlsxDialog, // 'glsx-dialog': GlsxDialog,
// 'add-cus': AddCus, // 'add-cus': AddCus,
...@@ -67,9 +84,13 @@ export default { ...@@ -67,9 +84,13 @@ export default {
pageSize: 10, pageSize: 10,
tdWidth: 170, tdWidth: 170,
DATEFORMATE: (str, type) => { return this.$Util.dateFormate(str, type) }, DATEFORMATE: (str, type) => { return this.$Util.dateFormate(str, type) },
showAddDialog: false, showPriceDialog: false,
showPassDialog: false,
form_pass : {}, form_pass : {},
formRules_pass: {
password: [
{ required: true, message: "请输入密码", trigger: "blur" }
]
},
} }
}, },
created() { created() {
...@@ -92,9 +113,9 @@ export default { ...@@ -92,9 +113,9 @@ export default {
let list = [{ let list = [{
id :1, id :1,
pic : 'https://t7.baidu.com/it/u=4162611394,4275913936&fm=193&f=GIF', pic : 'https://t7.baidu.com/it/u=4162611394,4275913936&fm=193&f=GIF',
userName : 'userName', title : '商品标题',
userCode : 'userCode', price : 999,
roleName : 'roleName' merchant : 'xxx'
}] }]
// GETLISTUSERINFO(oParams).then(res => { // GETLISTUSERINFO(oParams).then(res => {
// console.log(res) // console.log(res)
...@@ -125,7 +146,14 @@ export default { ...@@ -125,7 +146,14 @@ export default {
this.pageSize = e this.pageSize = e
this.getList() this.getList()
}, },
updatePrice: function(){
this.showPriceDialog = true
},
closePriceDialog: function(){
this.showPriceDialog = false
}
} }
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<el-table-column type="index" :index="index => {return index+1}" label="序号" width="80" /> <el-table-column type="index" :index="index => {return index+1}" label="序号" width="80" />
<el-table-column prop="pic" label="头像" > <el-table-column prop="pic" label="头像" >
<template slot-scope="scope"> <template slot-scope="scope">
<img @src="scope.row.pic" style="width: 50px;height:50px;"/> <img :src="scope.row.pic" style="width: 50px;height:50px;"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="userName" label="昵称" /> <el-table-column prop="userName" label="昵称" />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!