Commit a4b775df by 胡悦

添加按钮size全局变量

1 parent d8f8540b
...@@ -17,3 +17,6 @@ VUE_APP_ELEMENT_COLOR=#409EFF ...@@ -17,3 +17,6 @@ VUE_APP_ELEMENT_COLOR=#409EFF
VUE_APP_MAIN_COLOR=#3D6FE4 VUE_APP_MAIN_COLOR=#3D6FE4
VUE_APP_STORAGE_PREFIX=tfims VUE_APP_STORAGE_PREFIX=tfims
# 全局变量
VUE_APP_BTN_SIZE=small
\ No newline at end of file \ No newline at end of file
...@@ -23,15 +23,11 @@ import router from './router' ...@@ -23,15 +23,11 @@ import router from './router'
// 核心插件 // 核心插件
Vue.use(d2Admin) Vue.use(d2Admin)
// Vue.use(D2Crud) // Vue.use(D2Crud)
import { import { Constants } from './common/constants2'
Constants import { Util } from './common/util'
} from './common/constants2'
import {
Util
} from './common/util'
Vue.prototype.$Constants = Constants Vue.prototype.$Constants = Constants
Vue.prototype.$Util = Util Vue.prototype.$Util = Util
Vue.prototype.btn_size = process.env.VUE_APP_BTN_SIZE
new Vue({ new Vue({
router, router,
store, store,
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
icon="el-icon-search" icon="el-icon-search"
:loading="tableLoading" :loading="tableLoading"
@click="getList()" @click="getList()"
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
icon="el-icon-plus" icon="el-icon-plus"
:loading="tableLoading" :loading="tableLoading"
@click="editInfo()" @click="editInfo()"
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
plain plain
@click="editInfo(scope.row)" @click="editInfo(scope.row)"
>修改</el-button> >修改</el-button>
...@@ -172,6 +172,7 @@ export default { ...@@ -172,6 +172,7 @@ export default {
'edit-fac': EditFac, 'edit-fac': EditFac,
}, },
data() { data() {
return { return {
formInline: {}, formInline: {},
tableData: [], tableData: [],
...@@ -198,6 +199,7 @@ export default { ...@@ -198,6 +199,7 @@ export default {
mounted: function () { mounted: function () {
this.getList() this.getList()
console.log(process.env.VUE_APP_BTN_SIZE, this.btn_size)
}, },
methods: { methods: {
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
:size="btn_size"
icon="el-icon-search" icon="el-icon-search"
:id="tableParams.btnId" :id="tableParams.btnId"
>搜索</el-button> >搜索</el-button>
...@@ -46,6 +47,7 @@ ...@@ -46,6 +47,7 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
:size="btn_size"
icon="el-icon-plus" icon="el-icon-plus"
:loading="tableLoading" :loading="tableLoading"
@click="showAddDialog = true" @click="showAddDialog = true"
...@@ -254,7 +256,7 @@ export default { ...@@ -254,7 +256,7 @@ export default {
/** /**
* 重置密码操作 * 重置密码操作
*/ */
openResetPassword: function(row) { openResetPassword: function (row) {
this.userInfo = row this.userInfo = row
this.form_pass.userName = this.userInfo.userName this.form_pass.userName = this.userInfo.userName
this.showPassDialog = true this.showPassDialog = true
...@@ -263,7 +265,7 @@ export default { ...@@ -263,7 +265,7 @@ export default {
/** /**
* 关闭密码重置弹窗 * 关闭密码重置弹窗
*/ */
closePasslDialog: function() { closePasslDialog: function () {
this.showPassDialog = false this.showPassDialog = false
this.getList() this.getList()
}, },
...@@ -271,7 +273,7 @@ export default { ...@@ -271,7 +273,7 @@ export default {
/** /**
* 重置密码 * 重置密码
*/ */
resetPassword: function() { resetPassword: function () {
let _this = this let _this = this
let _obj = _this.$refs.passForm let _obj = _this.$refs.passForm
_obj.validate(valid => { _obj.validate(valid => {
...@@ -295,7 +297,7 @@ export default { ...@@ -295,7 +297,7 @@ export default {
/** /**
* 关闭新增弹出框 * 关闭新增弹出框
*/ */
closeAddDialog: function(isCancel) { closeAddDialog: function (isCancel) {
this.showAddDialog = false this.showAddDialog = false
if (isCancel) { if (isCancel) {
return return
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
icon="el-icon-search" icon="el-icon-search"
:loading="tableLoading" :loading="tableLoading"
@click="getList()" @click="getList()"
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
icon="el-icon-upload2" icon="el-icon-upload2"
@click="openDialog" @click="openDialog"
>导入</el-button> >导入</el-button>
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
<!-- <el-link type="primary" :underline="false" v-if="scope.row.status == 'IN'" @click="editEvent(scope.row)">修改</el-link> --> <!-- <el-link type="primary" :underline="false" v-if="scope.row.status == 'IN'" @click="editEvent(scope.row)">修改</el-link> -->
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
plain plain
v-if="scope.row.status == 'IN'" v-if="scope.row.status == 'IN'"
@click="editEvent(scope.row)" @click="editEvent(scope.row)"
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
icon="el-icon-search" icon="el-icon-search"
:loading="tableLoading" :loading="tableLoading"
@click="getList()" @click="getList()"
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
icon="el-icon-plus" icon="el-icon-plus"
:loading="tableLoading" :loading="tableLoading"
@click="showModal = true" @click="showModal = true"
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
icon="el-icon-search" icon="el-icon-search"
:loading="tableLoading" :loading="tableLoading"
@click="getList()" @click="getList()"
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
icon="el-icon-plus" icon="el-icon-plus"
:loading="tableLoading" :loading="tableLoading"
@click="showModal = true" @click="showModal = true"
......
...@@ -68,14 +68,14 @@ ...@@ -68,14 +68,14 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
icon="el-icon-search" icon="el-icon-search"
:loading="tableLoading" :loading="tableLoading"
@click="getList()" @click="getList()"
>搜索</el-button> >搜索</el-button>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
icon="el-icon-upload2" icon="el-icon-upload2"
@click="openDialog" @click="openDialog"
>导入</el-button> >导入</el-button>
......
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
icon="el-icon-search" icon="el-icon-search"
:loading="tableLoading" :loading="tableLoading"
@click="getList()" @click="getList()"
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
icon="el-icon-download" icon="el-icon-download"
:loading="exportLoading" :loading="exportLoading"
@click="exportInfo()" @click="exportInfo()"
...@@ -121,14 +121,14 @@ ...@@ -121,14 +121,14 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
@click="batchAssignShipment()" @click="batchAssignShipment()"
>批量分配发货</el-button> >批量分配发货</el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
@click="batchDirectDelivery()" @click="batchDirectDelivery()"
>批量直接发货</el-button> >批量直接发货</el-button>
</el-form-item> </el-form-item>
...@@ -258,42 +258,42 @@ ...@@ -258,42 +258,42 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
plain plain
v-if="scope.row.status == '8'" v-if="scope.row.status == '8'"
@click="assignShipment(scope.row)" @click="assignShipment(scope.row)"
>分配发货</el-button> >分配发货</el-button>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
plain plain
v-if="scope.row.status == '8'" v-if="scope.row.status == '8'"
@click="directDelivery(scope.row)" @click="directDelivery(scope.row)"
>直接发货</el-button> >直接发货</el-button>
<el-button <el-button
type="danger" type="danger"
size="mini" :size="btn_size"
plain plain
v-if="scope.row.status == '8'" v-if="scope.row.status == '8'"
@click="reject(scope.row)" @click="reject(scope.row)"
>驳回</el-button> >驳回</el-button>
<el-button <el-button
type="danger" type="danger"
size="mini" :size="btn_size"
plain plain
v-if="scope.row.status == '2'" v-if="scope.row.status == '2'"
@click="withdraw(scope.row)" @click="withdraw(scope.row)"
>撤回</el-button> >撤回</el-button>
<el-button <el-button
type="success" type="success"
size="mini" :size="btn_size"
plain plain
v-if="scope.row.status == '3'" v-if="scope.row.status == '3'"
@click="advanceOver(scope.row)" @click="advanceOver(scope.row)"
>提前结束</el-button> >提前结束</el-button>
<el-button <el-button
type="info" type="info"
size="mini" :size="btn_size"
plain plain
@click="downloadInvoice(scope.row)" @click="downloadInvoice(scope.row)"
>下载发货单</el-button> >下载发货单</el-button>
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
icon="el-icon-search" icon="el-icon-search"
:loading="tableLoading" :loading="tableLoading"
@click="getList()" @click="getList()"
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini" :size="btn_size"
icon="el-icon-plus" icon="el-icon-plus"
:loading="tableLoading" :loading="tableLoading"
@click="editOrder" @click="editOrder"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!