Commit 6065e9a7 authored by 张俊's avatar 张俊

高亮调整

parent 586660d1
...@@ -108,13 +108,24 @@ export default { ...@@ -108,13 +108,24 @@ export default {
this.listTotal = response.data.data.total this.listTotal = response.data.data.total
var temp = [] var temp = []
response.data.data.data.forEach((e,idx) => { response.data.data.data.forEach((e,idx) => {
var temp_str = '' var temp_str = JSON.stringify(e._source)
let replaceReg = new RegExp(this.input3, 'g') var temp_arr = this.input3.split('')
let replaceString ='<span class="search-text">' + this.input3 + '</span>' temp_arr.forEach(el => {
temp_str = (JSON.stringify(e._source)).replace( let replaceReg = new RegExp(el, 'g')
replaceReg, let replaceString ='<span class="search-text">' + el + '</span>'
replaceString temp_str = (temp_str).replace(
) replaceReg,
replaceString
)
});
// let replaceReg = new RegExp(this.input3, 'g')
// let replaceString ='<span class="search-text">' + this.input3 + '</span>'
// temp_str = (JSON.stringify(e._source)).replace(
// replaceReg,
// replaceString
// )
temp.push({...e._source,_source:temp_str,index:idx+1+(this.currentPage-1)*10}) temp.push({...e._source,_source:temp_str,index:idx+1+(this.currentPage-1)*10})
}); });
this.tableData = temp this.tableData = temp
......
...@@ -149,12 +149,23 @@ ...@@ -149,12 +149,23 @@
<div class="storage_type" @click="change_appset(item, 'check_type', 1)" :style="item.check_type==1?{backgroundColor:'#515fe7',color:'#f8f9fd'}:''">云存储</div> <div class="storage_type" @click="change_appset(item, 'check_type', 1)" :style="item.check_type==1?{backgroundColor:'#515fe7',color:'#f8f9fd'}:''">云存储</div>
</div> </div>
<div class="cloud_save_box" v-if="item.check_type==1"> <div v-if="item.check_type==1">
<el-radio-group v-model="item.value"> <div>
<p v-for="(it,idx) in pvc_list" :key="idx+589000"> <p style="color:#58617a;padding-left:15px;">存储类型:</p>
<el-radio :label="it.disk_serial_number+';'+it.id">{{it.disk_serial_number}}&nbsp;({{'用量:'+it.disk_cap+'Gi'+' '+' ' +'类型:'+it.store_type}})</el-radio> <div style="overflow:hidden;margin-bottom:5px;">
</p> <div class="storage_type" @click="change_appset(item, 'storage_type', 0)" :style="item.storage_type==0?{backgroundColor:'#515fe7',color:'#f8f9fd'}:''">nfs-client</div>
</el-radio-group> <div class="storage_type" @click="change_appset(item, 'storage_type', 1)" :style="item.storage_type==1?{backgroundColor:'#515fe7',color:'#f8f9fd'}:''">rook-ceph-block</div>
</div>
</div>
<p style="color:#58617a;padding-left:15px;">数据盘:</p>
<div class="cloud_save_box">
<el-checkbox-group v-model="item.value">
<p v-for="(it,idx) in pvc_list" :key="idx">
<el-checkbox :label="it.disk_serial_number+';'+it.id">{{it.disk_serial_number}}&nbsp;({{it.disk_cap+'Gi'}})</el-checkbox>
</p>
</el-checkbox-group>
</div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item :label="item.text" v-if="item.type == 'volume'"> <el-form-item :label="item.text" v-if="item.type == 'volume'">
...@@ -365,23 +376,24 @@ export default { ...@@ -365,23 +376,24 @@ export default {
step2_arr.forEach((e) => { step2_arr.forEach((e) => {
if (e.type == "radio") { if (e.type == "radio") {
e["val"] = e.value[0]; e["val"] = e.value[0];
// this.deal_key_value(this.app_set_info,e.name,e.type,e.value[0])
} else if (e.type == "storage") { } else if (e.type == "storage") {
e["dwtype"] = e.storage.indexOf("Gi") == -1 ? 1 : 0; debugger
// this.deal_key_value(this.app_set_info,e.name,e.type,e.storage) this.select_volumn=[]
e['check_type'] = 0
e['storage_type'] = 0
console.log(this.pvc_list);
e['value'] = [this.pvc_list[0].disk_serial_number+';'+this.pvc_list[0].id]
} else if (e.type == "resource") { } else if (e.type == "resource") {
let memory = e.memory; let memory = e.memory;
let cpu = e.cpu; let cpu = e.cpu;
e["memory_type"] = memory.indexOf("Mi") == -1 ? "Gi" : "Mi"; e["memory_type"] = memory.indexOf("Mi") == -1 ? "Gi" : "Mi";
e["memory"] = parseInt(memory); e["memory"] = parseInt(memory);
e["cpu"] = parseInt(cpu); e["cpu"] = parseInt(cpu);
// this.deal_key_value(this.app_set_info,e.name,'resource',[memory,cpu])
} else if(e.type == "volume") { } else if(e.type == "volume") {
this.select_volumn=[] this.select_volumn=[]
e['check_type'] = 0 e['check_type'] = 0
console.log(this.pvc_list); console.log(this.pvc_list);
e['value'] = this.pvc_list[0].disk_serial_number+';'+this.pvc_list[0].id e['value'] = this.pvc_list[0].disk_serial_number+';'+this.pvc_list[0].id
// this.deal_key_value(this.app_set_info,e.name,e.type,e.value)
}else{ }else{
} }
...@@ -687,7 +699,28 @@ export default { ...@@ -687,7 +699,28 @@ export default {
}; };
</script> </script>
<style scoped> <style scoped>
.step_form ::-webkit-scrollbar {
/*滚动条整体样式*/
width: 7px; /*高宽分别对应横竖滚动条的尺寸*/
height: 1px;
}
.step_form ::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 8px;
/* background: #dde4ff; */
box-shadow: 8px 0 0 #a5adb7 inset;
border: 4px solid rgba(0, 0, 0, 0);
}
.step_form ::-webkit-scrollbar-track {
/*滚动条里面轨道*/
border-radius: 8px;
/* background: #f4f4f4; */
box-shadow: 8px 0 0 #f4f4f4 inset;
border: 4px solid rgba(0, 0, 0, 0);
}
.openbgc { .openbgc {
width: 56px; width: 56px;
height: 23px; height: 23px;
...@@ -821,7 +854,6 @@ export default { ...@@ -821,7 +854,6 @@ export default {
background-color: #f8f9fd; background-color: #f8f9fd;
} }
.storage_type{ .storage_type{
width: 76px;
height: 35px; height: 35px;
line-height: 35px; line-height: 35px;
text-align: center; text-align: center;
...@@ -832,13 +864,17 @@ export default { ...@@ -832,13 +864,17 @@ export default {
float: left; float: left;
cursor: pointer; cursor: pointer;
margin-right: 10px; margin-right: 10px;
padding: 0 10px;
} }
.cloud_save_box{ .cloud_save_box{
width: 786px; width: 786px;
height: 172px;
background-color: #f7f8f9; background-color: #f7f8f9;
border-radius: 6px; border-radius: 6px;
padding: 20px; padding: 20px;
padding-bottom: 10px; padding-bottom: 10px;
overflow-x: hidden;
overflow-y: scroll;
} }
.cloud_save_box p{ .cloud_save_box p{
height: 30px; height: 30px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment