|
|
@@ -53,7 +53,7 @@
|
|
|
<el-form-item label="履职周期" prop="executeCycle">
|
|
|
<el-select
|
|
|
v-model="queryParams.executeCycle"
|
|
|
- placeHolder="请选择履职周期"
|
|
|
+ placeHolder="请选择履职周期"
|
|
|
@change="changeType($event)"
|
|
|
>
|
|
|
<el-option
|
|
|
@@ -262,17 +262,17 @@
|
|
|
</el-form>
|
|
|
<!-- 按纽 -->
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
- <el-col :span="1.5">
|
|
|
+ <!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
plain
|
|
|
icon="el-icon-download"
|
|
|
size="mini"
|
|
|
@click="exportExcel()"
|
|
|
- v-hasPermi="['system:user:add']"
|
|
|
+ v-hasPermi="['resumption:taskManager:export']"
|
|
|
>导出</el-button
|
|
|
>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
|
|
|
<right-toolbar
|
|
|
:showSearch.sync="showSearch"
|
|
|
@@ -383,12 +383,14 @@
|
|
|
type="text"
|
|
|
@click="showDetail(r.row)"
|
|
|
v-show="r.row.status == 2 || r.row.status == 3"
|
|
|
+ v-hasPermi="['resumption:taskManager:query']"
|
|
|
>查看</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
@click="showscanRecord(r.row)"
|
|
|
v-show="r.row.status == 2 || r.row.status == 3"
|
|
|
+ v-hasPermi="['resumption:taskManager:query']"
|
|
|
>扫描记录</el-button
|
|
|
>
|
|
|
</template>
|
|
|
@@ -418,7 +420,7 @@ import DataRangePicker from "@/components/dateTime/daterange.picker.vue";
|
|
|
import OrgTree from "@/components/orgTree";
|
|
|
import * as api from "@/api/resumption/taskManger.js";
|
|
|
import { getLabel } from "@/views/commonOption.js";
|
|
|
-import dayjs from 'dayjs';
|
|
|
+import dayjs from "dayjs";
|
|
|
|
|
|
export default {
|
|
|
name: "overviewDetialList",
|
|
|
@@ -645,7 +647,7 @@ export default {
|
|
|
|
|
|
async exportExcel() {
|
|
|
if (!this.isTableHaveData) {
|
|
|
- Message.error({
|
|
|
+ this.$message.error({
|
|
|
message: `暂无可用数据导出!`,
|
|
|
type: "error",
|
|
|
duration: 2000,
|
|
|
@@ -683,7 +685,7 @@ export default {
|
|
|
},
|
|
|
resetQuery() {
|
|
|
this.resetForm("queryParams");
|
|
|
- this.queryParams.executeCycle="2";
|
|
|
+ this.queryParams.executeCycle = "2";
|
|
|
this.changeType("2");
|
|
|
// this.queryParams.orgId = undefined;
|
|
|
// this.queryParams.checkSub = false;
|
|
|
@@ -694,13 +696,13 @@ export default {
|
|
|
this.loading = true;
|
|
|
api
|
|
|
.page(this.queryParams)
|
|
|
- .then((r) => {
|
|
|
- r.rows.forEach(i=>{
|
|
|
- if(i.status==1 && dayjs(i.planEndTime).isBefore(new Date())){
|
|
|
- i.status=4;
|
|
|
+ .then((r) => {
|
|
|
+ r.rows.forEach((i) => {
|
|
|
+ if (i.status == 1 && dayjs(i.planEndTime).isBefore(new Date())) {
|
|
|
+ i.status = 4;
|
|
|
}
|
|
|
- })
|
|
|
-
|
|
|
+ });
|
|
|
+ this.isTableHaveData = r.rows.length > 0;
|
|
|
this.pageData = r.rows;
|
|
|
this.total = r.total;
|
|
|
this.loading = false;
|