diff --git a/package-lock.json b/package-lock.json
index e42aff8..eefc519 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -14,7 +14,8 @@
"@vitejs/plugin-vue": "^4.1.0",
"naive-ui": "^2.34.3",
"stylus": "^0.59.0",
- "vite": "^4.3.2"
+ "vite": "^4.3.2",
+ "vue-router": "^4.1.6"
}
},
"node_modules/@adobe/css-tools": {
@@ -496,6 +497,12 @@
"@vue/shared": "3.2.47"
}
},
+ "node_modules/@vue/devtools-api": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.5.0.tgz",
+ "integrity": "sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q==",
+ "dev": true
+ },
"node_modules/@vue/reactivity": {
"version": "3.2.47",
"resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.2.47.tgz",
@@ -1028,6 +1035,18 @@
"@vue/shared": "3.2.47"
}
},
+ "node_modules/vue-router": {
+ "version": "4.1.6",
+ "resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-4.1.6.tgz",
+ "integrity": "sha512-DYWYwsG6xNPmLq/FmZn8Ip+qrhFEzA14EI12MsMgVxvHFDYvlr4NXpVF5hrRH1wVcDP8fGi5F4rxuJSl8/r+EQ==",
+ "dev": true,
+ "dependencies": {
+ "@vue/devtools-api": "^6.4.5"
+ },
+ "peerDependencies": {
+ "vue": "^3.2.0"
+ }
+ },
"node_modules/vueuc": {
"version": "0.4.51",
"resolved": "https://registry.npmmirror.com/vueuc/-/vueuc-0.4.51.tgz",
@@ -1319,6 +1338,12 @@
"@vue/shared": "3.2.47"
}
},
+ "@vue/devtools-api": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.5.0.tgz",
+ "integrity": "sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q==",
+ "dev": true
+ },
"@vue/reactivity": {
"version": "3.2.47",
"resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.2.47.tgz",
@@ -1736,6 +1761,15 @@
"@vue/shared": "3.2.47"
}
},
+ "vue-router": {
+ "version": "4.1.6",
+ "resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-4.1.6.tgz",
+ "integrity": "sha512-DYWYwsG6xNPmLq/FmZn8Ip+qrhFEzA14EI12MsMgVxvHFDYvlr4NXpVF5hrRH1wVcDP8fGi5F4rxuJSl8/r+EQ==",
+ "dev": true,
+ "requires": {
+ "@vue/devtools-api": "^6.4.5"
+ }
+ },
"vueuc": {
"version": "0.4.51",
"resolved": "https://registry.npmmirror.com/vueuc/-/vueuc-0.4.51.tgz",
diff --git a/package.json b/package.json
index 188c037..49eccf4 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,7 @@
"@vitejs/plugin-vue": "^4.1.0",
"naive-ui": "^2.34.3",
"stylus": "^0.59.0",
- "vite": "^4.3.2"
+ "vite": "^4.3.2",
+ "vue-router": "^4.1.6"
}
}
diff --git a/src/App.vue b/src/App.vue
index 3f5641d..7265d2e 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,18 +1,46 @@
-
-
-
-
+
+
+
+ 工作考核细则:
+ 街道社区4-5级网格
+ 区级与街道指挥调度中心(调度专管员)
+ 执法局、公安分局
+ 3 级网格长
+ 其他职能部门
+
+
+
+
+
+
diff --git a/src/components/table/Ddy.vue b/src/components/table/Ddy.vue
index 4e57a3b..e5f61d3 100644
--- a/src/components/table/Ddy.vue
+++ b/src/components/table/Ddy.vue
@@ -1,5 +1,8 @@
+
+ 区级与街道指挥调度中心(调度专管员)网格化工作考核细则(以季度为考核周期)
+
@@ -80,6 +83,7 @@ export default {
data() {
let vueSelf = this;
return {
+
search: {
select: {
street: {
@@ -306,7 +310,7 @@ export default {
}
}
},
- methods: {
+ methods: {
// 考勤关闭
onSignCloseClick() {
this.modal.sign.show = false;
@@ -377,7 +381,7 @@ export default {
this.modal.scoring.minScore = 0;
this.modal.scoring.userName = row.B;
this.modal.scoring.title = '组织评价';
- },
+ },
computeK(row) {
return row.C + row.D - row.F - row.G - row.H - row.I + row.J;
},
@@ -416,7 +420,7 @@ export default {
H: d.timeout,
reasonH: d.reasonTimeout,
I: d.others,
- reasonI: d. reasonOthers,
+ reasonI: d.reasonOthers,
J: d.orgEvalution,
reasonJ: d.reasonOrgEvalution,
K: d.totalScore,
@@ -425,16 +429,28 @@ export default {
});
}
this.table.data = data;
+ },
+ resize() {
+ let body = document.body;
+ this.table.minHeight = body.clientHeight - 365;
+ this.table.maxHeight = body.clientHeight - 365;
+ this.table.scrollX = body.clientWidth;
}
},
mounted() {
let vueSelf = this;
- this.listTestData();
+ vueSelf.listTestData();
+ vueSelf.resize();
+ window.onresize = this.resize;
}
}
diff --git a/src/components/table/Wgy.vue b/src/components/table/Wgy.vue
index 64a95a0..3cbcea5 100644
--- a/src/components/table/Wgy.vue
+++ b/src/components/table/Wgy.vue
@@ -1,5 +1,8 @@
+
+ 街道社区4-5级网格工作考核细则(以季度为考核周期)
+
@@ -22,16 +25,8 @@
:options="search.select.month.options" :clearable="true" />
-
-
- 4级网格员
-
-
- 5级网格员
-
-
+
@@ -124,11 +119,13 @@ export default {
options: [
{ label: '1月', value: '1' }
]
- }
- },
- radio: {
- level: {
- value: 5,
+ },
+ wgy: {
+ value: 4,
+ options: [
+ { label: '5级网格员', value: '5' },
+ { label: '4级网格员', value: '4' }
+ ]
}
},
input: {
@@ -973,26 +970,28 @@ export default {
});
}
this.table.data = data;
+ },
+ resize() {
+ let body = document.body;
+ this.table.minHeight = body.clientHeight - 408;
+ this.table.maxHeight = body.clientHeight - 408;
+ this.table.scrollX = body.clientWidth;
}
},
computed() {
},
mounted() {
let vueSelf = this;
- this.listTestData();
- setTimeout(() => {
- vueSelf.table.data[0].C = 300
- }, 1000)
+ vueSelf.listTestData();
+ vueSelf.resize();
+ window.onresize = this.resize
}
}
\ No newline at end of file
diff --git a/src/components/table/ZfGa.vue b/src/components/table/ZfGa.vue
index 108664b..d47a6a3 100644
--- a/src/components/table/ZfGa.vue
+++ b/src/components/table/ZfGa.vue
@@ -1,4 +1,7 @@
+
+ 执法局、公安分局网格化工作考核细则(以季度为考核周期)
+
@@ -486,16 +489,28 @@ export default {
});
}
this.table.data = data;
+ },
+ resize() {
+ let body = document.body;
+ this.table.minHeight = body.clientHeight - 379;
+ this.table.maxHeight = body.clientHeight - 379;
+ this.table.scrollX = body.clientWidth;
}
},
mounted() {
let vueSelf = this;
vueSelf.listTestData();
+ vueSelf.resize();
+ window.onresize = this.resize
}
}
\ No newline at end of file
diff --git a/src/components/table/Znbm.vue b/src/components/table/Znbm.vue
new file mode 100644
index 0000000..4bfd0d8
--- /dev/null
+++ b/src/components/table/Znbm.vue
@@ -0,0 +1,460 @@
+
+
+ 其他职能部门网格化工作考核细则(以季度为考核周期)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main.js b/src/main.js
index 2425c0f..aaf55f7 100644
--- a/src/main.js
+++ b/src/main.js
@@ -1,5 +1,25 @@
import { createApp } from 'vue'
+import { createRouter, createWebHashHistory } from 'vue-router'
import './style.css'
import App from './App.vue'
-createApp(App).mount('#app')
+import Wgy from './components/table/Wgy.vue';
+import Ddy from './components/table/Ddy.vue';
+import ZfGa from './components/table/ZfGa.vue';
+import Wgy3 from './components/table/Wgy3.vue';
+import Znbm from './components/table/Znbm.vue';
+
+const router = createRouter({
+ history: createWebHashHistory(),
+ routes: [
+ { name: 'wgy', path: '/', component: Wgy },
+ { name: 'ddy', path: '/ddy', component: Ddy },
+ { name: 'zfga', path: '/zfga', component: ZfGa },
+ { name: 'wgy3', path: '/wgy3', component: Wgy3 },
+ { name: 'znbm', path: '/znbm', component: Znbm },
+ ]
+});
+
+const app = createApp(App);
+app.use(router);
+app.mount('#app');