Commit fd612534 authored by 徐一鸣's avatar 徐一鸣

Merge branch 'dev' of cloud.wodcloud.com:apaas/apaas-v3-ui into dev

parents 40513595 c7b519d6
...@@ -410,6 +410,9 @@ export default { ...@@ -410,6 +410,9 @@ export default {
this.filterLists[3].childDomains = data.organizations this.filterLists[3].childDomains = data.organizations
? data.organizations ? data.organizations
: []; : [];
if (this.urlFilter == "7") {
this.filterLists[1].childDomains = [];
}
setTimeout(() => { setTimeout(() => {
this.judgeHeight(); this.judgeHeight();
}, 0); }, 0);
......
This diff is collapsed.
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<el-col :span="15" class="shopping_cart_options_num"> <el-col :span="15" class="shopping_cart_options_num">
<div class="fyzj"> <div class="fyzj">
<p class="fyzj_p"> <p class="fyzj_p">
<span v-if="getSumCoin > userInfo.account_balance" class="yebz"> <span v-if="getSumCoin > user_info.account_balance" class="yebz">
余额不足,请联系超级管理员进行充值 余额不足,请联系超级管理员进行充值
</span> </span>
费用总计:<span class="fyzj_span"> 费用总计:<span class="fyzj_span">
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
{{ list.length }} 项服务,已选择 {{ list.length }} 项服务,已选择
<span class="dwa_djf">{{ getNum }}</span> <span class="dwa_djf">{{ getNum }}</span>
<span class="ckfymx_qian" <span class="ckfymx_qian"
>账户余额:{{ userInfo.account_balance }} 金币</span >账户余额:{{ user_info.account_balance }} 金币</span
> >
</p> </p>
</div> </div>
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
</el-col> </el-col>
<el-col :span="4" class="shopping_cart_options_cell"> <el-col :span="4" class="shopping_cart_options_cell">
<el-button <el-button
v-if="getNum != 0 && getSumCoin <= userInfo.account_balance" v-if="getNum != 0 && getSumCoin <= user_info.account_balance"
@click="oneClickApplication" @click="oneClickApplication"
class="shopping_cart_options_cell_btn_act" class="shopping_cart_options_cell_btn_act"
>一键申请</el-button >一键申请</el-button
...@@ -101,7 +101,6 @@ ...@@ -101,7 +101,6 @@
<script> <script>
import ShoppingCartList from "@/components/shopping-cart/shopping-cart-list"; import ShoppingCartList from "@/components/shopping-cart/shopping-cart-list";
import { mapState } from "vuex";
export default { export default {
components: { components: {
...@@ -114,9 +113,11 @@ export default { ...@@ -114,9 +113,11 @@ export default {
checkListIn: [], checkListIn: [],
list: [], list: [],
listIn: [], listIn: [],
user_info: {},
}), }),
mounted() { mounted() {
this.getList(); this.getList();
this.getUserCoins();
}, },
computed: { computed: {
getNum() { getNum() {
...@@ -132,9 +133,9 @@ export default { ...@@ -132,9 +133,9 @@ export default {
this.checkList.forEach((item, index) => { this.checkList.forEach((item, index) => {
if (item) { if (item) {
if (this.list[index].service_id != 0) { if (this.list[index].service_id != 0) {
sum += (this.list[index].service.spcs_info.money * this.list[index].duration).toFixed(2); sum += Number((this.list[index].service.spcs_info.money * this.list[index].duration).toFixed(2));
} else { } else {
sum += (this.list[index].application.price * this.list[index].duration).toFixed(2); sum += Number((this.list[index].application.price * this.list[index].duration).toFixed(2));
} }
} }
}); });
...@@ -143,7 +144,6 @@ export default { ...@@ -143,7 +144,6 @@ export default {
getCartState() { getCartState() {
return this.$store.state.cartState; return this.$store.state.cartState;
}, },
...mapState(["userInfo"]),
}, },
watch: { watch: {
getCartState(newVal) { getCartState(newVal) {
...@@ -151,6 +151,13 @@ export default { ...@@ -151,6 +151,13 @@ export default {
}, },
}, },
methods: { methods: {
getUserCoins() {
this.$api.user.getUserCoins().then((response) => {
if (response.data.success == 1) {
this.user_info = response.data.data;
}
});
},
getList() { getList() {
this.$api.serviceShop.getShoppingCart().then((response) => { this.$api.serviceShop.getShoppingCart().then((response) => {
if (response.data.success == "1") { if (response.data.success == "1") {
......
...@@ -179,7 +179,7 @@ export default { ...@@ -179,7 +179,7 @@ export default {
.post( .post(
`/apaas/backmgt/user/recharge`,{ `/apaas/backmgt/user/recharge`,{
"user_id":this.user_info1.user_id, "user_id":this.user_info1.user_id,
     "num":parseInt(this.money_num)      "num":this.money_num+''
} }
).then((res)=>{ ).then((res)=>{
if(res.data.success){ if(res.data.success){
......
...@@ -56,13 +56,13 @@ export default { ...@@ -56,13 +56,13 @@ export default {
this.name = "视频服务"; this.name = "视频服务";
this.urlFilter = "7"; this.urlFilter = "7";
this.url = ""; this.url = "";
this.filterNames = []; this.filterNames = ["", "服务领域", "服务来源组织"];
break; break;
case "perception_service_list": case "perception_service_list":
this.name = "感知服务"; this.name = "感知服务";
this.urlFilter = "10"; this.urlFilter = "10";
this.url = ""; this.url = "/shop/gzfwDetail";
this.filterNames = []; this.filterNames = ["", "服务领域", "服务来源组织"];
break; break;
case "comprehensive_app_list": case "comprehensive_app_list":
this.name = "融合服务"; this.name = "融合服务";
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
> >
<div class="dia_reason"> <div class="dia_reason">
<el-form ref="form1" :model="reason_form" :rules="reason_rules"> <el-form ref="form1" :model="reason_form" :rules="reason_rules">
<el-form-item class="dia_item"> <el-form-item class="dia_item" prop="reason">
<p>删除理由:</p> <p>删除理由:</p>
<el-input <el-input
type="textarea" type="textarea"
...@@ -292,6 +292,7 @@ export default { ...@@ -292,6 +292,7 @@ export default {
this.table_header = []; this.table_header = [];
if (val == "/qa/questions") { if (val == "/qa/questions") {
this.form_data[1].label = "发布人搜索"; this.form_data[1].label = "发布人搜索";
this.form_data[1].placeholder = "请输入发布人名称";
this.form_data[2].label = "发布时间"; this.form_data[2].label = "发布时间";
this.table_header = [ this.table_header = [
{ {
...@@ -355,6 +356,7 @@ export default { ...@@ -355,6 +356,7 @@ export default {
this.getQList(); this.getQList();
} else if (val == "/qa/answers") { } else if (val == "/qa/answers") {
this.form_data[1].label = "回复人搜索"; this.form_data[1].label = "回复人搜索";
this.form_data[1].placeholder = "请输入回复人名称";
this.form_data[2].label = "回复时间"; this.form_data[2].label = "回复时间";
this.table_header = [ this.table_header = [
{ {
......
...@@ -67,9 +67,11 @@ ...@@ -67,9 +67,11 @@
<div v-for="(item, index) in data_list" :key="index" class="qa_cell"> <div v-for="(item, index) in data_list" :key="index" class="qa_cell">
<div class="qa_cell_in"> <div class="qa_cell_in">
<div :class="activeName == 2 ? 'qa_is_del' : 'qa_init'"> <div :class="activeName == 2 ? 'qa_is_del' : 'qa_init'">
<p v-if="activeName == 1" class="cell_answer"> <p
{{ item.answer }} v-if="item.answer != ''"
</p> class="cell_answer"
v-html="item.answer"
></p>
<p <p
@click="gotodeta(item.question_id)" @click="gotodeta(item.question_id)"
:class="activeName == 0 ? 'cell_title' : 'cell_ans_title'" :class="activeName == 0 ? 'cell_title' : 'cell_ans_title'"
...@@ -77,18 +79,14 @@ ...@@ -77,18 +79,14 @@
{{ item.title }} {{ item.title }}
</p> </p>
<p class="cell_cont"> <p class="cell_cont">
{{ {{ item.content.replace(/<[^<>]+>/g, "") }}
item.answer
? item.question_content.replace(/<[^<>]+>/g, "")
: item.content.replace(/<[^<>]+>/g, "")
}}
</p> </p>
<p v-if="activeName == 2" class="cell_other"> <p v-if="activeName == 2" class="cell_other">
<span> <span>
删除时间:{{ helper.dateStringTransform(item.deleted_time) }} 删除时间:{{ helper.dateStringTransform(item.deleted_time) }}
</span> </span>
<span>删除人:{{ item.delete_user }}</span> <span>删除人:{{ item.delete_user }}</span>
<span>删除理由:{{ item.reason }}</span> <span>删除理由:{{ item.delete_reason }}</span>
</p> </p>
<p v-else class="cell_other"> <p v-else class="cell_other">
<span>{{ helper.dateStringTransform(item.created) }}</span> <span>{{ helper.dateStringTransform(item.created) }}</span>
...@@ -324,24 +322,27 @@ export default { ...@@ -324,24 +322,27 @@ export default {
}, },
delQ() { delQ() {
let items = [{ id: this.delItem.id }]; let items = [{ id: this.delItem.id }];
console.log(items); this.diaDelItem = false;
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.$message({ this.$message({
message: "删除成功", message: "删除成功",
type: "success", type: "success",
}); });
this.refreshData();
} }
}); });
}, },
delA() { delA() {
let items = [{ id: this.delItem.id }]; let items = [{ id: this.delItem.id }];
this.diaDelItem = false;
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.$message({ this.$message({
message: "删除成功", message: "删除成功",
type: "success", type: "success",
}); });
this.refreshData();
} }
}); });
}, },
......
...@@ -1004,14 +1004,6 @@ export default { ...@@ -1004,14 +1004,6 @@ export default {
color: "#58617a", color: "#58617a",
url:'/search_engine', url:'/search_engine',
}, },
{
text: "数据采集",
pic: require("@/assets/imgs/home_tool_ic_sscj.png"),
bg: "#fff2e2",
color: "#ea7d19",
url:'https://apaas3.wodcloud.com/sjcj/ui/',
target: 1,
},
], ],
service_arr: [ service_arr: [
["服务列表", "申请服务", "云资源"], ["服务列表", "申请服务", "云资源"],
...@@ -1038,12 +1030,6 @@ export default { ...@@ -1038,12 +1030,6 @@ export default {
role: 2, role: 2,
url: "/authority/organization" url: "/authority/organization"
}, },
{
pic: require("@/assets/imgs/home_tool_ic_shuju.png"),
text: "数据采集管理",
role: 2,
url: "https://apaas3.wodcloud.com/sjcj/ui/#/data_acquisition/file"
},
{ {
pic: require("@/assets/imgs/home_tool_ic_message.png"), pic: require("@/assets/imgs/home_tool_ic_message.png"),
text: "消息与推送管理", text: "消息与推送管理",
......
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