|
|
|
@ -1,6 +1,7 @@ |
|
|
|
|
<template> |
|
|
|
|
<div> |
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="mgb20"> |
|
|
|
|
<div> |
|
|
|
|
<div class="flex-center mgb20"> |
|
|
|
|
<p class="hr_tag"></p> |
|
|
|
@ -11,27 +12,37 @@ |
|
|
|
|
<div> |
|
|
|
|
<el-col :span="4"> |
|
|
|
|
<el-form-item label="系统归属"> |
|
|
|
|
<el-select v-model="systemAttribution" clearable placeholder="请选择系统归属" |
|
|
|
|
<el-select v-model="systemAttribution" |
|
|
|
|
clearable |
|
|
|
|
placeholder="请选择系统归属" |
|
|
|
|
@change="initData"> |
|
|
|
|
<el-option v-for="(item,index) in systemBelongList" :key="index" |
|
|
|
|
:label="item.label" :value="item.value"></el-option> |
|
|
|
|
<el-option v-for="(item,index) in systemBelongList" |
|
|
|
|
:key="index" |
|
|
|
|
:label="item.label" |
|
|
|
|
:value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="4"> |
|
|
|
|
<el-form-item label="系统类型"> |
|
|
|
|
<el-select v-model="systemType" clearable placeholder="请选择系统类型" |
|
|
|
|
<el-select v-model="systemType" |
|
|
|
|
clearable |
|
|
|
|
placeholder="请选择系统类型" |
|
|
|
|
@change="initData"> |
|
|
|
|
<el-option v-for="(item,index) in systemTypeList" :key="index" |
|
|
|
|
:label="item.label" :value="item.value"></el-option> |
|
|
|
|
<el-option v-for="(item,index) in systemTypeList" |
|
|
|
|
:key="index" |
|
|
|
|
:label="item.label" |
|
|
|
|
:value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</div> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-input placeholder="请输入系统名称" prefix-icon="el-icon-search" |
|
|
|
|
v-model.trim="systemSearch" clearable></el-input> |
|
|
|
|
<el-input placeholder="请输入系统名称" |
|
|
|
|
prefix-icon="el-icon-search" |
|
|
|
|
v-model.trim="systemSearch" |
|
|
|
|
clearable></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-form> |
|
|
|
@ -39,51 +50,83 @@ |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="card"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="card"> |
|
|
|
|
<div class="flex-center mgb20"> |
|
|
|
|
<p class="hr_tag"></p> |
|
|
|
|
<span>服务列表</span> |
|
|
|
|
</div> |
|
|
|
|
<el-table :data="systemData" class="table" stripe header-align="center"> |
|
|
|
|
<el-table :data="systemData" |
|
|
|
|
class="table" |
|
|
|
|
stripe |
|
|
|
|
header-align="center"> |
|
|
|
|
<!-- <el-table-column type="selection" width="55" align="center"></el-table-column> --> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
<el-table-column type="index" |
|
|
|
|
width="100" |
|
|
|
|
label="序号" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="systemName" label="系统名称" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="type" label="系统类型" align="center"> |
|
|
|
|
<el-table-column prop="systemName" |
|
|
|
|
label="系统名称" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="type" |
|
|
|
|
label="系统类型" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ systemTypeKeys[scope.row.type] }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="supplierName" label="供应商" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="belong" label="系统归属" align="center"> |
|
|
|
|
<el-table-column prop="supplierName" |
|
|
|
|
label="供应商" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="belong" |
|
|
|
|
label="系统归属" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ systemBelongKeys[scope.row.belong] }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="state" label="系统状态" align="center"> |
|
|
|
|
<el-table-column prop="state" |
|
|
|
|
label="系统状态" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ systemStatusKeys[scope.row.state] }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="payamount" label="系统后台" align="center"> |
|
|
|
|
<el-table-column prop="payamount" |
|
|
|
|
label="系统后台" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" @click="toBackstage(scope.row)" v-if="scope.row.systemId !== '11'" v-auth="'/configure:系统后台进入'">进入</el-button> |
|
|
|
|
<el-button type="text" |
|
|
|
|
@click="toBackstage(scope.row)" |
|
|
|
|
v-if="scope.row.systemId !== '11'" |
|
|
|
|
v-auth="'/configure:系统后台进入'">进入</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="payamount" label="项目系统" align="center"> |
|
|
|
|
<el-table-column prop="payamount" |
|
|
|
|
label="项目系统" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" @click="getIntoProject(scope.row)" v-auth="'/configure:项目系统进入'">进入</el-button> |
|
|
|
|
<el-button type="text" |
|
|
|
|
@click="getIntoProject(scope.row)" |
|
|
|
|
v-auth="'/configure:项目系统进入'">进入</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="payamount" label="判分系统" align="center"> |
|
|
|
|
<el-table-column prop="payamount" |
|
|
|
|
label="判分系统" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" @click="getIntoJudgement(scope.row)" v-auth="'/configure:判分系统进入'">进入</el-button> |
|
|
|
|
<el-button type="text" |
|
|
|
|
@click="getIntoJudgement(scope.row)" |
|
|
|
|
v-auth="'/configure:判分系统进入'">进入</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<div class="pagination"> |
|
|
|
|
<el-pagination background @current-change="handleCurrentChange" |
|
|
|
|
layout="total, prev, pager, next" :total="totals"> |
|
|
|
|
<el-pagination background |
|
|
|
|
@current-change="handleCurrentChange" |
|
|
|
|
layout="total, prev, pager, next" |
|
|
|
|
:total="totals"> |
|
|
|
|
</el-pagination> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
@ -92,8 +135,9 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import Setting from "@/setting"; |
|
|
|
|
import Cookie from 'js-cookie' |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
userId: this.$store.state.userLoginId, |
|
|
|
|
token: btoa(sessionStorage.getItem('token')), |
|
|
|
@ -140,22 +184,22 @@ export default { |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
systemSearch: function(val) { |
|
|
|
|
systemSearch: function (val) { |
|
|
|
|
clearTimeout(this.searchTimer); |
|
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
|
this.initData(); |
|
|
|
|
}, 500); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
mounted () { |
|
|
|
|
this.getData(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
initData() { |
|
|
|
|
initData () { |
|
|
|
|
this.pageNum = 1; |
|
|
|
|
this.getData(); |
|
|
|
|
}, |
|
|
|
|
getData() { |
|
|
|
|
getData () { |
|
|
|
|
const sid = this.$store.state.dataPer.find(e => e.permissionName === '服务配置') |
|
|
|
|
let data = { |
|
|
|
|
belong: this.systemAttribution, |
|
|
|
@ -171,27 +215,31 @@ export default { |
|
|
|
|
}).catch(res => { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
handleCurrentChange(val) { |
|
|
|
|
handleCurrentChange (val) { |
|
|
|
|
this.pageNo = val; |
|
|
|
|
this.$router.push(`configure?page=${val}`) |
|
|
|
|
this.getData(); |
|
|
|
|
}, |
|
|
|
|
edit(row) { |
|
|
|
|
edit (row) { |
|
|
|
|
this.$store.commit("configData", { config_id: row.systemId }); |
|
|
|
|
this.$router.push("/addconfigure"); |
|
|
|
|
}, |
|
|
|
|
// 进入系统后台 |
|
|
|
|
toBackstage(row) { |
|
|
|
|
toBackstage (row) { |
|
|
|
|
if (row.systemId == 19) { |
|
|
|
|
location.href = `${Setting.sandPath}/#/config?token=${sessionStorage.getItem('token')}&referrer=${encodeURIComponent(location.href)}` |
|
|
|
|
} else { |
|
|
|
|
this.$router.push(`/backstage?systemId=${row.systemId}&show=1&name=${row.systemName}`) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
getIntoProject(row) { |
|
|
|
|
getIntoProject (row) { |
|
|
|
|
this.$router.push(`/projectList?systemId=${row.systemId}&show=1&name=${row.systemName}`) |
|
|
|
|
}, |
|
|
|
|
getIntoJudgement(row) { |
|
|
|
|
getIntoJudgement (row) { |
|
|
|
|
// console.log(`${Setting.jumpPath}#/?systemId=${row.systemId}&token=${this.token}&referrer=${btoa(location.href)}`); |
|
|
|
|
location.href = `${Setting.jumpPath}#/?systemId=${row.systemId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
|
}, |
|
|
|
|
setCookie(name, value) { |
|
|
|
|
setCookie (name, value) { |
|
|
|
|
if (value) { |
|
|
|
|
var days = 1;//定义一天 |
|
|
|
|
var exp = new Date(); |
|
|
|
|