main
李劲龙 3 weeks ago
parent 170b12608b
commit ee6e9deb5b

@ -5,5 +5,5 @@ VUE_APP_TITLE = 太仓市网络资产核查管理系统
ENV = 'production'
# 若依管理系统/生产环境
# VUE_APP_BASE_API = 'http://39.101.188.84:9115'
VUE_APP_BASE_API = 'http://20.1.0.164/api'
VUE_APP_BASE_API = 'http://39.101.188.84:9115'
# VUE_APP_BASE_API = 'http://20.1.0.164/api'

@ -58,9 +58,12 @@
text-align: center;
font-family: Alimama ShuHeiTi;
font-weight: bold;
font-size: 15px;
font-size: 20px;
color: #FFFFFF;
line-height: 50px;
line-height: 30px;
overflow: hidden;
padding: 10px 10px 0 10px;
box-sizing: border-box;
}
}

@ -38,7 +38,7 @@ export default {
}
.fixed-header+.app-main {
.fixed-header + .app-main {
padding-top: 50px;
}

@ -132,9 +132,12 @@ export default {
}
.dibutishi {
width: 100%;
text-align: center;
font-size: 14px;
margin-top: 3px;
color: #909399;
.kongge {
margin: 0 10px;
}

@ -6,106 +6,89 @@
<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-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="请输入所属单位"
disabled
></el-autocomplete>
<el-autocomplete v-model="ruleForm.ssdw" :fetch-suggestions="querySearchAsync" placeholder="请输入所属单位"
disabled></el-autocomplete>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="公众号名称" prop="gzhmc">
<el-input v-model="ruleForm.gzhmc" placeholder="请输入公众号名称" disabled></el-input>
<el-form-item label="平台类型" prop="ptlx">
<el-select v-model="ruleForm.ptlx" placeholder="请选择平台类型" >
<el-option v-for="dict in dict.type.sys_ptlx_type" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
</el-col>
</el-row>
<div v-if="ruleForm.ptlx == 1">
<el-row>
<el-col :span="12">
<el-form-item label="微信号" prop="wxh">
<el-form-item label="微信号" prop="wxh">
<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="认证主体" prop="rzzt">
<el-input v-model="ruleForm.rzzt" style="width: 100%;" placeholder="请输入认证主体"></el-input>
<el-form-item label="公众号名称" prop="gzhmc">
<el-input v-model="ruleForm.gzhmc" placeholder="请输入公众号名称" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12" >
<el-form-item prop="tyshxydm"
class="daoqitixingren" label="统一社会信用代码" required
:rules="[
{
required: true,
<el-col :span="12">
<el-form-item prop="tyshxydm" class="daoqitixingren" label="统一社会信用代码" required :rules="[
{
required: true,
pattern: /^[a-zA-Z0-9]{18}$/,
message: '请输入正确格式的18位统一社会信用代码',
trigger: 'change'
}
]"
>
<el-input v-model="ruleForm.tyshxydm" placeholder="请输入统一信用代码"></el-input>
</el-form-item>
pattern: /^[a-zA-Z0-9]{18}$/,
message: '请输入正确格式的18位统一社会信用代码',
trigger: 'change'
}
]">
<el-input v-model="ruleForm.tyshxydm" placeholder="请输入统一信用代码"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="公众号状态" prop="gzhzt">
<el-form-item label="公众号状态" prop="gzhzt">
<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-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" prop="gzhId">
<el-form-item label="公众号ID" prop="gzhId">
<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="公众号类型" prop="gzhlx">
<el-form-item label="公众号类型" prop="gzhlx">
<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-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="认证状态" prop="rzState">
<el-form-item label="认证状态" prop="rzState">
<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-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="认证时间" prop="rzsj">
<el-date-picker
v-model="ruleForm.rzsj"
type="date"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
<el-form-item label="认证时间" prop="rzsj">
<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>
@ -113,166 +96,153 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="认证类型" prop="rzlx">
<el-form-item label="认证类型" prop="rzlx">
<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-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="所属行业" prop="sshy">
<el-form-item label="所属行业" prop="sshy">
<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-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="重点行业" prop="zdhy">
<el-form-item label="重点行业" prop="zdhy">
<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-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="行政区划" prop="xzqh">
<el-form-item label="行政区划" prop="xzqh">
<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-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="系统责任人" prop="xtzrr">
<el-form-item label="系统责任人" prop="xtzrr">
<el-input v-model="ruleForm.xtzrr" style="width: 100%;" placeholder="请输入系统责任人"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="xtzrrdh"
label="系统责任人电话" required
:rules="[
{
required: true,
<el-form-item prop="xtzrrdh" label="系统责任人电话" required :rules="[
{
required: true,
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '请输入正确的手机号码',
trigger: 'change'
}
]"
>
<el-input v-model="ruleForm.xtzrrdh" style="width: 100%;" placeholder="请输入系统责任人电话"></el-input>
</el-form-item>
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '请输入正确的手机号码',
trigger: 'change'
}
]">
<el-input v-model="ruleForm.xtzrrdh" style="width: 100%;" placeholder="请输入系统责任人电话"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="xtzrryx"
label="系统责任人邮箱" required
:rules="[
{
required: true,
<el-form-item prop="xtzrryx" label="系统责任人邮箱" required :rules="[
{
required: true,
type: 'email',
message: '请输入正确的邮箱地址',
trigger: ['change', 'change']
}
]"
>
<el-input v-model="ruleForm.xtzrryx" style="width: 100%;" placeholder="请输入系统责任人邮箱"></el-input>
</el-form-item>
type: 'email',
message: '请输入正确的邮箱地址',
trigger: ['change', 'change']
}
]">
<el-input v-model="ruleForm.xtzrryx" style="width: 100%;" placeholder="请输入系统责任人邮箱"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="系统责任人地址" prop="xtzrrdz">
<el-form-item label="系统责任人地址" prop="xtzrrdz">
<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="菜单信息(菜单名称)" prop="cdmc">
<el-form-item label="菜单信息(菜单名称)" prop="cdmc">
<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="菜单信息(菜单链接)" prop="cdlj">
<el-form-item label="菜单信息(菜单链接)" prop="cdlj">
<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="菜单信息(菜单类型)" prop="cdlx">
<el-form-item label="菜单信息(菜单类型)" prop="cdlx">
<el-input v-model="ruleForm.cdlx" style="width: 100%;" placeholder="请输入菜单信息(菜单类型)"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="认证主体" prop="rzzt">
<el-input v-model="ruleForm.rzzt" style="width: 100%;" placeholder="请输入认证主体"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="系统简介" prop="xtjj">
<el-input type="textarea" resize="none" placeholder="请输入系统简介" :rows="5" v-model="ruleForm.xtjj"></el-input>
<el-form-item label="系统简介" prop="xtjj">
<el-input type="textarea" resize="none" placeholder="请输入系统简介" :rows="5"
v-model="ruleForm.xtjj"></el-input>
</el-form-item>
</el-col>
</el-row>
</div>
<el-row v-if="ruleForm.bfyy">
<el-col :span="24">
<el-form-item label="关停原因">
                <div>{{ruleForm.bfyy}}</div>
              </el-form-item>
                <div>{{ ruleForm.bfyy }}</div>
              </el-form-item>
</el-col>
</el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType !== 'look' &&$route.name == 'mytaskAuditInfo'" >
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;"
v-if="pageType !== 'look' && $route.name == 'mytaskAuditInfo'">
<el-button type="danger" @click="newAssets(0)"></el-button>
<el-button @click="newAssets(1)"></el-button>
<el-button type="warning" @click="newAssets(2)"></el-button>
<el-button type="primary" @click="newAssets(3)" :loading="loading">提交</el-button>
<el-button @click="newAssets(1)"></el-button>
<el-button type="warning" @click="newAssets(2)"></el-button>
<el-button type="primary" @click="newAssets(3)" :loading="loading">提交</el-button>
</el-row>
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType !== 'look' &&$route.name == 'taskAuditInfo'" >
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;"
v-if="pageType !== 'look' && $route.name == 'taskAuditInfo'">
<el-button type="danger" @click="JGnewAssets(0)"></el-button>
<el-button type="primary" @click="JGnewAssets(1)" >通过</el-button>
<el-button type="primary" @click="JGnewAssets(1)"></el-button>
</el-row>
</el-form>
</div>
</div>
<baofei ref='baofei' :ruleForm='ruleForm' @assetTaskzc="guanting"></baofei>
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.gzhmc' ></butongguo>
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.gzhmc'></butongguo>
</div>
</template>
<script>
import { assetOfficialAccount, assetOfficialAccountInfo, unitAllList } from "@/api/auditPagesApi/index";
import { assetTaskofficetaskSh, assetTaskgzhzc, assetTasksh,assetTaskgzhjyTj} from "@/api/renwuApi/index.js"
import baofei from "@/views/components/renwuType/baofei.vue"
import butongguo from "@/views/components/renwuType/butongguo.vue"
import { assetTaskofficetaskSh, assetTaskgzhzc, assetTasksh, assetTaskgzhjyTj } from "@/api/renwuApi/index.js"
import baofei from "@/views/components/renwuType/baofei.vue"
import butongguo from "@/views/components/renwuType/butongguo.vue"
export default {
components:{baofei,butongguo},
components: { baofei, butongguo },
dicts:['app_xzqh','app_sshy','app_zdhy','gzh_state','gzh_lx','gzh_rzzt','gzh_rzlx','gzh_cdlx'],
dicts: ['app_xzqh', 'app_sshy', 'app_zdhy', 'gzh_state', 'gzh_lx', 'gzh_rzzt', 'gzh_rzlx', 'gzh_cdlx', 'sys_ptlx_type'],
data() {
return {
ruleForm:{
ruleForm: {
},
rules: {
@ -347,16 +317,16 @@ export default {
]
},
loading:false,
disabled:false,
loading: false,
disabled: false,
}
},
props:['pageType', 'id'],
mounted(){
if(this.pageType == 'look') {
props: ['pageType', 'id'],
mounted() {
if (this.pageType == 'look') {
this.getInfo(this.id)
this.disabled = true;
this.$nextTick(()=>{
this.$nextTick(() => {
const inputElements = document.querySelectorAll('.el-input__inner');
const textareaInputElements = document.querySelectorAll('.el-textarea__inner');
inputElements.forEach((input) => {
@ -366,30 +336,30 @@ export default {
input.placeholder = '';
});
})
} else if(this.pageType == 'change') {
} else if (this.pageType == 'change') {
this.getInfo(this.id)
this.disabled = false;
}
},
methods:{
methods: {
getInfo(id){
getInfo(id) {
let obj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
}
assetTaskofficetaskSh(obj).then(res=>{
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId
}
assetTaskofficetaskSh(obj).then(res => {
this.ruleForm = res.data;
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
this.$refs.ruleForm.clearValidate()
}, 100);
})
},
//
querySearchAsync(queryString, cb){
querySearchAsync(queryString, cb) {
let results = [];
unitAllList({nickName: queryString}).then(res => {
unitAllList({ nickName: queryString }).then(res => {
res.data.forEach(item => {
results.push({
value: item.nickName,
@ -399,87 +369,87 @@ export default {
})
cb(results);
},
guanting(ruleForm){
assetTaskgzhzc(ruleForm).then(res=>{
guanting(ruleForm) {
assetTaskgzhzc(ruleForm).then(res => {
this.$message({
type: 'info',
message: '已关停'
});
this.$router.go(-1);
this.ruleForm.bfyy = ""
this.$refs.baofei.resetForm()
type: 'info',
message: '已关停'
});
this.$router.go(-1);
this.ruleForm.bfyy = ""
this.$refs.baofei.resetForm()
})
},
//
newAssets(type){
newAssets(type) {
if (type == 1) {
//
this.loading = true
this.loading = true
this.$router.go(-1);
this.loading = false
return
}
this.ruleForm.taskId= this.$route.query.taskId
this.ruleForm.assetId= this.$route.query.assetId
this.ruleForm.taskId = this.$route.query.taskId
this.ruleForm.assetId = this.$route.query.assetId
if (type == 0) {
this.$refs.baofei.open()
this.$refs.baofei.open()
}
//
if (type == 2) {
this.loading = true
assetTaskgzhzc(this.ruleForm).then(res => {
console.log(res, "res");
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
this.loading = false
this.loading = true
assetTaskgzhzc(this.ruleForm).then(res => {
console.log(res, "res");
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
this.loading = false
})
}
if(type == 3){
if (type == 3) {
this.$refs['ruleForm'].validate((valid) => {
if(valid) {
this.loading = true;
assetTaskgzhjyTj(this.ruleForm).then(res=>{
this.loading = false;
this.$modal.msgSuccess("提交成功");
this.$router.go(-1);
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
this.loading = true;
assetTaskgzhjyTj(this.ruleForm).then(res => {
this.loading = false;
this.$modal.msgSuccess("提交成功");
this.$router.go(-1);
})
}
})
}
})
}
},
JGnewAssets(type){
JGnewAssets(type) {
this.ruleForm.taskId= this.$route.query.taskId
this.ruleForm.assetId= this.$route.query.assetId
if(type == 0){
this.ruleForm.taskId = this.$route.query.taskId
this.ruleForm.assetId = this.$route.query.assetId
if (type == 0) {
this.$refs.butongguo.open()
this.$refs.butongguo.open()
}
if(type == 1){
let tijioaobj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId,
xtmc:this.ruleForm.gzhmc,
status: 3,
type:this.$route.query.type
}
assetTasksh(tijioaobj).then(res=>{
if(res.code == 200){
this.$modal.msgSuccess("审核成功");
this.$router.go(-1);
if (type == 1) {
let tijioaobj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId,
xtmc: this.ruleForm.gzhmc,
status: 3,
type: this.$route.query.type
}
})
}
assetTasksh(tijioaobj).then(res => {
if (res.code == 200) {
this.$modal.msgSuccess("审核成功");
this.$router.go(-1);
}
})
}
},
sendBack(){
},
sendBack() {
this.$router.go(-1);
},
},

@ -344,7 +344,8 @@
</el-form-item>
</el-col>
</el-row>
<el-row v-if="ruleForm.bsypt == 1">
<!-- v-if="ruleForm.bsypt == 1" -->
<el-row >
<el-col :span="12">
<el-form-item label="云服务商名称" required>
<el-input v-model="ruleForm.yfwsmc" style="width: 100%;" placeholder="请输入云服务商名称"></el-input>

@ -374,7 +374,8 @@
</el-form-item>
</el-col>
</el-row>
<el-row v-if="ruleForm.bsypt == 1">
<!-- v-if="ruleForm.bsypt == 1" -->
<el-row>
<el-col :span="12">
<el-form-item label="云服务商名称" required prop="yfwsmc" :rules="{
required: true, message: '请输入', trigger: 'blur'

@ -1,7 +1,7 @@
<template>
<div class="login">
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
<h3 class="title">太仓资产核查管理系统</h3>
<h3 class="title">太仓市网络资产核查管理系统</h3>
<el-form-item prop="username">
<el-input
v-model="loginForm.username"
@ -53,11 +53,14 @@
<router-link class="link-type" :to="'/register'">立即注册</router-link>
</div>
</el-form-item>
</el-form>
<!-- 底部 -->
<!-- <div class="el-login-footer">
<span>Copyright © 2018-2024 ruoyi.vip All Rights Reserved.</span>
</div> -->
<div class="dibutishi"><span>主办单位</span>中共太仓市委网信办 <span class="kongge"></span> <span>技术支持单位</span>杭州安恒信息技术股份有限公司
</div>
</div>
</template>
@ -189,6 +192,7 @@ export default {
.title {
margin: 0px auto 30px auto;
text-align: center;
text-wrap: nowrap;
font-family: Alimama ShuHeiTi;
font-weight: bold;
font-size: 24px;
@ -198,7 +202,7 @@ export default {
.login-form {
border-radius: 6px;
background: #ffffff;
width: 400px;
width: 420px;
padding: 25px 25px 5px 25px;
.el-input {
height: 38px;
@ -241,4 +245,20 @@ export default {
.login-code-img {
height: 38px;
}
.dibutishi {
position: absolute;
bottom: 10px;
text-align: center;
font-size: 14px;
margin-top: 3px;
color: #ffffff;
.kongge {
margin: 0 10px;
}
span {
color: #ffffff;
}
}
</style>

@ -18,8 +18,8 @@ module.exports = {
// 部署生产环境和开发环境下的URL。
// 默认情况下Vue CLI 会假设你的应用是被部署在一个域名的根路径上
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
// publicPath: process.env.NODE_ENV === "production" ? "/demo/TcAssetVerificationPc" : "/",
publicPath: process.env.NODE_ENV === "production" ? "./" : "/",
publicPath: process.env.NODE_ENV === "production" ? "/demo/TcAssetVerificationPc" : "/",
// publicPath: process.env.NODE_ENV === "production" ? "./" : "/",
// 在npm run build 或 yarn build 时 生成文件的目录名称要和baseUrl的生产环境路径一致默认dist
outputDir: 'dist',
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)

Loading…
Cancel
Save