Commit c61dc63a by 无尘

fix: 修改编辑标签

parent 5fc49dd8
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-09-01 17:16:25 * @Date: 2020-09-01 17:16:25
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-09-04 10:32:31 * @LastEditTime: 2020-09-04 13:58:02
--> -->
<!-- <!--
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<template> <template>
<el-dialog :title="form.tagId ? '编辑标签' : '新建标签'" width="600px" :visible.sync="editVisible" :before-close="handleClose"> <el-dialog :title="form.tagId ? '编辑标签' : '新建标签'" width="600px" :visible.sync="editVisible" :before-close="handleClose">
<common-alert-tip :width="'476px'" :tip-content="tipContent"></common-alert-tip> <common-alert-tip :width="'476px'" :tip-content="tipContent"></common-alert-tip>
<el-form :model="form" :rules="rules" ref="tagForm" label-width="110px"> <el-form class="m-t-20" :model="form" :rules="rules" ref="tagForm" label-width="110px">
<el-form-item label="标签名称" prop="tagName"> <el-form-item label="标签名称" prop="tagName">
<limit-input <limit-input
:input-width="440" :input-width="440"
...@@ -43,14 +43,17 @@ ...@@ -43,14 +43,17 @@
@close="handleDel(index)"> @close="handleDel(index)">
{{item.tagValue}} {{item.tagValue}}
</el-tag> </el-tag>
<div> <div class="m-t-5 input-tag-div">
<el-input <el-input
class="input-new-tag" class="input-new-tag"
v-model="inputValue" v-model="inputValue"
ref="saveTagInput" ref="saveTagInput"
size="small" size="small"
maxlength="15"
placeholder="请输入标签值并回车添加多个"
@keyup.enter.native="handleInputConfirm"> @keyup.enter.native="handleInputConfirm">
</el-input> </el-input>
<span class="input-cell-tip top-40">{{inputValue.length}}/100</span>
</div> </div>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -143,7 +146,7 @@ export default { ...@@ -143,7 +146,7 @@ export default {
if (inputValue) { if (inputValue) {
that.form.childList.push( that.form.childList.push(
{ {
tagValueId: that.form.tagId, tagValueId: '',
tagValue: inputValue tagValue: inputValue
} }
); );
...@@ -229,6 +232,28 @@ export default { ...@@ -229,6 +232,28 @@ export default {
}; };
</script> </script>
<style lang='less' scoped> <style lang='less' scoped>
.m-t-5 {
margin-top: 5px;
}
.el-form {
.el-select {
width: 440px;
}
.el-input {
width: 440px;
}
.input-tag-div {
.input-cell-tip {
position: absolute;
top: 2px;
right: 30px;
display: inline-block;
line-height: 32px;
text-align: right;
font-size: 12px;
color: #c0c4cc;
font-weight: 400;
}
}
}
</style> </style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-12-06 13:44:22 * @Date: 2018-12-06 13:44:22
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-09-03 18:07:27 * @LastEditTime: 2020-09-04 11:38:17
--> -->
<!-- <!--
限制输入框组件 限制输入框组件
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
--> -->
<template> <template>
<div :class="['input-line-cell', limitClass]" :style="{ width: inputWidth + 'px' }"> <div :class="['input-line-cell', limitClass]" :style="{ width: inputWidth + 'px' }">
<el-input :style="{ width: inputWidth + 'px' }" v-model="itemValue" :disabled="disflag" :placeholder="holder" @blur="inputBlur()" @keyup.native="value => toInput(value)"> </el-input> <el-input :style="{ width: inputWidth + 'px' }" v-model="itemValue" :disabled="disflag" :placeholder="holder" :maxlength="inputLength" @blur="inputBlur()" @keyup.native="value => toInput(value)"> </el-input>
<span class="input-cell-tip"><span class="len_span">{{ inputNum }}</span>/{{ limitLength }}</span> <span class="input-cell-tip"><span class="len_span">{{ inputNum }}</span>/{{ limitLength }}</span>
</div> </div>
</template> </template>
...@@ -72,7 +72,8 @@ export default { ...@@ -72,7 +72,8 @@ export default {
return { return {
inputNum: 0, inputNum: 0,
limitLength: 10, limitLength: 10,
itemValue: '' itemValue: '',
inputLength: this.getByType == 'normal' ? this.maxLength : 500
}; };
}, },
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-08-27 10:16:37 * @Date: 2020-08-27 10:16:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-09-04 10:49:48 * @LastEditTime: 2020-09-04 10:55:04
--> -->
<template> <template>
...@@ -111,6 +111,7 @@ export default { ...@@ -111,6 +111,7 @@ export default {
const that = this; const that = this;
if (!!that.brandId) { if (!!that.brandId) {
that.getGroupList(); that.getGroupList();
that.getGroupClassify();
} }
that.rowDrop('memberCrowdData'); that.rowDrop('memberCrowdData');
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment