Browse Source

终于

bugfix/member_move_out
dai 3 years ago
parent
commit
ba8b453982
  1. 1
      src/views/modules/communityParty/article/drafts.vue
  2. 1
      src/views/modules/communityParty/article/index.vue
  3. 15
      src/views/modules/cpts/base/cpts/edit.vue

1
src/views/modules/communityParty/article/drafts.vue

@ -312,6 +312,7 @@ export default {
},
editElseRules: {},
editConfig: {
confirmBtnName: "发布",
cookInfoFn(data) {
if (data.richTextFlag == "0") {
data.content = data.contentList

1
src/views/modules/communityParty/article/index.vue

@ -433,6 +433,7 @@ export default {
},
editElseRules: {},
editConfig: {
confirmBtnName: "发布",
cookInfoFn(data) {
if (data.richTextFlag == "0") {
data.content = data.contentList

15
src/views/modules/cpts/base/cpts/edit.vue

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

Loading…
Cancel
Save