fix: 修复knowledge模块因初始化格式不符等导致的warning提示

This commit is contained in:
刘洪洪
2023-03-09 10:39:26 +08:00
parent 476c49b08f
commit d89c20a75c
6 changed files with 14 additions and 12 deletions

View File

@@ -110,6 +110,9 @@
position: relative; position: relative;
padding-bottom: 20px; padding-bottom: 20px;
} }
.form-input .el-input__inner{
padding-right: 50px !important;
}
.upload-error-tip, .preview-error-tip { .upload-error-tip, .preview-error-tip {
color: $--color-danger; color: $--color-danger;

View File

@@ -15,15 +15,13 @@
<div style="display: flex"> <div style="display: flex">
<el-input v-model="keyWord" size="small" @keyup.enter="onSearch"></el-input> <el-input v-model="keyWord" size="small" @keyup.enter="onSearch"></el-input>
<!-- <el-button icon="el-icon-search" @click="onSearch" size="small"></el-button>--> <!-- <el-button icon="el-icon-search" @click="onSearch" size="small"></el-button>-->
<button class="top-tool-btn" style="border-radius: 0" <button class="top-tool-btn" style="border-radius: 0" @click="onSearch">
type="button" @click="onSearch">
<i class="el-icon-search"></i> <i class="el-icon-search"></i>
</button> </button>
</div> </div>
</div> </div>
<slot name="top-tool-right"></slot> <slot name="top-tool-right"></slot>
<button v-if="showLayout.indexOf('elementSet') > -1" class="top-tool-btn" <button v-if="showLayout.indexOf('elementSet') > -1" class="top-tool-btn" @click="tools.showCustomTableTitle = true">
type="button" @click="tools.showCustomTableTitle = true">
<i class="cn-icon-gear cn-icon"></i> <i class="cn-icon-gear cn-icon"></i>
</button> </button>
</div> </div>

View File

@@ -19,17 +19,17 @@
</div> </div>
</div> </div>
<div class="custom-bottom-btns"> <div class="custom-bottom-btns">
<el-button size="mini" v-if="isCancel" :id="tableId+'-element-set-none'" class="cn-btn cn-btn-size-small-new cn-btn-style-light-new is-cancel" type="button" @click="batchHandler(false)"> <el-button size="mini" v-if="isCancel" :id="tableId+'-element-set-none'" class="cn-btn cn-btn-size-small-new cn-btn-style-light-new is-cancel" @click="batchHandler(false)">
<span class="top-tool-btn-txt">{{$t('overall.clear')}}</span> <span class="top-tool-btn-txt">{{$t('overall.clear')}}</span>
</el-button> </el-button>
<el-button size="mini" v-if="!isCancel" :id="tableId+'-element-set-all'" class="cn-btn cn-btn-size-small-new cn-btn-style-light-new" type="button" @click="batchHandler(true)"> <el-button size="mini" v-if="!isCancel" :id="tableId+'-element-set-all'" class="cn-btn cn-btn-size-small-new cn-btn-style-light-new" @click="batchHandler(true)">
<span class="top-tool-btn-txt">{{$t('overall.all')}}</span> <span class="top-tool-btn-txt">{{$t('overall.all')}}</span>
</el-button> </el-button>
<div class="custom-bottom-btns-right"> <div class="custom-bottom-btns-right">
<el-button size="mini" :id="tableId+'-element-set-esc'" class="cn-btn cn-btn-size-small-new cn-btn-style-light-new" type="button" @click="esc"> <el-button size="mini" :id="tableId+'-element-set-esc'" class="cn-btn cn-btn-size-small-new cn-btn-style-light-new" @click="esc">
<span class="top-tool-btn-txt">{{$t('overall.cancel')}}</span> <span class="top-tool-btn-txt">{{$t('overall.cancel')}}</span>
</el-button> </el-button>
<el-button size="mini" :id="tableId+'-element-set-save'" class="cn-btn cn-btn-size-small-new cn-btn-style-normal-new" type="button" @click="save" style="background-color: #0091ff;color:#DCDFE6"> <el-button size="mini" :id="tableId+'-element-set-save'" class="cn-btn cn-btn-size-small-new cn-btn-style-normal-new" @click="save" style="background-color: #0091ff;color:#DCDFE6">
<span class="top-tool-btn-txt top-tool-btn-save">{{$t('overall.save')}}</span> <span class="top-tool-btn-txt top-tool-btn-save">{{$t('overall.save')}}</span>
</el-button> </el-button>
</div> </div>
@@ -86,6 +86,7 @@ export default {
// 单选 // 单选
handler (val, index) { handler (val, index) {
if (!this.allowedAll && !val.allowed && (index === 0 || index === 1 || val.NotSet)) { if (!this.allowedAll && !val.allowed && (index === 0 || index === 1 || val.NotSet)) {
//
} else { } else {
this.custom[index].show = !this.custom[index].show this.custom[index].show = !this.custom[index].show
} }

View File

@@ -20,7 +20,7 @@ export default {
pageObj: { // 分页对象 pageObj: { // 分页对象
pageNo: 1, pageNo: 1,
pageSize: defaultPageSize, pageSize: defaultPageSize,
total: '' total: 0
}, },
/* 工具参数 */ /* 工具参数 */
tools: { tools: {

View File

@@ -11,7 +11,7 @@
> >
<template v-slot:top-tool-right> <template v-slot:top-tool-right>
<button id="knowledge-base-add" :title="$t('knowledgeBase.createKnowledgeBase')" class="top-tool-btn margin-r-10" <button id="knowledge-base-add" :title="$t('knowledgeBase.createKnowledgeBase')" class="top-tool-btn margin-r-10"
type="button" @click="jumpToCreatePage"> @click="jumpToCreatePage">
<i class="cn-icon-add cn-icon"></i> <i class="cn-icon-add cn-icon"></i>
</button> </button>
</template> </template>

View File

@@ -11,7 +11,7 @@
<el-form :model="editObject" label-position="top" ref="form" :rules="rules"> <el-form :model="editObject" label-position="top" ref="form" :rules="rules">
<!--name--> <!--name-->
<el-form-item :label="$t('config.roles.name')" prop="tagName"> <el-form-item :label="$t('config.roles.name')" prop="tagName">
<el-input maxlength="64" placeholder="" :disabled="!!editObject.id" show-word-limit size="mini" type="text" v-model="editObject.tagName"></el-input> <el-input class="form-input" maxlength="64" placeholder="" :disabled="!!editObject.id" show-word-limit size="mini" type="text" v-model="editObject.tagName"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('overall.type')" prop="tagType"> <el-form-item :label="$t('overall.type')" prop="tagType">
<el-select v-model="editObject.tagType" <el-select v-model="editObject.tagType"
@@ -423,7 +423,7 @@ export default {
// 折叠组件控制 // 折叠组件控制
const activeCollapses = ref(['0', '1', '2']) const activeCollapses = ref(['0', '1', '2'])
// 步骤条控制 // 步骤条控制
const activeStep = ref('') const activeStep = ref(0)
const stepHeightConstant = { const stepHeightConstant = {
collapse: 58, collapse: 58,
first: 333, first: 333,