|
@@ -47,6 +47,7 @@
|
|
|
size="small"
|
|
size="small"
|
|
|
:placeholder="$t('请选择技术要求')"
|
|
:placeholder="$t('请选择技术要求')"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
|
|
+ @focus="askSelect(scope.column.data.optionname)"
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in askList"
|
|
v-for="item in askList"
|
|
@@ -87,7 +88,8 @@
|
|
|
<div v-else-if="scope.column.columnname == 'operation'">
|
|
<div v-else-if="scope.column.columnname == 'operation'">
|
|
|
<el-button type="text" size="small" v-if="isAdd && nowIndex == scope.column.data.rowindex" @click="onSave(scope.column.data)" style="color: #e6a23c" :disabled="disabled">{{$t(`保存`)}}</el-button>
|
|
<el-button type="text" size="small" v-if="isAdd && nowIndex == scope.column.data.rowindex" @click="onSave(scope.column.data)" style="color: #e6a23c" :disabled="disabled">{{$t(`保存`)}}</el-button>
|
|
|
<el-button type="text" size="small" class="inline-16" v-else @click="onEdit(scope.column.data)" :disabled="disabled">{{$t(`编辑`)}}</el-button>
|
|
<el-button type="text" size="small" class="inline-16" v-else @click="onEdit(scope.column.data)" :disabled="disabled">{{$t(`编辑`)}}</el-button>
|
|
|
- <el-button size="small" type="text" style="color: #f56c6c" :disabled="disabled" @click="delInfo(scope.column.data)">{{$t(`删除`)}}</el-button>
|
|
|
|
|
|
|
+ <el-button size="small" type="text" style="color: #f56c6c" v-if="!isEdit || nowIndex != scope.column.data.rowindex" :disabled="disabled" @click="delInfo(scope.column.data)">{{$t(`删除`)}}</el-button>
|
|
|
|
|
+ <el-button size="small" type="text" style="color: #f56c6c" v-if="isEdit && nowIndex == scope.column.data.rowindex" :disabled="disabled" @click="isEdit = false;isSave = false;isAdd = false;listData(param.content.pageNumner = 1)">{{$t(`取消`)}}</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-else>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname] : '--'}}</div>
|
|
<div v-else>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname] : '--'}}</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -136,7 +138,8 @@ export default {
|
|
|
isOptionname:'',
|
|
isOptionname:'',
|
|
|
isAsk:'',
|
|
isAsk:'',
|
|
|
isAnswer:'',
|
|
isAnswer:'',
|
|
|
- isSave:false
|
|
|
|
|
|
|
+ isSave:false,
|
|
|
|
|
+ isEdit:false,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
@@ -216,6 +219,7 @@ export default {
|
|
|
this.nowIndex = ''
|
|
this.nowIndex = ''
|
|
|
this.listData()
|
|
this.listData()
|
|
|
this.isSave = false
|
|
this.isSave = false
|
|
|
|
|
+ this.isEdit = false
|
|
|
}
|
|
}
|
|
|
}else {
|
|
}else {
|
|
|
|
|
|
|
@@ -226,6 +230,7 @@ export default {
|
|
|
this.queryType()
|
|
this.queryType()
|
|
|
this.nowIndex = data.rowindex
|
|
this.nowIndex = data.rowindex
|
|
|
this.isAdd = true
|
|
this.isAdd = true
|
|
|
|
|
+ this.isEdit = true
|
|
|
},
|
|
},
|
|
|
selectChange(val){
|
|
selectChange(val){
|
|
|
this.list[this.nowIndex - 1].ask = ''
|
|
this.list[this.nowIndex - 1].ask = ''
|
|
@@ -234,6 +239,13 @@ export default {
|
|
|
this.askList = item.subvalues
|
|
this.askList = item.subvalues
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
+ },
|
|
|
|
|
+ askSelect(val){
|
|
|
|
|
+ this.optionnameList.forEach(item=>{
|
|
|
|
|
+ if (val == item.value){
|
|
|
|
|
+ this.askList = item.subvalues
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|