| | |
| | | placeholder="请输入"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12" style="position: relative"> |
| | | <div style="width: 100%; height: 100%; position: absolute;"> |
| | | <el-col :span="5"> |
| | | <el-form-item class="item" label="赋码" label-width="50px" prop="coding"> |
| | | <template slot-scope="scope"> |
| | | <!-- <div class="yellow-dot" v-if="scope.row.coding === 'yellow'"></div>--> |
| | | <!-- <div class="green-dot" v-if="scope.row.coding === 'green'"></div>--> |
| | | <!-- <div class="red-dot" v-if="scope.row.coding === 'red'"></div>--> |
| | | <div class="red-dot"></div> |
| | | <tag-list></tag-list> |
| | | </template> |
| | | </el-form-item> |
| | | <!-- <img alt="" src="../../../../assets/images/s.png"/>--> |
| | | </div> |
| | | <template slot-scope="scope"> |
| | | <!-- <div class="yellow-dot" v-if="scope.row.coding === 'yellow'"></div>--> |
| | | <!-- <div class="green-dot" v-if="scope.row.coding === 'green'"></div>--> |
| | | <!-- <div class="red-dot" v-if="scope.row.coding === 'red'"></div>--> |
| | | <div class="red-dot"></div> |
| | | </template> |
| | | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item label="标签" label-width="50px" prop="tag"> |
| | | <template slot-scope="scope"> |
| | | <tag-list :tag-list="tagList" ref="tagList" @getTags="getTagList"></tag-list> |
| | | </template> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-col :span="7"> |
| | | <el-form-item label="年度投资金额" label-width="100px" prop="company" style="width: 100%; min-width: 260px"> |
| | | <el-input v-model.trim="yearPlan.yearTotalMoney" clearable maxlength="255" placeholder="请输入" |
| | | style="width: 90%" type="number"/> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | tagList: [], |
| | | projectSubTypeList: [], // 项目子类型 |
| | | projectForm: { |
| | | id: '', |
| | |
| | | } |
| | | // this.handleLoadMore(1); |
| | | } |
| | | console.log(this.projectForm, "原始值") |
| | | this.$nextTick(() => { |
| | | console.log("设置了") |
| | | this.tagList = this.projectForm.tag ? this.projectForm.tag.split(",") : [] |
| | | console.log(this.tagList) |
| | | }) |
| | | }, |
| | | beforeDestroy() { |
| | | localStorage.setItem("projectForm", JSON.stringify(this.projectForm)); |
| | | }, |
| | | methods: { |
| | | getTagList(list) { |
| | | console.log("拿到了") |
| | | if (!list || list.length < 1) { |
| | | this.projectForm.tag = '' |
| | | } else { |
| | | this.projectForm.tag = list.join(","); |
| | | } |
| | | }, |
| | | getChildSelect(select) { |
| | | this.projectForm.projectSubType = '' |
| | | if (select) { |
| | |
| | | }) |
| | | } |
| | | this.$emit('updateIsShow', true); |
| | | console.log(this.projectForm, "原始值") |
| | | this.$nextTick(() => { |
| | | console.log("设置了") |
| | | this.tagList = this.projectForm.tag ? this.projectForm.tag.split(",") : [] |
| | | console.log(this.tagList) |
| | | }) |
| | | }); |
| | | }, |
| | | getApprovalList() { |