|
|
@ -57,6 +57,12 @@ |
|
|
<span v-if="scope.row.zt === 0">{{ $t('page.business.study.studyMethod.weidu') }}</span> |
|
|
<span v-if="scope.row.zt === 0">{{ $t('page.business.study.studyMethod.weidu') }}</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column :label="$t('page.business.study.studyMethod.sfgb')" prop="status" align="center" width="100"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span v-if="scope.row.status === 1">{{ $t('page.business.study.studyMethod.s') }}</span> |
|
|
|
|
|
<span v-if="scope.row.status === 10">{{ $t('page.business.study.studyMethod.f') }}</span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200"> |
|
|
<el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<!-- 阅读 --> |
|
|
<!-- 阅读 --> |
|
|
@ -65,6 +71,10 @@ |
|
|
<!-- 导出 --> |
|
|
<!-- 导出 --> |
|
|
<el-button type="text" @click="showExport(scope.row)" v-hasPermi="['business:studyMethod:download']">{{ |
|
|
<el-button type="text" @click="showExport(scope.row)" v-hasPermi="['business:studyMethod:download']">{{ |
|
|
$t('page.business.study.studyMethod.daochu') }}</el-button> |
|
|
$t('page.business.study.studyMethod.daochu') }}</el-button> |
|
|
|
|
|
<!-- 关闭 --> |
|
|
|
|
|
<el-button type="text" @click="handleSign(scope.row, 'page.business.study.studyMethod.gb')" |
|
|
|
|
|
v-if="scope.row.userId == id && scope.row.status == 10">{{ |
|
|
|
|
|
$t('page.business.study.studyMethod.gb') }}</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -76,15 +86,18 @@ |
|
|
<!-- 新增 --> |
|
|
<!-- 新增 --> |
|
|
<Xz key="Xz" ref="Xz" @callback="search" /> |
|
|
<Xz key="Xz" ref="Xz" @callback="search" /> |
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
|
<Xq key="Xq" ref="Xq" v-show="showDetail" @close="xqClose" /> |
|
|
|
|
|
|
|
|
<Xq key="Xq" ref="Xq" v-show="showDetail" @close="xqClose" /> |
|
|
|
|
|
<!-- 签名 --> |
|
|
|
|
|
<Sign ref="refSign" @callback="doSign" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { studyMethod_list } from '@/api/business/study/studyMethod' |
|
|
|
|
|
|
|
|
import { studyMethod_list, studyMethod_close } from '@/api/business/study/studyMethod' |
|
|
import Xz from "./syff/Xz"; |
|
|
import Xz from "./syff/Xz"; |
|
|
import Xq from "./syff/Xq"; |
|
|
import Xq from "./syff/Xq"; |
|
|
|
|
|
import Sign from "@/views/business/comps/common/sign"; |
|
|
import { mapGetters } from 'vuex' |
|
|
import { mapGetters } from 'vuex' |
|
|
import moment from "moment"; |
|
|
import moment from "moment"; |
|
|
export default { |
|
|
export default { |
|
|
@ -116,7 +129,7 @@ export default { |
|
|
deep: true |
|
|
deep: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
components: { Xz, Xq }, |
|
|
|
|
|
|
|
|
components: { Xz, Xq, Sign }, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
showDetail: false, |
|
|
showDetail: false, |
|
|
@ -134,6 +147,9 @@ export default { |
|
|
startDate: '', |
|
|
startDate: '', |
|
|
endDate: '' |
|
|
endDate: '' |
|
|
}, |
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
id: null, |
|
|
|
|
|
}, |
|
|
loading: false, |
|
|
loading: false, |
|
|
total: 0, |
|
|
total: 0, |
|
|
list: [], |
|
|
list: [], |
|
|
@ -142,7 +158,20 @@ export default { |
|
|
}, |
|
|
}, |
|
|
created() { }, |
|
|
created() { }, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
handleSign(row, qmyy) { |
|
|
|
|
|
this.form.id = row.id |
|
|
|
|
|
let title = this.$t(qmyy) |
|
|
|
|
|
this.$refs.refSign.show(title, title, false, false, true, false) |
|
|
|
|
|
}, |
|
|
|
|
|
doSign(val) { |
|
|
|
|
|
let params = _.merge({}, this.form, val) |
|
|
|
|
|
this.$modal.loading() |
|
|
|
|
|
studyMethod_close(params).then(res => { |
|
|
|
|
|
this.getList() |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
this.$modal.closeLoading() |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
search() { |
|
|
search() { |
|
|
this.searchForm.pageNum = 1 |
|
|
this.searchForm.pageNum = 1 |
|
|
this.getList() |
|
|
this.getList() |
|
|
@ -170,9 +199,17 @@ export default { |
|
|
this.$refs.Xz.show(this.study); |
|
|
this.$refs.Xz.show(this.study); |
|
|
}, |
|
|
}, |
|
|
detail(row) { |
|
|
detail(row) { |
|
|
this.showDetail = true |
|
|
|
|
|
this.$emit('showDetail', this.showDetail) |
|
|
|
|
|
this.$refs.Xq.show(row) |
|
|
|
|
|
|
|
|
// 已关闭 |
|
|
|
|
|
if (row.status == 1) { |
|
|
|
|
|
this.$modal.confirm('该方法已关闭,无需阅读!').then(() => { |
|
|
|
|
|
|
|
|
|
|
|
}).catch(() => { }); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.showDetail = true |
|
|
|
|
|
this.$emit('showDetail', this.showDetail) |
|
|
|
|
|
this.$refs.Xq.show(row) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
showExport(row) { |
|
|
showExport(row) { |
|
|
this.showDetail = true |
|
|
this.showDetail = true |
|
|
|