|
@@ -389,6 +389,55 @@ export default {
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ // 基础信息轮胎附件
|
|
|
+ originalOptionsTwo_LT: {
|
|
|
+ dialogDrag: true,
|
|
|
+ index: true,
|
|
|
+ refreshBtn: false,
|
|
|
+ cellBtn: false,
|
|
|
+ cancelBtn: false,
|
|
|
+ delBtn: false,
|
|
|
+ editBtn: false,
|
|
|
+ addBtn: false,
|
|
|
+ align: "center",
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ label: "文件名称",
|
|
|
+ prop: "fileName",
|
|
|
+ index: 1,
|
|
|
+ width: 140,
|
|
|
+ cell: true,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "文件地址",
|
|
|
+ prop: "url",
|
|
|
+ index: 2,
|
|
|
+ overHidden: true
|
|
|
+ },{
|
|
|
+ type: "select",
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=picture_type",
|
|
|
+ props: {
|
|
|
+ label: "dictValue",
|
|
|
+ value: "dictKey"
|
|
|
+ },
|
|
|
+ label: "文件属性",
|
|
|
+ prop: "mainImage",
|
|
|
+ search: false,
|
|
|
+ index: 3,
|
|
|
+ width: 140,
|
|
|
+ overHidden: true,
|
|
|
+ cell: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "备注",
|
|
|
+ prop: "remarks",
|
|
|
+ index: 4,
|
|
|
+ cell: true,
|
|
|
+ overHidden: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
originalOptionsThree: {
|
|
|
dialogDrag: true,
|
|
|
index: true,
|
|
@@ -432,6 +481,7 @@ export default {
|
|
|
* 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
|
|
|
* 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
|
|
|
*/
|
|
|
+ console.log(this.enumerationValue)
|
|
|
if (this.enumerationValue === 160) {
|
|
|
this.option = await this.getColumnData(this.getColumnName(this.enumerationValue), this.originalOptionsTwo);
|
|
|
} else if (this.enumerationValue === 107.1) {
|
|
@@ -440,6 +490,8 @@ export default {
|
|
|
this.option = await this.getColumnData(this.getColumnName(this.enumerationValue), this.originalOptionsTwo);
|
|
|
} else if (this.enumerationValue === 35.1) {
|
|
|
this.option = await this.getColumnData(this.getColumnName(this.enumerationValue), this.originalOptionsThree);
|
|
|
+ }else if (this.enumerationValue === 160.1) {
|
|
|
+ this.option = await this.getColumnData(this.getColumnName(this.enumerationValue), this.originalOptionsTwo_LT);
|
|
|
} else {
|
|
|
this.option = await this.getColumnData(this.getColumnName(this.enumerationValue), this.originalOptions);
|
|
|
this.getWorkDicts("picture_type").then(res => {
|
|
@@ -495,6 +547,13 @@ export default {
|
|
|
this.$message.success("重置成功");
|
|
|
this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
}
|
|
|
+ }else if (this.enumerationValue === 160.1) {
|
|
|
+ this.option = this.originalOptionsTwo_LT;
|
|
|
+ const inSave = await this.delColumnData(this.getColumnName(this.enumerationValue), this.originalOptionsTwo_LT);
|
|
|
+ if (inSave) {
|
|
|
+ this.$message.success("重置成功");
|
|
|
+ this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
+ }
|
|
|
} else {
|
|
|
this.option = this.originalOptions;
|
|
|
const inSave = await this.delColumnData(this.getColumnName(this.enumerationValue), this.originalOptions);
|