Commit 24a72c3b by 杨明

fixed

1 parent f1621972
...@@ -6,12 +6,11 @@ ...@@ -6,12 +6,11 @@
"extends": ["plugin:vue/essential", "@vue/prettier"], "extends": ["plugin:vue/essential", "@vue/prettier"],
"rules": { "rules": {
"no-console": "off", "no-console": "off",
"no-unused-vars":"off", "no-unused-vars": "off",
"prettier.endOfLine": "crlf", "prettier.endOfLine": "crlf",
"endOfLine":"auto" "endOfLine": "auto"
}, },
"parserOptions": { "parserOptions": {
"parser": "babel-eslint" "parser": "babel-eslint"
} }
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-25 13:57:31 * @LastEditTime: 2022-12-01 15:41:17
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
......
...@@ -7,21 +7,21 @@ ...@@ -7,21 +7,21 @@
* @LastEditTime: 2021-09-14 09:34:52 * @LastEditTime: 2021-09-14 09:34:52
* @FilePath: \scrm\scrm-sub-blog\src\main.js * @FilePath: \scrm\scrm-sub-blog\src\main.js
*/ */
import Vue from 'vue' import Vue from "vue";
import apis from './api' import apis from "./api";
import './public-path' import "./public-path";
import './components' import "./components";
import filters from './utils/filters' import filters from "./utils/filters";
// import 'glsx-components/dist/glsx-components.css' // import 'glsx-components/dist/glsx-components.css'
import { start } from '@/setup' import { start } from "@/setup";
Vue.config.productionTip = false Vue.config.productionTip = false;
Vue.prototype.$apis = apis Vue.prototype.$apis = apis;
//过滤器统一处理预加载 //过滤器统一处理预加载
Object.keys(filters).forEach(key => { Object.keys(filters).forEach((key) => {
Vue.filter(key, filters[key]) Vue.filter(key, filters[key]);
}) });
start() start();
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount } from "@/setup";
export const http = params => Vue.prototype.$http(params) export const http = (params) => Vue.prototype.$http(params);
export const http_common = params => Vue.prototype.$http_common(params) export const http_common = (params) => Vue.prototype.$http_common(params);
export const http_tag = params => Vue.prototype.$http_tag(params) export const http_tag = (params) => Vue.prototype.$http_tag(params);
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-25 10:20:02 * @Date: 2022-11-25 10:20:02
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-25 13:37:55 * @LastEditTime: 2022-12-01 14:38:59
* @FilePath: \scrm-micro-drainage\src\setup\qiankun.js * @FilePath: \scrm-micro-drainage\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -31,7 +31,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt ...@@ -31,7 +31,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: 'scrm-base-fd30e9d8-aea4-4367-936d-3e7a9cdaa18d-rop' } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_tag = new common.Http({ response, request: request_tag, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http_tag = new common.Http({ response, request: request_tag, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="form-panel scrm-box-f"> <div class="form-panel scrm-box-f">
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="tabel-header"> <div class="tabel-header">
<div class="tabel-header-title">活动申请列表</div> <div class="tabel-header-title">名片列表</div>
<el-button plain size="small" @click="handleExport"> <el-button plain size="small" @click="handleExport">
导出 导出
</el-button> </el-button>
...@@ -91,7 +91,7 @@ export default { ...@@ -91,7 +91,7 @@ export default {
}, },
searchFormData: [ searchFormData: [
{ {
label: '申请时间:', label: '申请时间',
name: 'createTime', name: 'createTime',
type: 'datePicker', type: 'datePicker',
placeholder: '', placeholder: '',
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
width: '210px' width: '210px'
}, },
{ {
label: '主营车型', label: '主营品牌',
prop: 'carModel', prop: 'carModel',
width: '140px' width: '140px'
}, },
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<div class="form-panel scrm-box-f"> <div class="form-panel scrm-box-f">
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="tabel-header"> <div class="tabel-header">
<div class="tabel-header-title">智能名片列表</div> <div class="tabel-header-title">名片列表</div>
<el-button plain size="small" @click="handleExport"> <el-button plain size="small" @click="handleExport">
导出 导出
</el-button> </el-button>
...@@ -99,6 +99,18 @@ export default { ...@@ -99,6 +99,18 @@ export default {
name: 'cardName', name: 'cardName',
type: 'input', type: 'input',
placeholder: '请输入渠道名称' placeholder: '请输入渠道名称'
},
{
label: '创建时间',
name: 'createTime',
type: 'datePicker',
placeholder: '',
isClear: true,
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
}
} }
], ],
tableData: [], tableData: [],
...@@ -261,11 +273,16 @@ export default { ...@@ -261,11 +273,16 @@ export default {
this.selectItem = scope this.selectItem = scope
}, },
getParams(status) { getParams(status) {
if (this.tableSearchForm.createTime) {
this.tableSearchForm.statisticStartTime = new Date(this.tableSearchForm.createTime[0]).toLocaleDateString().replace(/\//g, '/')
this.tableSearchForm.statisticEndTime = new Date(this.tableSearchForm.createTime[1]).toLocaleDateString().replace(/\//g, '/')
}
const params = { const params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)), ...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: status ? 100000 : this.$refs.table.page.pageSize, pageSize: status ? 100000 : this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum pageNum: this.$refs.table.page.pageNum
} }
delete params.createTime
return params return params
}, },
listBussinessCardByPage() { listBussinessCardByPage() {
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<div class="listTitle">访问列表</div> <div class="listTitle">访问列表</div>
<div> <div>
<el-radio-group v-model="timeRadio" size="mini" @change="handleTab"> <el-radio-group v-model="timeRadio" size="mini" @change="handleTab">
<el-radio-button label="">全部</el-radio-button>
<el-radio-button label="1">今天</el-radio-button> <el-radio-button label="1">今天</el-radio-button>
<el-radio-button label="2">本周</el-radio-button> <el-radio-button label="2">本周</el-radio-button>
<el-radio-button label="3">本月</el-radio-button> <el-radio-button label="3">本月</el-radio-button>
...@@ -63,8 +64,8 @@ export default { ...@@ -63,8 +64,8 @@ export default {
isShowInput: false, isShowInput: false,
recordRelationList: [], recordRelationList: [],
dialogTableVisible: false, dialogTableVisible: false,
timeRadio: 1, timeRadio: '',
dateInterval: 1, dateInterval: '',
pickerOptions: { pickerOptions: {
disabledDate: time => { disabledDate: time => {
return time.getTime() > Date.now() return time.getTime() > Date.now()
...@@ -173,8 +174,8 @@ export default { ...@@ -173,8 +174,8 @@ export default {
} else { } else {
this.startDate = '' this.startDate = ''
this.endDate = '' this.endDate = ''
this.timeRadio = 1 this.timeRadio = ''
this.dateInterval = 1 this.dateInterval = ''
} }
this.codeSearch() this.codeSearch()
}, },
...@@ -191,12 +192,12 @@ export default { ...@@ -191,12 +192,12 @@ export default {
this.tableSearchForm[key] = '' this.tableSearchForm[key] = ''
}) })
this.createTime = [] this.createTime = []
this.timeRadio = 1 this.timeRadio = ''
let params = { let params = {
...this.tableSearchForm, ...this.tableSearchForm,
pageSize: 10, pageSize: 10,
pageNum: 1, pageNum: 1,
dateInterval: 1 dateInterval: ''
} }
this.sendPageListApi(params) this.sendPageListApi(params)
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2022-10-12 09:30:11 * @Date: 2022-10-12 09:30:11
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-10-18 16:03:33 * @LastEditTime: 2022-12-02 14:09:36
* @FilePath: \scrm-micro-drainage\src\views\businessCard\index.vue * @FilePath: \scrm-micro-drainage\src\views\businessCard\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -41,6 +41,10 @@ export default { ...@@ -41,6 +41,10 @@ export default {
tabPaneList tabPaneList
} }
}, },
componentsName: 'a',
mounted() {
console.log(this)
},
computed: { computed: {
tabName() { tabName() {
let sname let sname
...@@ -70,4 +74,9 @@ export default { ...@@ -70,4 +74,9 @@ export default {
margin-bottom: 10px; margin-bottom: 10px;
} }
} }
/deep/ .search-list {
.el-form-item--small {
width: 21% !important;
}
}
</style> </style>
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-25 10:20:02
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-12-02 18:00:36
* @FilePath: \scrm-micro-drainage\vue.config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const path = require('path') const path = require('path')
const packageName = require('./package.json').name const packageName = require('./package.json').name
const node_env = process.env.NODE_ENV === 'production' const node_env = process.env.NODE_ENV === 'production'
...@@ -8,16 +16,10 @@ const cdn = { ...@@ -8,16 +16,10 @@ const cdn = {
css: [ css: [
// `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/theme-chalk/index.css` // `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/theme-chalk/index.css`
], ],
js: [ js: [`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`, `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`, `${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`, `${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`]
`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`,
`${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`,
`${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`,
`${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`,
`${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`
]
} }
module.exports = { module.exports = {
outputDir: `../dist/${packageName}`, outputDir: `dist`,
publicPath, publicPath,
assetsDir: 'static', assetsDir: 'static',
productionSourceMap: false, productionSourceMap: false,
...@@ -36,12 +38,12 @@ module.exports = { ...@@ -36,12 +38,12 @@ module.exports = {
jsonpFunction: `webpackJsonp_${packageName}` jsonpFunction: `webpackJsonp_${packageName}`
}, },
externals: { externals: {
'vue': 'Vue', vue: 'Vue',
'element-ui': 'ELEMENT', 'element-ui': 'ELEMENT',
'vue-router': 'VueRouter', 'vue-router': 'VueRouter',
'vuex': 'Vuex', vuex: 'Vuex',
'axios': 'axios', axios: 'axios',
'echarts': 'echarts' echarts: 'echarts'
} }
}, },
devServer: { devServer: {
...@@ -54,8 +56,7 @@ module.exports = { ...@@ -54,8 +56,7 @@ module.exports = {
} }
}, },
chainWebpack: config => { chainWebpack: config => {
config.plugin('html') config.plugin('html').tap(args => {
.tap(args => {
// args[0].minify.removeComments = false; // args[0].minify.removeComments = false;
args[0].cdn = cdn args[0].cdn = cdn
return args return args
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!