文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit eb8b2bfd by Wang Yuhang

修改确认框样式

parent 4fd4a2af
...@@ -5,7 +5,11 @@ ...@@ -5,7 +5,11 @@
<p>发布者:{{task.creater}}</p> <p>发布者:{{task.creater}}</p>
<p>发布时间:{{task.date}}</p> <p>发布时间:{{task.date}}</p>
<el-divider></el-divider> <el-divider></el-divider>
<pieces-table :task-id="task.id" :mode="2"></pieces-table> <pieces-table :task-id="task.id">
<template v-slot:option='slotProps'>
<el-button type="primary" size="mini" plain @click='doOption(slotProps.file)'>详情</el-button>
</template>
</pieces-table>
</div> </div>
</div> </div>
</template> </template>
...@@ -27,7 +31,8 @@ export default { ...@@ -27,7 +31,8 @@ export default {
this.task = JSON.parse(decodeURIComponent(this.$route.params.task)) this.task = JSON.parse(decodeURIComponent(this.$route.params.task))
}, },
methods: { methods: {
start () { doOption (file) {
console.log(file)
this.$router.push('/selected') this.$router.push('/selected')
} }
} }
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</div> </div>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-button v-if="mode == 0" type="primary" style="margin-top:20px" @click="complete">完成选择</el-button> <el-button v-if="showSelection" type="primary" style="margin-top:20px" @click="complete">完成选择</el-button>
</div> </div>
</template> </template>
...@@ -65,7 +65,11 @@ export default { ...@@ -65,7 +65,11 @@ export default {
}, },
complete () { complete () {
if (this.multipleSelection.length === 0) { if (this.multipleSelection.length === 0) {
alert('请选择分片') // 提示未选择分片
this.$alert('请选择分片', '提示', {
confirmButtonText: '确定',
type: 'warning'
})
} else { } else {
this.$router.push('/ongoing') this.$router.push('/ongoing')
} }
......
...@@ -62,7 +62,6 @@ ...@@ -62,7 +62,6 @@
</el-row> </el-row>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="图像分片" name="second"> <el-tab-pane label="图像分片" name="second">
<el-row :gutter="20" style="margin-bottom: 15px"> <el-row :gutter="20" style="margin-bottom: 15px">
<el-col span="2"><el-button @click="addDomain(2)" type="primary" plain>添加图像分片</el-button></el-col> <el-col span="2"><el-button @click="addDomain(2)" type="primary" plain>添加图像分片</el-button></el-col>
...@@ -210,20 +209,19 @@ ...@@ -210,20 +209,19 @@
</div> </div>
</template> </template>
<script> <script>
//export default { // export default {
// } // }
export default { export default {
methods: { methods: {
handleRemove(file, fileList) { handleRemove (file, fileList) {
console.log(file, fileList); console.log(file, fileList)
}, },
handlePreview(file) { handlePreview (file) {
console.log(file); console.log(file)
}
}
} }
}
}
</script> </script>
<style scope lang="scss"> <style scope lang="scss">
...@@ -390,7 +388,11 @@ ...@@ -390,7 +388,11 @@
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
alert('submit!'); // 提示
this.$alert('submit', '提示', {
confirmButtonText: '确定',
type: 'succes'
})
} else { } else {
console.log('error submit!!'); console.log('error submit!!');
return false; return false;
...@@ -491,8 +493,3 @@ ...@@ -491,8 +493,3 @@
} }
</script> </script>
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