细节优化

dev
e 3 years ago
parent 123b56cff2
commit 1a7f35515c
  1. 29
      src/views/customer/AddCustomer.vue
  2. 2
      src/views/data/Product.vue
  3. 2
      src/views/order/AddOrder.vue
  4. 2
      src/views/order/Order.vue

@ -140,14 +140,26 @@
<el-table-column type="index" width="100" label="序号" align="center">
</el-table-column>
<el-table-column prop="productName" label="产品名称" align="center"></el-table-column>
<el-table-column prop="periodOfUse" label="使用期限" align="center"></el-table-column>
<el-table-column prop="periodOfUse" label="使用期限" align="center">
<template slot-scope="scope">
{{scope.row.periodOfUse}}&nbsp;&nbsp;
</template>
</el-table-column>
<el-table-column prop="usePeriod" label="起止日期" align="center">
<template slot-scope="scope">
{{scope.row.startTime}}~{{scope.row.endTime}}
{{scope.row.startTime}}&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;{{scope.row.endTime}}
</template>
</el-table-column>
<el-table-column prop="remainingPeriod" label="剩余期限" align="center">
<template slot-scope="scope">
{{scope.row.remainingPeriod}}&nbsp;&nbsp;
</template>
</el-table-column>
<el-table-column prop="accountNum" label="账号数" align="center">
<template slot-scope="scope">
{{scope.row.accountNum}}&nbsp;&nbsp;
</template>
</el-table-column>
<el-table-column prop="remainingPeriod" label="剩余期限" align="center"></el-table-column>
<el-table-column prop="accountNum" label="账号数" align="center"></el-table-column>
<el-table-column label="端口地址" align="center">
<template slot-scope="scope">
<el-button @click="configure(scope.row)">配置</el-button>
@ -176,10 +188,16 @@
<el-table-column prop="contractName" label="合同名称" align="center">
</el-table-column>
<el-table-column prop="endTime" label="合同期限" align="center">
<template slot-scope="scope">
{{scope.row.startTime.split(' ').shift()}}&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;{{scope.row.endTime.split(' ').shift()}}
</template>
</el-table-column>
<el-table-column prop="dataOrCourseName" label="产品内容" align="center">
</el-table-column>
<el-table-column prop="contractMoney" label="合同金额" align="center">
<template slot-scope="scope">
{{scope.row.contractMoney}}&nbsp;&nbsp;
</template>
</el-table-column>
<el-table-column label="操作" align="center">
<template slot-scope="scope">
@ -559,7 +577,8 @@ export default {
},
showContract(row){
if(!row.contractFile) return this.$message.warning('文件链接无效')
let type = file.name.split('.').pop()
console.log(row.contractFile,'f');
let type = row.contractFile.split('.').pop()
let img = ['jpg','gif','png','jepg']
this.fileSrc = row.contractFile

@ -48,7 +48,7 @@
<el-table-column prop="tableNum" label="数据量(表)" align="center"></el-table-column>
<el-table-column prop="userName" label="创建人" align="center"></el-table-column>
<el-table-column prop="orderNum" label="订单数量" align="center"></el-table-column>
<el-table-column prop="market" label="市场价" align="center"></el-table-column>
<el-table-column prop="market" label="市场价(元)" align="center"></el-table-column>
<el-table-column prop="createTime" label="创建时间" align="center"></el-table-column>
<el-table-column prop="orderNature" label="状态" align="center">
<template slot-scope="scope">

@ -1214,7 +1214,7 @@ export default {
beforeAvatarUpload(file) {
const size = file.size / 1024 / 1024 < 10;
let type = file.name.split('.').pop()
let str = ["jpg","jepg","gif","png","doc","pdf"].includes(type.toLowerCase())
let str = ["jpg","jepg","gif","png","doc","docx","pdf"].includes(type.toLowerCase())
console.log(type,str,'类型判断');
if(!str){
this.$message.error('只能上传图片,word文件和pdf文件!')

@ -79,7 +79,7 @@
</el-table-column>
<el-table-column prop="orderContent" label="订单内容" align="center">
</el-table-column>
<el-table-column prop="orderAmount" label="订单金额" align="center">
<el-table-column prop="orderAmount" label="订单金额(元)" align="center">
</el-table-column>
<el-table-column prop="createTime" label="订单日期" align="center">
</el-table-column>

Loading…
Cancel
Save