mirror of
https://gitee.com/gokins/gokins.git
synced 2024-11-29 17:57:50 +08:00
commit
6ff513fd9b
File diff suppressed because one or more lines are too long
@ -10,7 +10,7 @@
|
||||
"build": "node build/build.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.15.3",
|
||||
"axios": "^0.21.0",
|
||||
"echarts": "^3.3.2",
|
||||
"element-ui": "^2.10.1",
|
||||
"font-awesome": "^4.7.0",
|
||||
|
@ -32,8 +32,14 @@
|
||||
<el-table-column label="描述">
|
||||
<template slot-scope="{row}">
|
||||
<span>{{ row.Desc }}</span>
|
||||
<div><el-tag type="danger" v-if="row.Errs!=''">{{row.Errs}}</el-tag></div>
|
||||
<div><el-tag type="info" v-if="row.Types == 'hook'">hook地址:/hook/trigger/{{row.Id}}</el-tag></div>
|
||||
<div>
|
||||
<el-tag type="danger" v-if="row.Errs!=''">{{ row.Errs }}</el-tag>
|
||||
</div>
|
||||
<div>
|
||||
<el-tag type="info" v-if="row.Types == 'hook'">hook地址:
|
||||
{{host}}hook/trigger/{{ row.Id }}
|
||||
</el-tag>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="Types" label="触发器类型" width="150" :formatter="typesFormatter">
|
||||
@ -85,6 +91,7 @@ export default {
|
||||
limit: 0,
|
||||
listdata: [],
|
||||
sels: [],//列表选中列
|
||||
host: "",
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@ -95,6 +102,11 @@ export default {
|
||||
getList() {
|
||||
this.loading = true;
|
||||
//NProgress.start();
|
||||
// 判断URL后面有没有参数
|
||||
const routerIndex = window.location.href.indexOf('#');
|
||||
const url = window.location.href.slice(0, routerIndex > 0 ? routerIndex : window.location.href.length);
|
||||
console.log("xxx:", url)
|
||||
this.host = url;
|
||||
this.$post('/trigger/list', this.filters).then((res) => {
|
||||
console.log(res);
|
||||
this.loading = false;
|
||||
@ -128,10 +140,14 @@ export default {
|
||||
});
|
||||
}, getTypes(typ) {
|
||||
switch (typ) {
|
||||
case "timer":return "定时器";
|
||||
case "hook":return "hook";
|
||||
case "worked":return "流水线结束";
|
||||
default:return typ;
|
||||
case "timer":
|
||||
return "定时器";
|
||||
case "hook":
|
||||
return "hook";
|
||||
case "worked":
|
||||
return "流水线结束";
|
||||
default:
|
||||
return typ;
|
||||
}
|
||||
},
|
||||
dateFormat: function (row, column) {
|
||||
|
@ -310,12 +310,12 @@ axios-mock-adapter@^1.7.1:
|
||||
fast-deep-equal "^3.1.1"
|
||||
is-buffer "^2.0.3"
|
||||
|
||||
axios@^0.15.3:
|
||||
version "0.15.3"
|
||||
resolved "https://registry.yarnpkg.com/axios/-/axios-0.15.3.tgz#2c9d638b2e191a08ea1d6cc988eadd6ba5bdc053"
|
||||
integrity sha1-LJ1jiy4ZGgjqHWzJiOrda6W9wFM=
|
||||
axios@^0.21.0:
|
||||
version "0.21.0"
|
||||
resolved "https://registry.npm.taobao.org/axios/download/axios-0.21.0.tgz#26df088803a2350dff2c27f96fef99fe49442aca"
|
||||
integrity sha1-Jt8IiAOiNQ3/LCf5b++Z/klEKso=
|
||||
dependencies:
|
||||
follow-redirects "1.0.0"
|
||||
follow-redirects "^1.10.0"
|
||||
|
||||
babel-code-frame@^6.11.0, babel-code-frame@^6.26.0:
|
||||
version "6.26.0"
|
||||
@ -2543,18 +2543,16 @@ flush-write-stream@^1.0.0:
|
||||
inherits "^2.0.3"
|
||||
readable-stream "^2.3.6"
|
||||
|
||||
follow-redirects@1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.0.0.tgz#8e34298cbd2e176f254effec75a1c78cc849fd37"
|
||||
integrity sha1-jjQpjL0uF28lTv/sdaHHjMhJ/Tc=
|
||||
dependencies:
|
||||
debug "^2.2.0"
|
||||
|
||||
follow-redirects@^1.0.0:
|
||||
version "1.13.0"
|
||||
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.0.tgz#b42e8d93a2a7eea5ed88633676d6597bc8e384db"
|
||||
integrity sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA==
|
||||
|
||||
follow-redirects@^1.10.0:
|
||||
version "1.13.1"
|
||||
resolved "https://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.13.1.tgz?cache=0&sync_timestamp=1607916886138&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffollow-redirects%2Fdownload%2Ffollow-redirects-1.13.1.tgz#5f69b813376cee4fd0474a3aba835df04ab763b7"
|
||||
integrity sha1-X2m4Ezds7k/QR0o6uoNd8Eq3Y7c=
|
||||
|
||||
font-awesome@^4.7.0:
|
||||
version "4.7.0"
|
||||
resolved "https://registry.yarnpkg.com/font-awesome/-/font-awesome-4.7.0.tgz#8fa8cf0411a1a31afd07b06d2902bb9fc815a133"
|
||||
|
Loading…
Reference in New Issue
Block a user