Commit 7236696d by Cat

zd 教师电子档案 级部修改

parent 09cab0bf
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
>重置</el-button >重置</el-button
> >
<el-button size="mini" icon="el-icon-refresh" @click="handleMutiSubmit" <el-button size="mini" icon="el-icon-refresh" @click="handleMutiSubmit"
>提交</el-button >确认</el-button
> >
</el-form-item> </el-form-item>
<el-row :gutter="10"> <el-row :gutter="10">
...@@ -173,14 +173,17 @@ ...@@ -173,14 +173,17 @@
<!-- 已发布 --> <!-- 已发布 -->
<div v-if="scope.row.state == '4'"> <div v-if="scope.row.state == '4'">
<el-button size="mini" type="text" @click="handleSubmit(scope.row)" <el-button size="mini" type="text" @click="handleSubmit(scope.row)"
>提交 >确认
</el-button> </el-button>
<el-button size="mini" type="text" @click="handleReject(scope.row)" <el-button size="mini" type="text" @click="handleReject(scope.row)"
>驳回 >驳回
</el-button> </el-button>
<!-- <el-button size="mini" type="text" @click="handleEdit(scope.row)" <el-button size="mini" type="text" @click="handleEdit(scope.row)"
>修改 >修改
</el-button> --> </el-button>
<el-button size="mini" type="text" @click="handleCheck(scope.row)"
>查看
</el-button>
</div> </div>
<!--已提交--> <!--已提交-->
<div v-if="scope.row.state == '1'"> <div v-if="scope.row.state == '1'">
...@@ -778,18 +781,17 @@ export default { ...@@ -778,18 +781,17 @@ export default {
return true; return true;
} }
}, },
//多选提交 //多选确认
handleMutiSubmit(row) { handleMutiSubmit(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal this.$modal
.confirm("是否提交该活动?") .confirm("是否确认该活动?")
.then(function () { .then(function () {
return fileSubApproved(ids); return fileSubApproved(ids);
console.log(row, "提交按钮");
}) })
.then(() => { .then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("任务已提交"); this.$modal.msgSuccess("任务已确认");
}) })
.catch((err) => { .catch((err) => {
console.error(err); console.error(err);
...@@ -905,18 +907,17 @@ export default { ...@@ -905,18 +907,17 @@ export default {
// this.dialogForm = JSON.parse(JSON.stringify(row)); // this.dialogForm = JSON.parse(JSON.stringify(row));
}, },
//提交按钮 //确认按钮
handleSubmit(row) { handleSubmit(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal this.$modal
.confirm("是否提交该活动?") .confirm("是否确认该活动?")
.then(function () { .then(function () {
return fileSubRejected(ids); return fileSubRejected(ids);
console.log(row, "提交按钮");
}) })
.then(() => { .then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("任务已提交"); this.$modal.msgSuccess("任务已确认");
}) })
.catch((err) => { .catch((err) => {
console.error(err); console.error(err);
...@@ -929,7 +930,6 @@ export default { ...@@ -929,7 +930,6 @@ export default {
.confirm("是否提交该活动?") .confirm("是否提交该活动?")
.then(function () { .then(function () {
return fileSubApproved(ids); return fileSubApproved(ids);
console.log(row, "提交按钮");
}) })
.then(() => { .then(() => {
this.getList(); this.getList();
......
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