其余四种资产增删改查、导入、下载模板、导入

main
吕天方 1 month ago
parent 1627102795
commit 9ab0087dac

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

@ -83,4 +83,144 @@ export function deleteAssetInfo(id) {
method: 'delete',
})
}
}
// 小程序资产
// 分页查询
export function miniProgramsList(params){
return request({
url: '/tc/miniPrograms',
method: 'get',
params
})
}
// 新增/修改 资产列表
export function assetMiniPrograms(method,data) {
return request({
url: '/tc/miniPrograms',
method: method,
data
})
}
// 查询详情
export function miniProgramsInfo(id) {
return request({
url: '/tc/miniPrograms/' + id,
method: 'get',
})
}
// 删除
export function deleteMiniPrograms(id) {
return request({
url: '/tc/miniPrograms/delete/' + id,
method: 'delete',
})
}
// 公众号资产
// 分页查询
export function assetOfficialAccountList(params){
return request({
url: '/tc/assetOfficialAccount',
method: 'get',
params
})
}
// 新增/修改 资产列表
export function assetOfficialAccount(method,data) {
return request({
url: '/tc/assetOfficialAccount',
method: method,
data
})
}
// 查询详情
export function assetOfficialAccountInfo(id) {
return request({
url: '/tc/assetOfficialAccount/' + id,
method: 'get',
})
}
// 删除
export function deleteAssetOfficialAccount(id) {
return request({
url: '/tc/assetOfficialAccount/delete/' + id,
method: 'delete',
})
}
// 电子邮件资产
// 分页查询
export function assetEmailList(params){
return request({
url: '/tc/assetEmail',
method: 'get',
params
})
}
// 新增/修改 资产列表
export function assetEmail(method,data) {
return request({
url: '/tc/assetEmail',
method: method,
data
})
}
// 查询详情
export function assetEmailInfo(id) {
return request({
url: '/tc/assetEmail/' + id,
method: 'get',
})
}
// 删除
export function deleteAssetEmail(id) {
return request({
url: '/tc/assetEmail/delete/' + id,
method: 'delete',
})
}
// 移动应用程序资产
// 分页查询
export function assetAppList(params){
return request({
url: '/tc/assetApp',
method: 'get',
params
})
}
// 新增/修改 资产列表
export function assetApp(method,data) {
return request({
url: '/tc/assetApp',
method: method,
data
})
}
// 查询详情
export function assetAppInfo(id) {
return request({
url: '/tc/assetApp/' + id,
method: 'get',
})
}
// 删除
export function deleteAssetApp(id) {
return request({
url: '/tc/assetApp/delete/' + id,
method: 'delete',
})
}

@ -426,7 +426,7 @@
overflow-y: scroll;
.assets-info-top {
height: 100%;
height: calc(100% - 20px);
.top-title-box {
font-weight: 700;

@ -5,27 +5,20 @@
<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-form-item label="系统名称:" prop="xtmc">
<el-input v-model="formInline.xtmc" placeholder="请输入系统名称"></el-input>
<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-form-item label="系统类型:" prop="xtlx">
<el-select v-model="formInline.xtlx" placeholder="请选择系统类型">
<el-option
v-for="dict in dict.type.zc_xtlx"
:key="dict.value"
:label="dict.label"
:value="dict.value">
</el-option>
</el-select>
<el-col :span="7">
<el-form-item label="电子邮箱后缀:" prop="dzyxhz">
<el-input v-model="formInline.dzyxhz" placeholder="请输入电子邮箱后缀"></el-input>
</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"
v-model="time"
format="yyyy-MM-dd HH:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetimerange"
@ -36,8 +29,14 @@
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="3" 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>
</el-form-item>
</el-col>
</el-row>
<el-row>
<!-- <el-row>
<el-col :span="8">
<el-form-item label="单位名称:" prop="dwmc">
<el-input v-model="formInline.dwmc" placeholder="请输入单位名称"></el-input>
@ -61,7 +60,7 @@
<el-button size="mini" type="primary" @click="handleQuery('queryFrom')"></el-button>
</el-form-item>
</el-col>
</el-row>
</el-row> -->
</el-form>
</div>
<main>
@ -100,34 +99,21 @@
<section>
<el-table v-loading="loading" :data="tableData" :height="tabHeader" :row-class-name="tableRowClassName" :max-height="tabHeader">
<el-table-column type="index" width="50" label="序号" align="center"/>
<el-table-column label="系统名称" key="xtmc" width="200px" prop="xtmc" align="center" />
<el-table-column label="系统类型" key="xtlx" prop="xtlx" align="center">
<template slot-scope="scope">
<dict-tag :options="dict.type.zc_xtlx" :value="scope.row.xtlx"/>
</template>
</el-table-column>
<el-table-column label="单位名称" key="dwmc" prop="dwmc" align="center">
<el-table-column label="所属单位" key="ssdw" prop="ssdw" align="center" />
<el-table-column label="电子邮箱后缀" key="dzyxhz" prop="dzyxhz" align="center" />
<el-table-column label="邮件系统供应商" key="yjxtgys" prop="yjxtgys" align="center">
<!-- <template slot-scope="scope">
<dict-tag :options="dict.type.project_middle_type" :value="scope.row.projectMiddleType"/>
</template> -->
</el-table-column>
<el-table-column label="新增时间" key="createTime" prop="createTime" align="center" />
<el-table-column label="系统状态" key="status" prop="status" class-name="table-status" align="center">
<el-table-column label="邮件系统状态" key="status" prop="status" class-name="table-status" align="center">
<template slot-scope="scope">
<span v-if="scope.row.xtzt == 1" style="color: #16B771;">
已安装
<span v-if="scope.row.yjxtzc == 1" style="color: #16B771;">
正常
</span>
<span v-if="scope.row.xtzt == 2" style="color: #F58A0C;">
测试中
</span>
<span v-if="scope.row.xtzt == 3" style="color: #1485EF;">
使用中
</span>
<span v-if="scope.row.xtzt == 4" style="color: #29A07A;">
维护中
</span>
<span v-if="scope.row.xtzt == 5" style="color: #F50C0C;">
关停
<span v-if="scope.row.yjxtzc == 2" style="color: #F58A0C;">
停用
</span>
</template>
</el-table-column>
@ -195,23 +181,21 @@
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 { assetEmailList, deleteAssetEmail } from "@/api/auditPagesApi/index";
export default {
dicts: ['zc_xtzt','zc_xtlx'],
components:{myPagination},
data() {
return {
formInline:{
xtmc:"",
xtlx:"",
time:[],
dzyxhz:"",
dwmc:"",
startTime:"",
endTime:"",
dwmc:"",
xtzt:"",
current:1,
size:10,
},
time:[],
total:0,
tableData:[],
loading:false,
@ -221,7 +205,7 @@ export default {
//
open: false,
//
title: "资产导入",
title: "电子邮件资产导入",
//
isUploading: false,
//
@ -229,7 +213,7 @@ export default {
//
headers: { Authorization: "Bearer " + getToken() },
//
url: process.env.VUE_APP_BASE_API + "/tc/assetCurrent/import"
url: process.env.VUE_APP_BASE_API + "/tc/assetEmail/importData"
},
}
},
@ -245,7 +229,7 @@ export default {
//
getList(){
this.loading = true;
assetUnit('get',this.formInline).then(res=>{
assetEmailList(this.formInline).then(res=>{
this.loading = false;
this.total = res.data.total;
this.tableData = res.data.records;
@ -254,16 +238,17 @@ export default {
//
resetQuery(){
this.resetForm("queryForm");
this.time = [];
this.handleQuery();
},
//
handleQuery(){
this.formInline.current = 1;
if(this.formInline.time) {
this.formInline.startTime = this.formInline.time[0]
this.formInline.endTime = this.formInline.time[1]
if(this.time) {
this.formInline.startTime = this.time[0]
this.formInline.endTime = this.time[1]
}
this.formInline.time = [];
this.getList();
},
//
@ -278,14 +263,14 @@ export default {
},
//
handleExport(){
this.download('/tc/assetCurrent/export', {
this.download('/tc/assetEmail/export', {
...this.formInline
}, `资产${new Date().getTime()}.xlsx`)
}, `电子邮件资产${new Date().getTime()}.xlsx`)
},
/** 下载模板操作 */
importTemplate() {
this.download('/tc/assetCurrent/importTemplate', {
}, `资产导入模板${new Date().getTime()}.xlsx`)
this.download('/tc/assetEmail/importTemplate', {
}, `电子邮件资产导入模板${new Date().getTime()}.xlsx`)
},
//
handleFileUploadProgress(event, file, fileList) {
@ -327,7 +312,7 @@ export default {
} else if(id == 3) {
const userIds = row.id;
this.$modal.confirm('是否确认删除用户编号为"' + userIds + '"的数据项?').then(function() {
return deleteAssetInfo(userIds);
return deleteAssetEmail(userIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");

@ -221,7 +221,7 @@ export default {
//
open: false,
//
title: "资产导入",
title: "web资产导入",
//
isUploading: false,
//
@ -280,12 +280,12 @@ export default {
handleExport(){
this.download('/tc/assetCurrent/export', {
...this.formInline
}, `资产${new Date().getTime()}.xlsx`)
}, `web资产${new Date().getTime()}.xlsx`)
},
/** 下载模板操作 */
importTemplate() {
this.download('/tc/assetCurrent/importTemplate', {
}, `资产导入模板${new Date().getTime()}.xlsx`)
}, `web资产导入模板${new Date().getTime()}.xlsx`)
},
//
handleFileUploadProgress(event, file, fileList) {

@ -5,27 +5,20 @@
<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-form-item label="系统名称:" prop="xtmc">
<el-input v-model="formInline.xtmc" placeholder="请输入系统名称"></el-input>
<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-form-item label="系统类型:" prop="xtlx">
<el-select v-model="formInline.xtlx" placeholder="请选择系统类型">
<el-option
v-for="dict in dict.type.zc_xtlx"
:key="dict.value"
:label="dict.label"
:value="dict.value">
</el-option>
</el-select>
<el-col :span="7">
<el-form-item label="移动应用名称:" prop="yymc">
<el-input v-model="formInline.yymc" placeholder="请输入移动应用名称"></el-input>
</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"
v-model="time"
format="yyyy-MM-dd HH:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetimerange"
@ -36,8 +29,14 @@
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="3" 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>
</el-form-item>
</el-col>
</el-row>
<el-row>
<!-- <el-row>
<el-col :span="8">
<el-form-item label="单位名称:" prop="dwmc">
<el-input v-model="formInline.dwmc" placeholder="请输入单位名称"></el-input>
@ -61,7 +60,7 @@
<el-button size="mini" type="primary" @click="handleQuery('queryFrom')"></el-button>
</el-form-item>
</el-col>
</el-row>
</el-row> -->
</el-form>
</div>
<main>
@ -100,34 +99,24 @@
<section>
<el-table v-loading="loading" :data="tableData" :height="tabHeader" :row-class-name="tableRowClassName" :max-height="tabHeader">
<el-table-column type="index" width="50" label="序号" align="center"/>
<el-table-column label="系统名称" key="xtmc" width="200px" prop="xtmc" align="center" />
<el-table-column label="系统类型" key="xtlx" prop="xtlx" align="center">
<el-table-column label="所属单位" key="ssdw" prop="ssdw" align="center" />
<el-table-column label="移动应用名称" key="appName" prop="appName" align="center" />
<!-- <el-table-column label="icp备案状态" key="dwmc" prop="dwmc" align="center">
<template slot-scope="scope">
<dict-tag :options="dict.type.zc_xtlx" :value="scope.row.xtlx"/>
</template>
</el-table-column>
<el-table-column label="单位名称" key="dwmc" prop="dwmc" align="center">
<!-- <template slot-scope="scope">
<dict-tag :options="dict.type.project_middle_type" :value="scope.row.projectMiddleType"/>
</template> -->
</el-table-column>
</template>
</el-table-column> -->
<el-table-column label="新增时间" key="createTime" prop="createTime" align="center" />
<el-table-column label="系统状态" key="status" prop="status" class-name="table-status" align="center">
<el-table-column label="icp备案状态" key="status" prop="status" class-name="table-status" align="center">
<template slot-scope="scope">
<span v-if="scope.row.xtzt == 1" style="color: #16B771;">
已安装
</span>
<span v-if="scope.row.xtzt == 2" style="color: #F58A0C;">
测试中
</span>
<span v-if="scope.row.xtzt == 3" style="color: #1485EF;">
使用中
<span v-if="scope.row.icpState == 1" style="color: #F58A0C;">
未备案
</span>
<span v-if="scope.row.xtzt == 4" style="color: #29A07A;">
维护中
<span v-if="scope.row.icpState == 2" style="color: #16B771;">
已备案
</span>
<span v-if="scope.row.xtzt == 5" style="color: #F50C0C;">
关停
<span v-if="scope.row.icpState == 3" style="color: #1485EF;">
非网站系统
</span>
</template>
</el-table-column>
@ -195,23 +184,21 @@
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 { assetAppList, deleteAssetApp } from "@/api/auditPagesApi/index";
export default {
dicts: ['zc_xtzt','zc_xtlx'],
components:{myPagination},
data() {
return {
formInline:{
xtmc:"",
xtlx:"",
time:[],
dwmc:"",
yymc:"",
startTime:"",
endTime:"",
dwmc:"",
xtzt:"",
current:1,
size:10,
},
time:[],
total:0,
tableData:[],
loading:false,
@ -221,7 +208,7 @@ export default {
//
open: false,
//
title: "资产导入",
title: "移动应用程序资产导入",
//
isUploading: false,
//
@ -229,7 +216,7 @@ export default {
//
headers: { Authorization: "Bearer " + getToken() },
//
url: process.env.VUE_APP_BASE_API + "/tc/assetCurrent/import"
url: process.env.VUE_APP_BASE_API + "/tc/assetApp/importData"
},
}
},
@ -245,7 +232,7 @@ export default {
//
getList(){
this.loading = true;
assetUnit('get',this.formInline).then(res=>{
assetAppList(this.formInline).then(res=>{
this.loading = false;
this.total = res.data.total;
this.tableData = res.data.records;
@ -254,16 +241,17 @@ export default {
//
resetQuery(){
this.resetForm("queryForm");
this.time = [];
this.handleQuery();
},
//
handleQuery(){
this.formInline.current = 1;
if(this.formInline.time) {
this.formInline.startTime = this.formInline.time[0]
this.formInline.endTime = this.formInline.time[1]
if(this.time) {
this.formInline.startTime = this.time[0]
this.formInline.endTime = this.time[1]
}
this.formInline.time = [];
this.getList();
},
//
@ -278,14 +266,14 @@ export default {
},
//
handleExport(){
this.download('/tc/assetCurrent/export', {
this.download('/tc/assetApp/export', {
...this.formInline
}, `资产${new Date().getTime()}.xlsx`)
}, `移动应用程序资产${new Date().getTime()}.xlsx`)
},
/** 下载模板操作 */
importTemplate() {
this.download('/tc/assetCurrent/importTemplate', {
}, `资产导入模板${new Date().getTime()}.xlsx`)
this.download('/tc/assetApp/importTemplate', {
}, `移动应用程序资产导入模板${new Date().getTime()}.xlsx`)
},
//
handleFileUploadProgress(event, file, fileList) {
@ -327,7 +315,7 @@ export default {
} else if(id == 3) {
const userIds = row.id;
this.$modal.confirm('是否确认删除用户编号为"' + userIds + '"的数据项?').then(function() {
return deleteAssetInfo(userIds);
return deleteAssetApp(userIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");

@ -5,27 +5,20 @@
<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-form-item label="系统名称:" prop="xtmc">
<el-input v-model="formInline.xtmc" placeholder="请输入系统名称"></el-input>
<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-form-item label="系统类型:" prop="xtlx">
<el-select v-model="formInline.xtlx" placeholder="请选择系统类型">
<el-option
v-for="dict in dict.type.zc_xtlx"
:key="dict.value"
:label="dict.label"
:value="dict.value">
</el-option>
</el-select>
<el-col :span="7">
<el-form-item label="公众号名称:" prop="gzhmc">
<el-input v-model="formInline.gzhmc" placeholder="请输入公众号名称"></el-input>
</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"
v-model="time"
format="yyyy-MM-dd HH:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetimerange"
@ -36,8 +29,14 @@
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="3" 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>
</el-form-item>
</el-col>
</el-row>
<el-row>
<!-- <el-row>
<el-col :span="8">
<el-form-item label="单位名称:" prop="dwmc">
<el-input v-model="formInline.dwmc" placeholder="请输入单位名称"></el-input>
@ -61,7 +60,7 @@
<el-button size="mini" type="primary" @click="handleQuery('queryFrom')"></el-button>
</el-form-item>
</el-col>
</el-row>
</el-row> -->
</el-form>
</div>
<main>
@ -100,34 +99,30 @@
<section>
<el-table v-loading="loading" :data="tableData" :height="tabHeader" :row-class-name="tableRowClassName" :max-height="tabHeader">
<el-table-column type="index" width="50" label="序号" align="center"/>
<el-table-column label="系统名称" key="xtmc" width="200px" prop="xtmc" align="center" />
<el-table-column label="系统类型" key="xtlx" prop="xtlx" align="center">
<template slot-scope="scope">
<dict-tag :options="dict.type.zc_xtlx" :value="scope.row.xtlx"/>
</template>
</el-table-column>
<el-table-column label="单位名称" key="dwmc" prop="dwmc" align="center">
<!-- <template slot-scope="scope">
<dict-tag :options="dict.type.project_middle_type" :value="scope.row.projectMiddleType"/>
</template> -->
</el-table-column>
<el-table-column label="所属单位" key="ssdw" prop="ssdw" align="center" />
<el-table-column label="公众号名称" key="gzhmc" prop="gzhmc" align="center" />
<!-- <el-table-column label="单位名称" key="dwmc" prop="dwmc" align="center">
</el-table-column> -->
<el-table-column label="新增时间" key="createTime" prop="createTime" align="center" />
<el-table-column label="系统状态" key="status" prop="status" class-name="table-status" align="center">
<el-table-column label="公众号状态" key="status" prop="status" class-name="table-status" align="center">
<template slot-scope="scope">
<span v-if="scope.row.xtzt == 1" style="color: #16B771;">
已安装
<span v-if="scope.row.gzhzt == 1" style="color: #16B771;">
正常
</span>
<span v-if="scope.row.gzhzt == 2" style="color: #F58A0C;">
注销
</span>
<span v-if="scope.row.xtzt == 2" style="color: #F58A0C;">
测试中
<span v-if="scope.row.gzhzt == 3" style="color: #1485EF;">
迁移
</span>
<span v-if="scope.row.xtzt == 3" style="color: #1485EF;">
使用中
<span v-if="scope.row.gzhzt == 4" style="color: #29A07A;">
受限
</span>
<span v-if="scope.row.xtzt == 4" style="color: #29A07A;">
维护中
<span v-if="scope.row.gzhzt == 5" style="color: #F50C0C;">
违规
</span>
<span v-if="scope.row.xtzt == 5" style="color: #F50C0C;">
关停
<span v-if="scope.row.gzhzt == 6" style="color: #F58A0C;">
未知
</span>
</template>
</el-table-column>
@ -195,23 +190,21 @@
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 { assetOfficialAccountList, deleteAssetOfficialAccount } from "@/api/auditPagesApi/index";
export default {
dicts: ['zc_xtzt','zc_xtlx'],
components:{myPagination},
data() {
return {
formInline:{
xtmc:"",
xtlx:"",
time:[],
gzhmc:"",
dwmc:"",
startTime:"",
endTime:"",
dwmc:"",
xtzt:"",
current:1,
size:10,
},
time:[],
total:0,
tableData:[],
loading:false,
@ -221,7 +214,7 @@ export default {
//
open: false,
//
title: "资产导入",
title: "公众号资产导入",
//
isUploading: false,
//
@ -229,7 +222,7 @@ export default {
//
headers: { Authorization: "Bearer " + getToken() },
//
url: process.env.VUE_APP_BASE_API + "/tc/assetCurrent/import"
url: process.env.VUE_APP_BASE_API + "/tc/assetOfficialAccount/importData"
},
}
},
@ -245,7 +238,7 @@ export default {
//
getList(){
this.loading = true;
assetUnit('get',this.formInline).then(res=>{
assetOfficialAccountList(this.formInline).then(res=>{
this.loading = false;
this.total = res.data.total;
this.tableData = res.data.records;
@ -254,16 +247,17 @@ export default {
//
resetQuery(){
this.resetForm("queryForm");
this.time = [];
this.handleQuery();
},
//
handleQuery(){
this.formInline.current = 1;
if(this.formInline.time) {
this.formInline.startTime = this.formInline.time[0]
this.formInline.endTime = this.formInline.time[1]
if(this.time) {
this.formInline.startTime = this.time[0]
this.formInline.endTime = this.time[1]
}
this.formInline.time = [];
this.getList();
},
//
@ -278,14 +272,14 @@ export default {
},
//
handleExport(){
this.download('/tc/assetCurrent/export', {
this.download('/tc/assetOfficialAccount/export', {
...this.formInline
}, `资产${new Date().getTime()}.xlsx`)
}, `公众号资产${new Date().getTime()}.xlsx`)
},
/** 下载模板操作 */
importTemplate() {
this.download('/tc/assetCurrent/importTemplate', {
}, `资产导入模板${new Date().getTime()}.xlsx`)
this.download('/tc/assetOfficialAccount/importTemplate', {
}, `公众号资产导入模板${new Date().getTime()}.xlsx`)
},
//
handleFileUploadProgress(event, file, fileList) {
@ -327,7 +321,7 @@ export default {
} else if(id == 3) {
const userIds = row.id;
this.$modal.confirm('是否确认删除用户编号为"' + userIds + '"的数据项?').then(function() {
return deleteAssetInfo(userIds);
return deleteAssetOfficialAccount(userIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");

@ -3,29 +3,22 @@
<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-form :inline="true" ref="queryForm" :model="formInline" size="small" class="demo-form-inline" label-width="100px">
<el-row>
<el-col :span="8">
<el-form-item label="系统名称:" prop="xtmc">
<el-input v-model="formInline.xtmc" placeholder="请输入系统名称"></el-input>
<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-form-item label="系统类型:" prop="xtlx">
<el-select v-model="formInline.xtlx" placeholder="请选择系统类型">
<el-option
v-for="dict in dict.type.zc_xtlx"
:key="dict.value"
:label="dict.label"
:value="dict.value">
</el-option>
</el-select>
<el-col :span="7">
<el-form-item label="小程序名称:" prop="xcxmc">
<el-input v-model="formInline.xcxmc" placeholder="请输入小程序名称"></el-input>
</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"
v-model="time"
format="yyyy-MM-dd HH:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetimerange"
@ -36,18 +29,19 @@
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="单位名称:" prop="dwmc">
<el-input v-model="formInline.dwmc" placeholder="请输入单位名称"></el-input>
<el-col :span="3" 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>
</el-form-item>
</el-col>
</el-row>
<!-- <el-row>
<el-col :span="8">
<el-form-item label="系统状态:" prop="xtzt">
<el-form-item label="小程序状态:" prop="xtzt">
<el-select v-model="formInline.xtzt" placeholder="请选择系统状态">
<el-option
v-for="dict in dict.type.zc_xtzt"
v-for="dict in dict.type.gzh_state"
:key="dict.value"
:label="dict.label"
:value="dict.value">
@ -55,13 +49,13 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="8" style="text-align: right;padding-right: 50px;">
<el-col :span="16" style="text-align: right;padding-right: 30px;">
<el-form-item>
<el-button size="mini" @click="resetQuery('queryFrom')"></el-button>
<el-button size="mini" type="primary" @click="handleQuery('queryFrom')"></el-button>
</el-form-item>
</el-col>
</el-row>
</el-row> -->
</el-form>
</div>
<main>
@ -100,34 +94,34 @@
<section>
<el-table v-loading="loading" :data="tableData" :height="tabHeader" :row-class-name="tableRowClassName" :max-height="tabHeader">
<el-table-column type="index" width="50" label="序号" align="center"/>
<el-table-column label="系统名称" key="xtmc" width="200px" prop="xtmc" align="center" />
<el-table-column label="系统类型" key="xtlx" prop="xtlx" align="center">
<template slot-scope="scope">
<dict-tag :options="dict.type.zc_xtlx" :value="scope.row.xtlx"/>
</template>
</el-table-column>
<el-table-column label="单位名称" key="dwmc" prop="dwmc" align="center">
<el-table-column label="所属单位" key="ssdw" prop="ssdw" align="center" />
<el-table-column label="小程序名称" key="xcxmc" prop="xcxmc" align="center">
<!-- <template slot-scope="scope">
<dict-tag :options="dict.type.project_middle_type" :value="scope.row.projectMiddleType"/>
<dict-tag :options="dict.type.zc_xtlx" :value="scope.row.xtlx"/>
</template> -->
</el-table-column>
<el-table-column label="新增时间" key="createTime" prop="createTime" align="center" />
<el-table-column label="系统状态" key="status" prop="status" class-name="table-status" align="center">
<!-- <el-table-column label="单位名称" key="dwmc" prop="dwmc" align="center">
</el-table-column> -->
<!-- <el-table-column label="新增时间" key="createTime" prop="createTime" align="center" /> -->
<el-table-column label="小程序状态" key="state" prop="state" class-name="table-status" align="center">
<template slot-scope="scope">
<span v-if="scope.row.xtzt == 1" style="color: #16B771;">
已安装
<span v-if="scope.row.state == 1" style="color: #16B771;">
正常
</span>
<span v-if="scope.row.xtzt == 2" style="color: #F58A0C;">
测试中
<span v-if="scope.row.state == 2" style="color: #F58A0C;">
注销
</span>
<span v-if="scope.row.xtzt == 3" style="color: #1485EF;">
使用中
<span v-if="scope.row.state == 3" style="color: #1485EF;">
迁移
</span>
<span v-if="scope.row.xtzt == 4" style="color: #29A07A;">
维护中
<span v-if="scope.row.state == 4" style="color: #29A07A;">
受限
</span>
<span v-if="scope.row.xtzt == 5" style="color: #F50C0C;">
关停
<span v-if="scope.row.state == 5" style="color: #F50C0C;">
违规
</span>
<span v-if="scope.row.state == 6" style="color: #F58A0C;">
未知
</span>
</template>
</el-table-column>
@ -195,23 +189,21 @@
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 { miniProgramsList, deleteMiniPrograms } from "@/api/auditPagesApi/index";
export default {
dicts: ['zc_xtzt','zc_xtlx'],
dicts: ['gzh_state'],
components:{myPagination},
data() {
return {
formInline:{
xtmc:"",
xtlx:"",
time:[],
dwmc:"",
xcxmc:"",
startTime:"",
endTime:"",
dwmc:"",
xtzt:"",
current:1,
size:10,
},
time:[],
total:0,
tableData:[],
loading:false,
@ -221,7 +213,7 @@ export default {
//
open: false,
//
title: "资产导入",
title: "小程序资产导入",
//
isUploading: false,
//
@ -229,7 +221,7 @@ export default {
//
headers: { Authorization: "Bearer " + getToken() },
//
url: process.env.VUE_APP_BASE_API + "/tc/assetCurrent/import"
url: process.env.VUE_APP_BASE_API + "/tc/miniPrograms/importData"
},
}
},
@ -245,7 +237,7 @@ export default {
//
getList(){
this.loading = true;
assetUnit('get',this.formInline).then(res=>{
miniProgramsList(this.formInline).then(res=>{
this.loading = false;
this.total = res.data.total;
this.tableData = res.data.records;
@ -254,16 +246,16 @@ export default {
//
resetQuery(){
this.resetForm("queryForm");
this.time = [];
this.handleQuery();
},
//
handleQuery(){
this.formInline.current = 1;
if(this.formInline.time) {
this.formInline.startTime = this.formInline.time[0]
this.formInline.endTime = this.formInline.time[1]
if(this.time) {
this.formInline.startTime = this.time[0]
this.formInline.endTime = this.time[1]
}
this.formInline.time = [];
this.getList();
},
//
@ -278,14 +270,14 @@ export default {
},
//
handleExport(){
this.download('/tc/assetCurrent/export', {
this.download('/tc/miniPrograms/export', {
...this.formInline
}, `资产${new Date().getTime()}.xlsx`)
}, `小程序资产${new Date().getTime()}.xlsx`)
},
/** 下载模板操作 */
importTemplate() {
this.download('/tc/assetCurrent/importTemplate', {
}, `资产导入模板${new Date().getTime()}.xlsx`)
this.download('/tc/miniPrograms/importTemplate', {
}, `小程序资产导入模板${new Date().getTime()}.xlsx`)
},
//
handleFileUploadProgress(event, file, fileList) {
@ -327,7 +319,7 @@ export default {
} else if(id == 3) {
const userIds = row.id;
this.$modal.confirm('是否确认删除用户编号为"' + userIds + '"的数据项?').then(function() {
return deleteAssetInfo(userIds);
return deleteMiniPrograms(userIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");

@ -134,7 +134,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="组织构" required prop="zzjg">
<el-form-item label="组织构" required prop="zzjg">
<!-- @change="handleChange" -->
<el-cascader
v-model="ruleForm.zzjg"

@ -9,57 +9,59 @@
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="170px" class="demo-ruleForm" label-position="right" :disabled="disabled">
<el-row>
<el-col :span="12">
<el-form-item label="单位名称" required prop="dwmc">
<!-- <el-input v-model="ruleForm.dwmc" placeholder="请输入单位名称"></el-input> -->
<el-form-item label="所属单位" prop="ssdw">
<!-- <el-input v-model="ruleForm.ssdw" placeholder="请输入所属单位"></el-input> -->
<el-autocomplete
v-model="ruleForm.dwmc"
v-model="ruleForm.ssdw"
:fetch-suggestions="querySearchAsync"
placeholder="请输入单位名称"
placeholder="请输入所属单位"
></el-autocomplete>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="小程序名称" required prop="xtmc">
<el-input v-model="ruleForm.xtmc" placeholder="请输入小程序名称"></el-input>
<el-form-item label="小程序名称" prop="xcxmc">
<el-input v-model="ruleForm.xcxmc" placeholder="请输入小程序名称"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="APPID">
<el-input v-model="ruleForm.jfxx" style="width: 100%;" placeholder="请输入APPID"></el-input>
<el-form-item label="APPID" required>
<el-input v-model="ruleForm.appId" style="width: 100%;" placeholder="请输入APPID"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="认证主体" required>
<el-input v-model="ruleForm.jfxx" style="width: 100%;" placeholder="请输入认证主体"></el-input>
<el-input v-model="ruleForm.rzzt" style="width: 100%;" placeholder="请输入认证主体"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item class="daoqitixingren" prop="tyshxydm" label="统一社会信用代码"
:rules="[
{
pattern: /^[a-zA-Z0-9]{18}$/,
message: '请输入正确格式的18位统一社会信用代码',
trigger: 'blur'
}
]"
>
<el-input v-model="ruleForm.tyshxydm" placeholder="请输入统一信用代码"></el-input>
<el-form-item class="daoqitixingren" label="统一社会信用代码" required>
<el-form-item prop="tyshxydm"
:rules="[
{
pattern: /^[a-zA-Z0-9]{18}$/,
message: '请输入正确格式的18位统一社会信用代码',
trigger: 'blur'
}
]"
>
<el-input v-model="ruleForm.tyshxydm" placeholder="请输入统一信用代码"></el-input>
</el-form-item>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="小程序状态">
<el-select v-model="ruleForm.xtbq" placeholder="请选择小程序状态">
<el-option label="正常" value="1"></el-option>
<el-option label="注销" value="2"></el-option>
<el-option label="迁移" value="3"></el-option>
<el-option label="受限" value="4"></el-option>
<el-option label="违规" value="5"></el-option>
<el-option label="未知" value="6"></el-option>
<el-form-item label="小程序状态" required>
<el-select v-model="ruleForm.state" placeholder="请选择小程序状态">
<el-option
v-for="dict in dict.type.gzh_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
@ -67,31 +69,39 @@
<el-row>
<el-col :span="12">
<el-form-item label="账号原始ID" required>
<el-input v-model="ruleForm.jfxx" style="width: 100%;" placeholder="请输入账号原始ID"></el-input>
<el-input v-model="ruleForm.ysId" style="width: 100%;" placeholder="请输入账号原始ID"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="小程序包状态">
<el-select v-model="ruleForm.xtbq" placeholder="请选择小程序包状态">
<el-option label="正常" value="1"></el-option>
<el-option label="停用" value="2"></el-option>
<el-form-item label="小程序包状态" required>
<el-select v-model="ruleForm.packState" placeholder="请选择小程序包状态">
<el-option
v-for="dict in dict.type.email_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="认证状态">
<el-select v-model="ruleForm.xtbq" placeholder="请选择认证状态">
<el-option label="已认证" value="1"></el-option>
<el-option label="未认证" value="2"></el-option>
<el-form-item label="认证状态" required>
<el-select v-model="ruleForm.rzState" placeholder="请选择认证状态">
<el-option
v-for="dict in dict.type.gzh_rzzt"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="认证时间" required>
<el-date-picker
v-model="ruleForm.ymdqsj"
v-model="ruleForm.rzsj"
type="date"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
@ -102,133 +112,180 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="认证类型">
<el-select v-model="ruleForm.xtbq" placeholder="请选择认证类型">
<el-option label="个人" value="1"></el-option>
<el-option label="企业" value="2"></el-option>
<el-form-item label="认证类型" required>
<el-select v-model="ruleForm.rzlx" placeholder="请选择认证类型">
<el-option
v-for="dict in dict.type.gzh_rzlx"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="icp备案状态" required>
<el-input v-model="ruleForm.jfxx" style="width: 100%;" placeholder="请输入icp备案状态"></el-input>
<el-input v-model="ruleForm.icpState" style="width: 100%;" placeholder="请输入icp备案状态"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="域名白名单">
<el-input v-model="ruleForm.jfxx" style="width: 100%;" placeholder="请输入域名白名单"></el-input>
<el-form-item label="域名白名单" required>
<el-input v-model="ruleForm.ymbmd" style="width: 100%;" placeholder="请输入域名白名单"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="服务类目" required>
<el-input v-model="ruleForm.jfxx" style="width: 100%;" placeholder="请输入服务类目"></el-input>
<el-input v-model="ruleForm.fwlm" style="width: 100%;" placeholder="请输入服务类目"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="行业电子邮箱">
<el-input v-model="ruleForm.jfxx" style="width: 100%;" placeholder="请输入行业电子邮箱"></el-input>
<el-form-item label="行业电子邮箱" required>
<el-form-item prop="hydzyx"
:rules="[
{
type: 'email',
message: '请输入正确的邮箱地址',
trigger: ['blur', 'change']
}
]"
>
<el-input v-model="ruleForm.hydzyx" style="width: 100%;" placeholder="请输入行业电子邮箱"></el-input>
</el-form-item>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所属行业" required>
<el-input v-model="ruleForm.jfxx" style="width: 100%;" placeholder="请输入所属行业"></el-input>
<el-select v-model="ruleForm.sshy" placeholder="请选择所属行业">
<el-option
v-for="dict in dict.type.app_sshy"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="重点行业">
<el-select v-model="ruleForm.xtbq" placeholder="请选择系统标签">
<el-option label="政务" value="1"></el-option>
<el-option label="交通" value="2"></el-option>
<el-option label="卫健" value="3"></el-option>
<el-option label="新闻媒体" value="4"></el-option>
<el-form-item label="重点行业" required>
<el-select v-model="ruleForm.zdhy" placeholder="请选择重点行业">
<el-option
v-for="dict in dict.type.app_zdhy"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="行政区划" required>
<el-cascader
size="large"
:props="props"
:options="options"
v-model="dlwz"
>
</el-cascader>
<el-select v-model="ruleForm.xzqh" placeholder="请选择行政区划">
<el-option
v-for="dict in dict.type.app_xzqh"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<!-- TODO明天加字段 -->
<el-row>
<el-col :span="12">
<el-form-item label="系统标签">
<el-select v-model="ruleForm.xtbq" placeholder="请选择系统标签">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
<el-form-item label="系统责任人" required>
<el-input v-model="ruleForm.xtzrr" style="width: 100%;" placeholder="请输入系统责任人"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="机房信息" required>
<el-input v-model="ruleForm.jfxx" style="width: 100%;" placeholder="请输入机房信息"></el-input>
<el-form-item label="系统责任人电话" required>
<el-form-item prop="xtzrrdh"
:rules="[
{
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '请输入正确的手机号码',
trigger: 'blur'
}
]"
>
<el-input v-model="ruleForm.xtzrrdh" style="width: 100%;" placeholder="请输入系统责任人电话"></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="系统标签">
<el-select v-model="ruleForm.xtbq" placeholder="请选择系统标签">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
<el-form-item label="系统责任人邮箱" required>
<el-form-item prop="xtzrryx"
:rules="[
{
type: 'email',
message: '请输入正确的邮箱地址',
trigger: ['blur', 'change']
}
]"
>
<el-input v-model="ruleForm.xtzrryx" style="width: 100%;" placeholder="请输入系统责任人邮箱"></el-input>
</el-form-item>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="机房信息" required>
<el-input v-model="ruleForm.jfxx" style="width: 100%;" placeholder="请输入机房信息"></el-input>
<el-form-item label="系统责任人地址" required>
<el-input v-model="ruleForm.xtzrrdz" style="width: 100%;" placeholder="请输入系统责任人地址"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="系统标签">
<el-select v-model="ruleForm.xtbq" placeholder="请选择系统标签">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
<el-form-item label="引入插件APPID" required>
<el-input v-model="ruleForm.yycjAppid" style="width: 100%;" placeholder="请输入引入插件APPID"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="机房信息" required>
<el-input v-model="ruleForm.jfxx" style="width: 100%;" placeholder="请输入机房信息"></el-input>
<el-form-item label="引用插件(开发者)" required>
<el-input v-model="ruleForm.yycjKfz" style="width: 100%;" placeholder="请输入引用插件(开发者)"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="系统简介" required>
<el-input type="textarea" resize="none" placeholder="请输入系统简介" :rows="5" v-model="ruleForm.xtjj"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType !== 'look'">
<el-button type="danger" @click="sendBack"></el-button>
<el-button type="primary" @click="newAssets" :loading="loading">保存</el-button>
</el-row>
</el-form>
</div>
</div>
</div>
</template>
<script>
import pcas from "@/utils/pca-code.json"
import { assetUnitData, assetInfo, unitAllList } from "@/api/auditPagesApi/index";
import { assetMiniPrograms, miniProgramsInfo, unitAllList } from "@/api/auditPagesApi/index";
export default {
dicts:['app_xzqh','app_sshy','app_zdhy','gzh_state','gzh_rzzt','gzh_rzlx','email_state'],
data() {
return {
options: pcas,
props:{
value:'value',
label:"value",
checkStrictly:true,
},
ruleForm:{
},
rules:{},
rules:{
ssdw:[
{ required: true, message: "所属单位不能为空", trigger: "blur" }
],
xcxmc:[
{ required: true, message: "小程序名称不能为空", trigger: "blur" }
],
},
loading:false,
disabled:false,
}
},
@ -254,7 +311,9 @@ export default {
},
methods:{
getInfo(id){
miniProgramsInfo(id).then(res=>{
this.ruleForm = res.data;
})
},
//
querySearchAsync(queryString, cb){
@ -269,6 +328,32 @@ export default {
})
cb(results);
},
//
newAssets(){
this.$refs['ruleForm'].validate((valid) => {
if(valid) {
this.loading = true;
if(this.pageType == 'change') {
assetMiniPrograms('put',this.ruleForm).then(res=>{
// console.log(res,"res");
this.loading = false;
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
})
} else {
assetMiniPrograms('post',this.ruleForm).then(res=>{
// console.log(res,"res");
this.loading = false;
this.$modal.msgSuccess("新增成功");
this.$router.go(-1);
})
}
}
})
},
sendBack(){
this.$router.go(-1);
},
},
}
</script>

@ -1,19 +1,332 @@
<!-- 公众号表单 -->
<template>
<div>
<div class="L-assets-info">
<div class="assets-info-top">
<el-row style="margin: 10px 0;">
<span class="top-title-box">基本信息</span>
</el-row>
<div class="assets-info-box">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="170px" class="demo-ruleForm" label-position="right" :disabled="disabled">
<el-row>
<el-col :span="12">
<el-form-item label="所属单位" prop="ssdw">
<!-- <el-input v-model="ruleForm.ssdw" placeholder="请输入单位名称"></el-input> -->
<el-autocomplete
v-model="ruleForm.ssdw"
:fetch-suggestions="querySearchAsync"
placeholder="请输入所属单位"
></el-autocomplete>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="公众号名称" prop="gzhmc">
<el-input v-model="ruleForm.gzhmc" placeholder="请输入公众号名称"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="微信号" required>
<el-input v-model="ruleForm.wxh" style="width: 100%;" placeholder="请输入微信号"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="认证主体" required>
<el-input v-model="ruleForm.rzzt" style="width: 100%;" placeholder="请输入认证主体"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item class="daoqitixingren" label="统一社会信用代码" required>
<el-form-item prop="tyshxydm"
:rules="[
{
pattern: /^[a-zA-Z0-9]{18}$/,
message: '请输入正确格式的18位统一社会信用代码',
trigger: 'blur'
}
]"
>
<el-input v-model="ruleForm.tyshxydm" placeholder="请输入统一信用代码"></el-input>
</el-form-item>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="公众号状态" required>
<el-select v-model="ruleForm.gzhzt" placeholder="请选择公众号状态">
<el-option
v-for="dict in dict.type.gzh_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="公众号ID" required>
<el-input v-model="ruleForm.gzhId" style="width: 100%;" placeholder="请输入公众号ID"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="公众号类型" required>
<el-select v-model="ruleForm.gzhlx" placeholder="请选择公众号类型">
<el-option
v-for="dict in dict.type.gzh_lx"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="认证状态" required>
<el-select v-model="ruleForm.rzState" placeholder="请选择认证状态">
<el-option
v-for="dict in dict.type.gzh_rzzt"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="认证时间" required>
<el-date-picker
v-model="ruleForm.rzsj"
type="date"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="认证类型" required>
<el-select v-model="ruleForm.rzlx" placeholder="请选择认证类型">
<el-option
v-for="dict in dict.type.gzh_rzlx"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所属行业" required>
<el-select v-model="ruleForm.sshy" placeholder="请选择所属行业">
<el-option
v-for="dict in dict.type.app_sshy"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="重点行业" required>
<el-select v-model="ruleForm.zdhy" placeholder="请选择重点行业">
<el-option
v-for="dict in dict.type.app_zdhy"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="行政区划" required>
<el-select v-model="ruleForm.xzqh" placeholder="请选择行政区划">
<el-option
v-for="dict in dict.type.app_xzqh"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="系统责任人" required>
<el-input v-model="ruleForm.xtzrr" style="width: 100%;" placeholder="请输入系统责任人"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="系统责任人电话" required>
<el-form-item prop="xtzrrdh"
:rules="[
{
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '请输入正确的手机号码',
trigger: 'blur'
}
]"
>
<el-input v-model="ruleForm.xtzrrdh" style="width: 100%;" placeholder="请输入系统责任人电话"></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="系统责任人邮箱" required>
<el-form-item prop="xtzrryx"
:rules="[
{
type: 'email',
message: '请输入正确的邮箱地址',
trigger: ['blur', 'change']
}
]"
>
<el-input v-model="ruleForm.xtzrryx" style="width: 100%;" placeholder="请输入系统责任人邮箱"></el-input>
</el-form-item>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="系统责任人地址" required>
<el-input v-model="ruleForm.xtzrrdz" style="width: 100%;" placeholder="请输入系统责任人地址"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="菜单信息(菜单名称)" required>
<el-input v-model="ruleForm.cdmc" style="width: 100%;" placeholder="请输入菜单信息(菜单名称)"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="菜单信息(菜单链接)" required>
<el-input v-model="ruleForm.cdlj" style="width: 100%;" placeholder="请输入菜单信息(菜单链接)"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="菜单信息(菜单类型)" required>
<el-input v-model="ruleForm.cdlx" style="width: 100%;" placeholder="请输入菜单信息(菜单类型)"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="系统简介" required>
<el-input type="textarea" resize="none" placeholder="请输入系统简介" :rows="5" v-model="ruleForm.xtjj"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType !== 'look'">
<el-button type="danger" @click="sendBack"></el-button>
<el-button type="primary" @click="newAssets" :loading="loading">保存</el-button>
</el-row>
</el-form>
</div>
</div>
</div>
</template>
<script>
import { assetOfficialAccount, assetOfficialAccountInfo, unitAllList } from "@/api/auditPagesApi/index";
export default {
dicts:['app_xzqh','app_sshy','app_zdhy','gzh_state','gzh_lx','gzh_rzzt','gzh_rzlx','gzh_cdlx'],
data() {
return {
ruleForm:{
},
rules:{
ssdw:[
{ required: true, message: "所属单位不能为空", trigger: "blur" }
],
gzhmc:[
{ required: true, message: "公众号名称不能为空", trigger: "blur" }
],
},
loading:false,
disabled:false,
}
},
props:['pageType', 'id'],
mounted(){
if(this.pageType == 'look') {
this.getInfo(this.id)
this.disabled = true;
this.$nextTick(()=>{
const inputElements = document.querySelectorAll('.el-input__inner');
const textareaInputElements = document.querySelectorAll('.el-textarea__inner');
inputElements.forEach((input) => {
input.placeholder = '';
});
textareaInputElements.forEach((input) => {
input.placeholder = '';
});
})
} else if(this.pageType == 'change') {
this.getInfo(this.id)
this.disabled = false;
}
},
methods:{
getInfo(id){
assetOfficialAccountInfo(id).then(res=>{
this.ruleForm = res.data;
})
},
//
querySearchAsync(queryString, cb){
let results = [];
unitAllList({nickName: queryString}).then(res => {
res.data.forEach(item => {
results.push({
value: item.nickName,
id: item.id,
})
})
})
cb(results);
},
//
newAssets(){
this.$refs['ruleForm'].validate((valid) => {
if(valid) {
this.loading = true;
if(this.pageType == 'change') {
assetOfficialAccount('put',this.ruleForm).then(res=>{
// console.log(res,"res");
this.loading = false;
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
})
} else {
assetOfficialAccount('post',this.ruleForm).then(res=>{
// console.log(res,"res");
this.loading = false;
this.$modal.msgSuccess("新增成功");
this.$router.go(-1);
})
}
}
})
},
sendBack(){
this.$router.go(-1);
},
},
}
</script>
<style lang="scss" scoped>
</style>
</script>

@ -1,19 +1,299 @@
<!-- 电子邮件表单 -->
<template>
<div>
<div class="L-assets-info">
<div class="assets-info-top">
<el-row style="margin: 10px 0;">
<span class="top-title-box">基本信息</span>
</el-row>
<div class="assets-info-box">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="170px" class="demo-ruleForm" label-position="right" :disabled="disabled">
<el-row>
<el-col :span="12">
<el-form-item label="所属单位" prop="ssdw">
<!-- <el-input v-model="ruleForm.ssdw" placeholder="请输入单位名称"></el-input> -->
<el-autocomplete
v-model="ruleForm.ssdw"
:fetch-suggestions="querySearchAsync"
placeholder="请输入所属单位"
></el-autocomplete>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="电子邮箱后缀" prop="dzyxhz">
<el-input v-model="ruleForm.dzyxhz" placeholder="请输入电子邮箱后缀"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="建设类型" required>
<el-select v-model="ruleForm.jslx" placeholder="请选择建设类型">
<el-option
v-for="dict in dict.type.email_jslx"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="邮件系统供应商" required>
<el-input v-model="ruleForm.yjxtgys" style="width: 100%;" placeholder="请输入邮件系统供应商"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="密码算法" required>
<el-input v-model="ruleForm.mmsf" placeholder="请输入密码算法"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="邮件系统状态" required>
<el-select v-model="ruleForm.yjxtzc" placeholder="请选择邮件系统状态">
<el-option
v-for="dict in dict.type.email_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="安全防护系统" required>
<el-select v-model="ruleForm.aqfhxt" placeholder="请选择安全防护系统">
<el-option
v-for="dict in dict.type.email_hasorno"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全备份环境" required>
<el-select v-model="ruleForm.aqbfhj" placeholder="请选择安全备份环境">
<el-option
v-for="dict in dict.type.email_hasorno"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="数字证书厂商" required>
<el-input v-model="ruleForm.szzscs" style="width: 100%;" placeholder="请输入数字证书厂商"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上线时间" required>
<el-date-picker
v-model="ruleForm.sxsj"
type="date"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="所属行业" required>
<el-select v-model="ruleForm.sshy" placeholder="请选择所属行业">
<el-option
v-for="dict in dict.type.app_sshy"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="重点行业" required>
<el-select v-model="ruleForm.zdhy" placeholder="请选择重点行业">
<el-option
v-for="dict in dict.type.app_zdhy"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="行政区划" required>
<el-select v-model="ruleForm.xzqh" placeholder="请选择行政区划">
<el-option
v-for="dict in dict.type.app_xzqh"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="系统责任人" required>
<el-input v-model="ruleForm.xtzrr" style="width: 100%;" placeholder="请输入系统责任人"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="系统责任人电话" required>
<el-form-item prop="xtzrrdh"
:rules="[
{
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '请输入正确的手机号码',
trigger: 'blur'
}
]"
>
<el-input v-model="ruleForm.xtzrrdh" style="width: 100%;" placeholder="请输入系统责任人电话"></el-input>
</el-form-item>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="系统责任人邮箱" required>
<el-form-item prop="xtzrryx"
:rules="[
{
type: 'email',
message: '请输入正确的邮箱地址',
trigger: ['blur', 'change']
}
]"
>
<el-input v-model="ruleForm.xtzrryx" style="width: 100%;" placeholder="请输入系统责任人邮箱"></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="系统责任人地址" required>
<el-input v-model="ruleForm.xtzrrdz" style="width: 100%;" placeholder="请输入系统责任人地址"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="简介" required>
<el-input type="textarea" resize="none" placeholder="请输入简介" :rows="5" v-model="ruleForm.jj"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType !== 'look'">
<el-button type="danger" @click="sendBack"></el-button>
<el-button type="primary" @click="newAssets" :loading="loading">保存</el-button>
</el-row>
</el-form>
</div>
</div>
</div>
</template>
<script>
import { assetEmail, assetEmailInfo, unitAllList } from "@/api/auditPagesApi/index";
export default {
dicts:['app_xzqh','app_sshy','app_zdhy','email_jslx','email_state','email_hasorno'],
data() {
return {
ruleForm:{
},
rules:{
ssdw:[
{ required: true, message: "所属单位不能为空", trigger: "blur" }
],
dzyxhz:[
{ required: true, message: "电子邮箱后缀不能为空", trigger: "blur" }
],
},
loading:false,
disabled:false,
}
},
props:['pageType', 'id'],
mounted(){
if(this.pageType == 'look') {
this.getInfo(this.id)
this.disabled = true;
this.$nextTick(()=>{
const inputElements = document.querySelectorAll('.el-input__inner');
const textareaInputElements = document.querySelectorAll('.el-textarea__inner');
inputElements.forEach((input) => {
input.placeholder = '';
});
textareaInputElements.forEach((input) => {
input.placeholder = '';
});
})
} else if(this.pageType == 'change') {
this.getInfo(this.id)
this.disabled = false;
}
},
methods:{
getInfo(id){
assetEmailInfo(id).then(res=>{
this.ruleForm = res.data;
})
},
//
querySearchAsync(queryString, cb){
let results = [];
unitAllList({nickName: queryString}).then(res => {
res.data.forEach(item => {
results.push({
value: item.nickName,
id: item.id,
})
})
})
cb(results);
},
//
newAssets(){
this.$refs['ruleForm'].validate((valid) => {
if(valid) {
this.loading = true;
if(this.pageType == 'change') {
assetEmail('put',this.ruleForm).then(res=>{
// console.log(res,"res");
this.loading = false;
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
})
} else {
assetEmail('post',this.ruleForm).then(res=>{
// console.log(res,"res");
this.loading = false;
this.$modal.msgSuccess("新增成功");
this.$router.go(-1);
})
}
}
})
},
sendBack(){
this.$router.go(-1);
},
},
}
</script>
<style lang="scss" scoped>
</style>
</script>

@ -1,19 +1,261 @@
<!-- 移动应用程序表单 -->
<template>
<div>
<div class="L-assets-info">
<div class="assets-info-top">
<el-row style="margin: 10px 0;">
<span class="top-title-box">基本信息</span>
</el-row>
<div class="assets-info-box">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="170px" class="demo-ruleForm" label-position="right" :disabled="disabled">
<el-row>
<el-col :span="12">
<el-form-item label="所属单位" required prop="ssdw">
<!-- <el-input v-model="ruleForm.ssdw" placeholder="请输入单位名称"></el-input> -->
<el-autocomplete
v-model="ruleForm.ssdw"
:fetch-suggestions="querySearchAsync"
placeholder="请输入所属单位"
></el-autocomplete>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="移动应用名称" required prop="appName">
<el-input v-model="ruleForm.appName" placeholder="请输入移动应用名称"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="包名" required>
<el-input v-model="ruleForm.pack" style="width: 100%;" placeholder="请输入包名"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="icp备案状态" required>
<el-select v-model="ruleForm.icpState" placeholder="请选择icp备案状态">
<el-option
v-for="dict in dict.type.app_icp_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="icp备案号" required>
<el-input v-model="ruleForm.icpbah" placeholder="请输入icp备案号"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item class="daoqitixingren" label="统一社会信用代码" required>
<el-form-item prop="tyshxydm"
:rules="[
{
pattern: /^[a-zA-Z0-9]{18}$/,
message: '请输入正确格式的18位统一社会信用代码',
trigger: 'blur'
}
]"
>
<el-input v-model="ruleForm.tyshxydm" placeholder="请输入统一信用代码"></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="文件名" required>
<el-input v-model="ruleForm.wjm" placeholder="请输入文件名"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所属行业" required>
<el-select v-model="ruleForm.sshy" placeholder="请选择所属行业">
<el-option
v-for="dict in dict.type.app_sshy"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="重点行业" required>
<el-select v-model="ruleForm.zdhy" placeholder="请选择重点行业">
<el-option
v-for="dict in dict.type.app_zdhy"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="行政区划" required>
<el-select v-model="ruleForm.xzqh" placeholder="请选择行政区划">
<el-option
v-for="dict in dict.type.app_xzqh"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="安全加固情况" required>
<el-select v-model="ruleForm.aqjgqk" placeholder="请选择安全加固情况">
<el-option
v-for="dict in dict.type.app_aqjgqk"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="版本信息" required>
<el-input v-model="ruleForm.bbxx" style="width: 100%;" placeholder="请输入版本信息"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="版本信息(版本号)" required>
<el-input v-model="ruleForm.bbh" style="width: 100%;" placeholder="请输入版本信息(版本号)"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="版本信息MD5" required>
<el-input v-model="ruleForm.bbxxMd5" style="width: 100%;" placeholder="请输入版本信息MD5"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="版本信息(上架平台)" required>
<el-input v-model="ruleForm.bbxxSjpt" style="width: 100%;" placeholder="请输入版本信息(上架平台)"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="文件大小" required>
<el-input v-model="ruleForm.wjdx" style="width: 100%;" placeholder="请输入文件大小"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="简介" required>
<el-input type="textarea" resize="none" placeholder="请输入简介" :rows="5" v-model="ruleForm.jj"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 30px; text-align: center;" v-if="pageType !== 'look'">
<el-button type="danger" @click="sendBack"></el-button>
<el-button type="primary" @click="newAssets" :loading="loading">保存</el-button>
</el-row>
</el-form>
</div>
</div>
</div>
</template>
<script>
import { assetApp, assetAppInfo, unitAllList } from "@/api/auditPagesApi/index";
export default {
dicts:['app_icp_state','app_sshy','app_zdhy','app_xzqh','app_aqjgqk'],
data() {
return {
ruleForm:{
},
rules:{
ssdw:[
{ required: true, message: "所属单位不能为空", trigger: "blur" }
],
appName:[
{ required: true, message: "移动应用名称不能为空", trigger: "blur" }
],
},
loading:false,
disabled:false,
}
},
props:['pageType', 'id'],
mounted(){
if(this.pageType == 'look') {
this.getInfo(this.id)
this.disabled = true;
this.$nextTick(()=>{
const inputElements = document.querySelectorAll('.el-input__inner');
const textareaInputElements = document.querySelectorAll('.el-textarea__inner');
inputElements.forEach((input) => {
input.placeholder = '';
});
textareaInputElements.forEach((input) => {
input.placeholder = '';
});
})
} else if(this.pageType == 'change') {
this.getInfo(this.id)
this.disabled = false;
}
},
methods:{
getInfo(id){
assetAppInfo(id).then(res=>{
this.ruleForm = res.data;
})
},
//
querySearchAsync(queryString, cb){
let results = [];
unitAllList({nickName: queryString}).then(res => {
res.data.forEach(item => {
results.push({
value: item.nickName,
id: item.id,
})
})
})
cb(results);
},
//
newAssets(){
this.$refs['ruleForm'].validate((valid) => {
if(valid) {
this.loading = true;
if(this.pageType == 'change') {
assetApp('put',this.ruleForm).then(res=>{
// console.log(res,"res");
this.loading = false;
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
})
} else {
assetApp('post',this.ruleForm).then(res=>{
// console.log(res,"res");
this.loading = false;
this.$modal.msgSuccess("新增成功");
this.$router.go(-1);
})
}
}
})
},
sendBack(){
this.$router.go(-1);
},
},
}
</script>
<style lang="scss" scoped>
</style>
</script>
Loading…
Cancel
Save