| | |
| | | <span>动作</span> |
| | | <!-- <el-button plain size="mini" style="margin-left: 15px" @click="deleteClick">删除</el-button> --> |
| | | </span> |
| | | <el-button v-if="showEdit&&editConfig.infomation.type==3" plain size="mini" style="margin-left: 15px" @click="editClick">编辑</el-button> |
| | | <el-button |
| | | v-if="showEdit && editConfig.infomation.type == 3" |
| | | plain |
| | | size="mini" |
| | | style="margin-left: 15px" |
| | | @click="editClick" |
| | | >编辑</el-button |
| | | > |
| | | </div> |
| | | </div> |
| | | <!-- 内容 --> |
| | |
| | | v-model="editConfig.infomation.parentId" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | :disabled="editCommonConfig.title!='新建'" |
| | | :disabled="editCommonConfig.title != '新建'" |
| | | style="width: 90%" |
| | | > |
| | | <el-option v-for="item in positionList" :key="item.id" :label="item.jointName" :value="item.id"> |
| | |
| | | <el-select |
| | | v-model="editConfig.infomation.type" |
| | | filterable |
| | | :disabled="editCommonConfig.title!='新建'" |
| | | :disabled="editCommonConfig.title != '新建'" |
| | | placeholder="请选择" |
| | | style="width: 90%" |
| | | no-data-text="暂无数据" |
| | |
| | | editConfig: this.editCommonConfig, |
| | | rules: { |
| | | name: [{ required: true, message: "请输入", trigger: "change" }], |
| | | parentId: [{ required: true, message: "请选择位置类型", trigger: "change" }], |
| | | // parentId: [{ required: true, message: "请选择位置类型", trigger: "change" }], |
| | | type: [{ required: true, message: "请选择上级位置", trigger: "change" }], |
| | | countFrequency: [ |
| | | { |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log(this.editConfig.infomation) |
| | | this.setBottonView() |
| | | }, |
| | | methods: { |
| | |
| | | productClick() {}, |
| | | // 设置删除/打印/编辑是否显示 |
| | | setBottonView() { |
| | | if (this.editConfig.title === "新建"||this.editConfig.title === "编辑") { |
| | | if (this.editConfig.title === "新建" || this.editConfig.title === "编辑") { |
| | | this.showEdit = false |
| | | this.showFooter = true |
| | | } else if (this.editConfig.infomation.status === "完成") { |
| | |
| | | notes: data.notes |
| | | } |
| | | if (data.id) { |
| | | params.id = data.id; |
| | | params.jointName=data.jointName; |
| | | params.id = data.id |
| | | params.jointName = data.jointName |
| | | } |
| | | return params |
| | | }, |