|
@@ -303,6 +303,17 @@
|
|
|
@click="enlarge(paySee.payeeAddressUrl)"
|
|
|
/> -->
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="禁用天数" :close-on-click-modal='false' :visible.sync="forbiddenshow" width="400px" :before-close="forbiddenshowClose">
|
|
|
+ <el-form ref="form" label-width="80px">
|
|
|
+ <el-form-item label="禁用天数">
|
|
|
+ <el-input placeholder="输入禁用天数,当天起算" v-model="disabledDays"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <div class="form_btn">
|
|
|
+ <el-button @click="forbiddenshowClose">取消</el-button>
|
|
|
+ <el-button @click="submitforbidden" type="primary">确定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-form>
|
|
|
+ </el-dialog>
|
|
|
<el-image-viewer v-if="imgsVisible" :on-close="closeImgViewer" :url-list="srcList" style="z-index: 9999" />
|
|
|
</div>
|
|
|
</template>
|
|
@@ -314,7 +325,8 @@ import {
|
|
|
getBillList,
|
|
|
editInfo,
|
|
|
getInfo,
|
|
|
- theRecharge
|
|
|
+ theRecharge,
|
|
|
+ forbidden
|
|
|
} from '@/api/cargoOwnerManagement';
|
|
|
export default {
|
|
|
components: {
|
|
@@ -349,12 +361,19 @@ export default {
|
|
|
rechargeShow: false,
|
|
|
imageUrl: '',
|
|
|
rechargeData: {bankCard:''},
|
|
|
+ forbiddenshow:false,
|
|
|
+ disabledDays:'',
|
|
|
+ forbiddendata:{},
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ forbiddenshowClose(){
|
|
|
+ this.disabledDays=''
|
|
|
+ this.forbiddenshow=false
|
|
|
+ },
|
|
|
seeInfo(val) {
|
|
|
this.listLoading = true;
|
|
|
getInfo({
|
|
@@ -493,45 +512,71 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
switchChange(row, num) {
|
|
|
- var _examine = {};
|
|
|
- _examine.id = row.id;
|
|
|
- let title;
|
|
|
- if (num == 1) {
|
|
|
- _examine.flag = 3;
|
|
|
- title = '禁用后客户将无法使用所有功能,是否确定禁用?';
|
|
|
- } else if (num == 2) {
|
|
|
- title = '确定重新启用该用户?';
|
|
|
- _examine.flag = 4;
|
|
|
- }
|
|
|
- this.$confirm(title, '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- }).then(() => {
|
|
|
- this.listLoading = true;
|
|
|
- toExamine(_examine)
|
|
|
- .then((response) => {
|
|
|
- if (num == 1) {
|
|
|
- this.$notify({
|
|
|
- title: '成功',
|
|
|
- message: '禁用成功!',
|
|
|
- type: 'success',
|
|
|
- });
|
|
|
- } else if (num == 2) {
|
|
|
- this.$notify({
|
|
|
- title: '成功',
|
|
|
- message: '启用成功!',
|
|
|
- type: 'success',
|
|
|
- });
|
|
|
- }
|
|
|
- this.getList();
|
|
|
- this.listLoading = false;
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.loading = false;
|
|
|
- });
|
|
|
- });
|
|
|
- },
|
|
|
+ console.log(1111111)
|
|
|
+ this.forbiddendata=row
|
|
|
+ var _examine = {};
|
|
|
+ _examine.id = row.commonId;
|
|
|
+ let title;
|
|
|
+ if (num == 1) {
|
|
|
+ // _examine.flag = 3;
|
|
|
+ // title = "禁用后客户将无法使用所有功能,是否确定禁用?";
|
|
|
+ this.forbiddenshow=true
|
|
|
+
|
|
|
+ } else if (num == 2) {
|
|
|
+ title = "确定重新启用该用户?";
|
|
|
+ _examine.disableFlag = 2;
|
|
|
+ _examine.identityFlag = 1;
|
|
|
+ this.$confirm(title, "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ this.listLoading = true;
|
|
|
+ forbidden(_examine)
|
|
|
+ .then((response) => {
|
|
|
+ this.$notify({
|
|
|
+ title: "成功",
|
|
|
+ message: "启用成功!",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.getList();
|
|
|
+ this.listLoading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.listLoading = false;
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ submitforbidden(){
|
|
|
+ if(!this.disabledDays){
|
|
|
+ this.$message.error("禁用天数不能为空");
|
|
|
+ return
|
|
|
+ }if(this.disabledDays<2){
|
|
|
+ this.$message.error("禁用天数输入错误");
|
|
|
+ return
|
|
|
+ }
|
|
|
+ var _examine={}
|
|
|
+ _examine.id = this.forbiddendata.commonId
|
|
|
+ _examine.disableFlag = 1;
|
|
|
+ _examine.identityFlag = 1;
|
|
|
+ _examine.disabledDays = this.disabledDays;
|
|
|
+ this.listLoading = true;
|
|
|
+ forbidden(_examine)
|
|
|
+ .then((response) => {
|
|
|
+ this.$notify({
|
|
|
+ title: "成功",
|
|
|
+ message: "禁用成功!",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.forbiddenshow=false
|
|
|
+ this.getList();
|
|
|
+ this.listLoading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.listLoading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
newInfo(row) {
|
|
|
this.Info.newsTypeKey = 1;
|
|
|
this.Info.newsType = '系统消息';
|