PageSourceSearch

https://1756.ai/assets/PersonIndex.fe1969a1.js

js 1756.ai collected 2026-10-05 14:29:12 UTC 6,207 bytes, 1 lines download raw bytes

1import{n as i,m as l,b as s,h as a,a as n}from"./index.11700a46.js";import{S as u}from"./Search.82c1a695.js";import{E as m}from"./ElCardTable.5210f2cb.js";import{P as c}from"./PersonForm.f5640897.js";import{O as d}from"./OperatorExtraForm.accf6e76.js";import{U as h}from"./UrDrawer.ba8cfe51.js";import{U as f}from"./UserListDialog.0f47605e.js";import"../env.js";import"./QlDatePicker.6e6c036c.js";import"./UrAreaCascader.612c5905.js";import"./QlDatePickerRange.b43e85b1.js";import"./OnlyPage.eb2eaa80.js";import"./SinglePictureUpload.6dc0a8c1.js";import"./PicViewer.34ec2cc2.js";import"./id_card_front.92510f6d.js";import"./UrCard.b075b9c7.js";import"./UserDialog.31c6b037.js";const g={name:"OperatorDialog",mixins:l,components:{OperatorExtraForm:d,PersonForm:c,UrDrawer:h},data(){return{operator:{sso_person:{},bank_card:{},extra_data:{}}}},props:{visible:{type:Boolean,default:!1},operatorUuid:{type:String,default:null}},computed:{innerVisible:{get(){return this.visible},set(r){this.$emit("update:visible",r)}},creating(){return _.isEmpty(this.operatorUuid)},showSubmitButton(){return!this.creating||this.operator.sso_person.id_card_number}},methods:{onOpen(){this.restoreDataToDefault(),this.operatorUuid&&s.get(a.convertURL(n.get_person_operator,{operatorUUID:this.operatorUuid})).then(r=>{this.operator=r.data})},onOpened(){this.$refs.personForm.restoreDataToDefault()},onClose(r=!1){this.$refs.innerDialog.handleClose()},onSubmit(){if(!this.operator.extra_data.operator_type){this.$message.warning("\u8BF7\u9009\u62E9\u8FD0\u8425\u5546\u7C7B\u578B\uFF01");return}let r=null;this.operatorUuid?r=s.put(a.convertURL(n.update_person_operator,{operatorUUID:this.operatorUuid}),this.operator):r=s.post(a.convertURL(n.add_person_operator),this.operator),r.then(e=>{this.$message.success("\u81EA\u7136\u4EBA\u8FD0\u8425\u65B9\u8D44\u6599\u63D0\u4EA4\u6210\u529F"),this.$emit("submitted"),this.$refs.innerDialog.handleClose()})},onSSOPersonChange(r){this.operator.sso_person=r},onExtraDataChange(r){this.operator.extra_data=r}}};var b=function(){var e=this,t=e._self._c;return t("ur-drawer",e._g(e._b({ref:"innerDialog",attrs:{title:e.creating?"\u521B\u5EFA\u81EA\u7136\u4EBA\u8FD0\u8425\u65B9":"\u7F16\u8F91\u81EA\u7136\u4EBA\u8FD0\u8425\u65B9",size:"1200px"},on:{open:e.onOpen,opened:e.onOpened},model:{value:e.innerVisible,callback:function(o){e.innerVisible=o},expression:"innerVisible"}},"ur-drawer",e.$attrs,!1),e.$listeners),[t("el-form",{attrs:{"label-position":"top","auto-complete":"off"}},[t("person-form",{ref:"personForm",attrs:{"sso-person":e.operator.sso_person,creating:e.creating},on:{ssoPersonChange:e.onSSOPersonChange}}),e.showSubmitButton?t("operator-extra-form",{attrs:{"extra-data":e.operator.extra_data},on:{extraDataChange:e.onExtraDataChange}}):e._e()],1),e.showSubmitButton?t("template",{slot:"footer"},[t("el-button",{on:{click:e.onClose}},[e._v("\u53D6\u6D88")]),t("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("\u63D0 \u4EA4")])],1):e._e()],2)},D=[],v=i(g,b,D,!1,null,"a9fb7636",null,null);const U=v.exports;const w={name:"PersonIndex",components:{UserListDialog:f,ElCardTable:m,Search:u,OperatorDialog:U},mixins:l,data(){return{searchField:["operator_name","operator_type","name","sex","cellphone_number","id_card_number"],listData:{data:[],page:{currentPage:1}},operatorDialogOperatorUUID:null,operatorDialogShowing:!1,userListDialogOperatorUUID:null,userListDialogShowing:!1}},methods:{urFetchData(){const r=a.buildQuery(this.$route.query);s.get(a.convertURL(n.person_operator_list),r).then(e=>{this.listData=e})},onCreateOperator(){this.operatorDialogOperatorUUID=null,this.operatorDialogShowing=!0},onUpdate(r){this.operatorDialogOperatorUUID=r.client_actor_uuid,this.operatorDialogShowing=!0},userList(r){this.userListDialogOperatorUUID=r.client_actor_uuid,this.userListDialogShowing=!0}}};var x=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex-container"},[t("el-card-table",{attrs:{"list-data":e.listData}},[t("template",{slot:"header-search"},[t("search",{attrs:{"search-fields":e.searchField}})],1),t("template",{slot:"header-table"},[t("div",{staticClass:"action-right"},[t("el-button",{attrs:{type:"primary"},on:{click:e.onCreateOperator}},[e._v("\u521B\u5EFA\u81EA\u7136\u4EBA\u8FD0\u8425\u65B9")])],1)]),t("el-table-column",{attrs:{prop:"extra_data.operator_name",label:"\u8FD0\u8425\u65B9\u540D\u79F0","min-width":"150"}}),t("el-table-column",{attrs:{prop:"operator_type_name",label:"\u8FD0\u8425\u65B9\u7C7B\u578B","min-width":"150"}}),t("el-table-column",{attrs:{prop:"sso_person.name",label:"\u59D3\u540D","min-width":"150"}}),t("el-table-column",{attrs:{prop:"sso_person.sex_name",label:"\u6027\u522B","min-width":"80"}}),t("el-table-column",{attrs:{prop:"sso_person.id_card_number",label:"\u8EAB\u4EFD\u8BC1\u53F7\u7801","min-width":"150"}}),t("el-table-column",{attrs:{prop:"sso_person.cellphone_number",label:"\u624B\u673A\u53F7\u7801","min-width":"120"}}),t("el-table-column",{attrs:{prop:"sso_person.audit_status_name",label:"\u72B6\u6001","min-width":"80"}}),t("el-table-column",{attrs:{prop:"pay56_account_status_name",label:"\u94F6\u884C\u8D26\u6237\u72B6\u6001","min-width":"100"}}),t("el-table-column",{attrs:{label:"\u521B\u5EFA\u65F6\u95F4","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(o){return[e._v(" "+e._s(e._f("qlDateTime")(o.row.sso_person.create_time))+" ")]}}])}),t("el-table-column",{attrs:{fixed:"right",label:"\u64CD\u4F5C",width:"120"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-button",{attrs:{type:"text"},on:{click:function(p){return e.userList(o.row)}}},[e._v("\u7528\u6237")]),t("el-button",{attrs:{type:"text"},on:{click:function(p){return e.onUpdate(o.row)}}},[e._v("\u7F16\u8F91")])]}}])})],2),t("operator-dialog",{attrs:{"operator-uuid":e.operatorDialogOperatorUUID,visible:e.operatorDialogShowing},on:{"update:visible":function(o){e.operatorDialogShowing=o},submitted:e.urFetchData}}),t("user-list-dialog",{attrs:{"client-actor-uuid":e.userListDialogOperatorUUID,visible:e.userListDialogShowing},on:{"update:visible":function(o){e.userListDialogShowing=o}}}
1)],1)},S=[],y=i(w,x,S,!1,null,"41357972",null,null);const A=y.exports;export{A as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.