| | |
| | | <el-option label="是" :value="1"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="是否查新" prop="needSearchNew"> |
| | | <el-select v-model="addForm.needSearchNew" size="small" placeholder="请选择" style="width: 100%"> |
| | | <el-option label="否" :value="0"></el-option> |
| | | <el-option label="是" :value="1"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item v-if="title === '新增'" label="附件"> |
| | | <el-upload ref="addUpload" action="#" :auto-upload="false" multiple :file-list="pendingFiles" |
| | | :on-change="pendingFileChange" :on-remove="pendingFileRemove" :before-upload="beforeFileUpload" |
| | |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | label: "是否查新", |
| | | prop: "needSearchNew", |
| | | width: "90px", |
| | | dataType: "tag", |
| | | formatData: (value) => value == 1 ? "是" : "否", |
| | | formatType: (value) => value == 1 ? "success" : "info", |
| | | }, |
| | | {label: "创建人", prop: "createUserName"}, |
| | | {label: "创建时间", prop: "createTime"}, |
| | | {label: "更新人", prop: "updateUserName"}, |
| | |
| | | isUse: [ |
| | | {required: true, message: "请选择是否启用", trigger: "change"}, |
| | | ], |
| | | needSearchNew: [ |
| | | {required: true, message: "请选择是否查新", trigger: "change"}, |
| | | ], |
| | | }, |
| | | }; |
| | | }, |
| | |
| | | }, |
| | | openAdd() { |
| | | this.title = "新增"; |
| | | this.addForm = {industryIds: [], isProduct: 1, isUse: 1}; |
| | | this.addForm = {industryIds: [], isProduct: 1, isUse: 1, needSearchNew: 0}; |
| | | this.pendingFiles = []; |
| | | this.addDlog = true; |
| | | }, |
| | |
| | | this.addDlog = true; |
| | | this.addForm = this.HaveJson(row) |
| | | this.addForm.industryIds = this.addForm.industryIds || []; |
| | | if (this.addForm.needSearchNew == null) this.addForm.needSearchNew = 0; |
| | | }, |
| | | getQualificationList() { |
| | | this.getDicts("cnas_method_qualification").then((response) => { |