Commit d8d9204b authored by 高滢's avatar 高滢

feat(样品): 隐藏按钮

parent a62a2100
import request from '@/utils/request' import request from '@/utils/request'
//获取任务详情 //获取任务详情
export function taskDetail(data) { export function taskDetail(data) {
return request({ return request({
......
...@@ -115,4 +115,3 @@ ...@@ -115,4 +115,3 @@
top: 20px; top: 20px;
transform: translateX(100%); transform: translateX(100%);
} }
...@@ -490,7 +490,7 @@ ...@@ -490,7 +490,7 @@
.img { .img {
border: 1px solid #ebebeb; border: 1px solid #ebebeb;
width: 100%; width: 100%;
height:348px height: 348px;
} }
} }
} }
......
...@@ -17,25 +17,23 @@ ...@@ -17,25 +17,23 @@
<!-- 上传按钮 --> <!-- 上传按钮 -->
<el-button size="mini" type="primary">选取文件</el-button> <el-button size="mini" type="primary">选取文件</el-button>
<!-- 上传提示 --> <!-- 上传提示 -->
<!-- <div class="el-upload__tip" slot="tip" v-if="showTip">--> <!-- <div class="el-upload__tip" slot="tip" v-if="showTip">-->
<!-- 请上传--> <!-- 请上传-->
<!-- <template v-if="fileSize">--> <!-- <template v-if="fileSize">-->
<!-- 大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b>--> <!-- 大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b>-->
<!-- </template>--> <!-- </template>-->
<!-- <template v-if="fileType">--> <!-- <template v-if="fileType">-->
<!-- 格式为 <b style="color: #f56c6c">{{ fileType.join('/') }}</b>--> <!-- 格式为 <b style="color: #f56c6c">{{ fileType.join('/') }}</b>-->
<!-- </template>--> <!-- </template>-->
<!-- 的文件--> <!-- 的文件-->
<!-- </div>--> <!-- </div>-->
<div class="el-upload__tip" slot="tip" v-if="showTip"> <div class="el-upload__tip" slot="tip" v-if="showTip">
只能上传 只能上传
<template v-if="fileType"> <template v-if="fileType">
{{ fileType.join('/') }} {{ fileType.join('/') }}
</template> </template>
文件, 文件,
<template v-if="fileSize"> <template v-if="fileSize"> 且不得超过{{ fileSize }}MB </template>
且不得超过{{ fileSize }}MB
</template>
</div> </div>
</el-upload> </el-upload>
......
...@@ -22,16 +22,16 @@ ...@@ -22,16 +22,16 @@
</el-upload> </el-upload>
<!-- 上传提示 --> <!-- 上传提示 -->
<!-- <div class="el-upload__tip" slot="tip" v-if="showTip">--> <!-- <div class="el-upload__tip" slot="tip" v-if="showTip">-->
<!-- 请上传--> <!-- 请上传-->
<!-- <template v-if="fileSize">--> <!-- <template v-if="fileSize">-->
<!-- 大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b>--> <!-- 大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b>-->
<!-- </template>--> <!-- </template>-->
<!-- <template v-if="fileType">--> <!-- <template v-if="fileType">-->
<!-- 格式为 <b style="color: #f56c6c">{{ fileType.join('/') }}</b>--> <!-- 格式为 <b style="color: #f56c6c">{{ fileType.join('/') }}</b>-->
<!-- </template>--> <!-- </template>-->
<!-- 的文件--> <!-- 的文件-->
<!-- </div>--> <!-- </div>-->
<div class="el-upload__tip" slot="tip" v-if="showTip"> <div class="el-upload__tip" slot="tip" v-if="showTip">
只能上传 只能上传
...@@ -39,16 +39,10 @@ ...@@ -39,16 +39,10 @@
{{ fileType.join('/') }} {{ fileType.join('/') }}
</template> </template>
文件, 文件,
<template v-if="fileSize"> <template v-if="fileSize"> 且不得超过{{ fileSize }}MB </template>
且不得超过{{ fileSize }}MB
</template>
</div> </div>
<el-dialog <el-dialog :visible.sync="dialogVisible" width="800" append-to-body>
:visible.sync="dialogVisible"
width="800"
append-to-body
>
<img <img
:src="dialogImageUrl" :src="dialogImageUrl"
style="display: block; max-width: 100%; margin: 0 auto" style="display: block; max-width: 100%; margin: 0 auto"
......
...@@ -220,5 +220,4 @@ export default { ...@@ -220,5 +220,4 @@ export default {
border: 1px solid #1764c1; border: 1px solid #1764c1;
color: #1764c1; color: #1764c1;
} }
</style> </style>
...@@ -219,5 +219,4 @@ export default { ...@@ -219,5 +219,4 @@ export default {
border: 1px solid #1764c1; border: 1px solid #1764c1;
color: #1764c1; color: #1764c1;
} }
</style> </style>
...@@ -117,7 +117,7 @@ export default { ...@@ -117,7 +117,7 @@ export default {
list-style-type: none; list-style-type: none;
margin-top: 5px; margin-top: 5px;
padding: 0; padding: 0;
width:100%; width: 100%;
li { li {
margin: 10px 0; margin: 10px 0;
cursor: pointer; cursor: pointer;
......
...@@ -94,7 +94,7 @@ Vue.component('FooterButton', FooterButton) ...@@ -94,7 +94,7 @@ Vue.component('FooterButton', FooterButton)
Vue.use(directive) Vue.use(directive)
Vue.use(plugins) Vue.use(plugins)
Vue.use(VueMeta) Vue.use(VueMeta)
import ModelDataSource from './utils/ModelDataSource'; import ModelDataSource from './utils/ModelDataSource'
Vue.use(ModelDataSource) Vue.use(ModelDataSource)
DictData.install() DictData.install()
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* Model 数据源 * Model 数据源
* 用于 单条记录的增删查改 * 用于 单条记录的增删查改
*/ */
import _ from "lodash" import _ from 'lodash'
import request from "@/utils/request" import request from '@/utils/request'
function ModelDataSource(vm, settings) { function ModelDataSource(vm, settings) {
this.vm = vm this.vm = vm
this.settings = settings this.settings = settings
this.errors = {} this.errors = {}
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
// this.dataKey = settings. // this.dataKey = settings.
// this.defaultAttributes = settings.attributes; // this.defaultAttributes = settings.attributes;
this.init() this.init()
} }
ModelDataSource.prototype = { ModelDataSource.prototype = {
vm: null, vm: null,
settings: null, settings: null,
uuid: 0, uuid: 0,
...@@ -161,16 +161,16 @@ ...@@ -161,16 +161,16 @@
return '' return ''
}) })
} }
} }
/** /**
* Vue Plugin * Vue Plugin
*/ */
ModelDataSource.install = function (Vue) { ModelDataSource.install = function (Vue) {
Vue.prototype.$modelDataSource = function (options) { Vue.prototype.$modelDataSource = function (options) {
console.log(this, options); console.log(this, options)
return new ModelDataSource(this, options) return new ModelDataSource(this, options)
} }
} }
export default ModelDataSource export default ModelDataSource
...@@ -64,10 +64,10 @@ ...@@ -64,10 +64,10 @@
>新建</el-button >新建</el-button
> >
</el-col> </el-col>
<right-toolbar <!-- <right-toolbar-->
:show-search.sync="showSearch" <!-- :show-search.sync="showSearch"-->
@queryTable="getList" <!-- @queryTable="getList"-->
></right-toolbar> <!-- ></right-toolbar>-->
</el-row> </el-row>
<el-table <el-table
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
:before-close="handleClose" :before-close="handleClose"
> >
<el-table <el-table
class="el-table"
v-loading="loading" v-loading="loading"
class="el-table"
style="min-height: 88px; margin: 20px" style="min-height: 88px; margin: 20px"
border border
:scroll-x="'1500px'" :scroll-x="'1500px'"
...@@ -27,12 +27,7 @@ ...@@ -27,12 +27,7 @@
prop="testScenario" prop="testScenario"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="测试类型" align="left" sortable prop="testType">
label="测试类型"
align="left"
sortable
prop="testType"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="用例编号" label="用例编号"
......
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