@scenetechnology/cj_iview_table 0.0.63 → 0.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25759,7 +25759,7 @@ if (typeof window !== 'undefined') {
25759
25759
  // Indicate to webpack that this file can be concatenated
25760
25760
  /* harmony default export */ var setPublicPath = (null);
25761
25761
 
25762
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=template&id=770554fe&scoped=true
25762
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=template&id=2bd81707&scoped=true
25763
25763
  var render = function render() {
25764
25764
  var _vm = this,
25765
25765
  _c = _vm._self._c;
@@ -26164,7 +26164,8 @@ var render = function render() {
26164
26164
  "on-select": _vm.onSelect,
26165
26165
  "on-select-cancel": _vm.onSelectCancel,
26166
26166
  "on-select-all": _vm.onSelectAll,
26167
- "on-select-all-cancel": _vm.onSelectAllCancel
26167
+ "on-select-all-cancel": _vm.onSelectAllCancel,
26168
+ "on-column-width-resize": _vm.onColumnWidthResize
26168
26169
  },
26169
26170
  scopedSlots: _vm._u([_vm._l(_vm.tableSlot, function (item) {
26170
26171
  return {
@@ -26258,25 +26259,25 @@ var es_set_symmetric_difference_v2 = __webpack_require__(5024);
26258
26259
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.union.v2.js
26259
26260
  var es_set_union_v2 = __webpack_require__(1698);
26260
26261
  ;// ./src/libs/util.js
26261
- const getToken = () => {
26262
- let token=''
26263
- if(localStorage.getItem('inspect_token')==null){
26264
- token = localStorage.getItem('simp_token')
26265
- }else{
26266
- token = localStorage.getItem('inspect_token')
26267
- }
26268
- if (token) return token
26269
- else return false
26270
- }
26271
- function getCjosToken(){
26272
- let result
26273
- if (localStorage.getItem('is_root') === 'true'||localStorage.getItem('is_root') === 'false'){
26274
- result=encodeURIComponent(getToken())
26275
- // console.log('999999',result)
26276
- }else{
26277
- result=''
26278
- }
26279
- return result
26262
+ const getToken = () => {
26263
+ let token=''
26264
+ if(localStorage.getItem('inspect_token')==null){
26265
+ token = localStorage.getItem('simp_token')
26266
+ }else{
26267
+ token = localStorage.getItem('inspect_token')
26268
+ }
26269
+ if (token) return token
26270
+ else return false
26271
+ }
26272
+ function getCjosToken(){
26273
+ let result
26274
+ if (localStorage.getItem('is_root') === 'true'||localStorage.getItem('is_root') === 'false'){
26275
+ result=encodeURIComponent(getToken())
26276
+ // console.log('999999',result)
26277
+ }else{
26278
+ result=''
26279
+ }
26280
+ return result
26280
26281
  }
26281
26282
  ;// ./node_modules/axios/lib/helpers/bind.js
26282
26283
 
@@ -30261,256 +30262,256 @@ axios.default = axios;
30261
30262
  /* harmony default export */ var lib_axios = (axios);
30262
30263
 
30263
30264
  ;// ./src/libs/axios.js
30264
-
30265
- // import { Spin } from 'iview'
30266
- const addErrorLog = errorInfo => {
30267
- const { statusText, status, request: { responseURL } } = errorInfo
30268
- let info = {
30269
- type: 'ajax',
30270
- code: status,
30271
- mes: statusText,
30272
- url: responseURL
30273
- }
30274
- }
30275
-
30276
- class HttpRequest {
30277
- constructor (baseUrl = baseURL) {
30278
- this.baseUrl = baseUrl
30279
- this.queue = {}
30280
- }
30281
- getInsideConfig () {
30282
- const config = {
30283
- baseURL: this.baseUrl,
30284
- headers: {
30285
- //
30286
- }
30287
- }
30288
- if (localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false') {
30289
- if (localStorage.getItem('simp_token')) {
30290
- config.headers['cjostoken'] = localStorage.getItem('simp_token')
30291
- }
30292
- }
30293
- return config
30294
- }
30295
- destroy (url) {
30296
- delete this.queue[url]
30297
- if (!Object.keys(this.queue).length) {
30298
- // Spin.hide()
30299
- }
30300
- }
30301
- interceptors (instance, url) {
30302
- // 请求拦截
30303
- instance.interceptors.request.use(config => {
30304
- // 添加全局的loading...
30305
- if (!Object.keys(this.queue).length) {
30306
- // Spin.show() // 不建议开启,因为界面不友好
30307
- }
30308
- this.queue[url] = true
30309
- return config
30310
- }, error => {
30311
- return Promise.reject(error)
30312
- })
30313
- // 响应拦截
30314
- instance.interceptors.response.use(res => {
30315
- this.destroy(url)
30316
- const { data, status } = res
30317
- return { data, status }
30318
- }, error => {
30319
- this.destroy(url)
30320
- let errorInfo = error.response
30321
- if (!errorInfo) {
30322
- const { request: { statusText, status }, config } = JSON.parse(JSON.stringify(error))
30323
- errorInfo = {
30324
- statusText,
30325
- status,
30326
- request: { responseURL: config.url }
30327
- }
30328
- }
30329
- addErrorLog(errorInfo)
30330
- return Promise.reject(error)
30331
- })
30332
- }
30333
- request (options) {
30334
- const instance = lib_axios.create()
30335
- options = Object.assign(this.getInsideConfig(), options)
30336
- this.interceptors(instance, options.url)
30337
- return instance(options)
30338
- }
30339
- }
30340
- /* harmony default export */ var libs_axios = (HttpRequest);
30265
+
30266
+ // import { Spin } from 'iview'
30267
+ const addErrorLog = errorInfo => {
30268
+ const { statusText, status, request: { responseURL } } = errorInfo
30269
+ let info = {
30270
+ type: 'ajax',
30271
+ code: status,
30272
+ mes: statusText,
30273
+ url: responseURL
30274
+ }
30275
+ }
30276
+
30277
+ class HttpRequest {
30278
+ constructor (baseUrl = baseURL) {
30279
+ this.baseUrl = baseUrl
30280
+ this.queue = {}
30281
+ }
30282
+ getInsideConfig () {
30283
+ const config = {
30284
+ baseURL: this.baseUrl,
30285
+ headers: {
30286
+ //
30287
+ }
30288
+ }
30289
+ if (localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false') {
30290
+ if (localStorage.getItem('simp_token')) {
30291
+ config.headers['cjostoken'] = localStorage.getItem('simp_token')
30292
+ }
30293
+ }
30294
+ return config
30295
+ }
30296
+ destroy (url) {
30297
+ delete this.queue[url]
30298
+ if (!Object.keys(this.queue).length) {
30299
+ // Spin.hide()
30300
+ }
30301
+ }
30302
+ interceptors (instance, url) {
30303
+ // 请求拦截
30304
+ instance.interceptors.request.use(config => {
30305
+ // 添加全局的loading...
30306
+ if (!Object.keys(this.queue).length) {
30307
+ // Spin.show() // 不建议开启,因为界面不友好
30308
+ }
30309
+ this.queue[url] = true
30310
+ return config
30311
+ }, error => {
30312
+ return Promise.reject(error)
30313
+ })
30314
+ // 响应拦截
30315
+ instance.interceptors.response.use(res => {
30316
+ this.destroy(url)
30317
+ const { data, status } = res
30318
+ return { data, status }
30319
+ }, error => {
30320
+ this.destroy(url)
30321
+ let errorInfo = error.response
30322
+ if (!errorInfo) {
30323
+ const { request: { statusText, status }, config } = JSON.parse(JSON.stringify(error))
30324
+ errorInfo = {
30325
+ statusText,
30326
+ status,
30327
+ request: { responseURL: config.url }
30328
+ }
30329
+ }
30330
+ addErrorLog(errorInfo)
30331
+ return Promise.reject(error)
30332
+ })
30333
+ }
30334
+ request (options) {
30335
+ const instance = lib_axios.create()
30336
+ options = Object.assign(this.getInsideConfig(), options)
30337
+ this.interceptors(instance, options.url)
30338
+ return instance(options)
30339
+ }
30340
+ }
30341
+ /* harmony default export */ var libs_axios = (HttpRequest);
30341
30342
 
30342
30343
  ;// ./src/config/index.js
30343
- let baseUri = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/` // 线上
30344
- // baseUri = `http://39.104.102.113:23310/` // 本地
30345
- // 指定请求五位一体ip地址和端口
30346
- const baseUriExternal = ``
30347
- // console.log(process.env.NODE_ENV)
30348
- let mapUrl = ''
30349
- if(localStorage.getItem('publicHost')){
30350
- baseUri = localStorage.getItem('publicHost')
30351
- mapUrl = localStorage.getItem('publicHost')
30352
- // if (localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false') { // 嵌入在使用端情况
30353
- // mapUrl = localStorage.getItem('publicHost') + 'simp/'
30354
- // }
30355
- }else{
30356
- if (false) {} else if (true) {
30357
- if (localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false') { // 嵌入在使用端情况
30358
- baseUri = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/`
30359
- mapUrl = baseUri
30360
- } else {
30361
- baseUri = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/`
30362
- mapUrl = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/`
30363
- }
30364
- }
30365
- }
30366
-
30367
- // localStorage.setItem('inspect_token','eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3IiOiJhZG1pbiIsInB3ZCI6ImUxM2FiZGI4YTQ1ZDUyY2MxYjc4Mjk3YmYwNDQzMmMyIiwiYWRtaW5Db2RlIjoiNjIxZDY2OThkYjcyZCJ9.jSFpMdnFhxyil4kNCqQT2U4vh7sxVwT02S0x_dDPEQE')
30368
- // localStorage.setItem('inspect_project_id','3')
30369
- /* harmony default export */ var config = ({
30370
- /**
30371
- * @description 配置显示在浏览器标签的title
30372
- */
30373
- title: '表格组件',
30374
- /**
30375
- * @description token在Cookie中存储的天数,默认1天
30376
- */
30377
- cookieExpires: 1,
30378
- /**
30379
- * @description 是否使用国际化,默认为false
30380
- * 如果不使用,则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'}
30381
- * 用来在菜单中显示文字
30382
- */
30383
- useI18n: false,
30384
- downloadUrl: baseUri,
30385
- /**
30386
- * @description api请求基础路径
30387
- */
30388
- baseUriExternal,
30389
- baseUrl: {
30390
- // dev: 'http://192.168.1.70:8000/Api/',
30391
- // pro: 'http://192.168.1.70:8000/Api/'
30392
-
30393
- dev: `${baseUri}simpalarm/api/`,
30394
- // dev: `${baseUri}/api/`,
30395
- test: `${baseUri}simpalarm/api/`,
30396
- prod: `${baseUri}simpalarm/api/`,
30397
- simp: localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false'
30398
- ? `${mapUrl}simp/index.php/api/`
30399
- : `${mapUrl}index.php/api/`,
30400
- simpelements:`${baseUri}simpelements/api/`,
30401
- simpdouble:`${baseUri}simpdouble/api/`,
30402
- simpdanger:`${baseUri}simpdanger/api/`,
30403
- },
30404
- exportURL: baseUri,
30405
- mapUrl: mapUrl,
30406
- /**
30407
- * @description 默认打开的首页的路由name值,默认为home
30408
- */
30409
- homeName: 'home',
30410
- /**
30411
- * @description 需要加载的插件
30412
- */
30413
- plugin: {
30414
- 'error-store': {
30415
- showInHeader: true, // 设为false后不会在顶部显示错误日志徽标
30416
- developmentOff: true // 设为true后在开发环境不会收集错误信息,方便开发中排查错误
30417
- }
30418
- }
30419
- });
30344
+ let baseUri = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/` // 线上
30345
+ // baseUri = `http://39.104.102.113:23310/` // 本地
30346
+ // 指定请求五位一体ip地址和端口
30347
+ const baseUriExternal = ``
30348
+ // console.log(process.env.NODE_ENV)
30349
+ let mapUrl = ''
30350
+ if(localStorage.getItem('publicHost')){
30351
+ baseUri = localStorage.getItem('publicHost')
30352
+ mapUrl = localStorage.getItem('publicHost')
30353
+ // if (localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false') { // 嵌入在使用端情况
30354
+ // mapUrl = localStorage.getItem('publicHost') + 'simp/'
30355
+ // }
30356
+ }else{
30357
+ if (false) {} else if (true) {
30358
+ if (localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false') { // 嵌入在使用端情况
30359
+ baseUri = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/`
30360
+ mapUrl = baseUri
30361
+ } else {
30362
+ baseUri = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/`
30363
+ mapUrl = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/`
30364
+ }
30365
+ }
30366
+ }
30367
+
30368
+ // localStorage.setItem('inspect_token','eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3IiOiJhZG1pbiIsInB3ZCI6ImUxM2FiZGI4YTQ1ZDUyY2MxYjc4Mjk3YmYwNDQzMmMyIiwiYWRtaW5Db2RlIjoiNjIxZDY2OThkYjcyZCJ9.jSFpMdnFhxyil4kNCqQT2U4vh7sxVwT02S0x_dDPEQE')
30369
+ // localStorage.setItem('inspect_project_id','3')
30370
+ /* harmony default export */ var config = ({
30371
+ /**
30372
+ * @description 配置显示在浏览器标签的title
30373
+ */
30374
+ title: '表格组件',
30375
+ /**
30376
+ * @description token在Cookie中存储的天数,默认1天
30377
+ */
30378
+ cookieExpires: 1,
30379
+ /**
30380
+ * @description 是否使用国际化,默认为false
30381
+ * 如果不使用,则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'}
30382
+ * 用来在菜单中显示文字
30383
+ */
30384
+ useI18n: false,
30385
+ downloadUrl: baseUri,
30386
+ /**
30387
+ * @description api请求基础路径
30388
+ */
30389
+ baseUriExternal,
30390
+ baseUrl: {
30391
+ // dev: 'http://192.168.1.70:8000/Api/',
30392
+ // pro: 'http://192.168.1.70:8000/Api/'
30393
+
30394
+ dev: `${baseUri}simpalarm/api/`,
30395
+ // dev: `${baseUri}/api/`,
30396
+ test: `${baseUri}simpalarm/api/`,
30397
+ prod: `${baseUri}simpalarm/api/`,
30398
+ simp: localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false'
30399
+ ? `${mapUrl}simp/index.php/api/`
30400
+ : `${mapUrl}index.php/api/`,
30401
+ simpelements:`${baseUri}simpelements/api/`,
30402
+ simpdouble:`${baseUri}simpdouble/api/`,
30403
+ simpdanger:`${baseUri}simpdanger/api/`,
30404
+ },
30405
+ exportURL: baseUri,
30406
+ mapUrl: mapUrl,
30407
+ /**
30408
+ * @description 默认打开的首页的路由name值,默认为home
30409
+ */
30410
+ homeName: 'home',
30411
+ /**
30412
+ * @description 需要加载的插件
30413
+ */
30414
+ plugin: {
30415
+ 'error-store': {
30416
+ showInHeader: true, // 设为false后不会在顶部显示错误日志徽标
30417
+ developmentOff: true // 设为true后在开发环境不会收集错误信息,方便开发中排查错误
30418
+ }
30419
+ }
30420
+ });
30420
30421
 
30421
30422
  ;// ./src/libs/api.request.js
30422
-
30423
-
30424
- const baseUrl = false ? 0 : config.baseUrl.prod
30425
- // console.log(baseUrl)
30426
- const api_request_axios = new libs_axios(baseUrl)
30427
- /* harmony default export */ var api_request = (api_request_axios);
30423
+
30424
+
30425
+ const baseUrl = false ? 0 : config.baseUrl.prod
30426
+ // console.log(baseUrl)
30427
+ const api_request_axios = new libs_axios(baseUrl)
30428
+ /* harmony default export */ var api_request = (api_request_axios);
30428
30429
 
30429
30430
  ;// ./src/api/UserQuery.js
30430
-
30431
-
30432
- const saveUserQuery = (data) => {
30433
- return api_request.request({
30434
- url: config.baseUrl.simp+ 'UserQuery/save',
30435
- data,
30436
- method: 'post'
30437
- })
30438
- }
30439
- const updateUserQuery = (data) => {
30440
- return api_request.request({
30441
- url: config.baseUrl.simp+ 'UserQuery/update',
30442
- data,
30443
- method: 'post'
30444
- })
30445
- }
30446
- const getUserQuery = (data) => {
30447
- return api_request.request({
30448
- url: config.baseUrl.simp+ 'UserQuery/index',
30449
- params:data,
30450
- method: 'get'
30451
- })
30452
- }
30453
-
30454
- const deleteUserQuery = (data) => {
30455
- return api_request.request({
30456
- url: config.baseUrl.simp+ 'UserQuery/delete',
30457
- params:data,
30458
- method: 'get'
30459
- })
30460
- }
30461
- const sortUserQuery = (data) => {
30462
- return api_request.request({
30463
- url: config.baseUrl.simp+ 'UserQuery/sort',
30464
- data,
30465
- method: 'post'
30466
- })
30467
- }
30468
- const indexPerson = (data) => {
30469
- return api_request.request({
30470
- url: config.baseUrl.simp+ 'Person/index',
30471
- data,
30472
- method: 'post'
30473
- })
30474
- }
30475
-
30476
-
30477
- function getDepartmentOrganization (param) {
30478
- return api_request.request({
30479
- url: config.baseUrl.simp+ `Department/Organization`,
30480
- method: 'get',
30481
- params: param
30482
- })
30483
- }
30484
-
30485
- function getDepartmentOrganizationRead (param) {
30486
- return api_request.request({
30487
- url: config.baseUrl.simp+ `Department/Organization_read`,
30488
- method: 'get',
30489
- params: param
30490
- })
30491
- }
30492
-
30493
- function getDepartmentSearch (param) {
30494
- return api_request.request({
30495
- url: config.baseUrl.simp+ `Department/search`,
30496
- method: 'get',
30497
- params: param
30498
- })
30499
- }
30500
-
30501
- function getPersonSearch (param) {
30502
- return api_request.request({
30503
- url: config.baseUrl.simp+ `Person/search`,
30504
- method: 'get',
30505
- params: param
30506
- })
30431
+
30432
+
30433
+ const saveUserQuery = (data) => {
30434
+ return api_request.request({
30435
+ url: config.baseUrl.simp+ 'UserQuery/save',
30436
+ data,
30437
+ method: 'post'
30438
+ })
30439
+ }
30440
+ const updateUserQuery = (data) => {
30441
+ return api_request.request({
30442
+ url: config.baseUrl.simp+ 'UserQuery/update',
30443
+ data,
30444
+ method: 'post'
30445
+ })
30446
+ }
30447
+ const getUserQuery = (data) => {
30448
+ return api_request.request({
30449
+ url: config.baseUrl.simp+ 'UserQuery/index',
30450
+ params:data,
30451
+ method: 'get'
30452
+ })
30453
+ }
30454
+
30455
+ const deleteUserQuery = (data) => {
30456
+ return api_request.request({
30457
+ url: config.baseUrl.simp+ 'UserQuery/delete',
30458
+ params:data,
30459
+ method: 'get'
30460
+ })
30461
+ }
30462
+ const sortUserQuery = (data) => {
30463
+ return api_request.request({
30464
+ url: config.baseUrl.simp+ 'UserQuery/sort',
30465
+ data,
30466
+ method: 'post'
30467
+ })
30468
+ }
30469
+ const indexPerson = (data) => {
30470
+ return api_request.request({
30471
+ url: config.baseUrl.simp+ 'Person/index',
30472
+ data,
30473
+ method: 'post'
30474
+ })
30475
+ }
30476
+
30477
+
30478
+ function getDepartmentOrganization (param) {
30479
+ return api_request.request({
30480
+ url: config.baseUrl.simp+ `Department/Organization`,
30481
+ method: 'get',
30482
+ params: param
30483
+ })
30484
+ }
30485
+
30486
+ function getDepartmentOrganizationRead (param) {
30487
+ return api_request.request({
30488
+ url: config.baseUrl.simp+ `Department/Organization_read`,
30489
+ method: 'get',
30490
+ params: param
30491
+ })
30492
+ }
30493
+
30494
+ function getDepartmentSearch (param) {
30495
+ return api_request.request({
30496
+ url: config.baseUrl.simp+ `Department/search`,
30497
+ method: 'get',
30498
+ params: param
30499
+ })
30500
+ }
30501
+
30502
+ function getPersonSearch (param) {
30503
+ return api_request.request({
30504
+ url: config.baseUrl.simp+ `Person/search`,
30505
+ method: 'get',
30506
+ params: param
30507
+ })
30507
30508
  }
30508
30509
  ;// ./src/assets/images/table_no_flod.png
30509
30510
  var table_no_flod_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAUCAYAAACJfM0wAAAAAXNSR0IArs4c6QAAAh1JREFUOE+dlMtu00AYhc9vKxvkBwDEEgFvgERXKRepkYBmWWCPEBIo8sRcCpIF5ZYZOxJ5gRYkWLAp3bULEAIkXgFYtzxAYwgLz5CJZqKpsTHprJzR78+fzxyHAKDb7c4BuJ7n+fM0Tb/ovf0sxthVACcbjcYt0gDG2CaAc+NnZES0wDn/OCuYMXYfwANz300LbgN4A8AfP2dIRK1Z4AXotu/7pyZgvcIwXCKilxaulFpIkuRTnXkYhveI6KGZ2yaiJuf8+xS8H3gRKqWcT9P0m2btAZu8LwF4UWfOGFsGsGJNXWgpuAS+q5RqubEUoDtSyqY1tdH9ZexkfpmI1oz5rmnL5/+BTo0ZYzfGAH0AK0IIXgUH8AqA7qpeO57nzfd6va/6RxzHB7Ise617DKBl67YB4LweUEotJ0ny2MIZY1cArBpzu10G3VBKnTaMaxNwp9M56vv+BwCHzZ13hRBPKuA/PM9ruqbD4fAtgDNmfjMIggvTjKMoOi6lfPcP+EUAbSJ6pHtqX78EuhjH8WjP4dXB3Y/FZLqulDprTfM8b/f7/V+ldTPw9wAOTQaI7nDOn84CrexxEQ7gthDimXP6rulWnueL1rS2x2XwIAgGWZbVQiuNnR6fICJ9oJNYAOj/gWPmutS01rgA15kfdHLeCoKgHcfxTzd797ryk3aHwjDU5hZeC62NwoVHUXREKTU3Go3WB4PB7ypTu/8HEL0+yS21nGMAAAAASUVORK5CYII=";
30510
30511
  ;// ./src/assets/images/table_flod.png
30511
30512
  var table_flod_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAUCAYAAACJfM0wAAAAAXNSR0IArs4c6QAAAiJJREFUOE+V1D1v01AYBeBzHAVYAPEnWPgDVUEoTluVsiG1DLS0jQMDSLABUgcWhASsTAjiNIUwdENCFIa0EUJ8SKhswM4AlSio0C6A70F2bCuxkzj1Zvvex+e+970mBrwKriYJc0q0bjRL/Jw1jVkD/PdFVyVB9wHkAGxYYLHh8GO/uZlwAo2sDc+j/fI8P/XC+8KFiuZJPQiTbkGqg7wYYn3xnnAKBcfXHL6zK7oC6k4W3hVOoiJPNEt8Gy07gX/zPBaTZUnBBVdzhCrR8i1xolHmm2QtbVdXAd0On6fwDnhQNE6ewEXaUSvGsF3RLCi3W9KpZeW+75h7ECdJXlot8WEWHsB2RadBPY5QgidXHb723wXotlkCeCbEPIHlpsNahBequkbpVnBPfBU43IJd8xzAOICtFLpjahCnEzXui5O8HMCFqoYoc0Gy7jbLfB8n7UTXYXgdluoADgLwIDprZS5FH20dJjNk5ayFru3mL39z2ywKnAknrf/dy9FX0/xZdDUsaAXAgW549JEU3A3dYzj24hx/tCXrwEmW2je0Veq2K9io36YK8myUNIkOisdwEiXwIW842p40dUgWdRRGz6KyCJxvOnwUJw5bygU4Gz7MROM+7oGHfezdBLkQocxxrDHHzV6/xB7J/Q3dH2woONJqN9csE5jyl79bNJE8wP2SBPCxug7l/2BiXx5PV2b4a9CkyXEjNR3WPxw5/gVP/gNEyE+/VqwYfAAAAABJRU5ErkJggg==";
30512
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/table-setting.vue?vue&type=template&id=3fbe6aa8&scoped=true
30513
- var table_settingvue_type_template_id_3fbe6aa8_scoped_true_render = function render() {
30513
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/table-setting.vue?vue&type=template&id=a9701966&scoped=true
30514
+ var table_settingvue_type_template_id_a9701966_scoped_true_render = function render() {
30514
30515
  var _vm = this,
30515
30516
  _c = _vm._self._c;
30516
30517
  return _c('div', [_c('Modal', {
@@ -30653,7 +30654,8 @@ var table_settingvue_type_template_id_3fbe6aa8_scoped_true_render = function ren
30653
30654
  "initialSortColumns": _vm.sortColumns
30654
30655
  },
30655
30656
  on: {
30656
- "updatesortColumns": _vm.updatesortColumns
30657
+ "updatesortColumns": _vm.updatesortColumns,
30658
+ "update-column-width": _vm.handleColumnWidthUpdate
30657
30659
  }
30658
30660
  }) : _vm._e()], 1)])]), _c('div', {
30659
30661
  attrs: {
@@ -30679,12 +30681,12 @@ var table_settingvue_type_template_id_3fbe6aa8_scoped_true_render = function ren
30679
30681
  }
30680
30682
  }, [_vm._v("确定")])], 1)])], 1);
30681
30683
  };
30682
- var table_settingvue_type_template_id_3fbe6aa8_scoped_true_staticRenderFns = [];
30684
+ var table_settingvue_type_template_id_a9701966_scoped_true_staticRenderFns = [];
30683
30685
 
30684
30686
  ;// ./src/assets/images/model_title_icon.png
30685
30687
  var model_title_icon_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAAXNSR0IArs4c6QAAA5xJREFUSEuVll1onFUQhp/32yTYxJAKitSItiXZaOuFCooiqKA33tUbKdSWFrNJGn9aRav5MayJKRqaXAjVZLdN1QotVVFBil4IBUEjaKUXJm6yxR8w8afiVlOVJLtjzpqGLyfZzfa7/M7MvGdm3nfmiBK/awdsTWUVrcAeAioFg9l/6Es/oT9LCaFVjU5YpP48OwIjbnCdZ38OES+rITn6kGaKxSoKFB2yLYheYNMqF0pLtKUaeRfJVrJdEaguYfcE8BJwh+d0xowOGf8qoM/gVu98BLFvPKZPfbAlQPUJu1mwH3jAMzxrRtfEFMeJK5c/M1P9IbbK6AbqPPv3THRMxDR28X8eqH7YNgZZeszYCgQhpykZPZErOFyoB5tOWMVshmZBF3BlyHfORLIsR89Ys6bUkLBt800eBipCRhmMl6fhlclm/b0qYYCGw1ZNjmfN2ANcHvKZNtip6JCdRtwSOjg2U07r97uUKQXAt7lxyNbloNfErsUz8buiCXsD2BFycDQ9NCu6v4vpl0sCc1LIsD2AFzwpjOmaIausDmg34ylgTThlxIGyGfpHH9V0UcD/ifGg6+cyKYhPAqN1kXXR16zWInQLdi4hhPgZo6faSH7VrFkfMDpo9xHkmXr7kjPjaxntqRZ95P4v01FdwjZHRNKMO72g6bxjE+84UUYTdts8gRzA/Z7dpGBfapJji1LwgRxVs3+w18TzHnPCsb4AJoEtK10UcD3unzZeDDN2MaMbknZvzjjo1TgncdyMu4DrC/TJjZyTkLdZGxLoj47q4816P1+6umG7KphlALHNu+GIcjyeatGXLtO5DI8BbZ4oPyRH53iLzmxI2tXlRh+w3Ytzcs7YrYakfeb14zfBc6lJXg/X2N1q/RFbWz5HDNhgWY6mW/S5n2X9oN2NOChx0+KZI0Y0YY66VSGHN7NZnjm7W79ekoYWjJ1cquBJKT8DL46z8y6jvWb0ezPOgQ8owoHUI/qrFMCF8jYCncC68AAw8rMQikztcxK9kRpeLbjY4hZEa3kYI+5KGgJwU/6tSEDXWKN+WKKjQntI4BjUNT7F0fCaiCbzFHfTYLOX9Qc56Eg36ZsQC5cXpshmHZVozxkXFvaWE22o55wy0ZaOacSPWniVF38rLIkjOC1o/7ZJHxfq56qPk/VH7LKK2fzrx9fQfFuYCKAzFePtQm+FoqVb6VYbh6ymXDxt0AJcMLG/9ieGT8U1Vwor/wOKJWKSdidLTwAAAABJRU5ErkJggg==";
30686
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/tuo-drag.vue?vue&type=template&id=4a4b41bf&scoped=true
30687
- var tuo_dragvue_type_template_id_4a4b41bf_scoped_true_render = function render() {
30688
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/tuo-drag.vue?vue&type=template&id=7a5aeb92&scoped=true
30689
+ var tuo_dragvue_type_template_id_7a5aeb92_scoped_true_render = function render() {
30688
30690
  var _vm = this,
30689
30691
  _c = _vm._self._c;
30690
30692
  return _c('div', {
@@ -30739,7 +30741,29 @@ var tuo_dragvue_type_template_id_4a4b41bf_scoped_true_render = function render()
30739
30741
  attrs: {
30740
30742
  "title": "拖动可调整顺序"
30741
30743
  }
30742
- }, [_vm._v(_vm._s(_vm.checkAllGroupObj[item] && _vm.checkAllGroupObj[item].title || '--'))])]), _vm.activeColumns.includes(item) ? _c('img', {
30744
+ }, [_vm._v(_vm._s(_vm.checkAllGroupObj[item] && _vm.checkAllGroupObj[item].title || '--'))])]), _c('div', {
30745
+ staticClass: "width-setting"
30746
+ }, [_c('InputNumber', {
30747
+ staticStyle: {
30748
+ "width": "70px"
30749
+ },
30750
+ attrs: {
30751
+ "min": 50,
30752
+ "max": 500,
30753
+ "step": 10,
30754
+ "value": _vm.getColumnWidth(item),
30755
+ "size": "small"
30756
+ },
30757
+ on: {
30758
+ "on-change": val => _vm.handleWidthChange(item, val)
30759
+ }
30760
+ }), _c('span', {
30761
+ staticStyle: {
30762
+ "margin-left": "2px",
30763
+ "font-size": "12px",
30764
+ "color": "#999"
30765
+ }
30766
+ }, [_vm._v("px")])], 1), _vm.activeColumns.includes(item) ? _c('img', {
30743
30767
  staticStyle: {
30744
30768
  "width": "12px",
30745
30769
  "height": "16px"
@@ -30750,7 +30774,7 @@ var tuo_dragvue_type_template_id_4a4b41bf_scoped_true_render = function render()
30750
30774
  }) : _vm._e()]);
30751
30775
  }), 0)]);
30752
30776
  };
30753
- var tuo_dragvue_type_template_id_4a4b41bf_scoped_true_staticRenderFns = [];
30777
+ var tuo_dragvue_type_template_id_7a5aeb92_scoped_true_staticRenderFns = [];
30754
30778
 
30755
30779
  ;// ./src/assets/images/tuozhui_icon.png
30756
30780
  var tuozhui_icon_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAeCAYAAAAl+Z4RAAAAAXNSR0IArs4c6QAAAJhJREFUSEtjXLVqFdvnXyLd//8xxDAwMjAyMjIs5mV7UxoWFvaLAQngUsc4Z/HeCQwMjPnIihkY/nemxDpXIIvhUsc4Z9G+twyMDEIoBvxneJcS5ySMYgAOdVQwAJsXGBm6UmKcygl6gZGhixEeOP8ZYkEaCAYimjpG1MAjnUe5AaPp4B32pDyaDkbLA3CeHi0PRusFOqcDAATfQ8J5SxE2AAAAAElFTkSuQmCC";
@@ -30774,7 +30798,8 @@ let node = '',
30774
30798
  tuozhui_icon: tuozhui_icon_namespaceObject,
30775
30799
  bluckLock: blue_lock_namespaceObject,
30776
30800
  activeColumns: [],
30777
- sortColumns: [...this.initialSortColumns] // 初始化时保存父组件传递的排序
30801
+ sortColumns: [...this.initialSortColumns],
30802
+ columnWidths: {}
30778
30803
  };
30779
30804
  },
30780
30805
  computed: {
@@ -30806,6 +30831,21 @@ let node = '',
30806
30831
  },
30807
30832
  methods: {
30808
30833
  clickItem(value) {},
30834
+ getColumnWidth(item) {
30835
+ const column = this.checkAllGroupObj[item];
30836
+ if (column && column.width) {
30837
+ return column.width;
30838
+ }
30839
+ return column && column.minWidth ? column.minWidth : 150;
30840
+ },
30841
+ handleWidthChange(item, val) {
30842
+ if (val) {
30843
+ this.$emit('update-column-width', {
30844
+ key: item,
30845
+ width: val
30846
+ });
30847
+ }
30848
+ },
30809
30849
  handleDragEnd() {
30810
30850
  // console.log('执行----')
30811
30851
  this.updateAction();
@@ -30950,10 +30990,10 @@ let node = '',
30950
30990
  });
30951
30991
  ;// ./packages/components/tuo-drag.vue?vue&type=script&lang=js
30952
30992
  /* harmony default export */ var components_tuo_dragvue_type_script_lang_js = (tuo_dragvue_type_script_lang_js);
30953
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/tuo-drag.vue?vue&type=style&index=0&id=4a4b41bf&prod&scoped=true&lang=css
30993
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/tuo-drag.vue?vue&type=style&index=0&id=7a5aeb92&prod&scoped=true&lang=css
30954
30994
  // extracted by mini-css-extract-plugin
30955
30995
 
30956
- ;// ./packages/components/tuo-drag.vue?vue&type=style&index=0&id=4a4b41bf&prod&scoped=true&lang=css
30996
+ ;// ./packages/components/tuo-drag.vue?vue&type=style&index=0&id=7a5aeb92&prod&scoped=true&lang=css
30957
30997
 
30958
30998
  ;// ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
30959
30999
  /* globals __VUE_SSR_CONTEXT__ */
@@ -31064,11 +31104,11 @@ function normalizeComponent(
31064
31104
 
31065
31105
  var component = normalizeComponent(
31066
31106
  components_tuo_dragvue_type_script_lang_js,
31067
- tuo_dragvue_type_template_id_4a4b41bf_scoped_true_render,
31068
- tuo_dragvue_type_template_id_4a4b41bf_scoped_true_staticRenderFns,
31107
+ tuo_dragvue_type_template_id_7a5aeb92_scoped_true_render,
31108
+ tuo_dragvue_type_template_id_7a5aeb92_scoped_true_staticRenderFns,
31069
31109
  false,
31070
31110
  null,
31071
- "4a4b41bf",
31111
+ "7a5aeb92",
31072
31112
  null
31073
31113
 
31074
31114
  )
@@ -31284,9 +31324,16 @@ let checkAllGroup = [];
31284
31324
  // this.$emit('submitExport', ids,'all')
31285
31325
  },
31286
31326
  updatesortColumns(val) {
31287
- // console.log('updatesortColumns---',val)
31288
31327
  this.sortColumns = val;
31289
31328
  },
31329
+ handleColumnWidthUpdate({
31330
+ key,
31331
+ width
31332
+ }) {
31333
+ if (this.checkAllGroupObj[key]) {
31334
+ this.$set(this.checkAllGroupObj[key], 'width', width);
31335
+ }
31336
+ },
31290
31337
  updateCheckAllGroup(columnTitles) {
31291
31338
  // console.log('updateCheckAllGroup---')
31292
31339
  // console.log(columnTitles)
@@ -31336,9 +31383,17 @@ let checkAllGroup = [];
31336
31383
  if (this.routePath || this.customPath || this.$route && this.$route.path) {
31337
31384
  route_path = (this.routePath || this.customPath || this.$route.path).replace(/^\/?/, '');
31338
31385
  }
31386
+ const columnWidths = {};
31387
+ orderArr.forEach(item => {
31388
+ const column = this.checkAllGroupObj[item];
31389
+ if (column && column.key && column.width) {
31390
+ columnWidths[column.key] = column.width;
31391
+ }
31392
+ });
31339
31393
  let contentObj = {
31340
31394
  checkColumnData: this.$refs.tuoDrags.getOrder(),
31341
- freeze: this.freeze
31395
+ freeze: this.freeze,
31396
+ columnWidths: columnWidths
31342
31397
  };
31343
31398
  let obj = {
31344
31399
  tag: route_path + 'tableSet',
@@ -31348,12 +31403,10 @@ let checkAllGroup = [];
31348
31403
  simp_token: getToken()
31349
31404
  };
31350
31405
  if (this.columnSettingObj) {
31351
- // console.log({...obj,id:this.columnSettingId})
31352
31406
  updateUserQuery({
31353
31407
  ...obj,
31354
31408
  id: this.columnSettingId
31355
31409
  }).then(res => {
31356
- // console.log('res----',res)
31357
31410
  let datas = res.data;
31358
31411
  this.exportBtnLoading = false;
31359
31412
  if (datas.code == 200) {
@@ -31365,7 +31418,6 @@ let checkAllGroup = [];
31365
31418
  });
31366
31419
  } else {
31367
31420
  saveUserQuery(obj).then(res => {
31368
- // console.log('res----',res)
31369
31421
  let datas = res.data;
31370
31422
  this.exportBtnLoading = false;
31371
31423
  if (datas.code == 200) {
@@ -31376,10 +31428,6 @@ let checkAllGroup = [];
31376
31428
  }
31377
31429
  });
31378
31430
  }
31379
-
31380
- // this.exportBtnLoading = true
31381
- // this.$emit('submitExport', ids)
31382
- // this.exportXlsx()
31383
31431
  },
31384
31432
  async exportDataXlsx(dataList) {
31385
31433
  try {
@@ -31622,10 +31670,10 @@ let checkAllGroup = [];
31622
31670
  });
31623
31671
  ;// ./packages/components/table-setting.vue?vue&type=script&lang=js
31624
31672
  /* harmony default export */ var components_table_settingvue_type_script_lang_js = (table_settingvue_type_script_lang_js);
31625
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/table-setting.vue?vue&type=style&index=0&id=3fbe6aa8&prod&scoped=true&lang=css
31673
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/table-setting.vue?vue&type=style&index=0&id=a9701966&prod&scoped=true&lang=css
31626
31674
  // extracted by mini-css-extract-plugin
31627
31675
 
31628
- ;// ./packages/components/table-setting.vue?vue&type=style&index=0&id=3fbe6aa8&prod&scoped=true&lang=css
31676
+ ;// ./packages/components/table-setting.vue?vue&type=style&index=0&id=a9701966&prod&scoped=true&lang=css
31629
31677
 
31630
31678
  ;// ./packages/components/table-setting.vue
31631
31679
 
@@ -31638,11 +31686,11 @@ let checkAllGroup = [];
31638
31686
 
31639
31687
  var table_setting_component = normalizeComponent(
31640
31688
  components_table_settingvue_type_script_lang_js,
31641
- table_settingvue_type_template_id_3fbe6aa8_scoped_true_render,
31642
- table_settingvue_type_template_id_3fbe6aa8_scoped_true_staticRenderFns,
31689
+ table_settingvue_type_template_id_a9701966_scoped_true_render,
31690
+ table_settingvue_type_template_id_a9701966_scoped_true_staticRenderFns,
31643
31691
  false,
31644
31692
  null,
31645
- "3fbe6aa8",
31693
+ "a9701966",
31646
31694
  null
31647
31695
 
31648
31696
  )
@@ -36402,6 +36450,10 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36402
36450
  type: Boolean,
36403
36451
  default: false
36404
36452
  },
36453
+ resizable: {
36454
+ type: Boolean,
36455
+ default: true
36456
+ },
36405
36457
  // 表格高度
36406
36458
  height: {
36407
36459
  type: String,
@@ -36440,10 +36492,10 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36440
36492
  type: Number,
36441
36493
  default: 10
36442
36494
  },
36443
- /**
36444
- * params及pagination可设置每页数据条数, params优先级最高
36445
- * params: {current, pageSize}
36446
- * pagination: {pageSize, onChange}
36495
+ /**
36496
+ * params及pagination可设置每页数据条数, params优先级最高
36497
+ * params: {current, pageSize}
36498
+ * pagination: {pageSize, onChange}
36447
36499
  */
36448
36500
  params: {
36449
36501
  type: Object,
@@ -36453,10 +36505,10 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36453
36505
  type: Object,
36454
36506
  default: () => ({})
36455
36507
  },
36456
- /**
36457
- * 可通过传递data和request字段设置表格数据
36458
- * data优先级最高, 如果通过data参数设置表格数据, 需手动刷新table数据, data需是一个对象,包含data 和 total属性
36459
- * request函数会接收一个对象。对象中必须要有 data 和 total, 当params发生变化时会重新执行request
36508
+ /**
36509
+ * 可通过传递data和request字段设置表格数据
36510
+ * data优先级最高, 如果通过data参数设置表格数据, 需手动刷新table数据, data需是一个对象,包含data 和 total属性
36511
+ * request函数会接收一个对象。对象中必须要有 data 和 total, 当params发生变化时会重新执行request
36460
36512
  */
36461
36513
  data: {
36462
36514
  type: Object,
@@ -36519,14 +36571,16 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36519
36571
  };
36520
36572
  },
36521
36573
  computed: {
36522
- /**
36523
- * 表格列
36574
+ /**
36575
+ * 表格列
36524
36576
  */
36525
36577
  tableColumns() {
36526
36578
  return this.columnsList.filter(item => !item.hideInTable).map(column => {
36527
36579
  const originalRender = column.render;
36528
36580
  const config = {
36529
36581
  ...column,
36582
+ resizable: this.resizable && column.resizable !== false,
36583
+ width: column.width || column.minWidth || 150,
36530
36584
  render: (h, params) => {
36531
36585
  // 如果列有slot属性,使用插槽内容
36532
36586
  if (column.slot) {
@@ -36815,8 +36869,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36815
36869
  return config;
36816
36870
  });
36817
36871
  },
36818
- /**
36819
- * 筛选项集合
36872
+ /**
36873
+ * 筛选项集合
36820
36874
  */
36821
36875
  setcolumnsList() {
36822
36876
  return this.columns.filter(item => item.title && item.title != '操作');
@@ -36853,10 +36907,10 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36853
36907
  // console.log('tableSlot---',this.columns.filter((item) => item.slot))
36854
36908
  return this.columns.filter(item => item.slot);
36855
36909
  },
36856
- /**
36857
- * 获取数据请求参数
36858
- * params及pagination如果为空,默认通过page.current进行查询
36859
- * 如果不为空,那么就覆盖掉默认查询参数
36910
+ /**
36911
+ * 获取数据请求参数
36912
+ * params及pagination如果为空,默认通过page.current进行查询
36913
+ * 如果不为空,那么就覆盖掉默认查询参数
36860
36914
  */
36861
36915
  requestParams() {
36862
36916
  const {
@@ -36871,8 +36925,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36871
36925
  pageSize: pageSize || defaultSize
36872
36926
  };
36873
36927
  },
36874
- /**
36875
- * 数据源
36928
+ /**
36929
+ * 数据源
36876
36930
  */
36877
36931
  dataSource() {
36878
36932
  if (this.data && this.data.data) {
@@ -36880,8 +36934,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36880
36934
  }
36881
36935
  return this.tableData;
36882
36936
  },
36883
- /**
36884
- * 筛选栏表单属性名
36937
+ /**
36938
+ * 筛选栏表单属性名
36885
36939
  */
36886
36940
  formKey() {
36887
36941
  return item => item.as ? item.as : item.key;
@@ -37145,8 +37199,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37145
37199
  // console.log(JSON.stringify(filterForm))
37146
37200
  this.filterForm = Object.assign({}, filterForm);
37147
37201
  },
37148
- /**
37149
- * 获取数据
37202
+ /**
37203
+ * 获取数据
37150
37204
  */
37151
37205
  async getDataSource(params = this.requestParams) {
37152
37206
  if (this.request) {
@@ -37161,9 +37215,9 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37161
37215
  this.tableLoading = false;
37162
37216
  }
37163
37217
  },
37164
- /**
37165
- * 删除对象属性值为空的属性
37166
- * @param {*} obj
37218
+ /**
37219
+ * 删除对象属性值为空的属性
37220
+ * @param {*} obj
37167
37221
  */
37168
37222
  delValueEmptyProperty(obj) {
37169
37223
  for (const key in obj) {
@@ -37175,8 +37229,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37175
37229
  }
37176
37230
  return obj;
37177
37231
  },
37178
- /**
37179
- * 清空筛选栏表单
37232
+ /**
37233
+ * 清空筛选栏表单
37180
37234
  */
37181
37235
  reset() {
37182
37236
  this.page.current = 1;
@@ -37249,28 +37303,28 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37249
37303
  pageSize: this.page.pageSize
37250
37304
  });
37251
37305
  },
37252
- /**
37253
- * 监听当前选中项
37254
- * @param {*} selectionItems
37306
+ /**
37307
+ * 监听当前选中项
37308
+ * @param {*} selectionItems
37255
37309
  */
37256
37310
  onSelectionChange(selectionItems) {
37257
37311
  this.selectionItems = selectionItems;
37258
37312
  // 向父组件发射选择变化事件
37259
37313
  this.$emit('on-selection-change', selectionItems);
37260
37314
  },
37261
- /**
37262
- * 监听选中某一项事件
37263
- * @param {*} selection 已选项数据
37264
- * @param {*} row 刚选择的项数据
37315
+ /**
37316
+ * 监听选中某一项事件
37317
+ * @param {*} selection 已选项数据
37318
+ * @param {*} row 刚选择的项数据
37265
37319
  */
37266
37320
  onSelect(selection, row) {
37267
37321
  // 向父组件发射选中事件
37268
37322
  this.$emit('on-select', selection, row);
37269
37323
  },
37270
- /**
37271
- * 监听取消选中某一项事件
37272
- * @param {*} selection 已选项数据
37273
- * @param {*} row 取消选择的项数据
37324
+ /**
37325
+ * 监听取消选中某一项事件
37326
+ * @param {*} selection 已选项数据
37327
+ * @param {*} row 取消选择的项数据
37274
37328
  */
37275
37329
  onSelectCancel(selection, row) {
37276
37330
  // 向父组件发射取消选中事件
@@ -37300,9 +37354,9 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37300
37354
  });
37301
37355
  this.reload();
37302
37356
  },
37303
- /**
37304
- * 监听工具栏按钮
37305
- * @param {*} index
37357
+ /**
37358
+ * 监听工具栏按钮
37359
+ * @param {*} index
37306
37360
  */
37307
37361
  onToolBar(index) {
37308
37362
  const isSelection = this.columns.some(item => item.type === 'selection');
@@ -37311,8 +37365,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37311
37365
  }
37312
37366
  this.$emit('onToolBar', index, this.selectionItems);
37313
37367
  },
37314
- /**
37315
- * 当前表单属性值是否为空
37368
+ /**
37369
+ * 当前表单属性值是否为空
37316
37370
  */
37317
37371
  isEmptyFilterForm() {
37318
37372
  let isEmpty = true;
@@ -37324,8 +37378,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37324
37378
  }
37325
37379
  return isEmpty;
37326
37380
  },
37327
- /**
37328
- * 监听筛选按钮
37381
+ /**
37382
+ * 监听筛选按钮
37329
37383
  */
37330
37384
  onFilter() {
37331
37385
  // console.log(this.tableColumns)
@@ -37340,9 +37394,9 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37340
37394
  pageSize: this.page.pageSize
37341
37395
  });
37342
37396
  },
37343
- /**
37344
- * 监听页数变化
37345
- * @param {*} current
37397
+ /**
37398
+ * 监听页数变化
37399
+ * @param {*} current
37346
37400
  */
37347
37401
  onPageChange(current) {
37348
37402
  this.page.current = current;
@@ -37366,8 +37420,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37366
37420
  setSelectionItem(status) {
37367
37421
  this.$refs.selection.selectAll(status);
37368
37422
  },
37369
- /**
37370
- * 刷新
37423
+ /**
37424
+ * 刷新
37371
37425
  */
37372
37426
  reload() {
37373
37427
  if (this.selectionItems.length > 0) {
@@ -37505,27 +37559,50 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37505
37559
  if (this.routePath || this.customPath || this.$route && this.$route.path) {
37506
37560
  route_path = (this.routePath || this.customPath || this.$route.path).replace(/^\/?/, '');
37507
37561
  }
37562
+ const selectedProject = localStorage.getItem('selectedProject');
37563
+ if (!selectedProject) {
37564
+ return;
37565
+ }
37566
+ let projectObj = null;
37567
+ try {
37568
+ projectObj = JSON.parse(selectedProject);
37569
+ } catch (e) {
37570
+ return;
37571
+ }
37572
+ if (!projectObj || !projectObj.id) {
37573
+ return;
37574
+ }
37508
37575
  let obj = {
37509
37576
  tag: route_path + 'tableSetView',
37510
- project_id: JSON.parse(localStorage.getItem('selectedProject')).id,
37577
+ project_id: projectObj.id,
37511
37578
  simp_token: getToken()
37512
37579
  };
37513
37580
  getUserQuery(obj).then(res => {
37514
37581
  let datas = res.data;
37515
37582
  if (datas.code == 200) {
37516
- // console.log('tableSetView-----',datas)
37517
37583
  this.viewList = datas.data;
37518
37584
  this.viewListP = lodash_default().cloneDeep(this.viewList);
37519
-
37520
- //
37521
37585
  } else {
37522
37586
  this.$Message.error(datas.msg);
37523
37587
  }
37524
- });
37588
+ }).catch(() => {});
37525
37589
  },
37526
37590
  getPerson() {
37591
+ const selectedProject = localStorage.getItem('selectedProject');
37592
+ if (!selectedProject) {
37593
+ return;
37594
+ }
37595
+ let projectObj = null;
37596
+ try {
37597
+ projectObj = JSON.parse(selectedProject);
37598
+ } catch (e) {
37599
+ return;
37600
+ }
37601
+ if (!projectObj || !projectObj.id) {
37602
+ return;
37603
+ }
37527
37604
  let obj = {
37528
- project_id: JSON.parse(localStorage.getItem('selectedProject')).id,
37605
+ project_id: projectObj.id,
37529
37606
  simp_token: getToken(),
37530
37607
  rows: 10000,
37531
37608
  page: 1,
@@ -37538,16 +37615,32 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37538
37615
  } else {
37539
37616
  this.$Message.error(datas.msg);
37540
37617
  }
37541
- });
37618
+ }).catch(() => {});
37542
37619
  },
37543
37620
  handleGetUserQuery() {
37544
37621
  let route_path = '';
37545
37622
  if (this.routePath || this.customPath || this.$route && this.$route.path) {
37546
37623
  route_path = (this.routePath || this.customPath || this.$route.path).replace(/^\/?/, '');
37547
37624
  }
37625
+ const selectedProject = localStorage.getItem('selectedProject');
37626
+ if (!selectedProject) {
37627
+ this.reload();
37628
+ return;
37629
+ }
37630
+ let projectObj = null;
37631
+ try {
37632
+ projectObj = JSON.parse(selectedProject);
37633
+ } catch (e) {
37634
+ this.reload();
37635
+ return;
37636
+ }
37637
+ if (!projectObj || !projectObj.id) {
37638
+ this.reload();
37639
+ return;
37640
+ }
37548
37641
  let obj = {
37549
37642
  tag: route_path + 'tableSet',
37550
- project_id: JSON.parse(localStorage.getItem('selectedProject')).id,
37643
+ project_id: projectObj.id,
37551
37644
  simp_token: getToken()
37552
37645
  };
37553
37646
  this.tableLoading = true;
@@ -37564,14 +37657,12 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37564
37657
  dataValue.content = JSON.parse(dataValue.content);
37565
37658
  let {
37566
37659
  checkColumnData,
37567
- freeze
37660
+ freeze,
37661
+ columnWidths
37568
37662
  } = dataValue.content;
37569
37663
  this.columnSettingId = dataValue.id;
37570
37664
  this.columnSettingObj = dataValue.content;
37571
- // console.log()
37572
- // console.log(this.columns)
37573
37665
  let columnsList = this.sortAndFilterColumns(lodash_default().cloneDeep(this.columns), checkColumnData);
37574
- // console.log('columnsList---getUserQuery',columnsList)
37575
37666
  let freezeNum = columnsList[0] && columnsList[0].type == 'selection' ? freeze + 1 : freeze;
37576
37667
  columnsList.forEach((item, index) => {
37577
37668
  if (item.title == '操作') {
@@ -37581,13 +37672,17 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37581
37672
  } else {
37582
37673
  delete item.fixed;
37583
37674
  }
37675
+ if (columnWidths && columnWidths[item.key]) {
37676
+ item.width = columnWidths[item.key];
37677
+ }
37584
37678
  });
37585
- // console.log('columnsList----',columnsList)
37586
37679
  this.columnsList = columnsList;
37587
37680
  }
37588
37681
  } else {
37589
37682
  this.$Message.error(datas.msg);
37590
37683
  }
37684
+ }).catch(() => {
37685
+ this.tableLoading = false;
37591
37686
  }).finally(() => {
37592
37687
  this.reload();
37593
37688
  });
@@ -37691,6 +37786,76 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37691
37786
  column
37692
37787
  });
37693
37788
  },
37789
+ onColumnWidthResize(newWidth, oldWidth, column, event) {
37790
+ const columnKey = column.key;
37791
+ const columnIndex = this.columnsList.findIndex(col => col.key === columnKey);
37792
+ if (columnIndex !== -1) {
37793
+ this.$set(this.columnsList[columnIndex], 'width', newWidth);
37794
+ this.saveColumnWidths();
37795
+ }
37796
+ this.$emit('on-column-width-resize', {
37797
+ newWidth,
37798
+ oldWidth,
37799
+ column,
37800
+ event
37801
+ });
37802
+ },
37803
+ saveColumnWidths: lodash_default().debounce(function () {
37804
+ const columnWidths = {};
37805
+ this.columnsList.forEach(col => {
37806
+ if (col.key && col.width) {
37807
+ columnWidths[col.key] = col.width;
37808
+ }
37809
+ });
37810
+ let route_path = '';
37811
+ if (this.routePath || this.customPath || this.$route && this.$route.path) {
37812
+ route_path = (this.routePath || this.customPath || this.$route.path).replace(/^\/?/, '');
37813
+ }
37814
+ const selectedProject = localStorage.getItem('selectedProject');
37815
+ if (!selectedProject) {
37816
+ return;
37817
+ }
37818
+ let projectObj = null;
37819
+ try {
37820
+ projectObj = JSON.parse(selectedProject);
37821
+ } catch (e) {
37822
+ return;
37823
+ }
37824
+ if (!projectObj || !projectObj.id) {
37825
+ return;
37826
+ }
37827
+ let contentObj = {
37828
+ checkColumnData: this.columnSettingObj ? this.columnSettingObj.checkColumnData : [],
37829
+ freeze: this.columnSettingObj ? this.columnSettingObj.freeze : '',
37830
+ columnWidths: columnWidths
37831
+ };
37832
+ let obj = {
37833
+ tag: route_path + 'tableSet',
37834
+ name: route_path,
37835
+ content: JSON.stringify(contentObj),
37836
+ project_id: projectObj.id,
37837
+ simp_token: getToken()
37838
+ };
37839
+ if (this.columnSettingId) {
37840
+ updateUserQuery({
37841
+ ...obj,
37842
+ id: this.columnSettingId
37843
+ }).then(res => {
37844
+ let datas = res.data;
37845
+ if (datas.code === 200) {
37846
+ this.columnSettingObj = contentObj;
37847
+ }
37848
+ });
37849
+ } else {
37850
+ saveUserQuery(obj).then(res => {
37851
+ let datas = res.data;
37852
+ if (datas.code === 200) {
37853
+ this.columnSettingId = datas.data.id;
37854
+ this.columnSettingObj = contentObj;
37855
+ }
37856
+ });
37857
+ }
37858
+ }, 500),
37694
37859
  initSortable(container) {
37695
37860
  if (!container) return;
37696
37861
 
@@ -37787,15 +37952,15 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37787
37952
  });
37788
37953
  ;// ./packages/components/index.vue?vue&type=script&lang=js
37789
37954
  /* harmony default export */ var packages_componentsvue_type_script_lang_js = (componentsvue_type_script_lang_js);
37790
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=0&id=770554fe&prod&scoped=true&lang=less
37955
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=0&id=2bd81707&prod&scoped=true&lang=less
37791
37956
  // extracted by mini-css-extract-plugin
37792
37957
 
37793
- ;// ./packages/components/index.vue?vue&type=style&index=0&id=770554fe&prod&scoped=true&lang=less
37958
+ ;// ./packages/components/index.vue?vue&type=style&index=0&id=2bd81707&prod&scoped=true&lang=less
37794
37959
 
37795
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=1&id=770554fe&prod&lang=css
37960
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=1&id=2bd81707&prod&lang=css
37796
37961
  // extracted by mini-css-extract-plugin
37797
37962
 
37798
- ;// ./packages/components/index.vue?vue&type=style&index=1&id=770554fe&prod&lang=css
37963
+ ;// ./packages/components/index.vue?vue&type=style&index=1&id=2bd81707&prod&lang=css
37799
37964
 
37800
37965
  ;// ./packages/components/index.vue
37801
37966
 
@@ -37813,7 +37978,7 @@ var components_component = normalizeComponent(
37813
37978
  staticRenderFns,
37814
37979
  false,
37815
37980
  null,
37816
- "770554fe",
37981
+ "2bd81707",
37817
37982
  null
37818
37983
 
37819
37984
  )