diff --git a/api/app/lib/controllers/data/vehicle.js b/api/app/lib/controllers/data/vehicle.js index 554e4e5a..4ba183a5 100644 --- a/api/app/lib/controllers/data/vehicle.js +++ b/api/app/lib/controllers/data/vehicle.js @@ -26,7 +26,6 @@ async function get(ctx) { } } const vehicleRes = await models.Statistic.findAll(findOption) - console.log('vehicleRes', vehicleRes) ctx.status = 200; ctx.body = { vehicleRes: vehicleRes.filter(item => item.dataValues.name === '标志牌' || item.dataValues.name === '养护责任牌') diff --git a/api/app/lib/models/report.js b/api/app/lib/models/report.js index adb7d806..00a2c074 100644 --- a/api/app/lib/models/report.js +++ b/api/app/lib/models/report.js @@ -163,7 +163,7 @@ module.exports = dc => { handleState: { type: DataTypes.STRING, allowNull: true, - defaultValue: null, + defaultValue: '已处理', comment: null, primaryKey: false, field: "handle_state", diff --git a/scripts/1.3.0/schema/6.update_report.sql b/scripts/1.3.0/schema/6.update_report.sql deleted file mode 100644 index da99eb71..00000000 --- a/scripts/1.3.0/schema/6.update_report.sql +++ /dev/null @@ -1,4 +0,0 @@ -alter table report - add handle_opinions varchar(1024); - -comment on column report.handle_opinions is '处理意见'; \ No newline at end of file diff --git a/scripts/1.3.1/schema/4.update_report.sql b/scripts/1.3.1/schema/4.update_report.sql index eefe3537..51ab0ebc 100644 --- a/scripts/1.3.1/schema/4.update_report.sql +++ b/scripts/1.3.1/schema/4.update_report.sql @@ -1,6 +1,13 @@ ALTER TABLE "public"."report" - ADD COLUMN "handle_advice" varchar(1024); + ADD COLUMN "handle_advice" varchar(1024) + add handle_opinions varchar(1024); COMMENT ON COLUMN "public"."report"."handle_state" IS '待处理 / 已指派 / 已处理 / 不处理'; -COMMENT ON COLUMN "public"."report"."handle_advice" IS '管理员处理意见'; \ No newline at end of file +COMMENT ON COLUMN "public"."report"."handle_advice" IS '管理员处理意见'; + +comment on column report.handle_opinions is '处理意见'; + + + + diff --git a/weapp/src/packages/patrol/index.jsx b/weapp/src/packages/patrol/index.jsx index 1cfbe228..aad264a0 100644 --- a/weapp/src/packages/patrol/index.jsx +++ b/weapp/src/packages/patrol/index.jsx @@ -1443,53 +1443,36 @@ const Index = () => { { isSuperAdmin && (wait === 'wait' || kind === 'handle') && { - handleState === '待处理' ? // 管理员指派 - <> - { - setIsAppoint(e.detail.value === '指派' ? true : false) - }}> - 指派 - 不处理 - - { - isAppoint && <> - - 责任人:{appointUser !== null ? userList[appointUser]?.name : ''} - setAppointUser(Number(e.detail.value))} - > - - - -