|
|
@@ -39,7 +39,8 @@
|
|
|
<div class="addByGroup">
|
|
|
<span>按小组添加</span>
|
|
|
<select name="" id="">
|
|
|
- <option value="">请选择</option>
|
|
|
+ <option>请选择</option>
|
|
|
+ <option v-for="(group, index) in groupList" :key="index" :value="group">{{group}}</option>
|
|
|
</select>
|
|
|
<button>添加</button>
|
|
|
</div>
|
|
|
@@ -66,6 +67,10 @@
|
|
|
@jump_page='jumpPage'
|
|
|
/>
|
|
|
</div>
|
|
|
+ <div class="uploadFile">
|
|
|
+ <p>附件</p>
|
|
|
+ <input type="file" :v-model="fileValue" name="fileName" @change='changeFile()'>
|
|
|
+ </div>
|
|
|
<button @click="submit" class="submitBtn">提交</button>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -74,6 +79,7 @@
|
|
|
import UpLoadTable from '../../components/Table';
|
|
|
import Count from '../../components/Count';
|
|
|
import Tablepage from '../../components/TablePage';
|
|
|
+import { AREASLIST, RANGESLIST, MATERIALTIMESLIST, TABLEHEADS,TABLEHEADSTYLES, OPERATIONS, TRSSTYLE, GROUPLISTS } from '../../tableConfig/uploadinfo';
|
|
|
export default {
|
|
|
props:{
|
|
|
isManufacturer: {
|
|
|
@@ -93,33 +99,22 @@ export default {
|
|
|
materialTime: '',
|
|
|
range: '',
|
|
|
addByCustomize: '',
|
|
|
+ fileValue: '',
|
|
|
// 表格配置
|
|
|
sum: 240, // 一共有多少条数据
|
|
|
pageSize: 20, // 每页展示的数据
|
|
|
discolor: false, // 是否隔行变色
|
|
|
currentPage: 1,
|
|
|
- areaList: ['全区', '北区', '南区', '东区', '自定义分组'],
|
|
|
- materialTimeList: ['2020-03', '2020-04'],
|
|
|
- rangeList: ['1', '2', '3'],
|
|
|
- tableHeader: ['序号', '经销商名称', 'DLR Code', '所属区域', '筛选'],
|
|
|
+ areaList: AREASLIST, // 按区域添加
|
|
|
+ groupList: GROUPLISTS, // 按小组添加
|
|
|
+ materialTimeList: MATERIALTIMESLIST, // 素材时间
|
|
|
+ rangeList: RANGESLIST, // 经销商范围
|
|
|
+ tableHeader: TABLEHEADS, // 表头
|
|
|
tableData: [{name: '北京博瑞',code: 'L020',area: '东区'},{name: 'a',code: 'a',area: 'N'},{name: 'a',code: 'a',area: 'N'}],
|
|
|
- tableHeadStyle: {
|
|
|
- background: '#848484',
|
|
|
- height: '30px',
|
|
|
- color: '#fff'
|
|
|
- },
|
|
|
- operation: [
|
|
|
- {
|
|
|
- name: '查看',
|
|
|
- function: () => {
|
|
|
- this.showDetail();
|
|
|
- }
|
|
|
- }
|
|
|
- ],
|
|
|
- trStyle: {
|
|
|
- width: '200px',
|
|
|
- height: '30px'
|
|
|
- }
|
|
|
+ tableHeadStyle: TABLEHEADSTYLES, // 表头样式
|
|
|
+ operation: OPERATIONS, // 操作
|
|
|
+ trStyle: TRSSTYLE // 表格tr样式
|
|
|
+ // 文件
|
|
|
}
|
|
|
},
|
|
|
computed:{
|
|
|
@@ -156,17 +151,34 @@ export default {
|
|
|
console.log(this.currentPage);
|
|
|
},
|
|
|
submit: function() {
|
|
|
- console.log(this.totalPage);
|
|
|
- this.sum = this.sum + 1;
|
|
|
- console.log(this.inforName, this.inforDes, this.materialTime, this.range, this.addByCustomize);
|
|
|
- }
|
|
|
+ // this.$http({
|
|
|
+ // method: 'post',
|
|
|
+ // url: '/auth/checkSign',
|
|
|
+ // data: {
|
|
|
+ // token: token
|
|
|
+ // }
|
|
|
+ // }).then(() => {
|
|
|
+ // console.log(res);
|
|
|
+ // }).catch((err) => {
|
|
|
+ // console.log(err);
|
|
|
+ // })
|
|
|
+ // console.log(this.inforName, this.inforDes, this.materialTime, this.range, this.addByCustomize, File.size);
|
|
|
+ // console.log(FileList.);
|
|
|
+ },
|
|
|
+ //
|
|
|
+ changeFile(){
|
|
|
+ console.log(123);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
.upload_record{
|
|
|
- padding: 12px 30px;
|
|
|
+ form{
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ padding: 10px;
|
|
|
+ }
|
|
|
.inforDes{
|
|
|
margin: 10px 0 0 0;
|
|
|
span{
|
|
|
@@ -239,6 +251,21 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
+ .uploadFile{
|
|
|
+ display: flex;
|
|
|
+ margin-top: 35px;
|
|
|
+ height: 30px;
|
|
|
+ align-items: center;
|
|
|
+ p{
|
|
|
+ margin-right: 20px;
|
|
|
+ height: 20px;
|
|
|
+ line-height: 20px;
|
|
|
+ }
|
|
|
+ input{
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
+ }
|
|
|
+ }
|
|
|
.submitBtn{
|
|
|
margin-top: 50px;
|
|
|
}
|