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

代码优化

parent c8cee3d4
...@@ -44,12 +44,9 @@ ...@@ -44,12 +44,9 @@
<span v-if="scope.row.Type==2">集团</span> <span v-if="scope.row.Type==2">集团</span>
</template> </template>
</el-table-column> </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="DomainName" label="域名"></el-table-column>
<el-table-column prop="Account" label="关联erp账号"></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="MallUserName" label="电商员工姓名"></el-table-column>
<!-- <el-table-column prop="EmpName" label="创建人姓名"></el-table-column> -->
<el-table-column label="状态"> <el-table-column label="状态">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.Status==1">待审核</span> <span v-if="scope.row.Status==1">待审核</span>
......
<style> <style>
.groupEmpower .mimitBody { .groupEmpower .mimitBody {
padding: 20px; padding: 20px;
background-color: #fff; background-color: #fff;
margin: 10px 0 20px 0; margin: 10px 0 20px 0;
display: table; display: table;
width: 100%; width: 100%;
} }
.groupEmpower .mimitList { .groupEmpower .mimitList {
margin-bottom: 15px; margin-bottom: 15px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }
.groupEmpower .mimitBody .el-tag { .groupEmpower .mimitBody .el-tag {
min-width: 120px; min-width: 120px;
padding-right: 50px; padding-right: 50px;
} }
.groupEmpower .el-button--small { .groupEmpower .el-button--small {
padding: 9px 25px; padding: 9px 25px;
} }
</style> </style>
<template> <template>
<div class="groupEmpower"> <div class="groupEmpower">
<div class="CommonHeader">集团授权</div> <div class="CommonHeader">集团授权</div>
<div class="mimitBody"> <div class="mimitBody">
<div class="el-col el-col-12"> <div class="el-col el-col-12">
<el-form <el-form :model="msg" :rules="rules" ref="msg" label-width="150px">
:model="msg"
:rules="rules"
ref="msg"
label-width="150px"
>
<el-form-item label="集团域名" size="small" prop="DomainName"> <el-form-item label="集团域名" size="small" prop="DomainName">
<el-input <el-input type="text" size="small" :disabled="msg.Status==3 || !msg.Status ? false: true" maxlength="200"
type="text" v-model="msg.DomainName">
size="small"
:disabled="msg.Status==3 || !msg.Status ? false: true"
maxlength="200"
v-model="msg.DomainName"
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="审核状态" size="small">
label="审核状态"
size="small"
>
<span v-if="msg.Status ==1 ">待审核</span> <span v-if="msg.Status ==1 ">待审核</span>
<span v-if="msg.Status ==2 ">已审核</span> <span v-if="msg.Status ==2 ">已审核</span>
<span v-if="msg.Status ==3 ">已拒绝</span> <span v-if="msg.Status ==3 ">已拒绝</span>
...@@ -55,17 +43,15 @@ ...@@ -55,17 +43,15 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<el-button size="small" type="primary" @click="submitForm('msg')" v-if=" (msg.Status==3) || !msg.Status">保存
<el-button size="small" type="primary" @click="submitForm('msg')" v-if=" (msg.Status==3) || !msg.Status" </el-button>
>保存</el-button
>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
msg:{}, msg: {},
rules: { rules: {
DomainName: [{ DomainName: [{
required: true, required: true,
...@@ -82,11 +68,12 @@ export default { ...@@ -82,11 +68,12 @@ export default {
GetWeiXinAppConfig() { GetWeiXinAppConfig() {
// type 1-个人,2-集团 // type 1-个人,2-集团
this.assetsApipost( this.assetsApipost(
"/api/Authorize/GetAuthorizeModel", "/api/Authorize/GetAuthorizeModel", {
{Type:2}, Type: 2
},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
if( res.data.data !=null){ if (res.data.data != null) {
this.msg = res.data.data this.msg = res.data.data
} }
...@@ -96,17 +83,16 @@ export default { ...@@ -96,17 +83,16 @@ export default {
} }
); );
}, },
submitForm(msg){ submitForm(msg) {
this.$refs[msg].validate(valid => { this.$refs[msg].validate(valid => {
if (valid) { if (valid) {
this.assetsApipost( this.assetsApipost(
"/api/Authorize/SetAuthorize", "/api/Authorize/SetAuthorize", {
{ ID: this.msg.ID ? this.msg.ID : 0,
ID:this.msg.ID? this.msg.ID:0, DomainName: this.msg.DomainName,
DomainName:this.msg.DomainName, Account: '',
Account:'', Password: '',
Password:'', Type: 2
Type:2
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -126,5 +112,6 @@ export default { ...@@ -126,5 +112,6 @@ export default {
mounted() { mounted() {
this.GetWeiXinAppConfig(); this.GetWeiXinAppConfig();
} }
}; };
</script> </script>
...@@ -85,9 +85,7 @@ ...@@ -85,9 +85,7 @@
<div class="fkbox_item" style="background: #FFF100"></div> <div class="fkbox_item" style="background: #FFF100"></div>
<span>驳回</span> <span>驳回</span>
</div> </div>
</div> </div>
</div> </div>
<div> <div>
<el-tabs style="margin-top:20px" v-model="activeName" @tab-click="handleClick"> <el-tabs style="margin-top:20px" v-model="activeName" @tab-click="handleClick">
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<img @click="getInfo(scope.row,0)" src="../../assets/img/userman/icon-show.png" alt=""> <img @click="getInfo(scope.row,0)" src="../../assets/img/userman/icon-show.png" alt="">
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="回复" placement="top" v-if="scope.row.AskStatus==0"> <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> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<img @click="getInfo(scope.row,0)" src="../../assets/img/userman/icon-show.png" alt=""> <img @click="getInfo(scope.row,0)" src="../../assets/img/userman/icon-show.png" alt="">
</el-tooltip> </el-tooltip>
<el-tooltip v-if="scope.row.AuditStatus==0" class="item" effect="dark" content="审核" placement="top"> <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> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<img @click="getInfo(scope.row,0)" src="../../assets/img/userman/icon-show.png" alt=""> <img @click="getInfo(scope.row,0)" src="../../assets/img/userman/icon-show.png" alt="">
</el-tooltip> </el-tooltip>
<el-tooltip v-if="scope.row.AuditStatus==0" class="item" effect="dark" content="审核" placement="top"> <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> </el-tooltip>
</template> </template>
</el-table-column> </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