modified: src/views/basic/template/index.vue
modified: src/views/technology/document/index.vue
| | |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <!-- <el-table-column |
| | | <el-table-column |
| | | label="参数类型" |
| | | prop="type" |
| | | align="center" |
| | |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="单位" prop="unit" align="center"> |
| | | </el-table-column> --> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | |
| | | @click="saveSample(scope.$index, scope.row)" |
| | | >保存 |
| | | </el-button> |
| | | <!-- <el-button |
| | | <el-button |
| | | type="text" |
| | | v-if="!scope.row.isUpdate" |
| | | size="mini" |
| | | @click="editSample(scope.$index, scope.row)" |
| | | >编辑 |
| | | </el-button> --> |
| | | </el-button> |
| | | <el-button |
| | | type="text" |
| | | size="mini" |
| | |
| | | }, |
| | | // 添加 |
| | | relateOperationParam() { |
| | | console.log(11111); |
| | | if (this.templateId !== 0) { |
| | | // 筛选出当前页面已有的参数 |
| | | this.paramSelArr = [] |
| | |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | // 绝缘颜色 |
| | | { |
| | | minWidth: '120', |
| | | prop: 'insulationColor', |
| | | label: '绝缘颜色', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | // 护套颜色 |
| | | { |
| | | minWidth: '120', |
| | | prop: 'sheathColor', |
| | | label: '护套颜色', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | // // 绝缘颜色 |
| | | // { |
| | | // minWidth: '120', |
| | | // prop: 'insulationColor', |
| | | // label: '绝缘颜色', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | // // 护套颜色 |
| | | // { |
| | | // minWidth: '120', |
| | | // prop: 'sheathColor', |
| | | // label: '护套颜色', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'testStandard', |
| | |
| | | searchInfoType: 'text', |
| | | noShowTip: false |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'projectNo', |
| | | label: '项目号', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'projectType', |
| | | label: '项目类别', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'select', |
| | | optList: () => { |
| | | return this.getProjectTypeOptionList() |
| | | }, |
| | | formatter: (row, column, cellValue) => { |
| | | var formatVal |
| | | if (cellValue == 0) { |
| | | formatVal = '国内项目' |
| | | } else if (cellValue == 1) { |
| | | formatVal = '特缆研发项目' |
| | | } else { |
| | | formatVal = '' |
| | | } |
| | | return formatVal |
| | | } |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'country', |
| | | label: '国家', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | // { |
| | | // minWidth: '120', |
| | | // prop: 'projectNo', |
| | | // label: '项目号', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | // { |
| | | // minWidth: '120', |
| | | // prop: 'projectType', |
| | | // label: '项目类别', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'select', |
| | | // optList: () => { |
| | | // return this.getProjectTypeOptionList() |
| | | // }, |
| | | // formatter: (row, column, cellValue) => { |
| | | // var formatVal |
| | | // if (cellValue == 0) { |
| | | // formatVal = '国内项目' |
| | | // } else if (cellValue == 1) { |
| | | // formatVal = '特缆研发项目' |
| | | // } else { |
| | | // formatVal = '' |
| | | // } |
| | | // return formatVal |
| | | // } |
| | | // }, |
| | | // { |
| | | // minWidth: '120', |
| | | // prop: 'country', |
| | | // label: '国家', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | |
| | | // 描述 |
| | | { |