Commit 4e93fcc3 by cwq0219

样式修改

1 parent a52b6f8f
......@@ -7,7 +7,7 @@
:model="formObj"
:label-width="labelWidth"
:rules="formRules"
size="small"
size="mini"
class="glsx-combi-form-block"
>
<template v-for="(item, index) in formData">
......@@ -240,11 +240,11 @@ export default {
/* .glsx-combi-form .el-form-item {
width: 65%;
} */
.glsx-combi-form .no-label.el-form-item--small .el-form-item__content,
.el-form-item--small .el-form-item__label {
.glsx-combi-form .no-label.el-form-item--mini .el-form-item__content,
.el-form-item--mini .el-form-item__label {
width: 100%;
}
/* .glsx-combi-form .el-form-item--small .el-form-item__content {
/* .glsx-combi-form .el-form-item--mini .el-form-item__content {
width: calc(100% - 85px);
} */
.glsx-combi-form .el-col {
......
......@@ -20,10 +20,12 @@
<slot name="btn-start"></slot>
<el-button
type="primary"
:size="btn_size"
@click="handleConfirm"
>{{btnOkLabel}}</el-button>
<el-button
v-if="!noCancel"
:size="btn_size"
@click="handleClose"
>取消</el-button>
<slot name="btn-middle"></slot>
......
<!-- 功能列表 -->
<template>
<div>
<el-row>
<el-col
:span="2"
style="padding-top: 16px;"
>
<el-button
icon="el-icon-plus"
:size="btn_size"
type="primary"
@click="handleAdd"
>创建功能</el-button>
</el-col>
<el-col
style="text-align: right;"
:span="22"
>
<glsx-combi-form
ref="showSearch"
labelWidth="120px"
......@@ -37,11 +49,13 @@
></own-cus-com>
</template>
<el-button
size="small"
:size="btn_size"
type="primary"
:id="tableParams.btnId"
>查询</el-button>
</glsx-combi-form>
</el-col>
</el-row>
<glsx-table
ref="functionTable"
:searchForm="tableSearchForm"
......@@ -488,6 +502,7 @@ export default {
},
handleFunEdit(row) {
this.editForm = _.cloneDeep(row)
console.log(row)
if (this.editForm.ownedCusgroupValue) {
this.editForm.ownedCusgroupValue = this.editForm.ownedCusgroupValue.split(',').map(item => +item)
}
......
......@@ -8,6 +8,8 @@
>
<el-button
icon="el-icon-plus"
:size="btn_size"
type="primary"
@click="handleAdd"
>创建菜单</el-button>
</el-col>
......@@ -21,7 +23,7 @@
:formData="searchFormData"
>
<el-button
size="small"
:size="btn_size"
type="primary"
@click="keyDowmGetList"
>查询</el-button>
......@@ -437,7 +439,7 @@ export default {
this.editVisible = !this.editVisible
this.editDisable()
!isEdit && this.isMenuSpecial(false)
this.$refs.editFormRef && (this.$refs.editFormRef.$refs[this.editChildRef].clearValidate())
this.$refs.editFormRef.$refs[this.editChildRef] && (this.$refs.editFormRef.$refs[this.editChildRef].clearValidate())
},
handleConfirm() {
// console.log(this.editForm)
......
......@@ -2,9 +2,14 @@
<template>
<div class="prodect-list">
<el-row>
<el-col :span="12">
<el-col
:span="12"
style="padding-top: 16px;"
>
<el-button
icon="el-icon-plus"
:size="btn_size"
type="primary"
@click="handleAdd"
>创建产品</el-button>
</el-col>
......@@ -18,7 +23,7 @@
:formData="searchFormData"
>
<el-button
size="small"
:size="btn_size"
type="primary"
:id="tableParams.btnId"
>查询</el-button>
......@@ -144,6 +149,7 @@ export default {
label: '产品地址',
name: 'productAddress',
type: 'input',
maxlength: 50,
width: '300px'
}],
// 基本数据
......@@ -181,11 +187,13 @@ export default {
})
},
handleAdd() {
this.editFormData[this.editFormData.findIndex(item => item.name === 'productType')].isDisabled = !!this.editForm.id
this.editVisible = !this.editVisible
this.$refs.editFormRef.$refs[this.editChildRef] && this.$refs.editFormRef.$refs[this.editChildRef].clearValidate()
},
handleProEdit(row) {
this.editForm = _.clone(row)
console.log(row)
// console.log(row)
this.handleAdd()
},
handleEditClose() {
......@@ -195,13 +203,11 @@ export default {
productDetail: '',
productAddress: ''
}
this.$refs.editFormRef.$refs[this.editChildRef].clearValidate()
this.handleAdd()
},
handleEditConfirm() {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) {
// productApi.saveProApi({ productCode: '123', ...this.editForm }).then(res => {
console.log(this.editForm)
var apiName = this.editForm.productCode ? 'updateProApi' : 'saveProApi'
productApi[apiName](this.editForm).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!