| | |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | | <div class="param-table"> |
| | | <div class="param-table" > |
| | | <div class="title-contant"> |
| | | <div class="title">参数属性配置</div> |
| | | <div class="sub-title">配置当前类别的产品参数名</div> |
| | | </div> |
| | | <el-table :data="form.baseCategoryRequestParamList" stripe border> |
| | | <el-table-column prop="" label="参数名" min-width="100px" align="center"> |
| | | <el-table :data="form.baseCateParamList" stripe border > |
| | | <el-table-column prop="" label="参数名" min-width="200px" align="center"> |
| | | <template slot-scope="{row}"> |
| | | <el-input v-model="row.name" placeholder="请输入排序码" v-trim /> |
| | | <el-input v-model="row.name" placeholder="请输入参数名" v-trim /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" width="100" align="center"> |
| | | <template slot-scope="{row, $index}"> |
| | | <el-button type="text" style="color: red" |
| | | @click="form.baseCategoryRequestParamList.splice($index, 1)">删除</el-button> |
| | | @click="form.baseCateParamList.splice($index, 1)">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | |
| | | // attrFirst: '', |
| | | // attrFirst1: '', |
| | | baseCategoryRequestParamList: [], |
| | | baseCateParamList: [], |
| | | // attrSecond: '', |
| | | // attrSecond1: '', |
| | | // attrSecondList: [], |
| | | |
| | | // parameter: '', |
| | | // paramList: [], |
| | | |
| | | paramList: [] |
| | | |
| | | }, |
| | | // 验证规则 |
| | |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | this.form.imgfullurl = '' |
| | | this.form.baseCateParamList = [{name:''}] |
| | | this.form.paramList = [{name:''}] |
| | | this.form[this.configData['field.id']] = null |
| | | }) |
| | | return |
| | |
| | | for (const key in this.form) { |
| | | this.form[key] = target[key] |
| | | } |
| | | this.form.baseCategoryRequestParamList = this.form.baseCategoryRequestParamList || [] |
| | | this.form.baseCateParamList = this.form.baseCateParamList || [] |
| | | }) |
| | | }, |
| | | addParam() { |
| | | this.form.baseCategoryRequestParamList.push({ name: '' }) |
| | | addParam () { |
| | | this.form.baseCateParamList.push({ name: '' }) |
| | | }, |
| | | changeInput(type, index) { |
| | | changeInput (type, index) { |
| | | if (type === 1) { |
| | | 不能为空 |
| | | if (!this.form.budgetList[index].minamount) return |
| | | if (!/^[0-9]*[1-9][0-9]*$/.test(this.form.budgetList[index].minamount)) { |
| | | this.$message.warning({ |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | .param-table { |
| | | //width: 70%; |
| | | margin-top: 40px; |
| | | |
| | | .title-contant { |
| | |
| | | width: 300px; |
| | | } |
| | | } |
| | | </style> |
| | | |
| | | </style> |