Commit b8f87242 authored by jiaxu.yan's avatar jiaxu.yan

Merge branch 'developer/yanjiaxu' into develop

parents b38c909d 4d86661f
...@@ -109,8 +109,9 @@ export default { ...@@ -109,8 +109,9 @@ export default {
this.currentValue = val === null ? '' : val this.currentValue = val === null ? '' : val
if (this.Quill) { if (this.Quill) {
this.Quill.pasteHTML(this.currentValue) this.Quill.pasteHTML(this.currentValue)
console.log(this.Quill); this.$nextTick(() => {
setTimeout(() => this.Quill.setSelection(this.Quill.getLength(), 0), 0) this.Quill.setSelection(this.currentValue.length, 0)
})
} }
} }
}, },
...@@ -119,6 +120,9 @@ export default { ...@@ -119,6 +120,9 @@ export default {
}, },
mounted() { mounted() {
this.init() this.init()
this.$nextTick(() => {
this.Quill.setSelection(this.currentValue.length, 0)
})
}, },
beforeDestroy() { beforeDestroy() {
this.Quill = null this.Quill = null
...@@ -188,7 +192,7 @@ export default { ...@@ -188,7 +192,7 @@ export default {
length, length,
'image', 'image',
// process.env.VUE_APP_BASE_API + res.fileName // process.env.VUE_APP_BASE_API + res.fileName
process.env.VUE_APP_IMAGE_API+ res.url process.env.VUE_APP_IMAGE_API + res.url
) )
// 调整光标到最后 // 调整光标到最后
quill.setSelection(length + 1) quill.setSelection(length + 1)
......
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
number: 0, number: 0,
uploadList: [], uploadList: [],
baseUrl: process.env.VUE_APP_BASE_API, baseUrl: process.env.VUE_APP_BASE_API,
uploadFileUrl: process.env.VUE_APP_BASE_API + '/common/upload', // 上传文件服务器地址 uploadFileUrl: process.env.VUE_APP_BASE_API + '/common/uploadMinio', // 上传文件服务器地址
headers: { headers: {
Authorization: 'Bearer ' + getToken() Authorization: 'Bearer ' + getToken()
}, },
......
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
> >
<span v-if="item.testStatus !== 'NEW'" <span v-if="item.testStatus !== 'NEW'"
>{{ item.testStatus !== 'FINISH' ? '(共耗时' : '(已耗时' >{{ item.testStatus !== 'FINISH' ? '(共耗时' : '(已耗时'
}}{{ getHourDiff(item.taskBeginTime) }})</span }}{{ getHourDiff(item.testBeginTime) }})</span
> >
</div> </div>
</div> </div>
...@@ -335,7 +335,7 @@ ...@@ -335,7 +335,7 @@
<el-progress <el-progress
class="cell-progress" class="cell-progress"
:stroke-width="12" :stroke-width="12"
:percentage="item.carTest" :percentage="item.test"
></el-progress> ></el-progress>
</div> </div>
</div> </div>
......
...@@ -67,18 +67,7 @@ ...@@ -67,18 +67,7 @@
>新增</el-button >新增</el-button
> >
</el-col> </el-col>
<!-- <el-col :span="1.5"> <!-- common/upload -->
<el-button
v-hasPermi="['system:notice:edit']"
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
>修改</el-button
>
</el-col> -->
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
v-hasPermi="['system:notice:remove']" v-hasPermi="['system:notice:remove']"
......
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
> >
<span v-if="item.testStatus !== 'NEW'" <span v-if="item.testStatus !== 'NEW'"
>{{ item.testStatus !== 'FINISH' ? '(共耗时' : '(已耗时' >{{ item.testStatus !== 'FINISH' ? '(共耗时' : '(已耗时'
}}{{ getHourDiff(item.taskBeginTime) }})</span }}{{ getHourDiff(item.testBeginTime) }})</span
> >
</div> </div>
</div> </div>
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
<el-progress <el-progress
class="cell-progress" class="cell-progress"
:stroke-width="12" :stroke-width="12"
:percentage="item.carTest" :percentage="item.test"
></el-progress> ></el-progress>
</div> </div>
</div> </div>
......
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