Przeglądaj źródła

人员部门组件完善 安全排查流程完善

长阳分支中职
yxq 1 miesiąc temu
rodzic
commit
e14c2706e8
3 zmienionych plików z 26 dodań i 11 usunięć
  1. +3
    -3
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/learun-app/organize-tree.vue
  2. +21
    -6
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SafetyCheck/list.vue
  3. +2
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SafetyCheck/single.vue

+ 3
- 3
Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/learun-app/organize-tree.vue Wyświetl plik

@@ -96,7 +96,7 @@ export default {
} }
// 如果自己是根节点,则创建时直接加载子节点 // 如果自己是根节点,则创建时直接加载子节点
if (this.open) { if (this.open) {
await this.loadChildren()
await this.loadChildren(false)
} }
}, },


@@ -129,7 +129,7 @@ export default {
}, },


// 加载子节点 // 加载子节点
async loadChildren() {
async loadChildren(userLoad=true) {
this.isLoading = true this.isLoading = true


let children = [] let children = []
@@ -162,7 +162,7 @@ export default {
} }


// 加载子职员 // 加载子职员
if (this.level === 'user') {
if (this.level === 'user'&&userLoad) {
children = children.concat( children = children.concat(
Object.entries(this.GET_GLOBAL('user')) Object.entries(this.GET_GLOBAL('user'))
.filter( .filter(


+ 21
- 6
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SafetyCheck/list.vue Wyświetl plik

@@ -145,10 +145,14 @@
<view v-if="ready" class="padding"> <view v-if="ready" class="padding">
<l-customlist-sidepage-datefilter v-model="dateRange" @change="searchChange" title="按申请时间查询: " <l-customlist-sidepage-datefilter v-model="dateRange" @change="searchChange" title="按申请时间查询: "
ref="datefilter" class="margin-bottom" /> ref="datefilter" class="margin-bottom" />
<l-organize-picker @input="queryData.Name=$event" :value="queryData.Name" type="user" title="姓名"
@change="searchChange" />
<l-organize-picker @input="queryData.Department=$event" :value="queryData.Department"
type="department" title="处室部门" @change="searchChange"/>
<!-- 重置查询条件按钮 --> <!-- 重置查询条件按钮 -->
<!-- <view class="padding-tb">
<view class="padding-tb">
<l-button @click="reset" line="orange" class="block" block>重置查询条件</l-button> <l-button @click="reset" line="orange" class="block" block>重置查询条件</l-button>
</view> -->
</view>
</view> </view>
</scroll-view> </scroll-view>


@@ -198,7 +202,7 @@
}, },
CheckTime: { CheckTime: {
type: 'datetime', type: 'datetime',
dateformat:'0',
dateformat: '0',
}, },
Question: { Question: {
type: 'text' type: 'text'
@@ -235,7 +239,9 @@
// 查询条件 // 查询条件
searchData: {}, searchData: {},
defaultQueryData: {}, defaultQueryData: {},
queryData: {},
queryData: {
Name: ''
},
// 时间查询参数 // 时间查询参数
dateRange: null, dateRange: null,


@@ -315,7 +321,7 @@
rows: 10, rows: 10,
page: this.page, page: this.page,
sord: 'ASC', sord: 'ASC',
sidx:"CheckTime desc",
sidx: "CheckTime desc",
}, },
queryJson: JSON.stringify(this.searchData) queryJson: JSON.stringify(this.searchData)
}, },
@@ -458,7 +464,16 @@
default: default:
return value === null || value === undefined ? '' : value return value === null || value === undefined ? '' : value
} }
}
},
// 获取表单值
getValue(path) {
return get(this.current, path)
},

// 设置表单值
setValue(path, val) {
set(this.current, path, val)
},


} }
} }


+ 2
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SafetyCheck/single.vue Wyświetl plik

@@ -2,9 +2,9 @@
<view class="page"> <view class="page">
<view v-if="ready"> <view v-if="ready">
<l-organize-picker @input="setValue('SafetyCheck.Name', $event)" :value="getValue('SafetyCheck.Name')" <l-organize-picker @input="setValue('SafetyCheck.Name', $event)" :value="getValue('SafetyCheck.Name')"
:readonly="!edit" type="user" title="姓名" required readonly />
type="user" title="姓名" required readonly/>
<l-organize-picker @input="setValue('SafetyCheck.Department', $event)" <l-organize-picker @input="setValue('SafetyCheck.Department', $event)"
:value="getValue('SafetyCheck.Department')" type="department" :readonly="!edit" title="处室部门" required
:value="getValue('SafetyCheck.Department')" type="department" title="处室部门" required
readonly /> readonly />
<l-input @input="setValue('SafetyCheck.Area', $event)" :value="getValue('SafetyCheck.Area')" <l-input @input="setValue('SafetyCheck.Area', $event)" :value="getValue('SafetyCheck.Area')"
:disabled="!edit" title="责任区域" required /> :disabled="!edit" title="责任区域" required />


Ładowanie…
Anuluj
Zapisz