| | |
| | | * @Author: liu |
| | | * @Date: 2021-08-26 16:22:20 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-09-22 11:22:57 |
| | | * @Last Modified time: 2021-11-05 14:52:21 |
| | | */ |
| | | |
| | | <template> |
| | |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="handleCredentials(row)" |
| | | >附件查阅 |
| | | >附件 |
| | | </el-button> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="rowDel(row)" |
| | | v-if="row.type == '2'" |
| | | v-if="row.type == '2' && userData == '0'" |
| | | >许可审批 |
| | | </el-button> |
| | | <el-button |
| | |
| | | {{ |
| | | row.type == "0" ? "通过" : row.type == "1" ? "不通过" : "待审核" |
| | | }} |
| | | <i class="gz" v-if="row.type == '0'"></i> |
| | | <i class="gz" v-if="row.type == '2'"></i> |
| | | <!-- 黄色 --> |
| | | <i class="yj" v-if="row.type == '1'"></i> |
| | | <i class="zc" v-if="row.type == '2'"></i> |
| | | <!-- 红色 --> |
| | | <i class="zc" v-if="row.type == '0'"></i> |
| | | <!-- 绿色 --> |
| | | </el-tag> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | column: column, |
| | | }, |
| | | data: [], |
| | | |
| | | userData: "", |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | // console.log(this.userInfo.dept_id); |
| | | // }, |
| | | methods: { |
| | | changeuserData() { |
| | | // console.log(this.userInfo, "userDatauserDatauserData"); |
| | | if (this.userInfo.Id == "1123598821738675201") { |
| | | this.userData = "0"; |
| | | return; |
| | | } |
| | | var gonganj = ""; |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | let test = /派出所$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "2"; |
| | | } |
| | | test = /分局|公安局$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "1"; |
| | | } |
| | | test = /市公安局$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "0"; |
| | | } |
| | | } |
| | | this.userData = gonganj; |
| | | }, |
| | | Print() { |
| | | this.$Print(this.$refs.licence); |
| | | }, |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.changeuserData(); |
| | | this.loading = true; |
| | | params["ptype"] = 0; |
| | | params["jurisdiction"] = this.userInfo.jurisdiction; |
| | | params["usetype"] = this.userData; |
| | | getList( |
| | | page.currentPage, |
| | | page.pageSize, |