3 years ago
parent 65b071ba84
commit 09cea2e74f
  1. 30
      src/views/customer/AddCustomer.vue
  2. 8
      src/views/customer/Dashboard.vue
  3. 4
      src/views/data/Product.vue

@ -21,7 +21,7 @@
</div> </div>
<div> <div>
<el-form :model="form" :rules="rules" ref="form" label-width="80px" class="flex-start-around"> <el-form :model="form" :rules="rules" ref="form" label-width="120px" class="flex-start-around">
<el-col :span="6" style="margin-right: 60px;"> <el-col :span="6" style="margin-right: 60px;">
<el-form-item label="国家"> <el-form-item label="国家">
<el-select v-model="form.countries" clearable placeholder="请选择国家"> <el-select v-model="form.countries" clearable placeholder="请选择国家">
@ -42,8 +42,12 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="adminName" label="管理员"> <el-form-item prop="adminName" label="联系人姓名">
<el-input placeholder="请输入管理员姓名" v-model="form.adminName"></el-input> <el-input placeholder="请输入联系人姓名" v-model="form.adminName"></el-input>
</el-form-item>
<el-form-item prop="adminName" label="账号">
<el-input placeholder="请输入账号" v-model="form.adminName"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="IndustryClass" label="行业类"> <el-form-item prop="IndustryClass" label="行业类">
@ -76,8 +80,12 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="adminPhone" label="手机号"> <el-form-item label="手机号">
<el-input placeholder="请输入管理员手机号" v-model="form.adminPhone" maxlength="11"></el-input> <el-input placeholder="请输入联系人手机号" v-model="form.adminPhone" maxlength="11"></el-input>
</el-form-item>
<el-form-item label="职务">
<el-input placeholder="请输入职务名称" v-model="form.adminPhone" maxlength="11"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="industry" label="行业"> <el-form-item prop="industry" label="行业">
@ -98,16 +106,20 @@
<el-card shadow="hover" class="mgb20" v-show="customerId"> <el-card shadow="hover" class="mgb20" v-show="customerId">
<div class="flex-center mgb20 user_header"> <div class="flex-center mgb20 user_header">
<p class="addhr_tag"></p> <p class="addhr_tag"></p>
<span>应用权限</span> <span>课程权限</span>
</div> </div>
<div> <div>
<el-table :data="coursePermissionss" class="orderTable" stripe header-align="center"> <el-table :data="coursePermissionss" class="orderTable" stripe header-align="center">
<el-table-column type="index" width="100" label="序号" align="center"> <el-table-column type="index" width="100" label="序号" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="courseName" label="应用名称" align="center"> <el-table-column prop="courseName" label="课程名称" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="usePeriod" label="使用期限(年)" align="center"> <el-table-column prop="usePeriod" label="使用期限(年)" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="usePeriod" label="起止日期" align="center">
</el-table-column>
<el-table-column prop="usePeriod" label="剩余期限(天)" align="center">
</el-table-column>
<el-table-column prop="marketPrice" label="市场价(万)" align="center"> <el-table-column prop="marketPrice" label="市场价(万)" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="transactionPrice" label="成交价(万)" align="center"> <el-table-column prop="transactionPrice" label="成交价(万)" align="center">
@ -119,12 +131,14 @@
<el-button @click="configure(scope.row)">配置</el-button> <el-button @click="configure(scope.row)">配置</el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="发货" align="center"> <el-table-column label="状态" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-model="scope.row.isDeliverGoods" v-model="scope.row.isDeliverGoods"
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
active-text="启用"
inactive-text="禁用"
disabled> disabled>
</el-switch> </el-switch>
</template> </template>

@ -72,12 +72,16 @@
</el-table-column> </el-table-column>
<el-table-column prop="provinceName" label="省份" align="center"> <el-table-column prop="provinceName" label="省份" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="adminName" label="管理员姓名" align="center"> <el-table-column prop="cityName" label="城市" align="center">
</el-table-column>
<el-table-column prop="provinceName" label="联系人" align="center">
</el-table-column>
<el-table-column prop="adminName" label="账号" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="adminPhone" label="管理联系电话" align="center">
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text">重置密码</el-button>
<!-- <el-button type="text">查看</el-button> --> <!-- <el-button type="text">查看</el-button> -->
<el-button type="text" @click="edit(scope.row)">编辑</el-button> <el-button type="text" @click="edit(scope.row)">编辑</el-button>
<el-button type="text" @click="handleDelete(scope.row)">删除</el-button> <el-button type="text" @click="handleDelete(scope.row)">删除</el-button>

@ -197,6 +197,10 @@ export default {
previewVisible: false, previewVisible: false,
previewHead: [], previewHead: [],
previewData: [] previewData: []
defaultActive: [],
isDetail: false,
userAccount: '',
userName: ''
}; };
}, },
watch: { watch: {

Loading…
Cancel
Save