From c192d0bda1c59a3c68861b373c9d0cd91234f57b Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 30 四月 2024 17:02:54 +0800
Subject: [PATCH] 调整包位置
---
src/views/system/contract/score/index.vue | 0
src/views/system/check/result/detail/detail.vue | 0
src/views/system/work-order/threshold/index.vue | 2
src/views/system/check/rule/index.vue | 0
src/views/system/data-manage/equipment/index.vue | 0
src/views/system/point/region/index.vue | 0
src/views/system/monitor/face/index.vue | 0
src/views/system/data-manage/vehicle-data-monitor/index.vue | 0
src/views/system/monitor/car/index.vue | 0
src/views/system/check/result/detail/index.vue | 2
src/router/index.js | 42 ----
src/views/system/check/template/index.vue | 2
src/views/system/monitor/platform/index.vue | 0
/dev/null | 454 --------------------------------------------------
src/views/system/monitor/recovery/index.vue | 0
src/views/system/contract/contract-result/index.vue | 0
src/views/system/monitor/video/index.vue | 0
src/views/system/check/result/index.vue | 2
src/views/system/contract/contract/index.vue | 8
src/views/system/contract/report/index.vue | 0
20 files changed, 8 insertions(+), 504 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index a50e06d..eeb0275 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -47,48 +47,6 @@
hidden: true
},
{
- path: '/car/vehicle-data-monitor',
- component: Layout,
- hidden: true,
- children: [
- {
- path: 'index',
- name: 'vehicle-data-monitor',
- component: () => import('@/views/system/vehicle-data-monitor/index'),
- meta: { title: '杞﹁締杩囧崱鍙f暟鎹竴鑷存��', activeMenu: '/system/vehicle-data-monitor' }
- }
- ]
- },
- {
- path: '/car/equipment',
- component: Layout,
- hidden: true,
- children: [
- {
- path: 'index',
- name: 'equipment',
- component: () => import('@/views/system/equipment/index'),
- meta: { title: '璧勪骇绠$悊', activeMenu: '/system/equipment' }
- }
- ]
- },
- {
- path: '/check-result/city',
- component: Layout,
- hidden: true,
- children: [
-
- ]
- },
- {
- path: '/check-result/province',
- component: Layout,
- hidden: true,
- children: [
-
- ]
- },
- {
path: '/register',
component: () => import('@/views/register'),
hidden: true
diff --git a/src/views/system/calculate/duty/index.vue b/src/views/system/calculate/duty/index.vue
deleted file mode 100644
index 6c7a22e..0000000
--- a/src/views/system/calculate/duty/index.vue
+++ /dev/null
@@ -1,263 +0,0 @@
-<template>
- <div class="app-container">
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
- <el-form-item label="杩濈害鍚�" prop="examineId">
- <el-input v-model="queryParams.examineId" placeholder="璇疯緭鍏ヨ繚绾﹀悕" clearable @keyup.enter.native="handleQuery" />
- </el-form-item>
- <el-form-item>
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
- </el-form-item>
- </el-form>
-
- <el-row :gutter="10" class="mb8">
- <el-col :span="1.5">
- <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">鏂板</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single"
- @click="handleUpdate">淇敼</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple"
- @click="handleDelete">鍒犻櫎</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport">瀵煎嚭</el-button>
- </el-col>
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
- </el-row>
-
- <el-table v-loading="loading" :data="scoreList" @selection-change="handleSelectionChange">
- <el-table-column type="selection" width="55" align="center" />
- <el-table-column label="杩愮淮鑰冩牳鍚�" align="center" prop="examineName" />
- <el-table-column label="鑰冩牳瀵硅薄" align="center" prop="unitName" />
- <el-table-column label="鍒嗗��" align="center" prop="score" />
- <el-table-column label="杩愮淮鑰冩牳瑙勫垯" align="center" prop="scoreCategory">
- <template slot-scope="scope">
- <div v-if="scope.row.scoreCategory === 1">瑙嗛鍦ㄧ嚎鐜�</div>
- <div v-else-if="scope.row.scoreCategory === 2">瀛樺偍鏁呴殰</div>
- <div v-else-if="scope.row.scoreCategory === 4">涓�鏈轰竴妗�24灏忔椂鏈慨澶�</div>
- <div v-else-if="scope.row.scoreCategory === 5">鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�</div>
- </template>
- </el-table-column>
- <el-table-column label="鍒涘缓浜�" align="center" prop="createBy" />
- <el-table-column label="鍒涘缓鏃堕棿" align="center" prop="createTime" />
- <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">淇敼</el-button>
- <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">鍒犻櫎</el-button>
- </template>
- </el-table-column>
- </el-table>
-
- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
- @pagination="getList" />
-
- <!-- 娣诲姞鎴栦慨鏀硅繚绾﹁鍒嗗璇濇 -->
- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
- <el-form ref="form" :model="form" :rules="rules" label-width="80px">
- <el-form-item label="鍒嗗��" prop="score">
- <el-input v-model="form.score" placeholder="璇疯緭鍏ュ垎鍊�" />
- </el-form-item>
- <el-form-item label="鍗曚綅鍚�" prop="unitId">
- <el-select v-model="form.unitId" placeholder="璇烽�夋嫨">
- <el-option v-for="item in unitList" :key="item.id" :label="item.value" :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="杩愮淮鑰冩牳鍚�" prop="examineId">
- <el-select v-model="form.examineId" placeholder="璇烽�夋嫨">
- <el-option v-for="item in examineList" :key="item.id" :label="item.value" :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="绉垎绫诲瀷" prop="scoreCategory">
- <el-select v-model="form.scoreCategory" placeholder="璇烽�夋嫨">
- <el-option v-for="item in scoreCategoryList" :key="item.id" :label="item.value" :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
- <el-button @click="cancel">鍙� 娑�</el-button>
- </div>
- </el-dialog>
- </div>
-</template>
-
-<script>
-import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/contract-score";
-import { unitSelect } from "@/api/platform/unit";
-import { publishSelect } from "@/api/platform/contract-publish";
-
-export default {
- name: "Score",
- dicts: ['platform_operate_category'],
- data() {
- return {
- operateCategoryList: [
- { id: 2, value: '浜哄伐鎵撳垎' },
- { id: 1, value: '绯荤粺鎵撳垎' },
- ],
- scoreCategoryList: [
- { id: 2, value: '瀛樺偍鏁呴殰' },
- { id: 1, value: '瑙嗛鍦ㄧ嚎鐜�' },
- { id: 3, value: '淇濋殰宸ヤ綔' },
- ],
-
- unitList: [],
- examineList: [],
- // 閬僵灞�
- loading: true,
- // 閫変腑鏁扮粍
- ids: [],
- // 闈炲崟涓鐢�
- single: true,
- // 闈炲涓鐢�
- multiple: true,
- // 鏄剧ず鎼滅储鏉′欢
- showSearch: true,
- // 鎬绘潯鏁�
- total: 0,
- // 杩濈害璁″垎琛ㄦ牸鏁版嵁
- scoreList: [],
- // 寮瑰嚭灞傛爣棰�
- title: "",
- // 鏄惁鏄剧ず寮瑰嚭灞�
- open: false,
- // 鏌ヨ鍙傛暟
- queryParams: {
- pageNum: 1,
- pageSize: 10,
- score: null,
- unitId: 2,
- examineId: null,
- operateCategory: null,
- scoreCategory: null,
- },
- // 琛ㄥ崟鍙傛暟
- form: {},
- // 琛ㄥ崟鏍¢獙
- rules: {
- }
- };
- },
- created() {
- this.getList();
- this.selectUnit();
- this.selectExamine();
- },
- methods: {
- // 杩愮淮鍏徃涓嬫媺鏁版嵁
- selectUnit() {
- unitSelect().then(res => {
- this.unitList = res.data;
- })
- },
- // 杩濈害涓嬫媺鏁版嵁
- selectExamine() {
- publishSelect().then(res => {
- this.examineList = res.data;
- })
- },
- /** 鏌ヨ杩濈害璁″垎鍒楄〃 */
- getList() {
- this.loading = true;
- listScore(this.queryParams).then(response => {
- this.scoreList = response.rows;
- this.total = response.total;
- this.loading = false;
- });
- },
- // 鍙栨秷鎸夐挳
- cancel() {
- this.open = false;
- this.reset();
- },
- // 琛ㄥ崟閲嶇疆
- reset() {
- this.form = {
- id: null,
- score: null,
- unitId: null,
- examineId: null,
- operateCategory: null,
- scoreCategory: null,
- createTime: null,
- createBy: null
- };
- this.resetForm("form");
- },
- /** 鎼滅储鎸夐挳鎿嶄綔 */
- handleQuery() {
- this.queryParams.pageNum = 1;
- this.getList();
- },
- /** 閲嶇疆鎸夐挳鎿嶄綔 */
- resetQuery() {
- this.resetForm("queryForm");
- this.handleQuery();
- },
- // 澶氶�夋閫変腑鏁版嵁
- handleSelectionChange(selection) {
- this.ids = selection.map(item => item.id)
- this.single = selection.length !== 1
- this.multiple = !selection.length
- },
- /** 鏂板鎸夐挳鎿嶄綔 */
- handleAdd() {
- this.reset();
- this.open = true;
- this.title = "娣诲姞杩濈害璁″垎";
- },
- /** 淇敼鎸夐挳鎿嶄綔 */
- handleUpdate(row) {
- this.reset();
- const id = row.id || this.ids
- getScore(id).then(response => {
- this.form = response.data;
- this.open = true;
- this.title = "淇敼杩濈害璁″垎";
- });
- },
- /** 鎻愪氦鎸夐挳 */
- submitForm() {
- this.$refs["form"].validate(valid => {
- if (valid) {
- if (this.form.id != null) {
- updateScore(this.form).then(response => {
- this.$modal.msgSuccess("淇敼鎴愬姛");
- this.open = false;
- this.getList();
- });
- } else {
- addScore(this.form).then(response => {
- this.$modal.msgSuccess("鏂板鎴愬姛");
- this.open = false;
- this.getList();
- });
- }
- }
- });
- },
- /** 鍒犻櫎鎸夐挳鎿嶄綔 */
- handleDelete(row) {
- const ids = row.id || this.ids;
- this.$modal.confirm('鏄惁纭鍒犻櫎杩濈害璁″垎缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function () {
- return delScore(ids);
- }).then(() => {
- this.getList();
- this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
- }).catch(() => { });
- },
- /** 瀵煎嚭鎸夐挳鎿嶄綔 */
- handleExport() {
- this.download('platform/score/export', {
- ...this.queryParams
- }, `score_${new Date().getTime()}.xlsx`)
- }
- }
-};
-</script>
diff --git a/src/views/system/calculate/record/index.vue b/src/views/system/calculate/record/index.vue
deleted file mode 100644
index a48404b..0000000
--- a/src/views/system/calculate/record/index.vue
+++ /dev/null
@@ -1,315 +0,0 @@
-<template>
- <div class="app-container">
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
- <el-form-item label="鍗曚綅鍚�" prop="checkUnitId">
- <el-select v-model="form.unitId" placeholder="璇烽�夋嫨">
- <el-option
- v-for="item in unitList"
- :key="item.id"
- :label="item.value"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="鏍哥畻鏃ユ湡" prop="date" >
- <el-date-picker clearable
- v-model="queryParams.date"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="璇烽�夋嫨鏍哥畻鏃ユ湡">
- </el-date-picker>
- </el-form-item>
- <el-form-item>
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
- </el-form-item>
- </el-form>
-
- <el-row :gutter="10" class="mb8">
- <el-col :span="1.5">
- <el-button
- type="primary"
- plain
- icon="el-icon-plus"
- size="mini"
- @click="handleAdd"
- v-hasPermi="['system:record:add']"
- >鏂板</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="success"
- plain
- icon="el-icon-edit"
- size="mini"
- :disabled="single"
- @click="handleUpdate"
- >淇敼</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="danger"
- plain
- icon="el-icon-delete"
- size="mini"
- :disabled="multiple"
- @click="handleDelete"
- >鍒犻櫎</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="warning"
- plain
- icon="el-icon-download"
- size="mini"
- @click="handleExport"
- >瀵煎嚭</el-button>
- </el-col>
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
- </el-row>
-
- <el-table v-loading="loading" :data="recordList" @selection-change="handleSelectionChange">
- <el-table-column type="selection" width="55" align="center" />
- <el-table-column label="鏍哥畻璁板綍鏃ユ湡" align="center" prop="date" width="180">
- <template slot-scope="scope">
- <span>{{ parseTime(scope.row.date, '{y}-{m}-{d}') }}</span>
- </template>
- </el-table-column>
- <el-table-column label="鏍哥畻瑙勫垯" align="center" prop="ruleId">
- <template slot-scope="scope">
- <div v-if="scope.row.ruleId == 1">鎴愰兘x杩愮淮鑰冩牳缁撴灉搴旂敤瑙勫垯</div>
- </template>
- </el-table-column>
- <el-table-column label="鍗曚綅鍚�" align="center" prop="unitId" >
- <template slot-scope="scope">
- <div v-if="scope.row.unitId == 2">鎴愰兘x杩愮淮</div>
- </template>
- </el-table-column>
- <!-- <el-table-column label="鎬绘湇鍔¤垂" align="center" prop="totalAmount" /> -->
- <!-- <el-table-column label="鎵e噺鏈嶅姟璐�" align="center" prop="deductAmount" /> -->
- <el-table-column label="鑰冩牳鍒嗘暟" align="center" prop="score" />
- <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-edit"
- @click="handleUpdate(scope.row)"
- >淇敼</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDelete(scope.row)"
- >鍒犻櫎</el-button>
- </template>
- </el-table-column>
- </el-table>
-
- <pagination
- v-show="total>0"
- :total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
- @pagination="getList"
- />
-
- <!-- 娣诲姞鎴栦慨鏀规牳绠楄褰曞璇濇 -->
- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
- <el-form ref="form" :model="form" :rules="rules" label-width="100px">
- <el-form-item label="鏍哥畻瀵硅薄" prop="checkUnitId">
- <el-select v-model="form.unitId" placeholder="璇烽�夋嫨">
- <el-option
- v-for="item in unitList"
- :key="item.id"
- :label="item.value"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="鏍哥畻瑙勫垯" prop="ruleId">
- <el-select v-model="form.ruleId" placeholder="璇烽�夋嫨">
- <el-option label="鎴愰兘x杩愮淮鑰冩牳缁撴灉搴旂敤瑙勫垯" value="1">鎴愰兘x杩愮淮鑰冩牳缁撴灉搴旂敤瑙勫垯</el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="鏍哥畻璁板綍鏃ユ湡" prop="date" >
- <el-date-picker clearable
- v-model="form.date"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="璇烽�夋嫨鏍哥畻璁板綍鏃ユ湡">
- </el-date-picker>
- </el-form-item>
- <!-- <el-form-item label="鎬绘湇鍔¤垂" prop="totalAmount">
- <el-input v-model="form.totalAmount" placeholder="璇疯緭鍏ユ�绘湇鍔¤垂" />
- </el-form-item> -->
- <!-- <el-form-item label="鎵e噺鏈嶅姟璐�" prop="deductAmount">
- <el-input v-model="form.deductAmount" placeholder="璇疯緭鍏ユ墸鍑忔湇鍔¤垂" />
- </el-form-item> -->
- <el-form-item label="鑰冩牳鍒嗘暟" prop="score">
- <el-input v-model="form.score" placeholder="璇疯緭鍏ヨ�冩牳鍒嗘暟" />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
- <el-button @click="cancel">鍙� 娑�</el-button>
- </div>
- </el-dialog>
- </div>
-</template>
-
-<script>
-import { getCalculateRecords, getCalculateRecordById,deleteCalculateRecordByIds, addCalculateRecord, editCalculateRecord } from "@/api/platform/calculate-record";
-import {unitSelect} from "@/api/platform/unit";
-export default {
- name: "Record",
- data() {
- return {
- // 閬僵灞�
- loading: true,
- // 閫変腑鏁扮粍
- ids: [],
- // 闈炲崟涓鐢�
- single: true,
- // 闈炲涓鐢�
- multiple: true,
- // 鏄剧ず鎼滅储鏉′欢
- showSearch: true,
- // 鎬绘潯鏁�
- total: 0,
- // 鏍哥畻璁板綍琛ㄦ牸鏁版嵁
- recordList: [],
- // 寮瑰嚭灞傛爣棰�
- title: "",
- // 鏄惁鏄剧ず寮瑰嚭灞�
- open: false,
- // 鏌ヨ鍙傛暟
- queryParams: {
- pageNum: 1,
- pageSize: 10,
- date: null,
- ruleId: null,
- unitId: null,
- totalAmount: null,
- deductAmount: null,
- score: null
- },
- // 琛ㄥ崟鍙傛暟
- form: {},
- // 琛ㄥ崟鏍¢獙
- rules: {
- id: [
- { required: true, message: "$comment涓嶈兘涓虹┖", trigger: "blur" }
- ],
- }
- };
- },
- created() {
- this.getList();
- this.selectUnit();
- },
- methods: {
- // 杩愮淮鍏徃涓嬫媺鏁版嵁
- selectUnit() {
- unitSelect().then(res => {
- this.unitList = res.data;
- })
- },
- /** 鏌ヨ鏍哥畻璁板綍鍒楄〃 */
- getList() {
- this.loading = true;
- getCalculateRecords(this.queryParams).then(response => {
- this.recordList = response.rows;
- this.total = response.total;
- this.loading = false;
- });
- },
- // 鍙栨秷鎸夐挳
- cancel() {
- this.open = false;
- this.reset();
- },
- // 琛ㄥ崟閲嶇疆
- reset() {
- this.form = {
- id: null,
- date: null,
- ruleId: null,
- unitId: null,
- totalAmount: null,
- deductAmount: null,
- score: null
- };
- this.resetForm("form");
- },
- /** 鎼滅储鎸夐挳鎿嶄綔 */
- handleQuery() {
- this.queryParams.pageNum = 1;
- this.getList();
- },
- /** 閲嶇疆鎸夐挳鎿嶄綔 */
- resetQuery() {
- this.resetForm("queryForm");
- this.handleQuery();
- },
- // 澶氶�夋閫変腑鏁版嵁
- handleSelectionChange(selection) {
- this.ids = selection.map(item => item.id)
- this.single = selection.length!==1
- this.multiple = !selection.length
- },
- /** 鏂板鎸夐挳鎿嶄綔 */
- handleAdd() {
- this.reset();
- this.open = true;
- this.title = "娣诲姞鏍哥畻璁板綍";
- },
- /** 淇敼鎸夐挳鎿嶄綔 */
- handleUpdate(row) {
- this.reset();
- const id = row.id || this.ids
- getCalculateRecordById(id).then(response => {
- this.form = response.data;
- this.open = true;
- this.title = "淇敼鏍哥畻璁板綍";
- });
- },
- /** 鎻愪氦鎸夐挳 */
- submitForm() {
- this.$refs["form"].validate(valid => {
- if (valid) {
- if (this.form.id != null) {
- editCalculateRecord(this.form).then(response => {
- this.$modal.msgSuccess("淇敼鎴愬姛");
- this.open = false;
- this.getList();
- });
- } else {
- addCalculateRecord(this.form).then(response => {
- this.$modal.msgSuccess("鏂板鎴愬姛");
- this.open = false;
- this.getList();
- });
- }
- }
- });
- },
- /** 鍒犻櫎鎸夐挳鎿嶄綔 */
- handleDelete(row) {
- const ids = row.id || this.ids;
- this.$modal.confirm('鏄惁纭鍒犻櫎鏍哥畻璁板綍缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
- return deleteCalculateRecordByIds(ids);
- }).then(() => {
- this.getList();
- this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
- }).catch(() => {});
- },
- /** 瀵煎嚭鎸夐挳鎿嶄綔 */
- handleExport() {
- this.download('system/record/export', {
- ...this.queryParams
- }, `record_${new Date().getTime()}.xlsx`)
- }
- }
-};
-</script>
diff --git a/src/views/system/calculate/rule/index.vue b/src/views/system/calculate/rule/index.vue
deleted file mode 100644
index 812141a..0000000
--- a/src/views/system/calculate/rule/index.vue
+++ /dev/null
@@ -1,265 +0,0 @@
-<template>
- <div class="app-container">
- <el-row :gutter="10" class="mb8">
- <el-col :span="1.5">
- <el-button
- type="primary"
- plain
- icon="el-icon-plus"
- size="mini"
- @click="handleAdd"
- >鏂板</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="info"
- plain
- icon="el-icon-sort"
- size="mini"
- @click="toggleExpandAll"
- >灞曞紑/鎶樺彔</el-button>
- </el-col>
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
- </el-row>
-
- <el-table
- v-if="refreshTable"
- v-loading="loading"
- :data="ruleList"
- row-key="id"
- :default-expand-all="isExpandAll"
- :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
- >
- <el-table-column label="瑙勫垯鍚嶇О" prop="name" />
- <el-table-column label="鍗曚綅" align="center" prop="unitId" >
- <template slot-scope="scope">
- <div v-if="scope.row.unitId == 2">鎴愰兘x杩愮淮</div>
- </template>
- </el-table-column>
- <el-table-column label="鎵e垎绯绘暟" align="center" prop="value" />
- <el-table-column label="瑙勫垯鎻忚堪" align="center" prop="description" />
- <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-edit"
- @click="handleUpdate(scope.row)"
- v-hasPermi="['calculate:rule:edit']"
- >淇敼</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-plus"
- @click="handleAdd(scope.row)"
- v-hasPermi="['calculate:rule:add']"
- >鏂板</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDelete(scope.row)"
- v-hasPermi="['calculate:rule:remove']"
- >鍒犻櫎</el-button>
- </template>
- </el-table-column>
- </el-table>
-
- <!-- 娣诲姞鎴栦慨鏀规牳绠楄鍒欏璇濇 -->
- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
- <el-form ref="form" :model="form" :rules="rules" label-width="80px">
- <el-form-item label="瑙勫垯鍚�" prop="name">
- <el-input v-model="form.name" placeholder="璇疯緭鍏�" />
- </el-form-item>
- <el-form-item label="妯℃澘鍚�" prop="templateId">
- <el-input v-model="form.templateId" placeholder="璇疯緭鍏�" />
- </el-form-item>
- <el-form-item label="鐖惰鍒�" prop="parentId">
- <treeselect v-model="form.parentId" :options="ruleOptions" :normalizer="normalizer" placeholder="璇烽�夋嫨" />
- </el-form-item>
- <el-form-item label="鑰冩牳瀵硅薄" prop="unitId">
- <el-input v-model="form.unitId" placeholder="璇疯緭鍏ュ崟浣峣d" />
- </el-form-item>
- <el-form-item label="鎵e垎绯绘暟" prop="value">
- <el-input v-model="form.value" placeholder="璇疯緭鍏ユ墸鍒嗙郴鏁�" />
- </el-form-item>
- <el-form-item label="瑙勫垯鎻忚堪" prop="description">
- <el-input v-model="form.description" placeholder="璇疯緭鍏ヨ鍒欐弿杩�" />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
- <el-button @click="cancel">鍙� 娑�</el-button>
- </div>
- </el-dialog>
- </div>
-</template>
-
-<script>
-import { listRule, getRule, delRule, addRule, updateRule } from "@/api/platform/calculate-rule";
-import Treeselect from "@riophae/vue-treeselect";
-import "@riophae/vue-treeselect/dist/vue-treeselect.css";
-
-export default {
- name: "Rule",
- components: {
- Treeselect
- },
- data() {
- return {
- // 閬僵灞�
- loading: true,
- // 鏄剧ず鎼滅储鏉′欢
- showSearch: true,
- // 鏍哥畻瑙勫垯琛ㄦ牸鏁版嵁
- ruleList: [],
- // 鏍哥畻瑙勫垯鏍戦�夐」
- ruleOptions: [],
- // 寮瑰嚭灞傛爣棰�
- title: "",
- // 鏄惁鏄剧ず寮瑰嚭灞�
- open: false,
- // 鏄惁灞曞紑锛岄粯璁ゅ叏閮ㄥ睍寮�
- isExpandAll: true,
- // 閲嶆柊娓叉煋琛ㄦ牸鐘舵��
- refreshTable: true,
- // 鏌ヨ鍙傛暟
- queryParams: {
- name: null,
- templateId: null,
- parentId: null,
- unitId: null,
- value: null,
- description: null
- },
- // 琛ㄥ崟鍙傛暟
- form: {},
- // 琛ㄥ崟鏍¢獙
- rules: {
- }
- };
- },
- created() {
- this.getList();
- },
- methods: {
- /** 鏌ヨ鏍哥畻瑙勫垯鍒楄〃 */
- getList() {
- this.loading = true;
- listRule(this.queryParams).then(response => {
- this.ruleList = this.handleTree(response.data, "id", "parentId");
- this.loading = false;
- });
- },
- /** 杞崲鏍哥畻瑙勫垯鏁版嵁缁撴瀯 */
- normalizer(node) {
- if (node.children && !node.children.length) {
- delete node.children;
- }
- return {
- id: node.id,
- label: node.name,
- children: node.children
- };
- },
- /** 鏌ヨ鏍哥畻瑙勫垯涓嬫媺鏍戠粨鏋� */
- getTreeselect() {
- listRule().then(response => {
- this.ruleOptions = [];
- const data = { id: 0, name: '椤剁骇鑺傜偣', children: [] };
- data.children = this.handleTree(response.data, "id", "parentId");
- this.ruleOptions.push(data);
- });
- },
- // 鍙栨秷鎸夐挳
- cancel() {
- this.open = false;
- this.reset();
- },
- // 琛ㄥ崟閲嶇疆
- reset() {
- this.form = {
- id: null,
- name: null,
- templateId: null,
- parentId: null,
- unitId: null,
- value: null,
- description: null
- };
- this.resetForm("form");
- },
- /** 鎼滅储鎸夐挳鎿嶄綔 */
- handleQuery() {
- this.getList();
- },
- /** 閲嶇疆鎸夐挳鎿嶄綔 */
- resetQuery() {
- this.resetForm("queryForm");
- this.handleQuery();
- },
- /** 鏂板鎸夐挳鎿嶄綔 */
- handleAdd(row) {
- this.reset();
- this.getTreeselect();
- if (row != null && row.id) {
- this.form.parentId = row.id;
- } else {
- this.form.parentId = 0;
- }
- this.open = true;
- this.title = "娣诲姞鏍哥畻瑙勫垯";
- },
- /** 灞曞紑/鎶樺彔鎿嶄綔 */
- toggleExpandAll() {
- this.refreshTable = false;
- this.isExpandAll = !this.isExpandAll;
- this.$nextTick(() => {
- this.refreshTable = true;
- });
- },
- /** 淇敼鎸夐挳鎿嶄綔 */
- handleUpdate(row) {
- this.reset();
- this.getTreeselect();
- if (row != null) {
- this.form.parentId = row.id;
- }
- getRule(row.id).then(response => {
- this.form = response.data;
- this.open = true;
- this.title = "淇敼鏍哥畻瑙勫垯";
- });
- },
- /** 鎻愪氦鎸夐挳 */
- submitForm() {
- this.$refs["form"].validate(valid => {
- if (valid) {
- if (this.form.id != null) {
- updateRule(this.form).then(response => {
- this.$modal.msgSuccess("淇敼鎴愬姛");
- this.open = false;
- this.getList();
- });
- } else {
- addRule(this.form).then(response => {
- this.$modal.msgSuccess("鏂板鎴愬姛");
- this.open = false;
- this.getList();
- });
- }
- }
- });
- },
- /** 鍒犻櫎鎸夐挳鎿嶄綔 */
- handleDelete(row) {
- this.$modal.confirm('鏄惁纭鍒犻櫎鏍哥畻瑙勫垯缂栧彿涓�"' + row.id + '"鐨勬暟鎹」锛�').then(function() {
- return delRule(row.id);
- }).then(() => {
- this.getList();
- this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
- }).catch(() => {});
- }
- }
-};
-</script>
diff --git a/src/views/system/result/detail/detail.vue b/src/views/system/check/result/detail/detail.vue
similarity index 100%
rename from src/views/system/result/detail/detail.vue
rename to src/views/system/check/result/detail/detail.vue
diff --git a/src/views/system/result/detail/index1.vue b/src/views/system/check/result/detail/index.vue
similarity index 99%
rename from src/views/system/result/detail/index1.vue
rename to src/views/system/check/result/detail/index.vue
index 84e0a50..d9326e2 100644
--- a/src/views/system/result/detail/index1.vue
+++ b/src/views/system/check/result/detail/index.vue
@@ -221,7 +221,7 @@
},
handleDetail(id) {
this.$router.push({
- path: '/examine/detail/detail',
+ path: '/check/detail/detail',
query: {
id: id,
examineTag: this.activeIndex,
diff --git a/src/views/system/result/index.vue b/src/views/system/check/result/index.vue
similarity index 99%
rename from src/views/system/result/index.vue
rename to src/views/system/check/result/index.vue
index 1d139c8..090956a 100644
--- a/src/views/system/result/index.vue
+++ b/src/views/system/check/result/index.vue
@@ -101,7 +101,7 @@
methods: {
jumpDetail(index) {
this.$router.push({
- path: '/examine/detail',
+ path: '/check/detail',
query: {
index: index,
examineTag: this.activeIndex
diff --git a/src/views/system/rule/index.vue b/src/views/system/check/rule/index.vue
similarity index 100%
rename from src/views/system/rule/index.vue
rename to src/views/system/check/rule/index.vue
diff --git a/src/views/system/template/index.vue b/src/views/system/check/template/index.vue
similarity index 99%
rename from src/views/system/template/index.vue
rename to src/views/system/check/template/index.vue
index 2e770c2..48e1648 100644
--- a/src/views/system/template/index.vue
+++ b/src/views/system/check/template/index.vue
@@ -223,7 +223,7 @@
<script>
import { listCheckTemplate, getCheckTemplate, delCheckTemplate, addCheckTemplate, updateCheckTemplate,copyCheckTemplate } from "@/api/platform/check-template";
import { areaSelect } from '@/api/system/dept'
-import { listCheckRule } from "../../../api/platform/check-rule";
+import { listCheckRule } from "../../../../api/platform/check-rule";
export default {
name: "CheckTemplate",
diff --git a/src/views/system/calculate/contract-result/index.vue b/src/views/system/contract/contract-result/index.vue
similarity index 100%
rename from src/views/system/calculate/contract-result/index.vue
rename to src/views/system/contract/contract-result/index.vue
diff --git a/src/views/system/contract/index.vue b/src/views/system/contract/contract/index.vue
similarity index 97%
rename from src/views/system/contract/index.vue
rename to src/views/system/contract/contract/index.vue
index 8a0d0e7..1c095bd 100644
--- a/src/views/system/contract/index.vue
+++ b/src/views/system/contract/contract/index.vue
@@ -140,10 +140,10 @@
<script>
import { listContract, getContract, updateContract } from "@/api/platform/contract";
-import { getRuleListByContractId } from "../../../api/platform/calculate-rule";
-import { getMoneyRulesByContractId } from "../../../api/platform/calculate-money-rule";
-import { unitSelect } from "../../../api/platform/unit";
-import { deptSelect } from "../../../api/system/dept";
+import { getRuleListByContractId } from "../../../../api/platform/calculate-rule";
+import { getMoneyRulesByContractId } from "../../../../api/platform/calculate-money-rule";
+import { unitSelect } from "../../../../api/platform/unit";
+import { deptSelect } from "../../../../api/system/dept";
import { getToken } from "@/utils/auth";
import { ImagePreview } from "@/components/ImagePreview";
diff --git a/src/views/system/calculate/report/index.vue b/src/views/system/contract/report/index.vue
similarity index 100%
rename from src/views/system/calculate/report/index.vue
rename to src/views/system/contract/report/index.vue
diff --git a/src/views/system/calculate/score/index.vue b/src/views/system/contract/score/index.vue
similarity index 100%
rename from src/views/system/calculate/score/index.vue
rename to src/views/system/contract/score/index.vue
diff --git a/src/views/system/equipment/index.vue b/src/views/system/data-manage/equipment/index.vue
similarity index 100%
rename from src/views/system/equipment/index.vue
rename to src/views/system/data-manage/equipment/index.vue
diff --git a/src/views/system/vehicle-data-monitor/index.vue b/src/views/system/data-manage/vehicle-data-monitor/index.vue
similarity index 100%
rename from src/views/system/vehicle-data-monitor/index.vue
rename to src/views/system/data-manage/vehicle-data-monitor/index.vue
diff --git a/src/views/system/car/index.vue b/src/views/system/monitor/car/index.vue
similarity index 100%
rename from src/views/system/car/index.vue
rename to src/views/system/monitor/car/index.vue
diff --git a/src/views/system/face/index.vue b/src/views/system/monitor/face/index.vue
similarity index 100%
rename from src/views/system/face/index.vue
rename to src/views/system/monitor/face/index.vue
diff --git a/src/views/system/platform/index.vue b/src/views/system/monitor/platform/index.vue
similarity index 100%
rename from src/views/system/platform/index.vue
rename to src/views/system/monitor/platform/index.vue
diff --git a/src/views/system/recovery/index.vue b/src/views/system/monitor/recovery/index.vue
similarity index 100%
rename from src/views/system/recovery/index.vue
rename to src/views/system/monitor/recovery/index.vue
diff --git a/src/views/system/video/index.vue b/src/views/system/monitor/video/index.vue
similarity index 100%
rename from src/views/system/video/index.vue
rename to src/views/system/monitor/video/index.vue
diff --git a/src/views/system/region/index.vue b/src/views/system/point/region/index.vue
similarity index 100%
rename from src/views/system/region/index.vue
rename to src/views/system/point/region/index.vue
diff --git a/src/views/system/publish/city/index.vue b/src/views/system/publish/city/index.vue
deleted file mode 100644
index f5368ee..0000000
--- a/src/views/system/publish/city/index.vue
+++ /dev/null
@@ -1,497 +0,0 @@
-<template>
- <div class="app-container">
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
- <el-form-item label="鑰冩牳鍚�" prop="examineName">
- <el-input
- v-model="queryParams.examineName"
- placeholder="璇疯緭鍏ヨ�冩牳鍚�"
- clearable
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="鑰冩牳鑼冨洿" prop="examineRange">
- <el-select
- v-model="queryParams.examineRange"
- placeholder="鑰冩牳鑼冨洿"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.platform_examine_range"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鑰冩牳棰戠巼" prop="frequency">
- <el-select
- v-model="queryParams.frequency"
- placeholder="鑰冩牳棰戠巼"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.platform_examine_frequency"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value"
- />
- </el-select>
- </el-form-item>
-
- <el-form-item label="鑰冩牳鐘舵��" prop="state">
- <el-select
- v-model="queryParams.state"
- placeholder="鑰冩牳鐘舵��"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.sys_normal_disable"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value"
- />
- </el-select>
- </el-form-item>
-
- <el-form-item>
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
- </el-form-item>
- </el-form>
-
- <el-row :gutter="10" class="mb8">
- <el-col :span="1.5">
- <el-button
- type="primary"
- plain
- icon="el-icon-plus"
- size="mini"
- @click="handleAdd"
- >鏂板</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="success"
- plain
- icon="el-icon-edit"
- size="mini"
- :disabled="single"
- @click="handleUpdate"
- >淇敼</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="danger"
- plain
- icon="el-icon-delete"
- size="mini"
- :disabled="multiple"
- @click="handleDelete"
- >鍒犻櫎</el-button>
- </el-col>
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
- </el-row>
-
- <el-table v-loading="loading" :data="publishList" @selection-change="handleSelectionChange">
- <el-table-column type="selection" width="55" align="center" />
- <el-table-column label="鑰冩牳鍚�" align="center" prop="examineName" />
- <el-table-column label="鑰冩牳鑼冨洿" align="center" prop="examineRange" >
- <template slot-scope="scope">
- <dict-tag :options="dict.type.platform_examine_range" :value="scope.row.examineRange"/>
- </template>
- </el-table-column>
- <el-table-column label="鑰冩牳棰戠巼" align="center" prop="frequency">
- <template slot-scope="scope">
- <dict-tag :options="dict.type.platform_examine_frequency" :value="scope.row.frequency"/>
- </template>
- </el-table-column>
- <el-table-column label="鎶ヨ鍒嗘暟闃堝��" align="center" prop="alarmScore" />
- <el-form-item label="鎶ヨ鍒嗘暟闃堝��" prop="alarmScore">
- <el-input v-model="form.alarmScore" placeholder="璇疯緭鍏ュ垎鏁�" />
- </el-form-item>
- <el-table-column label="鑰冩牳鐘舵��" align="center" prop="state">
- <template slot-scope="scope">
- <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.state"/>
- </template>
- </el-table-column>
- <el-table-column label="淇敼浜�" align="center" prop="updateUserName" />
- <el-table-column label="淇敼鏃堕棿" align="center" prop="updateTime" width="170px" />
- <el-table-column label="瀹℃牳鐘舵��" align="center" prop="auditState">
- <template slot-scope="scope">
- <dict-tag :options="dict.type.platform_audit_state" :value="scope.row.auditState"/>
- </template>
- </el-table-column>
- <el-table-column label="瀹℃牳浜�" align="center" prop="auditUser" />
- <el-table-column label="瀹℃牳鏃堕棿" align="center" prop="auditTime" width="170px"/>
- <el-table-column label="瀹℃牳鎰忚" align="center" prop="auditDescription" />
- <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-s-check"
- @click="handleAudit(scope.row)"
- v-hasPermi="['examine:publish:audit']"
- >瀹℃牳</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-edit"
- @click="handleUpdate(scope.row)"
- >淇敼</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDelete(scope.row)"
- >鍒犻櫎</el-button>
- </template>
- </el-table-column>
- </el-table>
-
- <pagination
- v-show="total>0"
- :total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
- @pagination="getList"
- />
- <div>
- <!-- 娣诲姞鎴栦慨鏀硅�冩牳鍙戝竷瀵硅瘽妗� -->
- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
- <el-form ref="form" :model="form" :rules="rules" label-width="100px">
- <el-form-item label="鑰冩牳鍚�" prop="examineName">
- <el-input v-model="form.examineName" placeholder="璇疯緭鍏ヨ�冩牳鍚�" />
- </el-form-item>
-
- <el-form-item label="鑰冩牳妯℃澘" prop="templateId">
- <el-select v-model="form.templateId" placeholder="鑰冩牳妯℃澘">
- <el-option
- v-for="item in templateList"
- :key="item.id"
- :label="item.value"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="鑰冩牳鑼冨洿" prop="examineRange">
- <el-select
- v-model="form.examineRange"
- placeholder="鑰冩牳鑼冨洿"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.platform_examine_range"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鑰冩牳棰戠巼">
- <el-select
- v-model="form.frequency"
- placeholder="鑰冩牳棰戠巼"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.platform_examine_frequency"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鎶ヨ鍒嗘暟闃堝��" prop="alarmScore">
- <el-input v-model="form.alarmScore" placeholder="璇疯緭鍏ュ垎鏁�" style="width: 170px"/>
- </el-form-item>
- <el-form-item label="鑰冩牳鐘舵��" prop="state">
- <el-select
- v-model="form.state"
- placeholder="鑰冩牳鐘舵��"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.sys_normal_disable"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鎻忚堪" prop="description">
- <el-input v-model="form.description" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
- <el-button @click="cancel">鍙� 娑�</el-button>
- </div>
- </el-dialog>
-
- <!-- 瀹℃牳鑰冩牳鍙戝竷瀵硅瘽妗� -->
- <el-dialog :title="title" :visible.sync="auditOpen" width="500px" append-to-body>
- <el-form ref="form" :model="form" :rules="rules" label-width="100px">
- <el-form-item label="鑰冩牳鍚�" prop="examineName">
- <el-input v-model="form.examineName" placeholder="璇疯緭鍏ヨ�冩牳鍚�" disabled/>
- </el-form-item>
- <el-form-item label="鑰冩牳妯℃澘" prop="templateId">
- <el-select v-model="form.templateId" placeholder="鑰冩牳妯℃澘" disabled>
- <el-option
- v-for="item in templateList"
- :key="item.id"
- :label="item.value"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="鑰冩牳鑼冨洿" prop="examineRange" >
- <el-select
- v-model="form.examineRange"
- placeholder="鑰冩牳鑼冨洿"
- clearable
- style="width: 170px"
- disabled
- >
- <el-option
- v-for="dict in dict.type.platform_examine_range"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
-
- <el-form-item label="鑰冩牳棰戠巼" prop="frequency" >
- <el-select
- v-model="form.frequency"
- placeholder="鑰冩牳棰戠巼"
- clearable
- style="width: 170px"
- disabled
- >
- <el-option
- v-for="dict in dict.type.platform_examine_frequency"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鎶ヨ鍒嗘暟闃堝��" prop="alarmScore">
- <el-input v-model="form.alarmScore" placeholder="璇疯緭鍏ュ垎鏁�" style="width: 170px" disabled/>
- </el-form-item>
- <el-form-item label="鑰冩牳鐘舵��" prop="state">
- <el-select
- v-model="form.state"
- placeholder="鑰冩牳鐘舵��"
- clearable
- style="width: 170px"
- disabled
- >
- <el-option
- v-for="dict in dict.type.sys_normal_disable"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鎻忚堪" prop="description">
- <el-input v-model="form.description" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" disabled/>
- </el-form-item>
- <el-form-item label="瀹℃牳缁撴灉" prop="auditState" >
- <el-radio-group v-model="form.auditState">
- <el-radio :label="1">閫氳繃</el-radio>
- <el-radio :label="2">椹冲洖</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item label="瀹℃牳璇存槑" prop="auditDescription" >
- <el-input v-model="form.auditDescription" type="textarea" show-word-limit maxlength="100" />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
- <el-button @click="cancel">鍙� 娑�</el-button>
- </div>
- </el-dialog>
- </div>
- </div>
-</template>
-
-<script>
-import { listPublish, getPublish, delPublish, addPublish, updatePublish } from "@/api/platform/check-publish";
-import { templateSelect } from "@/api/platform/check-template";
-export default {
- name: "Publish",
- dicts: ['sys_normal_disable','platform_examine_range','platform_examine_frequency','platform_audit_state'],
- data() {
- return {
- // 閬僵灞�
- loading: true,
- // 閫変腑鏁扮粍
- ids: [],
- // 闈炲崟涓鐢�
- single: true,
- // 闈炲涓鐢�
- multiple: true,
- // 鏄剧ず鎼滅储鏉′欢
- showSearch: true,
- // 鎬绘潯鏁�
- total: 0,
- // 鑰冩牳鍙戝竷琛ㄦ牸鏁版嵁
- publishList: [],
- // 寮瑰嚭灞傛爣棰�
- title: "",
- // 鏄惁鏄剧ず寮瑰嚭灞�
- open: false,
- auditOpen: false,
- // 鏌ヨ鍙傛暟
- queryParams: {
- pageNum: 1,
- pageSize: 10,
- examineName: null,
- frequency: null,
- state: null,
- examineRange: null,
- },
- // 鑰冩牳妯℃澘
- templateList: [],
- // 琛ㄥ崟鍙傛暟
- form: {},
- // 琛ㄥ崟鏍¢獙
- rules: {
- }
- };
- },
- created() {
- this.getList();
- this.getTemplateSelect();
- },
- methods: {
- /** 鑰冩牳妯℃澘涓嬫媺鍒楄〃 */
- getTemplateSelect() {
- templateSelect().then((res) => {
- this.templateList = res.data;
- })
- },
- /** 鏌ヨ鑰冩牳鍙戝竷鍒楄〃 */
- getList() {
- this.loading = true;
- listPublish(this.queryParams).then(response => {
- this.publishList = response.rows;
- this.total = response.total;
- this.loading = false;
- });
- },
- // 鍙栨秷鎸夐挳
- cancel() {
- this.open = false;
- this.auditOpen = false;
- this.reset();
- },
- // 琛ㄥ崟閲嶇疆
- reset() {
- this.form = {
- examineName: null,
- templateId: null,
- examineRange: null,
- frequency: null,
- state: null,
- createTime: null,
- createUser: null,
- updateTime: null,
- updateUser: null,
- description: null
- };
- this.resetForm("form");
- },
- /** 鎼滅储鎸夐挳鎿嶄綔 */
- handleQuery() {
- this.queryParams.pageNum = 1;
- this.getList();
- },
- /** 閲嶇疆鎸夐挳鎿嶄綔 */
- resetQuery() {
- this.resetForm("queryForm");
- this.handleQuery();
- },
- // 澶氶�夋閫変腑鏁版嵁
- handleSelectionChange(selection) {
- this.ids = selection.map(item => item.id)
- this.single = selection.length!==1
- this.multiple = !selection.length
- },
- /** 鏂板鎸夐挳鎿嶄綔 */
- handleAdd() {
- this.reset();
- this.open = true;
- this.title = "娣诲姞鑰冩牳鍙戝竷";
- },
- /** 淇敼鎸夐挳鎿嶄綔 */
- handleUpdate(row) {
- this.reset();
- const id = row.id || this.ids
- getPublish(id).then(response => {
- this.form = response.data;
- this.open = true;
- this.title = "淇敼鑰冩牳鍙戝竷";
- });
- },
- /** 淇敼鎸夐挳鎿嶄綔 */
- handleAudit(row) {
- this.reset();
- const id = row.id || this.ids
- getPublish(id).then(response => {
- this.form = response.data;
- this.auditOpen = true;
- this.title = "瀹℃牳鑰冩牳鍙戝竷";
- });
- },
- /** 鎻愪氦鎸夐挳 */
- submitForm() {
- this.$refs["form"].validate(valid => {
- if (valid) {
- if (this.form.id != null) {
- updatePublish(this.form).then(response => {
- this.$modal.msgSuccess("淇敼鎴愬姛");
- this.open = false;
- this.auditOpen = false;
- this.getList();
- });
- } else {
- addPublish(this.form).then(response => {
- this.$modal.msgSuccess("鏂板鎴愬姛");
- this.open = false;
- this.auditOpen = false;
- this.getList();
- });
- }
- }
- });
- },
- /** 鍒犻櫎鎸夐挳鎿嶄綔 */
- handleDelete(row) {
- const ids = row.id || this.ids;
- this.$modal.confirm('鏄惁纭鍒犻櫎鑰冩牳鍙戝竷缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
- return delPublish(ids);
- }).then(() => {
- this.getList();
- this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
- }).catch(() => {});
- },
- /** 瀵煎嚭鎸夐挳鎿嶄綔 */
- handleExport() {
- this.download('system/publish/export', {
- ...this.queryParams
- }, `publish_${new Date().getTime()}.xlsx`)
- }
- }
-};
-</script>
diff --git a/src/views/system/publish/default/index.vue b/src/views/system/publish/default/index.vue
deleted file mode 100644
index eef8be0..0000000
--- a/src/views/system/publish/default/index.vue
+++ /dev/null
@@ -1,497 +0,0 @@
-<template>
- <div class="app-container">
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
- <el-form-item label="鑰冩牳鍚�" prop="examineName">
- <el-input
- v-model="queryParams.examineName"
- placeholder="璇疯緭鍏ヨ�冩牳鍚�"
- clearable
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="鑰冩牳鑼冨洿" prop="examineRange">
- <el-select
- v-model="queryParams.examineRange"
- placeholder="鑰冩牳鑼冨洿"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.platform_examine_range"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鑰冩牳棰戠巼" prop="frequency">
- <el-select
- v-model="queryParams.frequency"
- placeholder="鑰冩牳棰戠巼"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.platform_examine_frequency"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value"
- />
- </el-select>
- </el-form-item>
-
- <el-form-item label="鑰冩牳鐘舵��" prop="state">
- <el-select
- v-model="queryParams.state"
- placeholder="鑰冩牳鐘舵��"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.sys_normal_disable"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value"
- />
- </el-select>
- </el-form-item>
-
- <el-form-item>
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
- </el-form-item>
- </el-form>
-
- <el-row :gutter="10" class="mb8">
- <el-col :span="1.5">
- <el-button
- type="primary"
- plain
- icon="el-icon-plus"
- size="mini"
- @click="handleAdd"
- >鏂板</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="success"
- plain
- icon="el-icon-edit"
- size="mini"
- :disabled="single"
- @click="handleUpdate"
- >淇敼</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="danger"
- plain
- icon="el-icon-delete"
- size="mini"
- :disabled="multiple"
- @click="handleDelete"
- >鍒犻櫎</el-button>
- </el-col>
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
- </el-row>
-
- <el-table v-loading="loading" :data="publishList" @selection-change="handleSelectionChange">
- <el-table-column type="selection" width="55" align="center" />
- <el-table-column label="鑰冩牳鍚�" align="center" prop="examineName" />
- <el-table-column label="鑰冩牳鑼冨洿" align="center" prop="examineRange" >
- <template slot-scope="scope">
- <dict-tag :options="dict.type.platform_examine_range" :value="scope.row.examineRange"/>
- </template>
- </el-table-column>
- <el-table-column label="鑰冩牳棰戠巼" align="center" prop="frequency">
- <template slot-scope="scope">
- <dict-tag :options="dict.type.platform_examine_frequency" :value="scope.row.frequency"/>
- </template>
- </el-table-column>
- <el-table-column label="鎶ヨ鍒嗘暟闃堝��" align="center" prop="alarmScore" />
- <el-form-item label="鎶ヨ鍒嗘暟闃堝��" prop="alarmScore">
- <el-input v-model="form.alarmScore" placeholder="璇疯緭鍏ュ垎鏁�" />
- </el-form-item>
- <el-table-column label="鑰冩牳鐘舵��" align="center" prop="state">
- <template slot-scope="scope">
- <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.state"/>
- </template>
- </el-table-column>
- <el-table-column label="淇敼浜�" align="center" prop="updateUserName" />
- <el-table-column label="淇敼鏃堕棿" align="center" prop="updateTime" width="170px" />
- <el-table-column label="瀹℃牳鐘舵��" align="center" prop="auditState">
- <template slot-scope="scope">
- <dict-tag :options="dict.type.platform_audit_state" :value="scope.row.auditState"/>
- </template>
- </el-table-column>
- <el-table-column label="瀹℃牳浜�" align="center" prop="auditUser" />
- <el-table-column label="瀹℃牳鏃堕棿" align="center" prop="auditTime" width="170px"/>
- <el-table-column label="瀹℃牳鎰忚" align="center" prop="auditDescription" />
- <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-s-check"
- @click="handleAudit(scope.row)"
- v-hasPermi="['examine:publish:audit']"
- >瀹℃牳</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-edit"
- @click="handleUpdate(scope.row)"
- >淇敼</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDelete(scope.row)"
- >鍒犻櫎</el-button>
- </template>
- </el-table-column>
- </el-table>
-
- <pagination
- v-show="total>0"
- :total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
- @pagination="getList"
- />
- <div>
- <!-- 娣诲姞鎴栦慨鏀硅�冩牳鍙戝竷瀵硅瘽妗� -->
- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
- <el-form ref="form" :model="form" :rules="rules" label-width="100px">
- <el-form-item label="鑰冩牳鍚�" prop="examineName">
- <el-input v-model="form.examineName" placeholder="璇疯緭鍏ヨ�冩牳鍚�" />
- </el-form-item>
-
- <el-form-item label="鑰冩牳妯℃澘" prop="templateId">
- <el-select v-model="form.templateId" placeholder="鑰冩牳妯℃澘">
- <el-option
- v-for="item in templateList"
- :key="item.id"
- :label="item.value"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="鑰冩牳鑼冨洿" prop="examineRange">
- <el-select
- v-model="form.examineRange"
- placeholder="鑰冩牳鑼冨洿"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.platform_examine_range"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鑰冩牳棰戠巼">
- <el-select
- v-model="form.frequency"
- placeholder="鑰冩牳棰戠巼"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.platform_examine_frequency"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鎶ヨ鍒嗘暟闃堝��" prop="alarmScore">
- <el-input v-model="form.alarmScore" placeholder="璇疯緭鍏ュ垎鏁�" style="width: 170px"/>
- </el-form-item>
- <el-form-item label="鑰冩牳鐘舵��" prop="state">
- <el-select
- v-model="form.state"
- placeholder="鑰冩牳鐘舵��"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.sys_normal_disable"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鎻忚堪" prop="description">
- <el-input v-model="form.description" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
- <el-button @click="cancel">鍙� 娑�</el-button>
- </div>
- </el-dialog>
-
- <!-- 瀹℃牳鑰冩牳鍙戝竷瀵硅瘽妗� -->
- <el-dialog :title="title" :visible.sync="auditOpen" width="500px" append-to-body>
- <el-form ref="form" :model="form" :rules="rules" label-width="100px">
- <el-form-item label="鑰冩牳鍚�" prop="examineName">
- <el-input v-model="form.examineName" placeholder="璇疯緭鍏ヨ�冩牳鍚�" disabled/>
- </el-form-item>
- <el-form-item label="鑰冩牳妯℃澘" prop="templateId">
- <el-select v-model="form.templateId" placeholder="鑰冩牳妯℃澘" disabled>
- <el-option
- v-for="item in templateList"
- :key="item.id"
- :label="item.value"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="鑰冩牳鑼冨洿" prop="examineRange" >
- <el-select
- v-model="form.examineRange"
- placeholder="鑰冩牳鑼冨洿"
- clearable
- style="width: 170px"
- disabled
- >
- <el-option
- v-for="dict in dict.type.platform_examine_range"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
-
- <el-form-item label="鑰冩牳棰戠巼" prop="frequency" >
- <el-select
- v-model="form.frequency"
- placeholder="鑰冩牳棰戠巼"
- clearable
- style="width: 170px"
- disabled
- >
- <el-option
- v-for="dict in dict.type.platform_examine_frequency"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鎶ヨ鍒嗘暟闃堝��" prop="alarmScore">
- <el-input v-model="form.alarmScore" placeholder="璇疯緭鍏ュ垎鏁�" style="width: 170px" disabled/>
- </el-form-item>
- <el-form-item label="鑰冩牳鐘舵��" prop="state">
- <el-select
- v-model="form.state"
- placeholder="鑰冩牳鐘舵��"
- clearable
- style="width: 170px"
- disabled
- >
- <el-option
- v-for="dict in dict.type.sys_normal_disable"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鎻忚堪" prop="description">
- <el-input v-model="form.description" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" disabled/>
- </el-form-item>
- <el-form-item label="瀹℃牳缁撴灉" prop="auditState" >
- <el-radio-group v-model="form.auditState">
- <el-radio :label="1">閫氳繃</el-radio>
- <el-radio :label="2">椹冲洖</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item label="瀹℃牳璇存槑" prop="auditDescription" >
- <el-input v-model="form.auditDescription" type="textarea" show-word-limit maxlength="100" />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
- <el-button @click="cancel">鍙� 娑�</el-button>
- </div>
- </el-dialog>
- </div>
- </div>
-</template>
-
-<script>
-import { listPublish, getPublish, delPublish, addPublish, updatePublish } from "@/api/platform/contract-publish";
-import { templateSelect } from "@/api/platform/check-template";
-export default {
- name: "Publish",
- dicts: ['sys_normal_disable','platform_examine_range','platform_examine_frequency','platform_audit_state'],
- data() {
- return {
- // 閬僵灞�
- loading: true,
- // 閫変腑鏁扮粍
- ids: [],
- // 闈炲崟涓鐢�
- single: true,
- // 闈炲涓鐢�
- multiple: true,
- // 鏄剧ず鎼滅储鏉′欢
- showSearch: true,
- // 鎬绘潯鏁�
- total: 0,
- // 鑰冩牳鍙戝竷琛ㄦ牸鏁版嵁
- publishList: [],
- // 寮瑰嚭灞傛爣棰�
- title: "",
- // 鏄惁鏄剧ず寮瑰嚭灞�
- open: false,
- auditOpen: false,
- // 鏌ヨ鍙傛暟
- queryParams: {
- pageNum: 1,
- pageSize: 10,
- examineName: null,
- frequency: null,
- state: null,
- examineRange: null,
- },
- // 鑰冩牳妯℃澘
- templateList: [],
- // 琛ㄥ崟鍙傛暟
- form: {},
- // 琛ㄥ崟鏍¢獙
- rules: {
- }
- };
- },
- created() {
- this.getList();
- this.getTemplateSelect();
- },
- methods: {
- /** 鑰冩牳妯℃澘涓嬫媺鍒楄〃 */
- getTemplateSelect() {
- templateSelect().then((res) => {
- this.templateList = res.data;
- })
- },
- /** 鏌ヨ鑰冩牳鍙戝竷鍒楄〃 */
- getList() {
- this.loading = true;
- listPublish(this.queryParams).then(response => {
- this.publishList = response.rows;
- this.total = response.total;
- this.loading = false;
- });
- },
- // 鍙栨秷鎸夐挳
- cancel() {
- this.open = false;
- this.auditOpen = false;
- this.reset();
- },
- // 琛ㄥ崟閲嶇疆
- reset() {
- this.form = {
- examineName: null,
- templateId: null,
- examineRange: null,
- frequency: null,
- state: null,
- createTime: null,
- createUser: null,
- updateTime: null,
- updateUser: null,
- description: null
- };
- this.resetForm("form");
- },
- /** 鎼滅储鎸夐挳鎿嶄綔 */
- handleQuery() {
- this.queryParams.pageNum = 1;
- this.getList();
- },
- /** 閲嶇疆鎸夐挳鎿嶄綔 */
- resetQuery() {
- this.resetForm("queryForm");
- this.handleQuery();
- },
- // 澶氶�夋閫変腑鏁版嵁
- handleSelectionChange(selection) {
- this.ids = selection.map(item => item.id)
- this.single = selection.length!==1
- this.multiple = !selection.length
- },
- /** 鏂板鎸夐挳鎿嶄綔 */
- handleAdd() {
- this.reset();
- this.open = true;
- this.title = "娣诲姞鑰冩牳鍙戝竷";
- },
- /** 淇敼鎸夐挳鎿嶄綔 */
- handleUpdate(row) {
- this.reset();
- const id = row.id || this.ids
- getPublish(id).then(response => {
- this.form = response.data;
- this.open = true;
- this.title = "淇敼鑰冩牳鍙戝竷";
- });
- },
- /** 淇敼鎸夐挳鎿嶄綔 */
- handleAudit(row) {
- this.reset();
- const id = row.id || this.ids
- getPublish(id).then(response => {
- this.form = response.data;
- this.auditOpen = true;
- this.title = "瀹℃牳鑰冩牳鍙戝竷";
- });
- },
- /** 鎻愪氦鎸夐挳 */
- submitForm() {
- this.$refs["form"].validate(valid => {
- if (valid) {
- if (this.form.id != null) {
- updatePublish(this.form).then(response => {
- this.$modal.msgSuccess("淇敼鎴愬姛");
- this.open = false;
- this.auditOpen = false;
- this.getList();
- });
- } else {
- addPublish(this.form).then(response => {
- this.$modal.msgSuccess("鏂板鎴愬姛");
- this.open = false;
- this.auditOpen = false;
- this.getList();
- });
- }
- }
- });
- },
- /** 鍒犻櫎鎸夐挳鎿嶄綔 */
- handleDelete(row) {
- const ids = row.id || this.ids;
- this.$modal.confirm('鏄惁纭鍒犻櫎鑰冩牳鍙戝竷缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
- return delPublish(ids);
- }).then(() => {
- this.getList();
- this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
- }).catch(() => {});
- },
- /** 瀵煎嚭鎸夐挳鎿嶄綔 */
- handleExport() {
- this.download('system/publish/export', {
- ...this.queryParams
- }, `publish_${new Date().getTime()}.xlsx`)
- }
- }
-};
-</script>
diff --git a/src/views/system/publish/province/index.vue b/src/views/system/publish/province/index.vue
deleted file mode 100644
index f5368ee..0000000
--- a/src/views/system/publish/province/index.vue
+++ /dev/null
@@ -1,497 +0,0 @@
-<template>
- <div class="app-container">
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
- <el-form-item label="鑰冩牳鍚�" prop="examineName">
- <el-input
- v-model="queryParams.examineName"
- placeholder="璇疯緭鍏ヨ�冩牳鍚�"
- clearable
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="鑰冩牳鑼冨洿" prop="examineRange">
- <el-select
- v-model="queryParams.examineRange"
- placeholder="鑰冩牳鑼冨洿"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.platform_examine_range"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鑰冩牳棰戠巼" prop="frequency">
- <el-select
- v-model="queryParams.frequency"
- placeholder="鑰冩牳棰戠巼"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.platform_examine_frequency"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value"
- />
- </el-select>
- </el-form-item>
-
- <el-form-item label="鑰冩牳鐘舵��" prop="state">
- <el-select
- v-model="queryParams.state"
- placeholder="鑰冩牳鐘舵��"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.sys_normal_disable"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value"
- />
- </el-select>
- </el-form-item>
-
- <el-form-item>
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
- </el-form-item>
- </el-form>
-
- <el-row :gutter="10" class="mb8">
- <el-col :span="1.5">
- <el-button
- type="primary"
- plain
- icon="el-icon-plus"
- size="mini"
- @click="handleAdd"
- >鏂板</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="success"
- plain
- icon="el-icon-edit"
- size="mini"
- :disabled="single"
- @click="handleUpdate"
- >淇敼</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="danger"
- plain
- icon="el-icon-delete"
- size="mini"
- :disabled="multiple"
- @click="handleDelete"
- >鍒犻櫎</el-button>
- </el-col>
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
- </el-row>
-
- <el-table v-loading="loading" :data="publishList" @selection-change="handleSelectionChange">
- <el-table-column type="selection" width="55" align="center" />
- <el-table-column label="鑰冩牳鍚�" align="center" prop="examineName" />
- <el-table-column label="鑰冩牳鑼冨洿" align="center" prop="examineRange" >
- <template slot-scope="scope">
- <dict-tag :options="dict.type.platform_examine_range" :value="scope.row.examineRange"/>
- </template>
- </el-table-column>
- <el-table-column label="鑰冩牳棰戠巼" align="center" prop="frequency">
- <template slot-scope="scope">
- <dict-tag :options="dict.type.platform_examine_frequency" :value="scope.row.frequency"/>
- </template>
- </el-table-column>
- <el-table-column label="鎶ヨ鍒嗘暟闃堝��" align="center" prop="alarmScore" />
- <el-form-item label="鎶ヨ鍒嗘暟闃堝��" prop="alarmScore">
- <el-input v-model="form.alarmScore" placeholder="璇疯緭鍏ュ垎鏁�" />
- </el-form-item>
- <el-table-column label="鑰冩牳鐘舵��" align="center" prop="state">
- <template slot-scope="scope">
- <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.state"/>
- </template>
- </el-table-column>
- <el-table-column label="淇敼浜�" align="center" prop="updateUserName" />
- <el-table-column label="淇敼鏃堕棿" align="center" prop="updateTime" width="170px" />
- <el-table-column label="瀹℃牳鐘舵��" align="center" prop="auditState">
- <template slot-scope="scope">
- <dict-tag :options="dict.type.platform_audit_state" :value="scope.row.auditState"/>
- </template>
- </el-table-column>
- <el-table-column label="瀹℃牳浜�" align="center" prop="auditUser" />
- <el-table-column label="瀹℃牳鏃堕棿" align="center" prop="auditTime" width="170px"/>
- <el-table-column label="瀹℃牳鎰忚" align="center" prop="auditDescription" />
- <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-s-check"
- @click="handleAudit(scope.row)"
- v-hasPermi="['examine:publish:audit']"
- >瀹℃牳</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-edit"
- @click="handleUpdate(scope.row)"
- >淇敼</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDelete(scope.row)"
- >鍒犻櫎</el-button>
- </template>
- </el-table-column>
- </el-table>
-
- <pagination
- v-show="total>0"
- :total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
- @pagination="getList"
- />
- <div>
- <!-- 娣诲姞鎴栦慨鏀硅�冩牳鍙戝竷瀵硅瘽妗� -->
- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
- <el-form ref="form" :model="form" :rules="rules" label-width="100px">
- <el-form-item label="鑰冩牳鍚�" prop="examineName">
- <el-input v-model="form.examineName" placeholder="璇疯緭鍏ヨ�冩牳鍚�" />
- </el-form-item>
-
- <el-form-item label="鑰冩牳妯℃澘" prop="templateId">
- <el-select v-model="form.templateId" placeholder="鑰冩牳妯℃澘">
- <el-option
- v-for="item in templateList"
- :key="item.id"
- :label="item.value"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="鑰冩牳鑼冨洿" prop="examineRange">
- <el-select
- v-model="form.examineRange"
- placeholder="鑰冩牳鑼冨洿"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.platform_examine_range"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鑰冩牳棰戠巼">
- <el-select
- v-model="form.frequency"
- placeholder="鑰冩牳棰戠巼"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.platform_examine_frequency"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鎶ヨ鍒嗘暟闃堝��" prop="alarmScore">
- <el-input v-model="form.alarmScore" placeholder="璇疯緭鍏ュ垎鏁�" style="width: 170px"/>
- </el-form-item>
- <el-form-item label="鑰冩牳鐘舵��" prop="state">
- <el-select
- v-model="form.state"
- placeholder="鑰冩牳鐘舵��"
- clearable
- style="width: 170px"
- >
- <el-option
- v-for="dict in dict.type.sys_normal_disable"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鎻忚堪" prop="description">
- <el-input v-model="form.description" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
- <el-button @click="cancel">鍙� 娑�</el-button>
- </div>
- </el-dialog>
-
- <!-- 瀹℃牳鑰冩牳鍙戝竷瀵硅瘽妗� -->
- <el-dialog :title="title" :visible.sync="auditOpen" width="500px" append-to-body>
- <el-form ref="form" :model="form" :rules="rules" label-width="100px">
- <el-form-item label="鑰冩牳鍚�" prop="examineName">
- <el-input v-model="form.examineName" placeholder="璇疯緭鍏ヨ�冩牳鍚�" disabled/>
- </el-form-item>
- <el-form-item label="鑰冩牳妯℃澘" prop="templateId">
- <el-select v-model="form.templateId" placeholder="鑰冩牳妯℃澘" disabled>
- <el-option
- v-for="item in templateList"
- :key="item.id"
- :label="item.value"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="鑰冩牳鑼冨洿" prop="examineRange" >
- <el-select
- v-model="form.examineRange"
- placeholder="鑰冩牳鑼冨洿"
- clearable
- style="width: 170px"
- disabled
- >
- <el-option
- v-for="dict in dict.type.platform_examine_range"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
-
- <el-form-item label="鑰冩牳棰戠巼" prop="frequency" >
- <el-select
- v-model="form.frequency"
- placeholder="鑰冩牳棰戠巼"
- clearable
- style="width: 170px"
- disabled
- >
- <el-option
- v-for="dict in dict.type.platform_examine_frequency"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鎶ヨ鍒嗘暟闃堝��" prop="alarmScore">
- <el-input v-model="form.alarmScore" placeholder="璇疯緭鍏ュ垎鏁�" style="width: 170px" disabled/>
- </el-form-item>
- <el-form-item label="鑰冩牳鐘舵��" prop="state">
- <el-select
- v-model="form.state"
- placeholder="鑰冩牳鐘舵��"
- clearable
- style="width: 170px"
- disabled
- >
- <el-option
- v-for="dict in dict.type.sys_normal_disable"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="鎻忚堪" prop="description">
- <el-input v-model="form.description" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" disabled/>
- </el-form-item>
- <el-form-item label="瀹℃牳缁撴灉" prop="auditState" >
- <el-radio-group v-model="form.auditState">
- <el-radio :label="1">閫氳繃</el-radio>
- <el-radio :label="2">椹冲洖</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item label="瀹℃牳璇存槑" prop="auditDescription" >
- <el-input v-model="form.auditDescription" type="textarea" show-word-limit maxlength="100" />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
- <el-button @click="cancel">鍙� 娑�</el-button>
- </div>
- </el-dialog>
- </div>
- </div>
-</template>
-
-<script>
-import { listPublish, getPublish, delPublish, addPublish, updatePublish } from "@/api/platform/check-publish";
-import { templateSelect } from "@/api/platform/check-template";
-export default {
- name: "Publish",
- dicts: ['sys_normal_disable','platform_examine_range','platform_examine_frequency','platform_audit_state'],
- data() {
- return {
- // 閬僵灞�
- loading: true,
- // 閫変腑鏁扮粍
- ids: [],
- // 闈炲崟涓鐢�
- single: true,
- // 闈炲涓鐢�
- multiple: true,
- // 鏄剧ず鎼滅储鏉′欢
- showSearch: true,
- // 鎬绘潯鏁�
- total: 0,
- // 鑰冩牳鍙戝竷琛ㄦ牸鏁版嵁
- publishList: [],
- // 寮瑰嚭灞傛爣棰�
- title: "",
- // 鏄惁鏄剧ず寮瑰嚭灞�
- open: false,
- auditOpen: false,
- // 鏌ヨ鍙傛暟
- queryParams: {
- pageNum: 1,
- pageSize: 10,
- examineName: null,
- frequency: null,
- state: null,
- examineRange: null,
- },
- // 鑰冩牳妯℃澘
- templateList: [],
- // 琛ㄥ崟鍙傛暟
- form: {},
- // 琛ㄥ崟鏍¢獙
- rules: {
- }
- };
- },
- created() {
- this.getList();
- this.getTemplateSelect();
- },
- methods: {
- /** 鑰冩牳妯℃澘涓嬫媺鍒楄〃 */
- getTemplateSelect() {
- templateSelect().then((res) => {
- this.templateList = res.data;
- })
- },
- /** 鏌ヨ鑰冩牳鍙戝竷鍒楄〃 */
- getList() {
- this.loading = true;
- listPublish(this.queryParams).then(response => {
- this.publishList = response.rows;
- this.total = response.total;
- this.loading = false;
- });
- },
- // 鍙栨秷鎸夐挳
- cancel() {
- this.open = false;
- this.auditOpen = false;
- this.reset();
- },
- // 琛ㄥ崟閲嶇疆
- reset() {
- this.form = {
- examineName: null,
- templateId: null,
- examineRange: null,
- frequency: null,
- state: null,
- createTime: null,
- createUser: null,
- updateTime: null,
- updateUser: null,
- description: null
- };
- this.resetForm("form");
- },
- /** 鎼滅储鎸夐挳鎿嶄綔 */
- handleQuery() {
- this.queryParams.pageNum = 1;
- this.getList();
- },
- /** 閲嶇疆鎸夐挳鎿嶄綔 */
- resetQuery() {
- this.resetForm("queryForm");
- this.handleQuery();
- },
- // 澶氶�夋閫変腑鏁版嵁
- handleSelectionChange(selection) {
- this.ids = selection.map(item => item.id)
- this.single = selection.length!==1
- this.multiple = !selection.length
- },
- /** 鏂板鎸夐挳鎿嶄綔 */
- handleAdd() {
- this.reset();
- this.open = true;
- this.title = "娣诲姞鑰冩牳鍙戝竷";
- },
- /** 淇敼鎸夐挳鎿嶄綔 */
- handleUpdate(row) {
- this.reset();
- const id = row.id || this.ids
- getPublish(id).then(response => {
- this.form = response.data;
- this.open = true;
- this.title = "淇敼鑰冩牳鍙戝竷";
- });
- },
- /** 淇敼鎸夐挳鎿嶄綔 */
- handleAudit(row) {
- this.reset();
- const id = row.id || this.ids
- getPublish(id).then(response => {
- this.form = response.data;
- this.auditOpen = true;
- this.title = "瀹℃牳鑰冩牳鍙戝竷";
- });
- },
- /** 鎻愪氦鎸夐挳 */
- submitForm() {
- this.$refs["form"].validate(valid => {
- if (valid) {
- if (this.form.id != null) {
- updatePublish(this.form).then(response => {
- this.$modal.msgSuccess("淇敼鎴愬姛");
- this.open = false;
- this.auditOpen = false;
- this.getList();
- });
- } else {
- addPublish(this.form).then(response => {
- this.$modal.msgSuccess("鏂板鎴愬姛");
- this.open = false;
- this.auditOpen = false;
- this.getList();
- });
- }
- }
- });
- },
- /** 鍒犻櫎鎸夐挳鎿嶄綔 */
- handleDelete(row) {
- const ids = row.id || this.ids;
- this.$modal.confirm('鏄惁纭鍒犻櫎鑰冩牳鍙戝竷缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
- return delPublish(ids);
- }).then(() => {
- this.getList();
- this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
- }).catch(() => {});
- },
- /** 瀵煎嚭鎸夐挳鎿嶄綔 */
- handleExport() {
- this.download('system/publish/export', {
- ...this.queryParams
- }, `publish_${new Date().getTime()}.xlsx`)
- }
- }
-};
-</script>
diff --git a/src/views/system/rule/default/index.vue b/src/views/system/rule/default/index.vue
deleted file mode 100644
index a7f6741..0000000
--- a/src/views/system/rule/default/index.vue
+++ /dev/null
@@ -1,316 +0,0 @@
-<template>
- <div class="app-container">
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
- <el-form-item label="瑙勫垯鍚嶇О" prop="ruleName">
- <el-input
- v-model="queryParams.ruleName"
- placeholder="璇疯緭鍏ヨ鍒欏悕绉�"
- clearable
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="鎵e噺鏂瑰紡" prop="deductCategory">
- <el-select v-model="queryParams.deductCategory" placeholder="璇烽�夋嫨鎵e噺鏂瑰紡" clearable>
- <el-option
- v-for="dict in dict.type.platform_deduct_category"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="瑙勫垯鐘舵��" prop="ruleStatus">
- <el-select v-model="queryParams.ruleStatus" placeholder="璇烽�夋嫨瑙勫垯鐘舵��" clearable>
- <el-option
- v-for="dict in dict.type.sys_normal_disable"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value"
- />
- </el-select>
- </el-form-item>
- <el-form-item>
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
- </el-form-item>
- </el-form>
-
- <el-row :gutter="10" class="mb8">
- <el-col :span="1.5">
- <el-button
- type="primary"
- plain
- icon="el-icon-plus"
- size="mini"
- @click="handleAdd"
- v-hasPermi="['system:rule:add']"
- >鏂板</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="info"
- plain
- icon="el-icon-sort"
- size="mini"
- @click="toggleExpandAll"
- >灞曞紑/鎶樺彔</el-button>
- </el-col>
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
- </el-row>
-
- <el-table
- v-if="refreshTable"
- v-loading="loading"
- :data="ruleList"
- row-key="id"
- :default-expand-all="isExpandAll"
- :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
- >
- <el-table-column label="瑙勫垯鍚嶇О" prop="ruleName" />
- <el-table-column label="鎵e噺鏂瑰紡" align="center" prop="deductCategory">
- <template slot-scope="scope">
- <dict-tag :options="dict.type.platform_deduct_category" :value="scope.row.deductCategory"/>
- </template>
- </el-table-column>
- <el-table-column label="瑙勫垯鎻忚堪" align="center" prop="ruleDesc" />
- <el-table-column label="瑙勫垯鐘舵��" align="center" prop="ruleStatus">
- <template slot-scope="scope">
- <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.ruleStatus"/>
- </template>
- </el-table-column>
- <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-edit"
- @click="handleUpdate(scope.row)"
- v-hasPermi="['system:rule:edit']"
- >淇敼</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-plus"
- @click="handleAdd(scope.row)"
- v-hasPermi="['system:rule:add']"
- >鏂板</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDelete(scope.row)"
- v-hasPermi="['system:rule:remove']"
- >鍒犻櫎</el-button>
- </template>
- </el-table-column>
- </el-table>
-
- <!-- 娣诲姞鎴栦慨鏀硅繚绾﹁鍒欏璇濇 -->
- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
- <el-form ref="form" :model="form" :rules="rules" label-width="80px">
- <el-form-item label="瑙勫垯鍚嶇О" prop="ruleName">
- <el-input v-model="form.ruleName" placeholder="璇疯緭鍏ヨ鍒欏悕绉�" />
- </el-form-item>
- <el-form-item label="鎵e噺鏂瑰紡" prop="deductCategory">
- <el-select v-model="form.deductCategory" placeholder="璇烽�夋嫨鎵e噺鏂瑰紡">
- <el-option
- v-for="dict in dict.type.platform_deduct_category"
- :key="dict.value"
- :label="dict.label"
- :value="parseInt(dict.value)"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="瑙勫垯鎻忚堪" prop="ruleDesc">
- <el-input v-model="form.ruleDesc" placeholder="璇疯緭鍏ヨ鍒欐弿杩�" />
- </el-form-item>
- <el-form-item label="瑙勫垯鐘舵��" prop="ruleStatus">
- <el-radio-group v-model="form.ruleStatus">
- <el-radio
- v-for="dict in dict.type.sys_normal_disable"
- :key="dict.value"
- :label="dict.value"
- >{{dict.label}}</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
- <el-button @click="cancel">鍙� 娑�</el-button>
- </div>
- </el-dialog>
- </div>
-</template>
-
-<script>
-import { listRule, getRule, delRule, addRule, updateRule } from "@/api/platform/calculate-rule";
-import Treeselect from "@riophae/vue-treeselect";
-import "@riophae/vue-treeselect/dist/vue-treeselect.css";
-
-export default {
- name: "Rule",
- dicts: ['platform_deduct_category', 'sys_normal_disable'],
- components: {
- Treeselect
- },
- data() {
- return {
- // 閬僵灞�
- loading: true,
- // 鏄剧ず鎼滅储鏉′欢
- showSearch: true,
- // 杩濈害瑙勫垯琛ㄦ牸鏁版嵁
- ruleList: [],
- // 杩濈害瑙勫垯鏍戦�夐」
- ruleOptions: [],
- // 寮瑰嚭灞傛爣棰�
- title: "",
- // 鏄惁鏄剧ず寮瑰嚭灞�
- open: false,
- // 鏄惁灞曞紑锛岄粯璁ゅ叏閮ㄥ睍寮�
- isExpandAll: true,
- // 閲嶆柊娓叉煋琛ㄦ牸鐘舵��
- refreshTable: true,
- // 鏌ヨ鍙傛暟
- queryParams: {
- ruleName: null,
- deductCategory: null,
- ruleStatus: null,
- },
- // 琛ㄥ崟鍙傛暟
- form: {},
- // 琛ㄥ崟鏍¢獙
- rules: {
- ruleName: [
- { required: true, message: "瑙勫垯鍚嶇О涓嶈兘涓虹┖", trigger: "blur" }
- ],
- }
- };
- },
- created() {
- this.getList();
- },
- methods: {
- /** 鏌ヨ杩濈害瑙勫垯鍒楄〃 */
- getList() {
- this.loading = true;
- listRule(this.queryParams).then(response => {
- this.ruleList = this.handleTree(response.data, "id", "parentId");
- this.loading = false;
- });
- },
- /** 杞崲杩濈害瑙勫垯鏁版嵁缁撴瀯 */
- normalizer(node) {
- if (node.children && !node.children.length) {
- delete node.children;
- }
- return {
- id: node.id,
- label: node.ruleName,
- children: node.children
- };
- },
- /** 鏌ヨ杩濈害瑙勫垯涓嬫媺鏍戠粨鏋� */
- getTreeselect() {
- listRule().then(response => {
- this.ruleOptions = [];
- const data = { id: 0, ruleName: '椤剁骇鑺傜偣', children: [] };
- data.children = this.handleTree(response.data, "id", "parentId");
- this.ruleOptions.push(data);
- });
- },
- // 鍙栨秷鎸夐挳
- cancel() {
- this.open = false;
- this.reset();
- },
- // 琛ㄥ崟閲嶇疆
- reset() {
- this.form = {
- id: null,
- ruleName: null,
- parentId: null,
- deductCategory: null,
- deductWay: null,
- ruleDesc: null,
- ruleStatus: null,
- createTime: null,
- updateTime: null,
- deleted: null
- };
- this.resetForm("form");
- },
- /** 鎼滅储鎸夐挳鎿嶄綔 */
- handleQuery() {
- this.getList();
- },
- /** 閲嶇疆鎸夐挳鎿嶄綔 */
- resetQuery() {
- this.resetForm("queryForm");
- this.handleQuery();
- },
- /** 鏂板鎸夐挳鎿嶄綔 */
- handleAdd(row) {
- this.reset();
- this.getTreeselect();
- if (row != null && row.id) {
- this.form.parentId = row.id;
- } else {
- this.form.parentId = 0;
- }
- this.open = true;
- this.title = "娣诲姞杩濈害瑙勫垯";
- },
- /** 灞曞紑/鎶樺彔鎿嶄綔 */
- toggleExpandAll() {
- this.refreshTable = false;
- this.isExpandAll = !this.isExpandAll;
- this.$nextTick(() => {
- this.refreshTable = true;
- });
- },
- /** 淇敼鎸夐挳鎿嶄綔 */
- handleUpdate(row) {
- this.reset();
- this.getTreeselect();
- if (row != null) {
- this.form.parentId = row.id;
- }
- getRule(row.id).then(response => {
- this.form = response.data;
- this.open = true;
- this.title = "淇敼杩濈害瑙勫垯";
- });
- },
- /** 鎻愪氦鎸夐挳 */
- submitForm() {
- this.$refs["form"].validate(valid => {
- if (valid) {
- if (this.form.id != null) {
- updateRule(this.form).then(response => {
- this.$modal.msgSuccess("淇敼鎴愬姛");
- this.open = false;
- this.getList();
- });
- } else {
- addRule(this.form).then(response => {
- this.$modal.msgSuccess("鏂板鎴愬姛");
- this.open = false;
- this.getList();
- });
- }
- }
- });
- },
- /** 鍒犻櫎鎸夐挳鎿嶄綔 */
- handleDelete(row) {
- this.$modal.confirm('鏄惁纭鍒犻櫎杩濈害瑙勫垯缂栧彿涓�"' + row.id + '"鐨勬暟鎹」锛�').then(function() {
- return delRule(row.id);
- }).then(() => {
- this.getList();
- this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
- }).catch(() => {});
- }
- }
-};
-</script>
diff --git a/src/views/system/template/default/index.vue b/src/views/system/template/default/index.vue
deleted file mode 100644
index 01773b0..0000000
--- a/src/views/system/template/default/index.vue
+++ /dev/null
@@ -1,454 +0,0 @@
-<template>
- <div class="app-container">
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
- <el-form-item label="鐘舵��" prop="status">
- <el-input
- v-model="queryParams.status"
- placeholder="璇疯緭鍏ョ姸鎬�"
- clearable
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="鑰冩牳瀵硅薄" prop="unitName">
- <el-input
- v-model="queryParams.status"
- placeholder="璇疯緭鍏ヨ�冩牳瀵硅薄"
- clearable
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="鍒涘缓鏃堕棿">
- <el-date-picker
- v-model="daterangeCreateTime"
- style="width: 240px"
- value-format="yyyy-MM-dd"
- type="daterange"
- range-separator="-"
- start-placeholder="寮�濮嬫棩鏈�"
- end-placeholder="缁撴潫鏃ユ湡"
- ></el-date-picker>
- </el-form-item>
- <el-form-item>
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
- </el-form-item>
- </el-form>
-
- <el-row :gutter="10" class="mb8">
- <el-col :span="1.5">
- <el-button
- type="primary"
- plain
- icon="el-icon-plus"
- size="mini"
- @click="handleAdd"
- v-hasPermi="['platform:template:add']"
- >鏂板</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="success"
- plain
- icon="el-icon-edit"
- size="mini"
- :disabled="single"
- v-hasPermi="['platform:template:edit']"
- @click="handleUpdate"
- >淇敼</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="danger"
- plain
- icon="el-icon-delete"
- size="mini"
- :disabled="multiple"
- v-hasPermi="['platform:template:remove']"
- @click="handleDelete"
- >鍒犻櫎</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="warning"
- plain
- icon="el-icon-download"
- size="mini"
- v-hasPermi="['platform:template:export']"
- @click="handleExport"
- >瀵煎嚭</el-button>
- </el-col>
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
- </el-row>
-
- <el-table v-loading="loading" :data="checkTemplateList" @selection-change="handleSelectionChange">
- <el-table-column type="selection" width="55" align="center" />
- <el-table-column label="妯℃澘鍚嶇О" align="center" prop="templateName" width="220px"/>
- <el-table-column label="鑰冩牳绫诲瀷" align="center" prop="examineCategory" />
- <el-table-column label="鑰冩牳瀵硅薄" align="center" prop="unitId" width="400px" >
- <template slot-scope="scope">
- <div v-if="scope.row.unitId === 2">鎴愰兘x杩愮淮</div>
- <div v-else-if="scope.row.unitId === 3">瀵岄『鍘�,鑽e幙,楂樻柊鍖�,鑷祦浜曞尯,璐′簳鍖�,澶у畨鍖�,娌挎哗鍖�</div>
- </template>
- </el-table-column>
- <el-table-column label="鐘舵��" align="center" prop="status" />
- <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-edit"
- @click="handleUpdate(scope.row)"
- v-hasPermi="['platform:template:edit']"
- >淇敼</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDelete(scope.row)"
- v-hasPermi="['platform:template:remove']"
- >鍒犻櫎</el-button>
- </template>
- </el-table-column>
- </el-table>
-
- <pagination
- v-show="total>0"
- :total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
- @pagination="getList"
- />
-
- <!-- 娣诲姞鎴栦慨鏀硅�冩牳妯℃澘瀵硅瘽妗� -->
- <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
- <el-form ref="form" :model="form" :rules="rules" label-width="80px">
- <el-form-item label="妯℃澘鍚嶇О" prop="templateName">
- <el-input v-model="form.templateName" placeholder="璇疯緭鍏ユā鏉垮悕绉�" />
- </el-form-item>
- <el-form-item label="鑰冩牳绫诲瀷" prop="examineCategory">
- <el-select v-model="form.examineCategory" placeholder="璇烽�夋嫨鑰冩牳绫诲瀷">
- <el-option label="鐪佸巺鑰冩牳" value="鐪佸巺鑰冩牳"/>
- <el-option label="鍖哄幙鑰冩牳" value="鍖哄幙鑰冩牳"/>
- <el-option label="杩愮淮鑰冩牳" value="鍏徃鑰冩牳"/>
- </el-select>
- </el-form-item>
- <el-form-item label="鑰冩牳瀵硅薄" prop="unitName">
- <div class="block">
- <span class="demonstration"></span>
- <el-cascader
- v-model="value"
- :options="options"
- :props = "props"
- @change="handleChange"></el-cascader>
- </div>
-
- </el-form-item>
- <el-form-item label="鑰冩牳瑙勫垯" prop="tempRuleFormList">
- <div class="row-warp">
- <div class="row" v-for="(form) in tempRuleFormList">
- <div class="row-left">
- <div>瑙勫垯</div>
- <div class="margin-5">
- <el-select v-model="form.ruleId" placeholder="璇烽�夋嫨">
- <el-option
- v-for="item in ruleList"
- :key="item.id"
- :label="item.value"
- :value="item.id">
- </el-option>
- </el-select>
- </div>
- </div>
- <div class="row-right">
- <div>鎵e垎绯绘暟</div>
- <div class="margin-5">
- <el-input type="number" v-model="form.weight"/>
- </div>
- </div>
- <div class="item-op">
- <el-button @click="removeRule(form)" type="danger" icon="el-icon-delete" circle></el-button>
- </div>
- </div>
- <div style="margin-top: 25px">
- <el-button type="success" @click="nextAdd" size="mini" plain>娣诲姞</el-button>
- </div>
- </div>
- </el-form-item>
- <el-form-item label="鐘舵��" prop="status">
- <el-radio v-model="form.status" label="use">鍚敤</el-radio>
- <el-radio v-model="form.status" label="stop">鍋滅敤</el-radio>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
- <el-button @click="cancel">鍙� 娑�</el-button>
- </div>
- </el-dialog>
- </div>
-</template>
-
-<script>
-import { listTemplate, getTemplate, delTemplate, addTemplate, updateTemplate } from "@/api/platform/default-template";
-// import { ruleSelect } from '@/api/platform/calculate-rule'
-import { unitSelect } from '@/api/platform/unit'
-
-export default {
- name: "CheckTemplate",
- data() {
- return {
- props: { multiple: true },
- value: [],
- options: [{
- value: 'city',
- label: '鍖哄幙',
- children: [{
- value: 'fushun',
- label: '瀵岄『鍘�',
- }, {
- value: 'rong',
- label: '鑽e幙',
- },{
- value: 'gaoxin',
- label: '楂樻柊鍖�',
- },{
- value: 'ziliujing',
- label: '鑷祦浜曞尯',
- },{
- value: 'gongjing',
- label: '璐′簳鍖�',
- },{
- value: 'daan',
- label: '澶у畨鍖�',
- },{
- value: 'yantan',
- label: '娌挎哗鍖�',
- },
- ]
- }, {
- value: 'company',
- label: '鍏徃',
- children: [{
- value: 'yunwei',
- label: '鎴愰兘x杩愮淮',
- }, {
- value: 'yunwei2',
- label: '鑷础x杩愮淮',
- }, ]
- },
- ],
- ruleList: [],
- unitList: [],
- // 涓存椂瑙勫垯琛ㄥ崟
- tempRuleForm: {},
- // 涓存椂瑙勫垯琛ㄥ崟鍒楄〃
- tempRuleFormList: [{"ruleId": null, "adjustCoefficient": null}],
- // 鏈�缁�
- ruleFormList: [],
- // 閬僵灞�
- loading: true,
- // 閫変腑鏁扮粍
- ids: [],
- // 闈炲崟涓鐢�
- single: true,
- // 闈炲涓鐢�
- multiple: true,
- // 鏄剧ず鎼滅储鏉′欢
- showSearch: true,
- // 鎬绘潯鏁�
- total: 0,
- // 鑰冩牳妯℃澘琛ㄦ牸鏁版嵁
- checkTemplateList: [],
- // 寮瑰嚭灞傛爣棰�
- title: "",
- // 鏄惁鏄剧ず寮瑰嚭灞�
- open: false,
- // 鐘舵�佹椂闂磋寖鍥�
- daterangeCreateTime: [],
- // 鏌ヨ鍙傛暟
- queryParams: {
- pageNum: 1,
- pageSize: 10,
- status: null,
- createTime: null,
- },
- // 琛ㄥ崟鍙傛暟
- form: {},
- // 琛ㄥ崟鏍¢獙
- rules: {
- templateName: [
- { required: true, message: "妯℃澘鍚嶇О涓嶈兘涓虹┖", trigger: "blur" }
- ],
- }
- };
- },
- created() {
- this.getList();
- this.selectCheckRule();
- this.selectUnit();
- },
- methods: {
- handleChange(value) {
- console.log(value);
- },
- removeRule(form) {
- console.log(form)
- this.ruleFormList = this.ruleFormList.filter(item => item !== form);
- this.tempRuleFormList = this.tempRuleFormList.filter(item => item !== form)
- },
- nextAdd() {
- // if (this.tempRuleFormList.length === 0) {
- // this.tempRuleFormList.push({"ruleId": null, "weight": null})
- // } else {
- // this.ruleFormList.push(this.tempRuleForm);
- // this.tempRuleFormList.push(this.tempRuleForm);
- // this.tempRuleForm = {};
- // }
- this.tempRuleFormList.push({"ruleId": null, "weight": null})
- },
- // 鑰冩牳瑙勫垯涓嬫媺鏁版嵁
- // selectCheckRule() {
- // ruleSelect().then(res => {
- // this.ruleList = res.data;
- // })
- // },
- // 杩愮淮鍏徃涓嬫媺鏁版嵁
- selectUnit() {
- unitSelect().then(res => {
- this.unitList = res.data;
- })
- },
- /** 鏌ヨ鑰冩牳妯℃澘鍒楄〃 */
- getList() {
- this.loading = true;
- if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
- this.queryParams["start"] = this.daterangeCreateTime[0];
- this.queryParams["end"] = this.daterangeCreateTime[1];
- }
- listTemplate(this.queryParams).then(response => {
- this.checkTemplateList = response.data;
- this.total = response.total;
- this.loading = false;
- });
- },
- // 鍙栨秷鎸夐挳
- cancel() {
- this.open = false;
- this.reset();
- },
- // 琛ㄥ崟閲嶇疆
- reset() {
- this.form = {
- id: null,
- adjustCoefficient: null,
- adjustWay: null,
- status: null,
- createTime: null,
- updateTime: null,
- deleted: null
- };
- this.resetForm("form");
- },
- /** 鎼滅储鎸夐挳鎿嶄綔 */
- handleQuery() {
- this.queryParams.pageNum = 1;
- this.getList();
- },
- /** 閲嶇疆鎸夐挳鎿嶄綔 */
- resetQuery() {
- this.daterangeCreateTime = [];
- this.resetForm("queryForm");
- this.handleQuery();
- },
- // 澶氶�夋閫変腑鏁版嵁
- handleSelectionChange(selection) {
- this.ids = selection.map(item => item.id)
- this.single = selection.length!==1
- this.multiple = !selection.length
- },
- /** 鏂板鎸夐挳鎿嶄綔 */
- handleAdd() {
- this.reset();
- this.open = true;
- this.title = "娣诲姞鑰冩牳妯℃澘";
- },
- /** 淇敼鎸夐挳鎿嶄綔 */
- handleUpdate(row) {
- this.reset();
- const id = row.id || this.ids
- getTemplate(id).then(response => {
- this.form = response.data;
- this.tempRuleFormList = this.form.ruleFormList;
- this.ruleFormList = this.form.ruleFormList;
- this.open = true;
- this.title = "淇敼鑰冩牳妯℃澘";
- });
- },
- /** 鎻愪氦鎸夐挳 */
- submitForm() {
- this.$refs["form"].validate(valid => {
- if (valid) {
- this.form.ruleFormList = this.tempRuleFormList;
- if (this.form.id != null) {
- updateTemplate(this.form).then(response => {
- this.$modal.msgSuccess("淇敼鎴愬姛");
- this.open = false;
- this.tempRuleFormList = [];
- this.form = {};
- this.getList();
- });
- } else {
- addTemplate(this.form).then(response => {
- this.$modal.msgSuccess("鏂板鎴愬姛");
- this.open = false;
- this.getList();
- });
- }
- }
- });
- },
- /** 鍒犻櫎鎸夐挳鎿嶄綔 */
- handleDelete(row) {
- const ids = row.id || this.ids;
- this.$modal.confirm('鏄惁纭鍒犻櫎鑰冩牳妯℃澘缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
- return delTemplate(ids);
- }).then(() => {
- this.getList();
- this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
- }).catch(() => {});
- },
- /** 瀵煎嚭鎸夐挳鎿嶄綔 */
- handleExport() {
- this.download('system/checkTemplate/export', {
- ...this.queryParams
- }, `checkTemplate_${new Date().getTime()}.xlsx`)
- }
- }
-};
-</script>
-
-<style scoped>
-.margin-5 {
- margin-left: 5px;
-}
-.row-warp {
- display: flex;
- flex-direction: column;
-}
-.row {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: center;
- margin: 5px 0;
-}
-.row-left {
- flex: 1;
- display: flex;
- flex-direction: row;
-}
-.row-right {
- flex: 1;
- display: flex;
- flex-direction: row;
-}
-</style>
diff --git a/src/views/system/threshold/index.vue b/src/views/system/work-order/threshold/index.vue
similarity index 99%
rename from src/views/system/threshold/index.vue
rename to src/views/system/work-order/threshold/index.vue
index 3a2d583..ddbbc4e 100644
--- a/src/views/system/threshold/index.vue
+++ b/src/views/system/work-order/threshold/index.vue
@@ -162,7 +162,7 @@
<script>
import { listThreshold, getThreshold, editVideo } from '@/api/platform/threshold'
-import { editCar, editFace, getCar, getFace, getVideo } from '../../../api/platform/threshold'
+import { editCar, editFace, getCar, getFace, getVideo } from '../../../../api/platform/threshold'
export default {
dicts: ['image_qualify', 'video_qualify'],
--
Gitblit v1.8.0