|
@@ -126,24 +126,42 @@
|
|
<el-input v-model="form.remark" type="textarea" autocomplete="off" rows="5" style="margin: 20px 0;" />
|
|
<el-input v-model="form.remark" type="textarea" autocomplete="off" rows="5" style="margin: 20px 0;" />
|
|
<div>
|
|
<div>
|
|
<el-upload
|
|
<el-upload
|
|
|
|
+ ref="upload"
|
|
class="upload-demo"
|
|
class="upload-demo"
|
|
multiple
|
|
multiple
|
|
- capture
|
|
|
|
accept="image/jpeg, image/png, image/gif, audio/mp4, video/mp4, audio/mpeg, application/vnd.ms-excel"
|
|
accept="image/jpeg, image/png, image/gif, audio/mp4, video/mp4, audio/mpeg, application/vnd.ms-excel"
|
|
- :on-change="handleChange"
|
|
|
|
:file-list="fileList"
|
|
:file-list="fileList"
|
|
action="http://star.xiaojukeji.com/upload/img.node"
|
|
action="http://star.xiaojukeji.com/upload/img.node"
|
|
|
|
+ :on-success="handleChange"
|
|
|
|
+ :auto-upload="false"
|
|
>
|
|
>
|
|
<!-- action="http://page-daily.kuaidadi.com/upload/img.node" 线下 -->
|
|
<!-- action="http://page-daily.kuaidadi.com/upload/img.node" 线下 -->
|
|
<!-- action="http://star.xiaojukeji.com/upload/img.node" 线上 -->
|
|
<!-- action="http://star.xiaojukeji.com/upload/img.node" 线上 -->
|
|
<!-- action="https://jsonplaceholder.typicode.com/posts/" 原始地址-->
|
|
<!-- action="https://jsonplaceholder.typicode.com/posts/" 原始地址-->
|
|
- <el-button size="small">点击上传</el-button>
|
|
|
|
|
|
+ <!-- <el-button size="small">点击上传</el-button> -->
|
|
|
|
+ <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
|
+ <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button>
|
|
</el-upload>
|
|
</el-upload>
|
|
</div>
|
|
</div>
|
|
- <el-form-item class="submit">
|
|
|
|
- <el-button size="mini" type="primary" @click="createFormData(form)">提 交</el-button>
|
|
|
|
- <el-button class="move-button" size="mini" @click="$router.go(-1)">取 消</el-button>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <div class="cla">
|
|
|
|
+ <el-table :data="uptataKey" fit style="width: 100%;">
|
|
|
|
+ <el-table-column label="" min-width="150">
|
|
|
|
+ <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="" min-width="300">
|
|
|
|
+ <template slot-scope="scope"> <a :href="scope.row.url" style="color:blue;">{{ scope.row.url }}</a></template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column fixed="right" label="" width="50" align="center">
|
|
|
|
+ <!-- <template slot-scope="scope"> -->
|
|
|
|
+ <div> x </div>
|
|
|
|
+ <!-- </template> -->
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ <el-form-item class="submit">
|
|
|
|
+ <el-button size="mini" type="primary" @click="createFormData(form)">提 交</el-button>
|
|
|
|
+ <el-button class="move-button" size="mini" @click="$router.go(-1)">取 消</el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<!-- <div style="flex:1">
|
|
<!-- <div style="flex:1">
|
|
<el-form-item v-show="statusShow" label="问题原因和修复方法" :label-width="formLabelWidth"><el-input v-model="form.reasonsAndSolutionForTheProblem" type="textarea" placeholder="问题原因和修复方法" rows="4" style="width:77.2%;" /></el-form-item>
|
|
<el-form-item v-show="statusShow" label="问题原因和修复方法" :label-width="formLabelWidth"><el-input v-model="form.reasonsAndSolutionForTheProblem" type="textarea" placeholder="问题原因和修复方法" rows="4" style="width:77.2%;" /></el-form-item>
|
|
@@ -198,6 +216,8 @@ export default {
|
|
moduleStr: [],
|
|
moduleStr: [],
|
|
stageStr: [],
|
|
stageStr: [],
|
|
fileList: [],
|
|
fileList: [],
|
|
|
|
+ uptataKey: [],
|
|
|
|
+ // uptataKey: [{ name: '智慧平台.png', url: 'http://pt-starimg.didistatic.com/static/starimg/node/qo4sKioLko1571277086594.png' }, { name: '智慧平台.png', url: 'http://pt-starimg.didistatic.com/static/starimg/node/qo4sKioLko1571277086594.png' }],
|
|
serviceTypeEnumList: [],
|
|
serviceTypeEnumList: [],
|
|
clientTypeEnumList: [],
|
|
clientTypeEnumList: [],
|
|
bugLevelStr: [{ name: 'p0', value: 0 }, { name: 'p1', value: 1 }, { name: 'p2', value: 2 }, { name: 'p3', value: 3 }],
|
|
bugLevelStr: [{ name: 'p0', value: 0 }, { name: 'p1', value: 1 }, { name: 'p2', value: 2 }, { name: 'p3', value: 3 }],
|
|
@@ -235,6 +255,9 @@ export default {
|
|
this.taskIdGet()
|
|
this.taskIdGet()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ submitUpload() {
|
|
|
|
+ this.$refs.upload.submit()
|
|
|
|
+ },
|
|
handleChange(file, fileList) {
|
|
handleChange(file, fileList) {
|
|
this.fileList = fileList.slice(-3)
|
|
this.fileList = fileList.slice(-3)
|
|
},
|
|
},
|
|
@@ -271,6 +294,8 @@ export default {
|
|
},
|
|
},
|
|
// 获取任务数据
|
|
// 获取任务数据
|
|
taskIdGet() {
|
|
taskIdGet() {
|
|
|
|
+ this.uptataKey = localStorage.getItem('updata')
|
|
|
|
+
|
|
taskListCreate({ statusList: [5, 6, 7, 8, 9, 10] }).then(res => {
|
|
taskListCreate({ statusList: [5, 6, 7, 8, 9, 10] }).then(res => {
|
|
this.taskIdStr = res.data
|
|
this.taskIdStr = res.data
|
|
})
|
|
})
|
|
@@ -329,6 +354,11 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
+<style>
|
|
|
|
+ .cla .el-table td {
|
|
|
|
+ padding:0px;
|
|
|
|
+ }
|
|
|
|
+</style>
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
<style lang="stylus" scoped>
|
|
.set-background
|
|
.set-background
|