|
@ -122,6 +122,7 @@ |
|
|
:multiple="item.multiple || false" |
|
|
:multiple="item.multiple || false" |
|
|
:filterable="item.filterable || false" |
|
|
:filterable="item.filterable || false" |
|
|
:allowCreate="item.allowCreate || false" |
|
|
:allowCreate="item.allowCreate || false" |
|
|
|
|
|
:collapse-tags="item.collapseTags || false" |
|
|
default-first-option |
|
|
default-first-option |
|
|
@change="(e) => handleChangeSelect(e, item)" |
|
|
@change="(e) => handleChangeSelect(e, item)" |
|
|
> |
|
|
> |
|
@ -183,6 +184,7 @@ |
|
|
:options="item.optionList" |
|
|
:options="item.optionList" |
|
|
:props="item.optionProps || {}" |
|
|
:props="item.optionProps || {}" |
|
|
:show-all-levels="false" |
|
|
:show-all-levels="false" |
|
|
|
|
|
:collapse-tags="item.collapseTags || false" |
|
|
size="small" |
|
|
size="small" |
|
|
clearable |
|
|
clearable |
|
|
class="item-select" |
|
|
class="item-select" |
|
@ -268,14 +270,16 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
<div class="div_btn resi-btns" v-if="!formBtnFixed"> |
|
|
<div class="div_btn resi-btns" v-if="!formBtnFixed"> |
|
|
<el-button size="small" @click="handleCancle">取 消</el-button> |
|
|
<el-button size="small" @click="handleCancle">{{ |
|
|
|
|
|
editConfig.cancelBtnName || "取消" |
|
|
|
|
|
}}</el-button> |
|
|
<el-button |
|
|
<el-button |
|
|
v-if="formType != 'watch'" |
|
|
v-if="formType != 'watch'" |
|
|
type="primary" |
|
|
type="primary" |
|
|
size="small" |
|
|
size="small" |
|
|
:disabled="btnDisable" |
|
|
:disabled="btnDisable" |
|
|
@click="handleComfirm" |
|
|
@click="handleComfirm" |
|
|
>确 定</el-button |
|
|
>{{ editConfig.confirmBtnName || "确定" }}</el-button |
|
|
> |
|
|
> |
|
|
<slot |
|
|
<slot |
|
|
name="operateSup" |
|
|
name="operateSup" |
|
@ -294,14 +298,16 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="div_btn resi-btns" v-if="formBtnFixed"> |
|
|
<div class="div_btn resi-btns" v-if="formBtnFixed"> |
|
|
<el-button size="small" @click="handleCancle">取 消</el-button> |
|
|
<el-button size="small" @click="handleCancle">{{ |
|
|
|
|
|
editConfig.cancelBtnName || "取消" |
|
|
|
|
|
}}</el-button> |
|
|
<el-button |
|
|
<el-button |
|
|
v-if="formType != 'watch'" |
|
|
v-if="formType != 'watch'" |
|
|
type="primary" |
|
|
type="primary" |
|
|
size="small" |
|
|
size="small" |
|
|
:disabled="btnDisable" |
|
|
:disabled="btnDisable" |
|
|
@click="handleComfirm" |
|
|
@click="handleComfirm" |
|
|
>确 定</el-button |
|
|
>{{ editConfig.confirmBtnName || "确定" }}</el-button |
|
|
> |
|
|
> |
|
|
<slot |
|
|
<slot |
|
|
name="operateSup" |
|
|
name="operateSup" |
|
@ -725,6 +731,7 @@ export default { |
|
|
let { data, code, msg } = await requestPost(url, params); |
|
|
let { data, code, msg } = await requestPost(url, params); |
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
const { editConfig } = this; |
|
|
const { editConfig } = this; |
|
|
|
|
|
console.log("xxxxxxxxxxxxxxxxxxxxxx", editConfig); |
|
|
if (editConfig && typeof editConfig.cookInfoFn == "function") { |
|
|
if (editConfig && typeof editConfig.cookInfoFn == "function") { |
|
|
data = editConfig.cookInfoFn(data); |
|
|
data = editConfig.cookInfoFn(data); |
|
|
} |
|
|
} |
|
|