summaryrefslogtreecommitdiffstats
path: root/testing-scheduler/ui/src/components/env_component/api_param.vue
diff options
context:
space:
mode:
authorYang (Gabriel) Yu <Gabriel.yuyang@huawei.com>2018-09-04 21:02:27 +0800
committerYang (Gabriel) Yu <Gabriel.yuyang@huawei.com>2018-09-06 14:58:45 +0800
commite32043f58a2450b6a5986dc2a01f64f8b22c3992 (patch)
tree650f6ce0381e53c3ca935025e9121f06725efd5d /testing-scheduler/ui/src/components/env_component/api_param.vue
parenta09bbea983aca3e437e254566da98196177748d9 (diff)
Change naming and veriy test-scheduler function
Changes: 1. Testing-scheduler -> Test-scheduler 2. lots of windows breaks '\r' and '^M' in files, batch changes to unix breaks '$' 3. Add ui/build Change-Id: I1f2c98ab9348460d4e68bfbfab664dae82b761ba Signed-off-by: Yang (Gabriel) Yu <Gabriel.yuyang@huawei.com>
Diffstat (limited to 'testing-scheduler/ui/src/components/env_component/api_param.vue')
-rw-r--r--testing-scheduler/ui/src/components/env_component/api_param.vue63
1 files changed, 0 insertions, 63 deletions
diff --git a/testing-scheduler/ui/src/components/env_component/api_param.vue b/testing-scheduler/ui/src/components/env_component/api_param.vue
deleted file mode 100644
index 300b6a48..00000000
--- a/testing-scheduler/ui/src/components/env_component/api_param.vue
+++ /dev/null
@@ -1,63 +0,0 @@
-<template>
- <div class="row">
- <div class="form-group">
- <label class="col-lg-3 control-label">Params</label>
- <div class="col-lg-2">
- <button type="button" class="btn btn-primary btn-sm" v-on:click="addNewParam()">New</button>
- </div>
- </div>
- <div class="form-group">
- <div class="col-lg-offset-2 col-lg-8">
- <div class="table-responsive">
- <table class="table table-bordered text-center">
- <thead>
- <tr>
- <th>name</th>
- <th class="text-center">description</th>
- <th class="text-center">operation</th>
- </tr>
- </thead>
- <tbody>
- <tr v-for="param in params">
- <td><input type="text" class="form-control text-center" style="border: 0px" v-model="param['name']"></td>
- <td><input type="text" class="form-control text-center" style="border: 0px" v-bind:title="param['description']" v-model="param['description']"></td>
- <td>
- <button type="button" class="btn btn-white" v-on:click="deleteParam(param['name'])">
- <i class="fa fa-trash"></i>
- </button>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
-</template>
-<script>
-export default {
- props: ["params"],
- data: function() {
- return {
- paramArr: this.params
- }
- },
- watch: {
- paramArr: function(){
- this.$emit("params", this.paramArr);
- }
- },
- methods: {
- addNewParam: function() {
- this.params.push({'name': '', 'description': ''});
- },
- deleteParam: function(paramName) {
- for(var i = 0;i < this.params.length; i++) {
- if(paramName == this.params[i]['name']) {
- this.params.splice(i, 1);
- }
- }
- }
- }
-}
-</script> \ No newline at end of file