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