Commit 71cd23e5 authored by 黄奎's avatar 黄奎

代码优化

parent c8cee3d4
......@@ -44,12 +44,9 @@
<span v-if="scope.row.Type==2">集团</span>
</template>
</el-table-column>
<!-- <el-table-column prop="CreateBy" label="创建人Id"></el-table-column> -->
<el-table-column prop="DomainName" label="域名"></el-table-column>
<el-table-column prop="Account" label="关联erp账号"></el-table-column>
<el-table-column prop="MallUserName" label="电商员工姓名"></el-table-column>
<!-- <el-table-column prop="EmpName" label="创建人姓名"></el-table-column> -->
<el-table-column label="状态">
<template slot-scope="scope">
<span v-if="scope.row.Status==1">待审核</span>
......
<style>
.groupEmpower .mimitBody {
padding: 20px;
background-color: #fff;
margin: 10px 0 20px 0;
display: table;
width: 100%;
}
.groupEmpower .mimitBody {
padding: 20px;
background-color: #fff;
margin: 10px 0 20px 0;
display: table;
width: 100%;
}
.groupEmpower .mimitList {
margin-bottom: 15px;
display: flex;
flex-direction: row;
}
.groupEmpower .mimitList {
margin-bottom: 15px;
display: flex;
flex-direction: row;
}
.groupEmpower .mimitBody .el-tag {
min-width: 120px;
padding-right: 50px;
}
.groupEmpower .mimitBody .el-tag {
min-width: 120px;
padding-right: 50px;
}
.groupEmpower .el-button--small {
padding: 9px 25px;
}
.groupEmpower .el-button--small {
padding: 9px 25px;
}
</style>
<template>
<div class="groupEmpower">
<div class="CommonHeader">集团授权</div>
<div class="mimitBody">
<div class="el-col el-col-12">
<el-form
:model="msg"
:rules="rules"
ref="msg"
label-width="150px"
>
<el-form-item label="集团域名" size="small" prop="DomainName">
<el-input
type="text"
size="small"
:disabled="msg.Status==3 || !msg.Status ? false: true"
maxlength="200"
v-model="msg.DomainName"
>
<el-form :model="msg" :rules="rules" ref="msg" label-width="150px">
<el-form-item label="集团域名" size="small" prop="DomainName">
<el-input type="text" size="small" :disabled="msg.Status==3 || !msg.Status ? false: true" maxlength="200"
v-model="msg.DomainName">
</el-input>
</el-form-item>
<el-form-item
label="审核状态"
size="small"
>
<el-form-item label="审核状态" size="small">
<span v-if="msg.Status ==1 ">待审核</span>
<span v-if="msg.Status ==2 ">已审核</span>
<span v-if="msg.Status ==3 ">已拒绝</span>
......@@ -55,63 +43,61 @@
</el-form>
</div>
</div>
<el-button size="small" type="primary" @click="submitForm('msg')" v-if=" (msg.Status==3) || !msg.Status"
>保存</el-button
>
<el-button size="small" type="primary" @click="submitForm('msg')" v-if=" (msg.Status==3) || !msg.Status">保存
</el-button>
</div>
</template>
<script>
export default {
data() {
return {
msg:{},
rules: {
export default {
data() {
return {
msg: {},
rules: {
DomainName: [{
required: true,
message: "请输入集团域名",
trigger: "blur"
}],
}
};
},
created() {},
methods: {
//获取集团授权信息
GetWeiXinAppConfig() {
// type 1-个人,2-集团
this.assetsApipost(
"/api/Authorize/GetAuthorizeModel",
{Type:2},
res => {
if (res.data.resultCode == 1) {
if( res.data.data !=null){
this.msg = res.data.data
};
},
created() {},
methods: {
//获取集团授权信息
GetWeiXinAppConfig() {
// type 1-个人,2-集团
this.assetsApipost(
"/api/Authorize/GetAuthorizeModel", {
Type: 2
},
res => {
if (res.data.resultCode == 1) {
if (res.data.data != null) {
this.msg = res.data.data
}
} else {
this.Info(res.data.message);
}
} else {
this.Info(res.data.message);
}
}
);
},
submitForm(msg){
);
},
submitForm(msg) {
this.$refs[msg].validate(valid => {
if (valid) {
this.assetsApipost(
"/api/Authorize/SetAuthorize",
{
ID:this.msg.ID? this.msg.ID:0,
DomainName:this.msg.DomainName,
Account:'',
Password:'',
Type:2
"/api/Authorize/SetAuthorize", {
ID: this.msg.ID ? this.msg.ID : 0,
DomainName: this.msg.DomainName,
Account: '',
Password: '',
Type: 2
},
res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.GetWeiXinAppConfig()
this.Success(res.data.message);
this.GetWeiXinAppConfig()
} else {
this.Info(res.data.message);
}
......@@ -121,10 +107,11 @@ export default {
return false;
}
});
}
},
mounted() {
this.GetWeiXinAppConfig();
}
},
mounted() {
this.GetWeiXinAppConfig();
}
};
};
</script>
......@@ -85,9 +85,7 @@
<div class="fkbox_item" style="background: #FFF100"></div>
<span>驳回</span>
</div>
</div>
</div>
<div>
<el-tabs style="margin-top:20px" v-model="activeName" @tab-click="handleClick">
......
......@@ -40,7 +40,7 @@
<img @click="getInfo(scope.row,0)" src="../../assets/img/userman/icon-show.png" alt="">
</el-tooltip>
<el-tooltip class="item" effect="dark" content="回复" placement="top" v-if="scope.row.AskStatus==0">
<img @click="getInfo(scope.row,1)" src="../../assets/img/userman/edit.png" alt="">
<img @click="getInfo(scope.row,1)" src="../../assets/img/userman/reply.png" alt="">
</el-tooltip>
</template>
</el-table-column>
......
......@@ -40,7 +40,7 @@
<img @click="getInfo(scope.row,0)" src="../../assets/img/userman/icon-show.png" alt="">
</el-tooltip>
<el-tooltip v-if="scope.row.AuditStatus==0" class="item" effect="dark" content="审核" placement="top">
<img @click="getInfo(scope.row,1)" src="../../assets/img/userman/icon-show.png" alt="">
<img @click="getInfo(scope.row,1)" src="../../assets/img/userman/add_remark.png" alt="">
</el-tooltip>
</template>
</el-table-column>
......
......@@ -42,7 +42,7 @@
<img @click="getInfo(scope.row,0)" src="../../assets/img/userman/icon-show.png" alt="">
</el-tooltip>
<el-tooltip v-if="scope.row.AuditStatus==0" class="item" effect="dark" content="审核" placement="top">
<img @click="getInfo(scope.row,1)" src="../../assets/img/userman/icon-show.png" alt="">
<img @click="getInfo(scope.row,1)" src="../../assets/img/userman/add_remark.png" alt="">
</el-tooltip>
</template>
</el-table-column>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment