bug fix and performance improvements
This commit is contained in:
@ -21,11 +21,7 @@
|
||||
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item
|
||||
:label="
|
||||
t('admin.form.category', { type: t('admin.common.demand') })
|
||||
"
|
||||
>
|
||||
<el-form-item :label="t('admin.common.demandCategory')">
|
||||
<el-checkbox-group v-model="form.kinds">
|
||||
<el-checkbox
|
||||
v-for="item in checkList"
|
||||
@ -39,12 +35,17 @@
|
||||
<el-col :span="20">
|
||||
<el-input
|
||||
v-model="checkInput"
|
||||
placeholder="请输入需求类别"
|
||||
:placeholder="
|
||||
/*请输入需求类别*/
|
||||
t('admin.form.placeholder', {
|
||||
type: t('admin.common.demandCategory'),
|
||||
})
|
||||
"
|
||||
></el-input>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-button type="primary" @click="addCheck"
|
||||
><!--添加-->
|
||||
<el-button type="primary" @click="addCheck">
|
||||
<!--添加-->
|
||||
{{ t("admin.common.add") }}
|
||||
</el-button>
|
||||
</el-col>
|
||||
@ -59,13 +60,6 @@
|
||||
:label="t('webSearch.demandDescription')"
|
||||
prop="description"
|
||||
>
|
||||
<!-- <Editor v-model="form.description" :minHeight="150" /> -->
|
||||
<!-- <wangEditor
|
||||
v-model="form.description"
|
||||
width="100%"
|
||||
min-height="150px"
|
||||
@blur="formRef.validateField(`description`)"
|
||||
></wangEditor>-->
|
||||
<el-input
|
||||
type="textarea"
|
||||
v-model="form.description"
|
||||
@ -285,7 +279,7 @@ const backToList = () => {
|
||||
|
||||
// 添加需求类别时验证
|
||||
function addCheck() {
|
||||
if (!checkInput.value.trim().length) return ElMessage.error("请输入");
|
||||
if (!checkInput.value.trim().length) return ElMessage.error(t("input.input"));
|
||||
const flag = checkList.some((item) => {
|
||||
return item.name.trim() == checkInput.value.trim();
|
||||
});
|
||||
|
Reference in New Issue
Block a user