李劲龙 1 month ago
commit 38e614c8df

@ -5,7 +5,7 @@ VUE_APP_TITLE = 太仓资产管理系统
ENV = 'development'
# 若依管理系统/开发环境
VUE_APP_BASE_API = 'http://192.168.0.115:9115'
VUE_APP_BASE_API = 'http://192.168.0.119:9115'
# VUE_APP_BASE_API = 'http://39.101.188.84:9115'
# 路由懒加载

@ -233,3 +233,12 @@ export function editPassword(id) {
method:"get"
})
}
// 根据资产类型获取组织架构
export function schema(type){
return request({
url:"/tc/schema",
method:"get",
params:type
})
}

@ -1,21 +1,39 @@
<!-- 资产管理 -- 电子邮件 -->
<template>
<el-row :gutter="20" style="height: 100%;background-color: #F2F4F6;display: flex;">
<!--部门数据-->
<el-col :span="3" :xs="24" style="margin-right: 10px;height: 100%; background-color: #fff;padding-top: 20px;">
<div class="head-container">
<el-tree
:data="deptOptions"
:props="defaultProps"
:expand-on-click-node="false"
:filter-node-method="filterNode"
ref="tree"
node-key="id"
default-expand-all
highlight-current
@node-click="handleNodeClick"
/>
</div>
</el-col>
<el-col :span="20" :xs="24" style="height: 100%;flex: 1;">
<div class="L-main" id="L-size-main">
<div class="content-search" id="L-header">
<div class="search-title">查询条件</div>
<el-form :inline="true" ref="queryForm" :model="formInline" size="small" class="demo-form-inline">
<el-row>
<el-col :span="7">
<el-col :span="6">
<el-form-item label="所属单位:" prop="dwmc">
<el-input v-model="formInline.dwmc" placeholder="请输入所属单位"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-col :span="6">
<el-form-item label="电子邮箱后缀:" prop="dzyxhz">
<el-input v-model="formInline.dzyxhz" placeholder="请输入电子邮箱后缀"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-col :span="6">
<el-form-item label="新增时间:" prop="time">
<el-date-picker
v-model="time"
@ -29,7 +47,7 @@
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="3" style="text-align: right;">
<el-col :span="6" style="text-align: right;">
<el-form-item class="unit-form">
<el-button size="mini" @click="resetQuery('queryFrom')"></el-button>
<el-button size="mini" type="primary" @click="handleQuery('queryFrom')"></el-button>
@ -176,17 +194,25 @@
</div>
</el-dialog>
</div>
</el-col>
</el-row>
</template>
<script>
import myPagination from "@/views/components/Pagination/index.vue"
// import myDialog from "@/views/components/myDialog/index.vue"
import { getToken } from "@/utils/auth";
import { assetEmailList, deleteAssetEmail } from "@/api/auditPagesApi/index";
import { assetEmailList, deleteAssetEmail, schema } from "@/api/auditPagesApi/index";
export default {
dicts: ['zc_xtzt','zc_xtlx'],
components:{myPagination},
data() {
return {
//
deptOptions: undefined,
defaultProps: {
children: "children",
label: "label"
},
formInline:{
dzyxhz:"",
dwmc:"",
@ -219,6 +245,7 @@ export default {
},
mounted(){
this.getList();
this.getDeptTree();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
},
@ -226,6 +253,22 @@ export default {
window.removeEventListener('resize', this.cancalDebounce);
},
methods:{
/** 查询部门下拉树结构 */
getDeptTree() {
schema({type:3}).then(response => {
this.deptOptions = response.data;
});
},
//
filterNode(value, data) {
if (!value) return true;
return data.label.indexOf(value) !== -1;
},
//
handleNodeClick(data) {
this.formInline.deptId = data.id;
this.handleQuery();
},
//
getList(){
this.loading = true;
@ -239,6 +282,8 @@ export default {
resetQuery(){
this.resetForm("queryForm");
this.time = [];
this.formInline.deptId = undefined;
this.$refs.tree.setCurrentKey(null);
this.handleQuery();
},
//

@ -1,16 +1,34 @@
<!-- 资产管理 -- web系统 -->
<template>
<el-row :gutter="20" style="height: 100%;background-color: #F2F4F6;display: flex;">
<!--部门数据-->
<el-col :span="3" :xs="24" style="margin-right: 10px;height: 100%; background-color: #fff;padding-top: 20px;">
<div class="head-container">
<el-tree
:data="deptOptions"
:props="defaultProps"
:expand-on-click-node="false"
:filter-node-method="filterNode"
ref="tree"
node-key="id"
default-expand-all
highlight-current
@node-click="handleNodeClick"
/>
</div>
</el-col>
<el-col :span="20" :xs="24" style="height: 100%;flex: 1;">
<div class="L-main" id="L-size-main">
<div class="content-search" id="L-header">
<div class="search-title">查询条件</div>
<el-form :inline="true" ref="queryForm" :model="formInline" size="small" class="demo-form-inline">
<el-row>
<el-col :span="8">
<el-col :span="7">
<el-form-item label="系统名称:" prop="xtmc">
<el-input v-model="formInline.xtmc" placeholder="请输入系统名称"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-col :span="7">
<el-form-item label="系统类型:" prop="xtlx">
<el-select v-model="formInline.xtlx" placeholder="请选择系统类型">
<el-option
@ -22,7 +40,7 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-col :span="7">
<el-form-item label="新增时间:" prop="time">
<el-date-picker
v-model="formInline.time"
@ -38,12 +56,12 @@
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-col :span="7">
<el-form-item label="单位名称:" prop="dwmc">
<el-input v-model="formInline.dwmc" placeholder="请输入单位名称"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-col :span="7">
<el-form-item label="系统状态:" prop="xtzt">
<el-select v-model="formInline.xtzt" placeholder="请选择系统状态">
<el-option
@ -55,7 +73,7 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="8" style="text-align: right;padding-right: 50px;">
<el-col :span="9" style="text-align: right;padding-right: 35px;">
<el-form-item>
<el-button size="mini" @click="resetQuery('queryFrom')"></el-button>
<el-button size="mini" type="primary" @click="handleQuery('queryFrom')"></el-button>
@ -190,17 +208,25 @@
</div>
</el-dialog>
</div>
</el-col>
</el-row>
</template>
<script>
import myPagination from "@/views/components/Pagination/index.vue"
// import myDialog from "@/views/components/myDialog/index.vue"
import { getToken } from "@/utils/auth";
import { assetUnit, deleteAssetInfo } from "@/api/auditPagesApi/index";
import { assetUnit, deleteAssetInfo, schema } from "@/api/auditPagesApi/index";
export default {
dicts: ['zc_xtzt','zc_xtlx'],
components:{myPagination},
data() {
return {
//
deptOptions: undefined,
defaultProps: {
children: "children",
label: "label"
},
formInline:{
xtmc:"",
xtlx:"",
@ -235,6 +261,7 @@ export default {
},
mounted(){
this.getList();
this.getDeptTree();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
},
@ -242,6 +269,22 @@ export default {
window.removeEventListener('resize', this.cancalDebounce);
},
methods:{
/** 查询部门下拉树结构 */
getDeptTree() {
schema({type:0}).then(response => {
this.deptOptions = response.data;
});
},
//
filterNode(value, data) {
if (!value) return true;
return data.label.indexOf(value) !== -1;
},
//
handleNodeClick(data) {
this.formInline.deptId = data.id;
this.handleQuery();
},
//
getList(){
this.loading = true;
@ -254,6 +297,8 @@ export default {
//
resetQuery(){
this.resetForm("queryForm");
this.formInline.deptId = undefined;
this.$refs.tree.setCurrentKey(null);
this.handleQuery();
},
//

@ -1,21 +1,39 @@
<!-- 资产管理 -- 移动应用系统 -->
<template>
<el-row :gutter="20" style="height: 100%;background-color: #F2F4F6;display: flex;">
<!--部门数据-->
<el-col :span="3" :xs="24" style="margin-right: 10px;height: 100%; background-color: #fff;padding-top: 20px;">
<div class="head-container">
<el-tree
:data="deptOptions"
:props="defaultProps"
:expand-on-click-node="false"
:filter-node-method="filterNode"
ref="tree"
node-key="id"
default-expand-all
highlight-current
@node-click="handleNodeClick"
/>
</div>
</el-col>
<el-col :span="20" :xs="24" style="height: 100%;flex: 1;">
<div class="L-main" id="L-size-main">
<div class="content-search" id="L-header">
<div class="search-title">查询条件</div>
<el-form :inline="true" ref="queryForm" :model="formInline" size="small" class="demo-form-inline">
<el-row>
<el-col :span="7">
<el-col :span="6">
<el-form-item label="所属单位:" prop="dwmc">
<el-input v-model="formInline.dwmc" placeholder="请输入所属单位"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-col :span="6">
<el-form-item label="移动应用名称:" prop="yymc">
<el-input v-model="formInline.yymc" placeholder="请输入移动应用名称"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-col :span="6">
<el-form-item label="新增时间:" prop="time">
<el-date-picker
v-model="time"
@ -29,7 +47,7 @@
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="3" style="text-align: right;">
<el-col :span="6" style="text-align: right;">
<el-form-item class="unit-form">
<el-button size="mini" @click="resetQuery('queryFrom')"></el-button>
<el-button size="mini" type="primary" @click="handleQuery('queryFrom')"></el-button>
@ -179,17 +197,25 @@
</div>
</el-dialog>
</div>
</el-col>
</el-row>
</template>
<script>
import myPagination from "@/views/components/Pagination/index.vue"
// import myDialog from "@/views/components/myDialog/index.vue"
import { getToken } from "@/utils/auth";
import { assetAppList, deleteAssetApp } from "@/api/auditPagesApi/index";
import { assetAppList, deleteAssetApp, schema } from "@/api/auditPagesApi/index";
export default {
dicts: ['zc_xtzt','zc_xtlx'],
components:{myPagination},
data() {
return {
//
deptOptions: undefined,
defaultProps: {
children: "children",
label: "label"
},
formInline:{
dwmc:"",
yymc:"",
@ -222,6 +248,7 @@ export default {
},
mounted(){
this.getList();
this.getDeptTree();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
},
@ -229,6 +256,22 @@ export default {
window.removeEventListener('resize', this.cancalDebounce);
},
methods:{
/** 查询部门下拉树结构 */
getDeptTree() {
schema({type:4}).then(response => {
this.deptOptions = response.data;
});
},
//
filterNode(value, data) {
if (!value) return true;
return data.label.indexOf(value) !== -1;
},
//
handleNodeClick(data) {
this.formInline.deptId = data.id;
this.handleQuery();
},
//
getList(){
this.loading = true;
@ -242,6 +285,8 @@ export default {
resetQuery(){
this.resetForm("queryForm");
this.time = [];
this.formInline.deptId = undefined;
this.$refs.tree.setCurrentKey(null);
this.handleQuery();
},
//

@ -1,21 +1,39 @@
<!-- 资产管理 -- 公众号 -->
<template>
<el-row :gutter="20" style="height: 100%;background-color: #F2F4F6;display: flex;">
<!--部门数据-->
<el-col :span="3" :xs="24" style="margin-right: 10px;height: 100%; background-color: #fff;padding-top: 20px;">
<div class="head-container">
<el-tree
:data="deptOptions"
:props="defaultProps"
:expand-on-click-node="false"
:filter-node-method="filterNode"
ref="tree"
node-key="id"
default-expand-all
highlight-current
@node-click="handleNodeClick"
/>
</div>
</el-col>
<el-col :span="20" :xs="24" style="height: 100%;flex: 1;">
<div class="L-main" id="L-size-main">
<div class="content-search" id="L-header">
<div class="search-title">查询条件</div>
<el-form :inline="true" ref="queryForm" :model="formInline" size="small" class="demo-form-inline">
<el-row>
<el-col :span="7">
<el-col :span="6">
<el-form-item label="所属单位:" prop="dwmc">
<el-input v-model="formInline.dwmc" placeholder="请输入所属单位"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-col :span="6">
<el-form-item label="公众号名称:" prop="gzhmc">
<el-input v-model="formInline.gzhmc" placeholder="请输入公众号名称"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-col :span="6">
<el-form-item label="新增时间:" prop="time">
<el-date-picker
v-model="time"
@ -29,7 +47,7 @@
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="3" style="text-align: right;">
<el-col :span="6" style="text-align: right;">
<el-form-item class="unit-form">
<el-button size="mini" @click="resetQuery('queryFrom')"></el-button>
<el-button size="mini" type="primary" @click="handleQuery('queryFrom')"></el-button>
@ -185,17 +203,25 @@
</div>
</el-dialog>
</div>
</el-col>
</el-row>
</template>
<script>
import myPagination from "@/views/components/Pagination/index.vue"
// import myDialog from "@/views/components/myDialog/index.vue"
import { getToken } from "@/utils/auth";
import { assetOfficialAccountList, deleteAssetOfficialAccount } from "@/api/auditPagesApi/index";
import { assetOfficialAccountList, deleteAssetOfficialAccount, schema } from "@/api/auditPagesApi/index";
export default {
dicts: ['zc_xtzt','zc_xtlx'],
components:{myPagination},
data() {
return {
//
deptOptions: undefined,
defaultProps: {
children: "children",
label: "label"
},
formInline:{
gzhmc:"",
dwmc:"",
@ -228,6 +254,7 @@ export default {
},
mounted(){
this.getList();
this.getDeptTree();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
},
@ -235,6 +262,22 @@ export default {
window.removeEventListener('resize', this.cancalDebounce);
},
methods:{
/** 查询部门下拉树结构 */
getDeptTree() {
schema({type:2}).then(response => {
this.deptOptions = response.data;
});
},
//
filterNode(value, data) {
if (!value) return true;
return data.label.indexOf(value) !== -1;
},
//
handleNodeClick(data) {
this.formInline.deptId = data.id;
this.handleQuery();
},
//
getList(){
this.loading = true;
@ -248,6 +291,8 @@ export default {
resetQuery(){
this.resetForm("queryForm");
this.time = [];
this.formInline.deptId = undefined;
this.$refs.tree.setCurrentKey(null);
this.handleQuery();
},
//

@ -1,21 +1,39 @@
<!-- 资产管理 -- 小程序 -->
<template>
<el-row :gutter="20" style="height: 100%;background-color: #F2F4F6;display: flex;">
<!--部门数据-->
<el-col :span="3" :xs="24" style="margin-right: 10px;height: 100%; background-color: #fff;padding-top: 20px;">
<div class="head-container">
<el-tree
:data="deptOptions"
:props="defaultProps"
:expand-on-click-node="false"
:filter-node-method="filterNode"
ref="tree"
node-key="id"
default-expand-all
highlight-current
@node-click="handleNodeClick"
/>
</div>
</el-col>
<el-col :span="20" :xs="24" style="height: 100%;flex: 1;">
<div class="L-main" id="L-size-main">
<div class="content-search" id="L-header">
<div class="search-title">查询条件</div>
<el-form :inline="true" ref="queryForm" :model="formInline" size="small" class="demo-form-inline" label-width="100px">
<el-row>
<el-col :span="7">
<el-col :span="6">
<el-form-item label="所属单位:" prop="dwmc">
<el-input v-model="formInline.dwmc" placeholder="请输入所属单位"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-col :span="6">
<el-form-item label="小程序名称:" prop="xcxmc">
<el-input v-model="formInline.xcxmc" placeholder="请输入小程序名称"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-col :span="6">
<el-form-item label="新增时间:" prop="time">
<el-date-picker
v-model="time"
@ -29,7 +47,7 @@
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="3" style="text-align: right;">
<el-col :span="6" style="text-align: right;">
<el-form-item class="unit-form">
<el-button size="mini" @click="resetQuery('queryFrom')"></el-button>
<el-button size="mini" type="primary" @click="handleQuery('queryFrom')"></el-button>
@ -184,17 +202,25 @@
</div>
</el-dialog>
</div>
</el-col>
</el-row>
</template>
<script>
import myPagination from "@/views/components/Pagination/index.vue"
// import myDialog from "@/views/components/myDialog/index.vue"
import { getToken } from "@/utils/auth";
import { miniProgramsList, deleteMiniPrograms } from "@/api/auditPagesApi/index";
import { miniProgramsList, deleteMiniPrograms, schema } from "@/api/auditPagesApi/index";
export default {
dicts: ['gzh_state'],
components:{myPagination},
data() {
return {
//
deptOptions: undefined,
defaultProps: {
children: "children",
label: "label"
},
formInline:{
dwmc:"",
xcxmc:"",
@ -227,6 +253,7 @@ export default {
},
mounted(){
this.getList();
this.getDeptTree();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
},
@ -234,6 +261,22 @@ export default {
window.removeEventListener('resize', this.cancalDebounce);
},
methods:{
/** 查询部门下拉树结构 */
getDeptTree() {
schema({type:1}).then(response => {
this.deptOptions = response.data;
});
},
//
filterNode(value, data) {
if (!value) return true;
return data.label.indexOf(value) !== -1;
},
//
handleNodeClick(data) {
this.formInline.deptId = data.id;
this.handleQuery();
},
//
getList(){
this.loading = true;
@ -247,6 +290,8 @@ export default {
resetQuery(){
this.resetForm("queryForm");
this.time = [];
this.formInline.deptId = undefined;
this.$refs.tree.setCurrentKey(null);
this.handleQuery();
},
//

@ -285,7 +285,7 @@
<img src="@/assets/images/edit.png" alt="" style="width: 15px;margin-right: 5px;">
<span class="look-info" style="color: #1485EF;">编辑</span>
</div>
<div v-if="roles.includes('admin')" style="display: flex;align-items: center;cursor: pointer; margin-left: 10px;" @click="changePassword(scope.row)">
<div v-if="roles.includes('admin') || roles.includes('common')" style="display: flex;align-items: center;cursor: pointer; margin-left: 10px;" @click="changePassword(scope.row)">
<!-- <img src="@/assets/images/del.png" alt="" style="width: 20px;margin-right: 5px;"> -->
<i class="el-icon-refresh-right" style="width: 20px;margin-right: 5px;color: #1485EF;font-size: 20px;"></i>
<span class="look-info" style="color: #1485EF;">重置密码</span>

Loading…
Cancel
Save