Commit 84e12efc authored by 刘殿昕's avatar 刘殿昕

fixed

parent 384dfeac
...@@ -1084,6 +1084,10 @@ border-radius:8px; ...@@ -1084,6 +1084,10 @@ border-radius:8px;
background-color: #242c43 !important; background-color: #242c43 !important;
} }
.el-picker-panel__icon-btn {
color: #0c3ff7;
}
.el-date-table th { .el-date-table th {
border-bottom: 1px solid #3f4864 !important; border-bottom: 1px solid #3f4864 !important;
color: #e3e5ef !important; color: #e3e5ef !important;
......
...@@ -75,6 +75,13 @@ ...@@ -75,6 +75,13 @@
@click.stop="item.callback && item.callback(scope.row)" @click.stop="item.callback && item.callback(scope.row)"
></a> ></a>
</div> </div>
<div v-else-if="item.type === 'button-oo'" class="row_action">
<a
class="btn-oo"
v-text="scope.row[item.prop]"
@click.stop="item.callback && item.callback(scope.row)"
></a>
</div>
<div v-else-if="item.type === 'icon'"> <div v-else-if="item.type === 'icon'">
<img <img
src="../assets/imgs/ic_true.png" src="../assets/imgs/ic_true.png"
...@@ -447,6 +454,11 @@ export default { ...@@ -447,6 +454,11 @@ export default {
.btn_up { .btn_up {
background-image: url("../assets/imgs/btn_fold.png"); background-image: url("../assets/imgs/btn_fold.png");
} }
.btn-oo {
font-size: 14px;
font-weight: bold;
color: #0f2683;
}
.charts { .charts {
position: relative; position: relative;
} }
......
...@@ -151,8 +151,11 @@ export default { ...@@ -151,8 +151,11 @@ export default {
{ {
label: "SDK类型", label: "SDK类型",
prop: "style_name", prop: "style_name",
type: "button", type: "button-oo",
width: 240, width: 240,
callback: function(value) {
console.log(value);
}
}, },
{ {
label: "版本号", label: "版本号",
......
...@@ -165,6 +165,7 @@ export default { ...@@ -165,6 +165,7 @@ export default {
}, },
deleteData() { deleteData() {
if (this.selected_date.length) { if (this.selected_date.length) {
this.reason_form.reason = "";
this.diaDel = true; this.diaDel = true;
} else { } else {
this.$message.error("请先选择要删除的数据"); this.$message.error("请先选择要删除的数据");
...@@ -219,10 +220,12 @@ export default { ...@@ -219,10 +220,12 @@ export default {
}, },
del_q(val) { del_q(val) {
this.selected_date = [{ id: val.id }]; this.selected_date = [{ id: val.id }];
this.reason_form.reason = "";
this.diaDel = true; this.diaDel = true;
}, },
del_a(val) { del_a(val) {
this.selected_date = [{ id: val.id }]; this.selected_date = [{ id: val.id }];
this.reason_form.reason = "";
this.diaDel = true; this.diaDel = true;
}, },
getQList() { getQList() {
...@@ -281,6 +284,7 @@ export default { ...@@ -281,6 +284,7 @@ export default {
}); });
this.$api.user.delQuestions(items).then((response) => { this.$api.user.delQuestions(items).then((response) => {
if (response.data.success == 1) { if (response.data.success == 1) {
this.getQList();
this.$message({ this.$message({
message: "删除成功", message: "删除成功",
type: "success", type: "success",
...@@ -295,6 +299,7 @@ export default { ...@@ -295,6 +299,7 @@ export default {
}); });
this.$api.user.delAnswers(items).then((response) => { this.$api.user.delAnswers(items).then((response) => {
if (response.data.success == 1) { if (response.data.success == 1) {
this.getAList();
this.$message({ this.$message({
message: "删除成功", message: "删除成功",
type: "success", type: "success",
......
...@@ -786,7 +786,7 @@ export default { ...@@ -786,7 +786,7 @@ export default {
text: "", text: "",
}, },
], ],
fixed: true, fixed: false,
fixedurl: this.$route.path.replace("servicedetail", "serviceedit"), fixedurl: this.$route.path.replace("servicedetail", "serviceedit"),
}, },
now_service: 0, now_service: 0,
...@@ -1336,15 +1336,15 @@ export default { ...@@ -1336,15 +1336,15 @@ export default {
if (response.data.success) { if (response.data.success) {
this.listTotal = response.data.data.total; this.listTotal = response.data.data.total;
let data = response.data.data.data || []; let data = response.data.data.data || [];
console.log(data)
data.forEach((e) => { data.forEach((e) => {
this.service_use_arr.push({ this.service_use_arr.push({
dydw: e.apply_org_name, dydw: e.apply_org_name,
dyr: e.apply_user_info.user_name, dyr: e.apply_user_info ? e.apply_user_info.user_name : "",
dyyw: e.business_name, dyyw: e.business_name,
ywxt: e.business_url, ywxt: e.business_url,
cjms: e.scene, cjms: e.scene,
sqsj: e.apply_time.split("+")[0].replace("T", " "), sqsj: e.apply_time || "-",
sqgg: e.request_spcs sqgg: e.request_spcs
? `访问次数:${e.request_spcs.count}/日 访问量:${e.request_spcs.pv}/日` ? `访问次数:${e.request_spcs.count}/日 访问量:${e.request_spcs.pv}/日`
: "", : "",
...@@ -1357,12 +1357,11 @@ export default { ...@@ -1357,12 +1357,11 @@ export default {
? "失败" ? "失败"
: "成功" : "成功"
: "", : "",
time: e.last_request_time time: e.last_request_time || "-",
? e.last_request_time.split("+")[0].replace("T", " ")
: "-",
count: e.req_num || "-", count: e.req_num || "-",
}); });
}); });
console.log(this.service_use_arr)
} }
}) })
.catch(function (response) {}); .catch(function (response) {});
...@@ -1482,8 +1481,8 @@ export default { ...@@ -1482,8 +1481,8 @@ export default {
data.urls[0].req_url data.urls[0].req_url
); );
this.$set(this.service_header_arr, "url", data.cover); this.$set(this.service_header_arr, "url", data.cover);
if (this.now_user == 1) { if (this.now_user != 1) {
this.$set(this.service_header_arr, "fixed", false); this.$set(this.service_header_arr, "fixed", true);
} }
this.$set( this.$set(
this.service_header_arr, this.service_header_arr,
......
...@@ -757,7 +757,7 @@ ...@@ -757,7 +757,7 @@
>新增服务地址</el-button >新增服务地址</el-button
> >
<el-button <el-button
v-if="!(indexOne + 1 == liucheng_list.length)" v-if="!(indexOne == liucheng_list.length)"
class="del_one" class="del_one"
@click="delOne(indexOne)" @click="delOne(indexOne)"
>移除</el-button >移除</el-button
...@@ -2126,6 +2126,8 @@ export default { ...@@ -2126,6 +2126,8 @@ export default {
body_fields: [], body_fields: [],
param_fields: [], param_fields: [],
}); });
} else {
this.$message.error(`请完善服务${indexOne + 1}中的信息`);
} }
} else { } else {
this.$message.error("请完善该服务测试"); this.$message.error("请完善该服务测试");
......
...@@ -1169,7 +1169,8 @@ export default { ...@@ -1169,7 +1169,8 @@ export default {
let data = response.data.data; let data = response.data.data;
if(this.now_type==2){ if(this.now_type==2){
this.listTotal = data.total; this.listTotal = data.total;
data.data.forEach(e => { let arr = data.data || [];
arr.forEach(e => {
if(e.DiskList&&e.DiskList.length){ if(e.DiskList&&e.DiskList.length){
e['pan'] = e.DiskList.join(';') e['pan'] = e.DiskList.join(';')
} }
...@@ -1182,9 +1183,10 @@ export default { ...@@ -1182,9 +1183,10 @@ export default {
}); });
this.service_data = data.data this.service_data = arr
}else{ }else{
this.service_data = data.data; let arr = data.data || [];
this.service_data = arr;
this.service_data.forEach(e => { this.service_data.forEach(e => {
if (e.create_time&&e.create_time!=='0001-01-01T00:00:00Z') { if (e.create_time&&e.create_time!=='0001-01-01T00:00:00Z') {
e.create_time = helper.dateStringTransform(e.create_time) e.create_time = helper.dateStringTransform(e.create_time)
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<div class="search_list"> <div class="search_list">
<div class="list_header"> <div class="list_header">
<span></span>容器组 <span></span>容器组
<el-input placeholder="请输入容器组名称" style="float:right;" @change="get_list_pod" v-model="pod_name" prefix-icon="el-icon-search"></el-input> <el-input placeholder="请输入容器组名称" style="float:right;" @input="get_list_pod" v-model="pod_name" prefix-icon="el-icon-search"></el-input>
</div> </div>
<div style="padding:20px;padding-top:0px;display: flex;flex-direction: column;height: calc(100% - 80px);align-items:stretch;"> <div style="padding:20px;padding-top:0px;display: flex;flex-direction: column;height: calc(100% - 80px);align-items:stretch;">
<apass-table :header="header_arr" :data="tableData" :icon="false" style="flex-grow:1;" :paddingLeft="5"></apass-table> <apass-table :header="header_arr" :data="tableData" :icon="false" style="flex-grow:1;" :paddingLeft="5"></apass-table>
......
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